On 09/19/2012 04:49 PM, Bob Friesenhahn wrote: > On Thu, 20 Sep 2012, Adrian Bunk wrote: >> >> IMHO the best solution for both package maintainers and people compiling >> software would be: >> - AC_PROG_CC always filters out -Werror >> - when -Werror was filtered out, configure prints a message like >> "filtering out -Werror during configure" >> - when -Werror was filtered out, AC_OUTPUT re-adds it > > If this is done, there will be a compilation error when there is a > warning, regardless of the cause of the warning. That is what was > requested but it might not be what was desired if a system header > produces the warning. The result might fail immediately. Yes, but it would fail at make time _because_ the user requested -Werror, and has buggy system headers; we honored the user's request, to the point that the user's request is possible, without getting false results during configure. And, as has been pointed out elsewhere in the flag, if there is an ability to do a per-compile undo of the filtering, it will even be possible to write configure tests to detect such buggy system headers in advance. -- Eric Blake eblake@xxxxxxxxxx +1-919-301-3266 Libvirt virtualization library http://libvirt.org
Attachment:
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Autoconf mailing list Autoconf@xxxxxxx https://lists.gnu.org/mailman/listinfo/autoconf