avr-libc-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-libc-dev] [RFC] Conditional poisoning of deprecated items


From: John Myers
Subject: Re: [avr-libc-dev] [RFC] Conditional poisoning of deprecated items
Date: Mon, 28 Feb 2011 18:17:18 -0800

> > I don't think the type of people that continue to use deprecated symbols
> > will bother with using that define either.  I think the default should be
> > to have poisoning on.
> >
>
> I would normally agree with that. However, with poisoning on, the macro
> definitions still generate a warning. I don't want to give the user who uses
> all up-to-date features a whole bunch of new warnings just to point out
> deprecated items.
>
> If you can figure out a way to have gcc to only give an error on *usage* of
> a symbol (and not also a warning on the #define) then I think we can
> certainly do what you suggested.
>
> Eric
>

The system header pragma suppresses the warnings.

#pragma GCC system_header
#define xyz 3


#pragma GCC poison xyz


reply via email to

[Prev in Thread] Current Thread [Next in Thread]