From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:55908) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gs6IA-00046R-Us for qemu-devel@nongnu.org; Fri, 08 Feb 2019 08:34:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gs6I7-0004QE-6C for qemu-devel@nongnu.org; Fri, 08 Feb 2019 08:34:05 -0500 References: <20190208132112.31493-1-peter.maydell@linaro.org> From: Thomas Huth Message-ID: <5b9474b0-7ce7-3efb-253e-4be7f1918281@redhat.com> Date: Fri, 8 Feb 2019 14:33:45 +0100 MIME-Version: 1.0 In-Reply-To: <20190208132112.31493-1-peter.maydell@linaro.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] configure: Make -Waddress-of-packed-member warnings be errors List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell , qemu-devel@nongnu.org Cc: patches@linaro.org, QEMU Trivial On 2019-02-08 14:21, Peter Maydell wrote: > We have now managed to eradicate all the places in the codebase > that triggered clang's -Waddress-of-packed-member warning. Remove > the compiler flag that exempted it from our usual -Werror policy. > This will prevent any new problematic code being added in future. > > Signed-off-by: Peter Maydell > --- > configure | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/configure b/configure > index fbd0825488c..50ac5d90f2e 100755 > --- a/configure > +++ b/configure > @@ -1881,7 +1881,6 @@ gcc_flags="-Wno-missing-include-dirs -Wempty-body -Wnested-externs $gcc_flags" > gcc_flags="-Wendif-labels -Wno-shift-negative-value $gcc_flags" > gcc_flags="-Wno-initializer-overrides -Wexpansion-to-defined $gcc_flags" > gcc_flags="-Wno-string-plus-int $gcc_flags" > -gcc_flags="-Wno-error=address-of-packed-member $gcc_flags" > # Note that we do not add -Werror to gcc_flags here, because that would > # enable it for all configure tests. If a configure test failed due > # to -Werror this would just silently disable some features, Great! Reviewed-by: Thomas Huth