Complete.Org: Mailing Lists: Archives: freeciv-dev: September 2004:
[Freeciv-Dev] (PR#9951) warning compiling without readline
Home

[Freeciv-Dev] (PR#9951) warning compiling without readline

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] (PR#9951) warning compiling without readline
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 5 Sep 2004 02:27:19 -0700
Reply-to: rt@xxxxxxxxxxx

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

When I compile without readline I get a warning that olvlname_accessor 
is defined but not used.

I'm not sure why this doesn't happen for the other accessor functions. 
I didn't look that closely.  Something like this should fix it (but 
again I didn't look that closely).

jason

Index: server/stdinhand.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/server/stdinhand.c,v
retrieving revision 1.343
diff -u -r1.343 stdinhand.c
--- server/stdinhand.c  4 Sep 2004 20:36:10 -0000       1.343
+++ server/stdinhand.c  5 Sep 2004 09:26:11 -0000
@@ -1265,6 +1265,7 @@
   return settings[i].name;
 }
 
+#if defined HAVE_READLINE || defined HAVE_NEWREADLINE
 /**************************************************************************
   Returns possible parameters for the /show command.
 **************************************************************************/
@@ -1277,6 +1278,7 @@
     return settings[i-OLEVELS_NUM].name;
   }
 }
+#endif
 
 /**************************************************************************
   Set timeout options.

[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#9951) warning compiling without readline, Jason Short <=