+2023-10-24 Paul Eggert <eggert@cs.ucla.edu>
+
+ explicit_bzero-tests: pacify GCC 13.2.1
+ * tests/test-explicit_bzero.c:
+ * tests/test-memset_explicit.c:
+ Ignore -Wdangling pointer.
+
2023-10-22 Bruno Haible <bruno@clisp.org>
memset_explicit, explicit_bzero tests: Fix test failures with new gcc.
# define explicit_bzero(a, n) memset (a, '\0', n)
#endif
+/* Suppress GCC 13.2.1 false alarm, as this test needs a dangling pointer. */
+#if 12 <= __GNUC__
+# pragma GCC diagnostic ignored "-Wdangling-pointer"
+#endif
+
/* =================== Verify operation on static memory =================== */
static char stbuf[SECRET_SIZE];
# define memset_explicit(a, c, n) memset (a, c, n)
#endif
+/* Suppress GCC 13.2.1 false alarm, as this test needs a dangling pointer. */
+#if 12 <= __GNUC__
+# pragma GCC diagnostic ignored "-Wdangling-pointer"
+#endif
+
/* =================== Verify operation on static memory =================== */
static char stbuf[SECRET_SIZE];