-Wno-long-long does not suppress all long long msgs

Tim Josling tej@melbpc.org.au
Thu Dec 14 11:54:00 GMT 2000


See below. While it does suppress the warnings for using long
long values, when you try and define long long constants or print
them out you still get warnings. 

This is on the 12/12/2000 weekly snapshot. 

If people think it is OK to suppress these warnings when
-Wno-long-long is specified, I am happy to do a patch to do it,

Tim Josling

gcc -o cobol/cobcast.o -c  -DIN_GCC    -g  -W -Wall
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -W -Wall
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-pedantic -Wno-long-long -Wmissing-prototypes
-Wmissing-declarations  -DHAVE_CONFIG_H -I. -Icobol -I../../gcc
-I../../gcc/cobol -I../../gcc/config -I../../gcc/../include
../../gcc/cobol/cobcast.c 
../../gcc/cobol/cobcast.c: In function
`get_string_signed_long_long_value':
../../gcc/cobol/cobcast.c:980: warning: ANSI C forbids long long
integer constants
../../gcc/cobol/cobcast.c:989: warning: ANSI C forbids long long
integer constants
../../gcc/cobol/cobcast.c: In function
`get_string_nonsigned_long_long_value':
../../gcc/cobol/cobcast.c:1017: warning: ANSI C forbids long long
integer constants
../../gcc/cobol/cobcast.c:1017: warning: ANSI C does not support
the `L' length modifier


More information about the Gcc-bugs mailing list