c++/7755: Please make -Wno-deprecated do just that
H. Peter Anvin
hpa@zytor.com
Wed Jan 8 21:16:00 GMT 2003
The following reply was made to PR c++/7755; it has been noted by GNATS.
From: "H. Peter Anvin" <hpa@zytor.com>
To: Wolfgang Bangerth <bangerth@ticam.utexas.edu>
Cc: gcc-bugs@gcc.gnu.org, gcc-gnats@gcc.gnu.org
Subject: Re: c++/7755: Please make -Wno-deprecated do just that
Date: Wed, 08 Jan 2003 13:10:21 -0800
Wolfgang Bangerth wrote:
>>If -Wno-deprecated is not the right way to disable this warning, then
>>please do provide another flag to do so. Not being able to selectively
>>squelsh this warning is a total showstopper for being able to use newer
>>gcc's for several projects.
>
>
> But if the deprecated feature is removed in the next version of gcc,
> you're not much better off, either: your code simply needs to be fixed,
> and given the example you showed this is actually not so difficult.
>
> That does not mean that I'm not in favor of implementing such a warning,
> but I guess few people feel incited to invent a switch for old branches
> where newer versions will not allow the feature warned for anyway.
>
Well, given that gcc still supports -traditional, some amount of
backwards compatibility probably needs to be accounted for...
-hpa
More information about the Gcc-prs
mailing list