stupid warning mechanism: error: -Wno-deprecated
Phil Edwards
pedwards@disaster.jaj.com
Fri Jun 1 15:05:00 GMT 2001
On Fri, Jun 01, 2001 at 12:03:01PM +0200, Markus Werle wrote:
> But OTH g++ should not complain about its own headers!
Then whose? We can't complain about the user's headers; ISO isn't allowed
to deprecate those. :-)
> In file included from
> [...]
> /opt/FREE-SOFTWARE/gcc-20010601/lib/gcc-lib/hppa2.0w-hp-hpux11.00/3.1/include/g++/backward/backward_warning.h:32:2:
> warning: #warning This file includes at least one deprecated or
> antiquated header. Please use the <X> header instead of <X.h> header for
> 'C++' includes and use the <cX> header instead of <X.h> header for 'C'
> includes. To disable this warning use -Wno-deprecated.
>
> Better have this warning off for correct system headers independent of
> -Wdeprecated , right?
No, those headers are deprecated. That's the whole point.
backward_warning.h is there specifically to print this warning. The user
only sees it if he includes a deprecated C++ header, which in turn includes
backward_warning.h.
Phil
--
pedwards at disaster dot jaj dot com | pme at sources dot redhat dot com
devphil at several other less interesting addresses in various dot domains
The gods do not protect fools. Fools are protected by more capable fools.
More information about the Gcc-bugs
mailing list