Thread View: gnu.gcc.bug
1 messages
1 total messages
Started by Douglas Scott
Wed, 15 Apr 1992 19:19
gcc 2.1 spurious warning for "-Wno-import"
Author: Douglas Scott
Date: Wed, 15 Apr 1992 19:19
Date: Wed, 15 Apr 1992 19:19
25 lines
1209 bytes
1209 bytes
The preprocessor for gcc/g++ 2.1 knows how to parse the
options "-Wno-import" and "-Wimport" (for turning
those warnings off and on). However, these were left out
of the option parsing in c-decl.c: c_decode_option().
This error shows up in both gcc and g++, of course.
Here is a fix:
*** c-decl.c.orig Wed Apr 15 12:15:37 1992
--- c-decl.c Wed Apr 15 12:16:56 1992
***************
*** 612,617 ****
--- 612,621 ----
; /* cpp handles this one. */
else if (!strcmp (p, "-Wno-trigraphs"))
; /* cpp handles this one. */
+ else if (!strcmp (p, "-Wimport"))
+ ; /* cpp handles this one. */
+ else if (!strcmp (p, "-Wno-import"))
+ ; /* cpp handles this one. */
else if (!strcmp (p, "-Wall"))
{
extra_warnings = 1;
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads