Complete.Org: Mailing Lists: Archives: freeciv-dev: November 2002:
[Freeciv-Dev] (PR#2320) compiler warning in server/unithand.c
Home

[Freeciv-Dev] (PR#2320) compiler warning in server/unithand.c

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients:;
Subject: [Freeciv-Dev] (PR#2320) compiler warning in server/unithand.c
From: "Jason Short via RT" <rt@xxxxxxxxxxxxxx>
Date: Tue, 12 Nov 2002 23:16:30 -0800
Reply-to: rt@xxxxxxxxxxxxxx

I now get this rather odd warning in server/unithand.c:

unithand.c: In function `handle_unit_activity_dependencies':
unithand.c:1221: warning: deprecated use of label at end of compound 
statement

This seems to be entirely harmless.  I think the compiler thinks the 
author probably did something he did not intend, but I don't even know 
what that might be.

The attached patch "fixes" it.

jason

Index: server/unithand.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/server/unithand.c,v
retrieving revision 1.239
diff -u -r1.239 unithand.c
--- server/unithand.c   2002/11/12 21:47:39     1.239
+++ server/unithand.c   2002/11/13 07:13:21
@@ -1218,6 +1218,7 @@
       break;
     default: 
       /* do nothing */
+      break;
     }
     break;
   case ACTIVITY_EXPLORE:

[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#2320) compiler warning in server/unithand.c, Jason Short via RT <=