This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Error when building on AIX


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]