[PATCH 3/3] build: Check for -Wno-packed-not-aligned support

Mark Wielaard mark@klomp.org
Sat Mar 6 02:17:53 GMT 2021


Hi Timm,

On Wed, 2021-02-17 at 10:27 +0100, Timm Bäder via Elfutils-devel wrote:
> From: Timm Bäder <tbaeder@redhat.com>
> 
> Clang does not support this warning, so check for compiler support
> before using it.

It is somewhat unfortunate that we need to check for -Wno- acceptance
with clang. gcc also doesn't support this warning in all versions, in
the versions that do, it is enabled by -Wall. gcc -Wno-foobarbaz
however is always accepted. The idea is that it is easy to not warn for
something, even if you don't know what something is :)

Anyway, if it is necessary for some compilers then lets add the extra
check. Added ChangeLog entries and pushed.

Cheers,

Mark


More information about the Elfutils-devel mailing list