This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: pragma-like warning turn off ?
- From: Ian Lance Taylor <iant at google dot com>
- To: "Sunzir Deepur" <sunzird at gmail dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: 21 Aug 2007 23:01:44 -0700
- Subject: Re: pragma-like warning turn off ?
- References: <b758af9e0708191316o3a8495a8jb18e0f22d850af61@mail.gmail.com> <m3ejhwdww4.fsf@localhost.localdomain> <b758af9e0708212233t6c29513dqe377c152be617ddb@mail.gmail.com>
"Sunzir Deepur" <sunzird@gmail.com> writes:
> On 21 Aug 2007 21:19:07 -0700, Ian Lance Taylor <iant@google.com> wrote:
> > "Sunzir Deepur" <sunzird@gmail.com> writes:
> >
> > > is there a way to turn off warnings for selective lines ?
> >
> > No.
>
> can you please explain me the complexity of adding this feature ?
> if you'd to add it, how would you do that ?
It's fairly difficult. You want a way to turn off specific warnings
for specific parts of the IR. The IR is combined and rearranged
during optimization, so you need to figure out how to make the warning
control track those changes.
There was some recent discussion of this on the gcc-patches mailing
list. Look for __nowarn__.
Ian