🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.misc.discuss
Article #72148

Re: gcc 2.0: how to turn off the "pragma once" warnings?

#72148
From: Joe Buck
Date: Fri, 20 Mar 1992 20:56
23 lines
1322 bytes
In article <52599@hydra.gatech.EDU>, gt1111a@prism.gatech.EDU (Vincent Fox) writes:
|> Any tricks to turn off the "pragma once" warnings? I know it's obsolete,
|> but I want to see the *useful* warning messages and skip these buggers.

Certainly.  It's a one-line patch to cccp.c:

*** cccp.c~	Fri Mar 20 12:52:49 1992
--- cccp.c	Fri Mar 20 12:53:48 1992
***************
*** 5735,5741 ****
    while (*buf == ' ' || *buf == '\t')
      buf++;
    if (!strncmp (buf, "once", 4)) {
-     warning ("`#pragma once' is obsolete");
      do_once ();
    }
    return 0;
--- 5735,5740 ----



-- 
Joe Buck	jbuck@ohm.berkeley.edu
Technical Details
Message-ID: <qdjhnINNbpa@agate.berkeley.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!agate!forney.berkeley.edu!jbuck
References: <52599@hydra.gatech.EDU>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1025b4,c9713c01e10df439,start
X-Google-Attributes: gid1025b4,public
X-Google-ArrivalTime: 1992-03-21 02:27:01 PST
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!agate!forney.berkeley.edu!jbuck
From: jbuck@forney.berkeley.edu (Joe Buck)
Newsgroups: gnu.misc.discuss
Subject: Re: gcc 2.0: how to turn off the "pragma once" warnings?
Date: 20 Mar 1992 20:56:23 GMT
Organization: University of California, Berkeley
Lines: 23
Distribution: usa
Message-ID: <qdjhnINNbpa@agate.berkeley.edu>
References: <52599@hydra.gatech.EDU>
NNTP-Posting-Host: forney.berkeley.edu