This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Preventing warnings


Laurent GUERBY wrote:

Since GNU Ada already has a pragma Warnings On/Off, if more than
one front-end define it may be it's worth having a flag
going through  the backend to suppress backend warnings too.

Laurent

Note that the Warnings On/Off in GNAT works on syntactic positions of flags, not on some concept of semantic construct. Warnings On sets a starting source location, Warnings Off sets an ending source location, and any warning posted at a source location in this range is suppressed.

That's rather different from trying to apply warnings off/on to
a particular construct.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]