Re: Turning warning off

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

 



rod.niner@xxxxxx 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.

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux