]> git.puffer.fish Git - mirror/frr.git/commitdiff
tools/checkpatch: downgrade string concat warning 6766/head
authorDavid Lamparter <equinox@diac24.net>
Mon, 1 Feb 2021 16:33:03 +0000 (17:33 +0100)
committerDavid Lamparter <equinox@diac24.net>
Mon, 1 Feb 2021 16:33:03 +0000 (17:33 +0100)
This is the best I can make the asm blocks in lib/xref.h look, so just
mute the warning.  (It shouldn't come in relevant for other code.)

Signed-off-by: David Lamparter <equinox@diac24.net>
tools/checkpatch.pl

index c0624d933e467c40071baae398b903de5411de76..cf15d007965ded1635b87efec17e882795896122 100755 (executable)
@@ -5300,8 +5300,8 @@ sub process {
 
 # uncoalesced string fragments
                if ($line =~ /$String\s*"/) {
-                       WARN("STRING_FRAGMENTS",
-                            "Consecutive strings are generally better as a single string\n" . $herecurr);
+                       CHK("STRING_FRAGMENTS",
+                           "Consecutive strings are generally better as a single string\n" . $herecurr);
                }
 
 # check for non-standard and hex prefixed decimal printf formats