🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #424

gcc 2.1 spurious warning for "-Wno-import"

#424
From: Douglas Scott
Date: Wed, 15 Apr 1992 19:19
25 lines
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!doug

Show 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