Complete.Org: Mailing Lists: Archives: freeciv-dev: September 2004:
[Freeciv-Dev] Re: (PR#10189) [Patch] Fix warning from gamehand.c
Home

[Freeciv-Dev] Re: (PR#10189) [Patch] Fix warning from gamehand.c

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] Re: (PR#10189) [Patch] Fix warning from gamehand.c
From: "Marko Lindqvist" <marko.lindqvist@xxxxxxxxxxx>
Date: Sun, 19 Sep 2004 10:52:43 -0700
Reply-to: rt@xxxxxxxxxxx

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


  Couple of 'control reaches end of non-void function' warnings from 
mapgen.c were still left. Now I can make --enable-debug (-Werror) builds.


  - Caz


diff -Nurd -X.diff_ignore freeciv/server/generator/mapgen.c 
freeciv/server/generator/mapgen.c
--- freeciv/server/generator/mapgen.c   2004-09-19 17:15:42.218750000 +0300
+++ freeciv/server/generator/mapgen.c   2004-09-19 20:38:49.328125000 +0300
@@ -113,6 +113,7 @@
            return !map_pos_is_dry(x, y);
        default:
            assert(0);
+            return FALSE;
     }
 }
 
@@ -130,6 +131,7 @@
            return !map_pos_is_low(x, y);
        default:
            assert(0);
+            return FALSE;
     }
 }
 

[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] Re: (PR#10189) [Patch] Fix warning from gamehand.c, Marko Lindqvist <=