]> Savannah Git Hosting - gnulib.git/commitdiff
alignasof tests: Fix GCC warning (regression 2023-01-15).
authorBruno Haible <bruno@clisp.org>
Sat, 21 Jan 2023 09:01:45 +0000 (10:01 +0100)
committerBruno Haible <bruno@clisp.org>
Sat, 21 Jan 2023 09:01:45 +0000 (10:01 +0100)
* tests/test-stdalign.c (alignas): Undefine before redefine.

ChangeLog
tests/test-stdalign.c

index 2f40eecf7610927569671c48cc307060c55217af..ac0509b30fe77ca818dc38c1492f564ecf3e3b80 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2023-01-21  Bruno Haible  <bruno@clisp.org>
+
+       alignasof tests: Fix GCC warning (regression 2023-01-15).
+       * tests/test-stdalign.c (alignas): Undefine before redefine.
+
 2023-01-21  Bruno Haible  <bruno@clisp.org>
 
        getprogname: Move declaration from "getprogname.h" to <stdlib.h>.
index c974ca837126d02e510eaa399aee93eaf62c7c92..85008e62e4e69b33cc5b352ee1dede96f0d8f0c2 100644 (file)
@@ -35,6 +35,7 @@ typedef struct { char a[4]; } struct4;
    limit the test to 8 for now.  */
 # define TEST_ALIGNMENT 8
 #else
+# undef alignas
 # define alignas(alignment)
 # define TEST_ALIGNMENT 1
 #endif