This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Turning warning off
rod.niner@gm.com writes:
>
>
> Lots of compilers have the ability to turn off a particular warning
> message, does Gcc?
> Because I am setting and not "using" a register (bread crumb) until a
> reset occurs I get a warning message about value not being used.
> I can add a note in code but it would be better that I could add something
> to code to prevent this known (and acceptable warning)
I'm not sure about that warning. Better to mark the register
__attribute__((unused)).
Andrew.