* is there a command-line flag I can pass GCC to stop bitching about #pragma once?
@ 2002-07-31 14:25 Rob Newberry
0 siblings, 0 replies; 2+ messages in thread
From: Rob Newberry @ 2002-07-31 14:25 UTC (permalink / raw)
To: gcc-help
I've got a bunch of code that I need to avoid changing, and it uses
#pragma once. I understand that it's deprecated; but I still need to
compile it.
Is there something I can pass to GCC so it will still issue other
warnings, but ignore that one?
Thanks!
Rob
^ permalink raw reply [flat|nested] 2+ messages in thread
* RE: is there a command-line flag I can pass GCC to stop bitching about #pragma once?
[not found] <616BE6A276E3714788D2AC35C40CD18D740B34@whale.softwire.co.uk>
@ 2002-08-01 1:25 ` Rupert Wood
0 siblings, 0 replies; 2+ messages in thread
From: Rupert Wood @ 2002-08-01 1:25 UTC (permalink / raw)
To: 'Rob Newberry'; +Cc: gcc-help
Rob Newberry wrote:
> I've got a bunch of code that I need to avoid changing, and it uses
> #pragma once. I understand that it's deprecated; but I still need
> to compile it. Is there something I can pass to GCC so it will still
> issue other warnings, but ignore that one?
No, I'm afraid not. If you're willing to recompile your GCC, you can
remove the warning/error call from the first line do_pragma_once of
gcc/cpplib.c but it isn't controlled by any warning flag.
To my horror, I note that the warning has been upgraded to an error in
the current CVS head (to be GCC 3.3). This, IMO, is plain wrong; if it
absolutely must be warned about, that should be limited to pedantic
mode.
Rup.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-08-01 8:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-07-31 14:25 is there a command-line flag I can pass GCC to stop bitching about #pragma once? Rob Newberry
[not found] <616BE6A276E3714788D2AC35C40CD18D740B34@whale.softwire.co.uk>
2002-08-01 1:25 ` Rupert Wood
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).