]> git.ipfire.org Git - thirdparty/krb5.git/commit
Fix detection of supported warnings in clang 592/head
authorKen Raeburn <raeburn@mit.edu>
Sat, 7 Jan 2017 03:39:39 +0000 (22:39 -0500)
committerGreg Hudson <ghudson@mit.edu>
Mon, 9 Jan 2017 19:46:00 +0000 (14:46 -0500)
commitb9f915d4079a8d6b4d6bc6381b8c05167c64e042
tree9db4eb7670830c448f920c11ce428b487926f526
parent87bcdcee2e425024dbb27f2078317e29135d9f29
Fix detection of supported warnings in clang

Without -Werror=unknown-warning-option, clang will warn for
unrecognized -W options like "-Werror=discarded-qualifiers" but won't
return a nonzero exit status, leading configure to think the options
are supported and thus include them during the build, leading to a
rather noisy log.

This option isn't needed during the build, though it won't hurt
anything either.  It is desirable during the testing of other -W
options for cleaner results, but the existing code tests each option
independently, requiring different handling for this option than for
other -W options.
src/aclocal.m4