* lib/intprops-internal.h: Ignore -Wuseless-cast also with gcc 14, 15.
* lib/vasnprintf.c: Likewise. Also, fix a clang warning.
2026-05-08 Bruno Haible <bruno@clisp.org>
+ Revisit some -Wuseless-cast changes.
+ * lib/intprops-internal.h: Ignore -Wuseless-cast also with gcc 14, 15.
+ * lib/vasnprintf.c: Likewise. Also, fix a clang warning.
+
Revisit some -Wuseless-cast changes.
* lib/obstack.in.h (obstack_free): Restore parentheses around macro
argument.
# pragma GCC diagnostic ignored "-Wtype-limits"
#endif
-/* This file uses many casts that might provoke -Wuseless-cast. */
-#if 16 <= __GNUC__
+/* This file uses many casts that might provoke -Wuseless-cast warnings. */
+#if 14 <= __GNUC__
# pragma GCC diagnostic ignored "-Wuseless-cast"
#endif
# pragma GCC diagnostic ignored "-Wanalyzer-null-argument"
#endif
-/* This code has a lot of parameterized pointer casts that may be no-ops. */
-#if _GL_GNUC_PREREQ (16, 0) || 11 <= __clang_major__
+/* This code has a lot of parameterized pointer casts that may be no-ops,
+ depending on DCHAR_T and TCHAR_T. */
+#if _GL_GNUC_PREREQ (14, 0)
# pragma GCC diagnostic ignored "-Wuseless-cast"
#endif