Complete.Org:
Mailing Lists:
Archives:
freeciv-dev:
September 2004: [Freeciv-Dev] (PR#10139) use ICONV_CONST |
![]() |
[Freeciv-Dev] (PR#10139) use ICONV_CONST[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<URL: http://rt.freeciv.org/Ticket/Display.html?id=10139 > When compiling on win32 I get a compiler warning in fciconv. This is solved by using the ICONV_CONST macro (declared by iconv.m4). jason Index: utility/fciconv.c =================================================================== RCS file: /home/freeciv/CVS/freeciv/utility/fciconv.c,v retrieving revision 1.4 diff -u -r1.4 fciconv.c --- utility/fciconv.c 12 Sep 2004 01:31:48 -0000 1.4 +++ utility/fciconv.c 16 Sep 2004 03:14:23 -0000 @@ -211,7 +211,7 @@ * in between. */ iconv(cd, NULL, NULL, NULL, NULL); - res = iconv(cd, (char**)&mytext, &flen, &myresult, &tlen); + res = iconv(cd, (ICONV_CONST char **)&mytext, &flen, &myresult, &tlen); if (res == (size_t) (-1)) { if (errno != E2BIG) { /* Invalid input. */
|