--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/patches/wesnoth-06-fixreturn.diff Fri Aug 07 16:18:14 2009 +0000
@@ -0,0 +1,71 @@
+--- wesnoth-1.6a/src/gui/widgets/generator_private.hpp.fixreturn 2009-03-22 11:27:47.024326316 +0100
++++ wesnoth-1.6a/src/gui/widgets/generator_private.hpp 2009-03-22 11:31:27.221842861 +0100
+@@ -170,7 +170,7 @@
+ * @return The best size,
+ */
+ tpoint calculate_best_size() const
+- { ERROR_LOG(false); }
++ { ERROR_LOG(false); return tpoint(0,0);}
+
+ /**
+ * Sets the size of the generator.
+@@ -198,11 +198,11 @@
+ { ERROR_LOG(false); }
+
+ /** Inherited from tgenerator_. */
+- twidget* find_widget(const tpoint&, const bool) { ERROR_LOG(false); }
++ twidget* find_widget(const tpoint&, const bool) { ERROR_LOG(false); return NULL;}
+
+ /** Inherited from tgenerator_. */
+ const twidget* find_widget(const tpoint&, const bool) const
+- { ERROR_LOG(false); }
++ { ERROR_LOG(false); return NULL;}
+
+ /***** ***** ***** ***** keyboard functions ***** ***** ***** *****/
+
+@@ -299,7 +299,7 @@
+
+ /** See thorizontal_list::calculate_best_size(). */
+ tpoint calculate_best_size() const
+- { ERROR_LOG(false); }
++ { ERROR_LOG(false); return tpoint(0,0);}
+
+ /** See thorizontal_list::set_size(). */
+ void set_size(const tpoint& /*origin*/, const tpoint& /*size*/)
+@@ -314,11 +314,11 @@
+ { ERROR_LOG(false); }
+
+ /** See thorizontal_list::find_widget(). */
+- twidget* find_widget(const tpoint&, const bool) { ERROR_LOG(false); }
++ twidget* find_widget(const tpoint&, const bool) { ERROR_LOG(false); return NULL; }
+
+ /** See thorizontal_list::find_widget(). */
+ const twidget* find_widget(const tpoint&, const bool) const
+- { ERROR_LOG(false); }
++ { ERROR_LOG(false); return NULL; }
+
+ /***** ***** ***** ***** keyboard functions ***** ***** ***** *****/
+
+@@ -354,7 +354,7 @@
+
+ /** See thorizontal_list::calculate_best_size(). */
+ tpoint calculate_best_size() const
+- { ERROR_LOG(false); }
++ { ERROR_LOG(false); return tpoint(0, 0); }
+
+ /** See thorizontal_list::set_size(). */
+ void set_size(const tpoint& /*origin*/, const tpoint& /*size*/)
+@@ -369,11 +369,11 @@
+ { ERROR_LOG(false); }
+
+ /** See thorizontal_list::find_widget(). */
+- twidget* find_widget(const tpoint&, const bool) { ERROR_LOG(false); }
++ twidget* find_widget(const tpoint&, const bool) { ERROR_LOG(false); return NULL;}
+
+ /** See thorizontal_list::find_widget(). */
+ const twidget* find_widget(const tpoint&, const bool) const
+- { ERROR_LOG(false); }
++ { ERROR_LOG(false); return NULL;}
+
+ /***** ***** ***** ***** keyboard functions ***** ***** ***** *****/
+