[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: msys/mingw warnings about string length and putenv absence with gcc

From: Chris Pickett
Subject: Re: msys/mingw warnings about string length and putenv absence with gcc -Wall -ansi
Date: Tue, 30 Dec 2008 15:05:59 -0500
User-agent: Thunderbird (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:

commit d34008adff36714b3a593da2377202df0d94bffe
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.

Problem #2

+# ifdef __STRICT_ANSI__
+int putenv (char *);
+# endif



reply via email to

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