[Freeciv-Dev] Re: (PR#6569) warning during compiling on alpha Tru64 Unix
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Jason Short wrote:
> Davide Pagnin wrote:
>
>>During compilation of freeciv 1.14.1-beta1
>>
>>I get this warning during compilation:
>>
>>shared.c:1320: warning: assignment discards qualifiers from pointer
>>target type
>>
>>
>>This is due to the implementation of libcharset that give a const
>>pointer to char instead of simple pointer to char.
>
>
> How about this patch?
>
> It should apply to current S1_14; it may not apply to R1_14_1_beta1.
Geez...
Index: common/shared.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/common/shared.c,v
retrieving revision 1.92.2.7
diff -u -r1.92.2.7 shared.c
--- common/shared.c 2003/10/12 11:04:55 1.92.2.7
+++ common/shared.c 2003/10/20 16:48:21
@@ -1319,8 +1319,7 @@
char *convert_data_string_malloc(const char *text)
{
#ifdef HAVE_ICONV
- const char *local_encoding;
- const char *data_encoding;
+ char *local_encoding, *data_encoding;
char target[128];
data_encoding = getenv("FREECIV_DATA_ENCODING");
|
|