Error when building on AIX
Peter Bergner
bergner@vnet.ibm.com
Tue Jul 31 19:06:00 GMT 2012
On Tue, 31 Jul 2012 10:16:36 -0500 Perry Smith <pedzsan@gmail.com> wrote:
> I also tried assigning it to a local variable which did not work either.
I think you'll still get a unused warning/error if the local isn't used either.
In that case, I think you can mark the local variable with the unused attribute
and that should (famous last words) solve it for you. Like:
int __attribute__ ((__unused__)) dummy;
...
dummy = putc (......);
Peter
More information about the Binutils
mailing list