]> git.droids-corp.org - dpdk.git/blobdiff - devtools/check-forbidden-tokens.awk
app/flow-perf: fix build with GCC 12
[dpdk.git] / devtools / check-forbidden-tokens.awk
index 61ba707c9bab085f5c35ee4d9e177101ddd56d72..026844141c8394afc09ccfae1d63de0b666497b4 100755 (executable)
@@ -20,6 +20,9 @@ BEGIN {
 # state machine assumes the comments structure is enforced by
 # checkpatches.pl
 (in_file) {
+       if ($0 ~ "^@@") {
+               in_comment = 0
+       }
        # comment start
        if (index($0,comment_start) > 0) {
                in_comment = 1