-Wno-implicit-int ?

Guido Draheim guidod-2002- at gmx.de
Sun Sep 15 16:13:37 CEST 2002


how old the solaris and how new the gcc?
(just need your guesses from foggy memory, Olivier).

Olivier Fourdan wrote:
> Hi Guido,
> 
> This is for GCC on Solaris. W/out this, one gets a bunch of warnings
> 'cuz X11 headers on Solaris.
> 
> Cheers,
> Olivier.
> 
> On Sun, 2002-09-15 at 15:12, Guido Draheim wrote:
> 
>>I found the following in the configure.in script.
>>Is that a common problem with X11?
>>I'd like to can this one into an ac-macro ready
>>to be reused - I have one for -fstrict-prototypes
>>where I check some signal()-functions to be sane
>>or not in the current system. There are a lot of
>>system who will give a load of warnings otherwise.
>>Which function should one pick to test for this
>>check? Is there a common OS/gcc combination that
>>I can have a look? (it's not said here).
>>
>>TIA, guido
>>
>>
>>dnl ---------------------------------------------------------------------------
>>dnl depending on the version of gcc used, using '-Wno-implicit-int' oppresses
>>dnl the ridiculous messages printed because of the X11 prototypes from the
>>dnl X11 headers.  the downside to doing this, of course, is that code in
>>dnl the application itself which have implicit int declarations will go
>>dnl unnoticed.  but oh well; whomever writes the code should be sure not to
>>dnl use any implicit declarations.
>>dnl ---------------------------------------------------------------------------
>>     if echo "$CFLAGS" | grep "\-Wno-implicit-int" > /dev/null 2> /dev/null; then
>>       CFLAGS="$CFLAGS"
>>     else
>>       echo "updating CFLAGS with extra '-Wno-implicit-int' option"
>>       CFLAGS="$CFLAGS -Wno-implicit-int"
>>     fi
>>
>>_______________________________________________
>>Xfce4-dev mailing list
>>Xfce4-dev at moongroup.com
>>http://moongroup.com/mailman/listinfo/xfce4-dev
>>
> 




More information about the Xfce4-dev mailing list