Complete.Org: Mailing Lists: Archives: freeciv-dev: September 2003:
[Freeciv-Dev] Re: (PR#6140) S1_14 compile warning
Home

[Freeciv-Dev] Re: (PR#6140) S1_14 compile warning

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] Re: (PR#6140) S1_14 compile warning
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 11 Sep 2003 17:59:28 -0700
Reply-to: rt@xxxxxxxxxxxxxx

Jason Short wrote:
> I guess this is due to a changed library prototype...
> 
> cc1: warnings being treated as errors
> shared.c: In function `convert_data_string_malloc':
> shared.c:1320: warning: assignment discards qualifiers from pointer 
> target type
> 
> But might as well be fixed.  Patch will follow, eventually.

Patch attached.

jason

Index: common/shared.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/common/shared.c,v
retrieving revision 1.92.2.4
diff -u -r1.92.2.4 shared.c
--- common/shared.c     2003/07/22 21:06:25     1.92.2.4
+++ common/shared.c     2003/09/12 00:58:10
@@ -1304,8 +1304,8 @@
 char *convert_data_string_malloc(const char *text)
 {
 #ifdef HAVE_ICONV
-  char *local_encoding;
-  char *data_encoding;
+  const char *local_encoding;
+  const char *data_encoding;
   char target[128];
 
   data_encoding = getenv("FREECIV_DATA_ENCODING");

[Prev in Thread] Current Thread [Next in Thread]