mirror of
https://github.com/qemu/qemu.git
synced 2025-07-27 12:20:07 +00:00
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>
This commit is contained in:
parent
4e063f7b29
commit
36c5e0b8ef
@ -24,7 +24,6 @@ struct syscallname {
|
|||||||
abi_long, abi_long, abi_long);
|
abi_long, abi_long, abi_long);
|
||||||
};
|
};
|
||||||
|
|
||||||
#ifdef __GNUC__
|
|
||||||
/*
|
/*
|
||||||
* It is possible that target doesn't have syscall that uses
|
* It is possible that target doesn't have syscall that uses
|
||||||
* following flags but we don't want the compiler to warn
|
* 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.
|
* functions. It is ok to keep them while not used.
|
||||||
*/
|
*/
|
||||||
#define UNUSED __attribute__ ((unused))
|
#define UNUSED __attribute__ ((unused))
|
||||||
#else
|
|
||||||
#define UNUSED
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Structure used to translate flag values into strings. This is
|
* Structure used to translate flag values into strings. This is
|
||||||
|
Loading…
Reference in New Issue
Block a user