This is the mail archive of the
mailing list for the binutils project.
Re: Error when building on AIX
On Tue, 31 Jul 2012 10:16:36 -0500 Perry Smith <email@example.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 (......);