This is the mail archive of the elfutils-devel@sourceware.org mailing list for the elfutils 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: Build fails for: -Werror


>    Hi, I was trying to build elfutils on i686-F12 machine. It fails with 
> error messages about - unused parameters - http://fpaste.org/NZzi/

Well, that's rather odd, as of course it built fine in F-12 koji.

> Where could I disable -Werror?

That's not what you need to do.  You just don't want the -Wunused errors.
That's why the makefile already doesn't pass -Wunued -Wextra for that file.

But your make output shows that you got CFLAGS='-g -O2 -Wall -Wextra' from
configure.  You can't pass extra warning options in CFLAGS with elfutils.
It already has plenty.  If you want -g -O2, then just don't set CFLAGS and
that's what you'll get by default anyway.  If you want some particular -g
or -O settings or other such things in CFLAGS, that's fine.  But don't put
-W* options in there.


Thanks,
Roland


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