summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2020-12-10 17:47:51 +0400
committerPaolo Bonzini <pbonzini@redhat.com>2020-12-15 12:53:14 -0500
commit36c5e0b8efb7a54b1cecca05de55a49ab91ac6dd (patch)
treebdf6bd908e84aef7f51331db9a4d11664b1c9a21
parent4e063f7b29468412bbb067496db36e6982cb6922 (diff)
downloadqemu-36c5e0b8efb7a54b1cecca05de55a49ab91ac6dd.zip
linux-user: remove GNUC check
QEMU requires Clang or GCC, that define and support __GNUC__ extensions. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Message-Id: <20201210134752.780923-13-marcandre.lureau@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
-rw-r--r--linux-user/strace.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/linux-user/strace.c b/linux-user/strace.c
index 11fea14fba..e00275fcb5 100644
--- a/linux-user/strace.c
+++ b/linux-user/strace.c
@@ -24,7 +24,6 @@ struct syscallname {
abi_long, abi_long, abi_long);
};
-#ifdef __GNUC__
/*
* It is possible that target doesn't have syscall that uses
* following flags but we don't want the compiler to warn
@@ -32,9 +31,6 @@ struct syscallname {
* functions. It is ok to keep them while not used.
*/
#define UNUSED __attribute__ ((unused))
-#else
-#define UNUSED
-#endif
/*
* Structure used to translate flag values into strings. This is