Complete.Org: Mailing Lists: Archives: freeciv-dev: September 2004:
[Freeciv-Dev] (PR#10304) [Path] Fix ftwl warnings
Home

[Freeciv-Dev] (PR#10304) [Path] Fix ftwl warnings

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] (PR#10304) [Path] Fix ftwl warnings
From: "Marko Lindqvist" <marko.lindqvist@xxxxxxxxxxx>
Date: Fri, 24 Sep 2004 12:43:12 -0700
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=10304 >


  This patch makes at least compiler warnings disappea, hopefully I 
selected sane values to return.


  - Caz

diff -Nurd -X.diff_ignore freeciv/utility/ftwl/be_common_24.c 
freeciv/utility/ftwl/be_common_24.c
--- freeciv/utility/ftwl/be_common_24.c 2004-09-24 22:40:20.515625000 +0300
+++ freeciv/utility/ftwl/be_common_24.c 2004-09-24 18:23:32.187500000 +0300
@@ -63,6 +63,7 @@
     return MASK_ALPHA;
   } else {
     assert(0);
+    return MASK_OPAQUE;
   }
 }
 
diff -Nurd -X.diff_ignore freeciv/utility/ftwl/theme_engine.c 
freeciv/utility/ftwl/theme_engine.c
--- freeciv/utility/ftwl/theme_engine.c 2004-09-24 22:40:20.609375000 +0300
+++ freeciv/utility/ftwl/theme_engine.c 2004-09-24 18:23:32.281250000 +0300
@@ -256,6 +256,7 @@
     transform = CTS_TRANSFORM_UPPER;
   } else {
     assert(0);
+    transform = CTS_TRANSFORM_NONE;
   }
   return ct_string_create(font, size, color, background, text, anti_alias,
                          outline_width, outline_color, transform);
diff -Nurd -X.diff_ignore freeciv/utility/ftwl/widget_button.c 
freeciv/utility/ftwl/widget_button.c
--- freeciv/utility/ftwl/widget_button.c        2004-09-24 22:40:20.640625000 
+0300
+++ freeciv/utility/ftwl/widget_button.c        2004-09-24 18:23:32.468750000 
+0300
@@ -302,6 +302,7 @@
     }
   }
   assert(0);
+  return NULL;
 }
 
 /*************************************************************************
diff -Nurd -X.diff_ignore freeciv/utility/ftwl/widget_edit.c 
freeciv/utility/ftwl/widget_edit.c
--- freeciv/utility/ftwl/widget_edit.c  2004-09-24 22:40:20.656250000 +0300
+++ freeciv/utility/ftwl/widget_edit.c  2004-09-24 18:23:32.562500000 +0300
@@ -253,6 +253,7 @@
     }
   }
   assert(0);
+  return NULL;
 }
 
 /*************************************************************************
diff -Nurd -X.diff_ignore freeciv/utility/ftwl/widget_label.c 
freeciv/utility/ftwl/widget_label.c
--- freeciv/utility/ftwl/widget_label.c 2004-09-24 22:40:20.656250000 +0300
+++ freeciv/utility/ftwl/widget_label.c 2004-09-24 18:23:32.656250000 +0300
@@ -89,4 +89,5 @@
     }
   }
   assert(0);
+  return NULL;
 }

[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#10304) [Path] Fix ftwl warnings, Marko Lindqvist <=