Reported by Collin Funk in
<https://lists.gnu.org/archive/html/bug-gnulib/2025-05/msg00280.html>.
* lib/gettext.h (gettext, dgettext, dcgettext): Silence
-Wbuiltin-declaration-mismatch warning.
+2025-06-01 Bruno Haible <bruno@clisp.org>
+
+ gettext-h: Avoid warnings from "gcc -Wextra".
+ Reported by Collin Funk in
+ <https://lists.gnu.org/archive/html/bug-gnulib/2025-05/msg00280.html>.
+ * lib/gettext.h (gettext, dgettext, dcgettext): Silence
+ -Wbuiltin-declaration-mismatch warning.
+
2025-05-31 Bruno Haible <bruno@clisp.org>
stat-time tests: Add C++ tests.
that don't occur with enabled NLS. */
/* The return type 'const char *' serves the purpose of producing warnings
for invalid uses of the value returned from these functions. */
+# if __GNUC__ >= 9
+# pragma GCC diagnostic push
+# pragma GCC diagnostic ignored "-Wbuiltin-declaration-mismatch"
+# endif
__attribute__ ((__always_inline__, __gnu_inline__)) extern inline
# if !defined(__sun)
const
(void) category;
return msgid;
}
+# if __GNUC__ >= 9
+# pragma GCC diagnostic pop
+# endif
# else
/* The casts to 'const char *' serve the purpose of producing warnings
for invalid uses of the value returned from these functions. */