* lib/careadlinkat.c: For GCC 12 or newer, use
"#pragma GCC diagnostic ignored" to silence the warning.
+2023-05-19 Bruno Haible <bruno@clisp.org>
+
+ careadlinkat: Silence gcc warning for GCC ≥ 12.
+ * lib/careadlinkat.c: For GCC 12 or newer, use
+ "#pragma GCC diagnostic ignored" to silence the warning.
+
2023-05-19 Pádraig Brady <P@draigBrady.com>
modechange: pacify gcc -Wsuggest-attribute=pure
When the GCC bug is fixed this workaround should be limited to the
broken GCC versions. */
#if _GL_GNUC_PREREQ (10, 1)
-# if defined GCC_LINT || defined lint
+# if _GL_GNUC_PREREQ (12, 1)
+# pragma GCC diagnostic ignored "-Wreturn-local-addr"
+# elif defined GCC_LINT || defined lint
__attribute__ ((__noinline__))
# elif __OPTIMIZE__ && !__NO_INLINE__
# define GCC_BOGUS_WRETURN_LOCAL_ADDR