]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
tests/badsymbols.pl: ignore stand-alone single hash lines
authorDaniel Stenberg <daniel@haxx.se>
Mon, 21 Dec 2020 21:49:42 +0000 (22:49 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 22 Dec 2020 22:12:10 +0000 (23:12 +0100)
Bug: https://curl.se/mail/lib-2020-12/0084.html
Reported-by: Dennis Clarke
Assisted-by: Jay Satiro
Closes #6355

tests/badsymbols.pl

index bad037975d9a5a5d93d44cc2e665069b6f8b8b83..d9766cad71bbb1ff84a2877dc3b6140abbadc441 100755 (executable)
@@ -90,6 +90,9 @@ sub scanenums {
         if($skipit) {
             next;
         }
+        if (/^#/) {
+            next;
+        }
         if ( /enum\s+(\S+\s+)?{/ .. /}/ ) {
             s/^\s+//;
             chomp;