From: Amos Jeffries Date: Mon, 9 Sep 2013 01:34:42 +0000 (-0600) Subject: Windows: fix getopt.c build error with MinGW X-Git-Tag: SQUID_3_4_0_2~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9bed32d8820a6354b3b4ff4d8ed9c0375589b951;p=thirdparty%2Fsquid.git Windows: fix getopt.c build error with MinGW Resolve warning 'initialization discards const qualifieer from pointer'. This is an iCelero project. --- diff --git a/lib/getopt.c b/lib/getopt.c index e95fbc94c4..a4083f5fbe 100644 --- a/lib/getopt.c +++ b/lib/getopt.c @@ -45,7 +45,7 @@ char *optarg; /* argument associated with option */ #define BADCH (int)'?' #define BADARG (int)':' -#define EMSG "" +#define EMSG (char*)"" /* * getopt --