compiler.h: explicit case for Clang printf attribute
commit28f86163a4395fd67203f9482cbca508c216de74
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Thu, 10 Dec 2020 13:47:46 +0000 (10 17:47 +0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 15 Dec 2020 17:52:11 +0000 (15 12:52 -0500)
treec5742795dbb57c22057bab9a969850acebbd0f04
parentdb5deef996e78f02e2fec0c2453de8d0db749832
compiler.h: explicit case for Clang printf attribute

Since commit efc6c07 ("configure: Add a test for the minimum compiler
version"), QEMU explicitely depends on GCC >= 4.8, we could thus drop
earlier version checks. Except clang advertizes itself as GCC 4.2.1.

Since clang doesn't support gnu_printf, make that case explicitely and
drop GCC version check.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-Id: <20201210134752.780923-8-marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
include/qemu/compiler.h