Article View: gnu.gcc.bug
Article #424gcc 2.1 spurious warning for "-Wno-import"
From: 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;
Technical Details
Message-ID:
<9204151919.AA21816@_foxtrot.ccmrc.ucsb.edu_>Path:
arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!foxtrot.ccmrc.ucsb.edu!dougShow Full Headers
Complete Article Headers
Newsgroups: gnu.gcc.bug Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!foxtrot.ccmrc.ucsb.edu!doug From: doug@foxtrot.ccmrc.ucsb.edu (Douglas Scott) Subject: gcc 2.1 spurious warning for "-Wno-import" Message-ID: <9204151919.AA21816@_foxtrot.ccmrc.ucsb.edu_> Sender: gnulists@ai.mit.edu Organization: GNUs Not Usenet Distribution: gnu Date: Wed, 15 Apr 1992 19:19:10 GMT Approved: bug-gcc@prep.ai.mit.edu Lines: 26