]> git.ipfire.org Git - thirdparty/gnulib.git/commitdiff
Silence clang's -Wstring-plus-int warnings in Gnulib code.
authorBruno Haible <bruno@clisp.org>
Mon, 2 Mar 2026 04:29:20 +0000 (05:29 +0100)
committerBruno Haible <bruno@clisp.org>
Mon, 2 Mar 2026 09:11:25 +0000 (10:11 +0100)
* m4/gnulib-common.m4 (gl_CC_GNULIB_WARNINGS): Add -Wno-string-plus-int.

ChangeLog
m4/gnulib-common.m4

index 16e0518d7e29423e8df413e067c2797f2c698503..7bbfb2f03090ada689c415cd6842ed538c04f017 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2026-03-02  Bruno Haible  <bruno@clisp.org>
+
+       Silence clang's -Wstring-plus-int warnings in Gnulib code.
+       * m4/gnulib-common.m4 (gl_CC_GNULIB_WARNINGS): Add -Wno-string-plus-int.
+
 2026-03-02  Bruno Haible  <bruno@clisp.org>
 
        tests: Use streq, part 5.
index 26eef771db178627b41d4ee642f3149ecdac2510..8fba00da279e4188d7a67dfd4d86e0a9d674c9f2 100644 (file)
@@ -1,5 +1,5 @@
 # gnulib-common.m4
-# serial 115
+# serial 116
 dnl Copyright (C) 2007-2026 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -1425,6 +1425,7 @@ AC_DEFUN([gl_CC_GNULIB_WARNINGS],
     dnl -Wno-pedantic                         >= 4.8          >= 3.9
     dnl -Wno-sign-compare                     >= 3            >= 3.9
     dnl -Wno-sign-conversion                  >= 4.3          >= 3.9
+    dnl -Wno-string-plus-int                  -               >= 3.9
     dnl -Wno-tautological-out-of-range-compare  -             >= 3.9
     dnl -Wno-type-limits                      >= 4.3          >= 3.9
     dnl -Wno-undef                            >= 3            >= 3.9
@@ -1453,6 +1454,7 @@ AC_DEFUN([gl_CC_GNULIB_WARNINGS],
       -Wno-pedantic
       #endif
       #if 3 < __clang_major__ + (9 <= __clang_minor__)
+      -Wno-string-plus-int
       -Wno-tautological-constant-out-of-range-compare
       #endif
       #if (__GNUC__ + (__GNUC_MINOR__ >= 3) > 4 && !defined __clang__) || (__clang_major__ + (__clang_minor__ >= 9) > 3)