c++/7755: Please make -Wno-deprecated do just that

H. Peter Anvin hpa@zytor.com
Mon Jan 13 05:17:00 GMT 2003


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-bugs mailing list