]> git.ipfire.org Git - thirdparty/krb5.git/commit
Error on incompatible argument types if possible 364/head
authorGreg Hudson <ghudson@mit.edu>
Wed, 9 Dec 2015 19:56:34 +0000 (14:56 -0500)
committerGreg Hudson <ghudson@mit.edu>
Thu, 10 Dec 2015 21:16:23 +0000 (16:16 -0500)
commitd69a3bd4c1d0c39a1f527c97f12bc53ea0cc1b8b
tree8ee393df8010f375ddc901bd0a9cb3b539dc0da7
parent66acc3b529f997f902bf11d3004ddc065d5bea9f
Error on incompatible argument types if possible

gcc 4.x has no option short of -Werror to error on "makes pointer from
integer without a cast" or "incompatible pointer type" warnings, but
clang and (I think) gcc 5.x do.  Use -Werror=int-conversion and
-Werror=incompatible-pointer-types when the compiler supports them.

At least in clang, -Werror=incompatible-pointer-types also throws an
error when passing an argument discards a const qualifier, which is a
less serious type violation.  But cleaning those up is relatively easy.
src/aclocal.m4