gnunet-svn
[Top][All Lists]
Advanced

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

[gnurl] 227/411: checksrc: detect // comments on column 0


From: gnunet
Subject: [gnurl] 227/411: checksrc: detect // comments on column 0
Date: Wed, 13 Jan 2021 01:20:42 +0100

This is an automated email from the git hooks/post-receive script.

nikita pushed a commit to branch master
in repository gnurl.

commit 7d8c89d47b459e104125dc900251d0bd07c6fd79
Author: Daniel Stenberg <daniel@haxx.se>
AuthorDate: Wed Oct 7 09:11:03 2020 +0200

    checksrc: detect // comments on column 0
    
    Spotted while working on #6045
    
    Closes #6048
---
 lib/checksrc.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/checksrc.pl b/lib/checksrc.pl
index f9d076a2f..78b9cef5b 100755
--- a/lib/checksrc.pl
+++ b/lib/checksrc.pl
@@ -442,7 +442,7 @@ sub scanfile {
 
         # crude attempt to detect // comments without too many false
         # positives
-        if($l =~ /^([^"\*]*)[^:"]\/\//) {
+        if($l =~ /^(([^"\*]*)[^:"]|)\/\//) {
             checkwarn("CPPCOMMENTS",
                       $line, length($1), $file, $l, "\/\/ comment");
         }

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

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