]> xenbits.xensource.com Git - libvirt.git/commitdiff
syntax-check: require intialization for new VIR_AUTO macros
authorPeter Krempa <pkrempa@redhat.com>
Tue, 26 Feb 2019 16:02:58 +0000 (17:02 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 4 Mar 2019 12:04:20 +0000 (13:04 +0100)
The syntax-check should also check the new ones.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
cfg.mk

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