diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2025-09-19 10:20:54 +0200 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2025-09-23 12:17:39 +0200 |
| commit | db05b0d21ec1e0532cf5f5103ae6520a838d96f9 (patch) | |
| tree | b99407ce82af0e1d0ad0c2ad79b1851e1c58034b | |
| parent | 0a7fe8d407009840bee0e6d95005714ede51d0b8 (diff) | |
| download | focaccia-qemu-db05b0d21ec1e0532cf5f5103ae6520a838d96f9.tar.gz focaccia-qemu-db05b0d21ec1e0532cf5f5103ae6520a838d96f9.zip | |
linux-user: avoid -Werror=int-in-bool-context
linux-user is failing to compile on Fedora 43:
../linux-user/strace.c:57:66: error: enum constant in boolean context [-Werror=int-in-bool-context]
57 | #define FLAG_BASIC(V, M, N) { V, M | QEMU_BUILD_BUG_ON_ZERO(!(M)), N }
The warning does not seem to be too useful and we could even disable it,
but the workaround is simple in this case.
Cc: qemu-stable@nongnu.org
Cc: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
| -rw-r--r-- | linux-user/strace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-user/strace.c b/linux-user/strace.c index 1233ebceb0..758c5d32b6 100644 --- a/linux-user/strace.c +++ b/linux-user/strace.c @@ -54,7 +54,7 @@ struct flags { }; /* No 'struct flags' element should have a zero mask. */ -#define FLAG_BASIC(V, M, N) { V, M | QEMU_BUILD_BUG_ON_ZERO(!(M)), N } +#define FLAG_BASIC(V, M, N) { V, M | QEMU_BUILD_BUG_ON_ZERO((M) == 0), N } /* common flags for all architectures */ #define FLAG_GENERIC_MASK(V, M) FLAG_BASIC(V, M, #V) |