This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Trigraph warnings when compiling linux-2.4.0-prerelease1


I get the following warnings when compiling the latest linux kernel 
with the 20001225 gcc snapshot:

gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-
prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -
mpreferred-stack-boundary=2 -march=k6    -c -o names.o names.c
In file included from names.c:38:
devlist.h:1278:33: warning: trigraph ??) ignored
devlist.h:6370:25: warning: trigraph ??) ignored
In file included from names.c:44:
devlist.h:1278:33: warning: trigraph ??) ignored
devlist.h:6370:25: warning: trigraph ??) ignored
In file included from names.c:50:
devlist.h:1278:33: warning: trigraph ??) ignored
devlist.h:6370:25: warning: trigraph ??) ignored

gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-
prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -
mpreferred-stack-boundary=2 -march=k6 -DMODULE -
DMODVERSIONS -include 
/usr/src/linux/include/linux/modversions.h   -c -o imm.o imm.c
imm.c:929:37: warning: trigraph ??) ignored
imm.c:938:38: warning: trigraph ??) ignored

The lines are as follows:
devlist.h:
line 1278: 	DEVICE(109e,036c,"Bt879(??) Video Capture")
line 6370:   VENDOR(2a15,"3D Vision(???)")

imm.c:
line 929: 	printk("imm: parity error (???)\n");
line 938: 	printk("imm: bad interrupt (???)\n");

From looking at the code it is apparent to me that the authors of 
these files meant to print the string ??) and not the character ].  Is 
there a possible fix to remove these warnings or should I just ignore 
them?  I felt this would be the appropriate list to send this to since 
it compiles without these warnings with egcs-1.1.2.

Rich.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]