Red Hat Bugzilla – Bug 1028710
gcc arguments used on the build system result in errors that cannot be disabled.
Last modified: 2014-01-16 07:02:23 EST
Description of problem:
On the el6 branch gcc is being called with options that result in warnings that cannot be disabled being treated as errors.
-Wno-unused-result was apparently added in gcc 4.5 so it cannot be used to disable the warning/error.
This must have changed since the last build of bip since the line in question has been in the source tree since 2005.
Better to just not build with -Werror (which is arguably silly for release builds)
moving to redhat-rpm-config and rhel, which is where it is all defined.
-Werror can be useful for development work but its a terrible idea to use it for "release builds" because of issues like this: compilers can and do grow new warnings over time so code which at some point compiled free of any warnings might trip tonnes of warnings with a later compiler version.
NOTABUG, just eliminate the -Werror usage.