]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
cfg.mk: change syntax-check rule for VIR_AUTOCLOSE variable initialization
authorShi Lei <shi_lei@massclouds.com>
Wed, 12 Sep 2018 09:46:35 +0000 (17:46 +0800)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 12 Sep 2018 15:35:38 +0000 (17:35 +0200)
Signed-off-by: Shi Lei <shi_lei@massclouds.com>
cfg.mk

diff --git a/cfg.mk b/cfg.mk
index 609ae869c2e551209f50c1d40a058e55af99cf52..eddd110ed6665e55c831049ba168c89393f6e4bb 100644 (file)
--- a/cfg.mk
+++ b/cfg.mk
@@ -1063,7 +1063,7 @@ sc_prohibit_backslash_alignment:
 # Rule to ensure that varibales declared using a cleanup macro are
 # always initialized.
 sc_require_attribute_cleanup_initialization:
-       @prohibit='VIR_AUTO(FREE|PTR)\(.+\) *[^=]+;' \
+       @prohibit='VIR_AUTO((FREE|PTR)\(.+\)|CLOSE) *[^=]+;' \
        in_vc_files='\.[chx]$$' \
        halt='variable declared with a cleanup macro must be initialized' \
          $(_sc_search_regexp)