lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master 1f94454 25/30: Disable clang -Wstring-plus-in


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 1f94454 25/30: Disable clang -Wstring-plus-int warning
Date: Wed, 24 Mar 2021 15:31:11 -0400 (EDT)

branch: master
commit 1f9445430dd7a08a2a35b289deed56b7f265cda9
Author: Vadim Zeitlin <vadim@tt-solutions.com>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>

    Disable clang -Wstring-plus-int warning
    
    This warning is given for all the occurrences of multiline raw strings
    starting, according to lmi convention, as
    
        1 + R"--cut-here--(
        ...
        )--cut-here--";
    
    due to the use of "1 +" and there doesn't seem to be any way to avoid it
    in this case without disabling it globally.
    
    As this warning doesn't seem that useful, do just disable it.
---
 configure.ac | 1 +
 1 file changed, 1 insertion(+)

diff --git a/configure.ac b/configure.ac
index dc581fa..26f7eab 100644
--- a/configure.ac
+++ b/configure.ac
@@ -560,6 +560,7 @@ fi
 if test "x$GXX" == "xyes"; then
     if test "$CLANG" = "yes"; then
         cxx_warnings_flags="$cxx_warnings_flags \
+            -Wno-string-plus-int \
             -Wno-mismatched-tags"
     else
         cxx_warnings_flags="$cxx_warnings_flags \



reply via email to

[Prev in Thread] Current Thread [Next in Thread]