[Freeciv-Dev] Re: (PR#8841) warning when compiling with NDEBUG
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<URL: http://rt.freeciv.org/Ticket/Display.html?id=8841 >
On Tue, May 25, 2004 at 10:57:34PM -0700, Jason Short wrote:
>
> <URL: http://rt.freeciv.org/Ticket/Display.html?id=8841 >
>
> Jason Short wrote:
> > <URL: http://rt.freeciv.org/Ticket/Display.html?id=8841 >
> >
> > agents.c:106: warning: control reaches end of non-void function
>
> And a patch.
IMHO every switch should have a default. Can we move the return into
the default?
Raimar
--
email: rf13@xxxxxxxxxxxxxxxxx
(On the statement print "42 monkeys"+"1 snake"): BTW, both perl and Python
get this wrong. Perl gives 43 and Python gives "42 monkeys1 snake", when
the answer is clearly "41 monkeys and 1 fat snake".
-- Jim Fulton, 10 Aug 1999
|
|