[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: msys/mingw warnings about string length and putenv absence with gcc
Re: msys/mingw warnings about string length and putenv absence with gcc -Wall -ansi
Tue, 30 Dec 2008 15:05:59 -0500
Thunderbird 184.108.40.206 (Macintosh/20071210)
Charles Wilson wrote:
Bob Friesenhahn wrote:
If I compile my project on MSYS/MinGW with gcc -Wall -ansi (plus other
warning stuff that shouldn't matter here) I get two unexpected
warnings. Problem 1 is string lengths that are too long, problem 2 is
a missing putenv declaration. Based on a previous bug report, it
seems the string lengths
Neither of these issues seem to have anything to do with libtool so why
are you posting about the issue with your code here?
Sorry Bob, could have explained better.
Actually, I believe the OP's issues occur when compiling the libtool
exectable wrapper program, so it definitely involves libtool. The
problem(s) occur when the surrounding project is compiled using
non-default CFLAGS (like -ansi) -- these CFLAGS propagate to the
LTCOMPILE command used to build the (libtool-provided) cwrapper program.
Problem #1 was fixed here:
Author: Charles Wilson
Date: Fri Apr 25 21:08:04 2008 -0400
Ensure cwrapper compiles without warnings under -std=c99.
That looks like the fix for the previous bug I mentioned. I already
have this since I'm using 2.2.6a. This new problem is C89.
+# ifdef __STRICT_ANSI__
+int putenv (char *);