aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Bennée <alex.bennee@linaro.org>2025-03-04 22:24:21 +0000
committerAlex Bennée <alex.bennee@linaro.org>2025-03-10 10:30:00 +0000
commit0cee7cfc2495c2c7d108c38a9b07162af78553b1 (patch)
tree0ca159c7b870d23cde2f17405b71ccecc56387d8
parent33629b82aeadb070a803e5887d3a5de59b1c95c9 (diff)
downloadqemu-0cee7cfc2495c2c7d108c38a9b07162af78553b1.zip
qemu-0cee7cfc2495c2c7d108c38a9b07162af78553b1.tar.gz
qemu-0cee7cfc2495c2c7d108c38a9b07162af78553b1.tar.bz2
tests/tcg: add message to _Static_assert in test-avx
In preparation for enabling clang and avoiding: error: '_Static_assert' with no message is a C2x extension [-Werror,-Wc2x-extensions] let us just add the message to silence the warning. Reviewed-by: Thomas Huth <thuth@redhat.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Message-Id: <20250304222439.2035603-15-alex.bennee@linaro.org>
-rw-r--r--tests/tcg/i386/test-avx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/tcg/i386/test-avx.c b/tests/tcg/i386/test-avx.c
index 230e6d8..80fe363 100644
--- a/tests/tcg/i386/test-avx.c
+++ b/tests/tcg/i386/test-avx.c
@@ -244,7 +244,7 @@ v4di indexd = {0x00000002ffffffcdull, 0xfffffff500000010ull,
0x0000003afffffff0ull, 0x000000000000000eull};
v4di gather_mem[0x20];
-_Static_assert(sizeof(gather_mem) == 1024);
+_Static_assert(sizeof(gather_mem) == 1024, "gather_mem not expected size");
void init_f16reg(v4di *r)
{