From: Rich Felker Date: Wed, 28 Aug 2013 09:08:16 +0000 (-0400) Subject: remove -Wcast-align from --enable-warnings X-Git-Tag: v0.9.13~4 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f7bc29ed2253009c9e56c597ef3d9a2bb278a876;p=oweals%2Fmusl.git remove -Wcast-align from --enable-warnings I originally added this warning option based on a misunderstanding of how it works. it does not warn whenever the destination of the cast has stricter alignment; it only warns in cases where misaligned dereference could lead to a fault. thus, it's essentially a no-op for i386, which had me wrongly believing the code was clean for this warning level. on other archs, numerous diagnostic messages are produced, and all of them are false-positives, so it's better just not to use it. --- diff --git a/configure b/configure index 40712c53..aa3cb42d 100755 --- a/configure +++ b/configure @@ -375,7 +375,6 @@ tryflag CFLAGS_AUTO -Werror=pointer-arith if test "x$warnings" = xyes ; then tryflag CFLAGS_AUTO -Wall -tryflag CFLAGS_AUTO -Wcast-align tryflag CFLAGS_AUTO -Wno-parentheses tryflag CFLAGS_AUTO -Wno-uninitialized tryflag CFLAGS_AUTO -Wno-missing-braces