-Wno-implicit-int ?
Olivier Fourdan
fourdan at xfce.org
Sun Sep 15 16:05:22 CEST 2002
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
>
--
Olivier <fourdan at xfce.org> http://www.xfce.org
-----------------------------------------------------------------------
XFce is a lightweight desktop environment for various *NIX systems.
Designed for productivity, it loads and executes applications fast,
while conserving system resources. XFce is all free software, released
under GNU General Public License. Available from http://www.xfce.org
More information about the Xfce4-dev
mailing list