From: Vincent Bernat Date: Sat, 27 Jul 2019 17:23:12 +0000 (+0200) Subject: build: disable warnings on cast alignments X-Git-Tag: 1.0.5~53 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9b68a67f5daeb62194b80f69df4ecf219e34b442;p=thirdparty%2Flldpd.git build: disable warnings on cast alignments clang is often wront about it (it increases alignment requirement, but the surrounding structure ensure the alignment is correct). Dunno if gcc is smarter or just ignore most of these problems. --- diff --git a/configure.ac b/configure.ac index 3d86fe2e..2741f374 100644 --- a/configure.ac +++ b/configure.ac @@ -78,12 +78,12 @@ AX_CFLAGS_GCC_OPTION([-Wformat], [LLDP_CFLAGS]) AX_CFLAGS_GCC_OPTION([-Wformat-security], [LLDP_CFLAGS]) AX_CFLAGS_GCC_OPTION([-Wimplicit-fallthrough], [LLDP_CFLAGS]) AX_CFLAGS_GCC_OPTION([-Wfatal-errors], [LLDP_CFLAGS]) -AX_CFLAGS_GCC_OPTION([-Wcast-align], [LLDP_CFLAGS]) AX_CFLAGS_GCC_OPTION([-Wheader-guard], [LLDP_CFLAGS]) AX_CFLAGS_GCC_OPTION([-Wdocumentation], [LLDP_CFLAGS]) AX_CFLAGS_GCC_OPTION([-Winline], [LLDP_CFLAGS]) AX_CFLAGS_GCC_OPTION([-Wpointer-arith], [LLDP_CFLAGS]) AX_CFLAGS_GCC_OPTION([-fno-omit-frame-pointer], [LLDP_CFLAGS]) +AX_CFLAGS_GCC_OPTION([-Wno-cast-align], [LLDP_CFLAGS]) dnl clang is bad at this AX_CFLAGS_GCC_OPTION([-Wno-unused-parameter], [LLDP_CFLAGS]) AX_CFLAGS_GCC_OPTION([-Wno-missing-field-initializers], [LLDP_CFLAGS]) AX_CFLAGS_GCC_OPTION([-Wno-sign-compare], [LLDP_CFLAGS]) dnl Should be fixed later