]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
cfg.mk: Adjust sc_prohibit_int_ijk to support 'exempt from syntax-check'
authorErik Skultety <eskultet@redhat.com>
Thu, 28 Jan 2016 15:46:32 +0000 (16:46 +0100)
committerErik Skultety <eskultet@redhat.com>
Wed, 3 Feb 2016 09:58:01 +0000 (10:58 +0100)
There might be cases, like with typed params, where triggering this check isn't
desirable. But including the whole module in the exception regex is not always
to right way of doing things. By adding an option to manually disable this check
on a specific occurrence, the module itself will still be checked against the
rule.

cfg.mk

diff --git a/cfg.mk b/cfg.mk
index b009b284f12237d0cda0f44d520168b4e6ee750a..71b0866d52f6e6c2837f474cf8732470ba974562 100644 (file)
--- a/cfg.mk
+++ b/cfg.mk
@@ -572,6 +572,7 @@ sc_prohibit_int_index:
 
 sc_prohibit_int_ijk:
        @prohibit='\<(int|unsigned) ([^(=]* )*(i|j|k)\>(\s|,|;)'        \
+       exclude='exempt from syntax-check'                              \
        halt='use size_t, not int/unsigned int for loop vars i, j, k'   \
          $(_sc_search_regexp)