[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v3 12/13] linux-user: remove GNUC check
From: |
marcandre . lureau |
Subject: |
[PATCH v3 12/13] linux-user: remove GNUC check |
Date: |
Thu, 10 Dec 2020 17:47:51 +0400 |
From: Marc-André Lureau <marcandre.lureau@redhat.com>
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>
---
linux-user/strace.c | 4 ----
1 file changed, 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
--
2.29.0
- Re: [PATCH v3 08/13] audio: remove GNUC & MSVC check, (continued)
[PATCH v3 09/13] poison: remove GNUC check, marcandre . lureau, 2020/12/10
[PATCH v3 10/13] xen: remove GNUC check, marcandre . lureau, 2020/12/10
[PATCH v3 11/13] compiler: remove GNUC check, marcandre . lureau, 2020/12/10
[PATCH v3 12/13] linux-user: remove GNUC check,
marcandre . lureau <=
[PATCH v3 13/13] compiler.h: remove QEMU_GNUC_PREREQ, marcandre . lureau, 2020/12/10
Re: [PATCH v3 00/13] Remove GCC < 4.8 checks, no-reply, 2020/12/10
Re: [PATCH v3 00/13] Remove GCC < 4.8 checks, Paolo Bonzini, 2020/12/14