From: Peter Krempa Date: Tue, 26 Feb 2019 16:02:58 +0000 (+0100) Subject: syntax-check: require intialization for new VIR_AUTO macros X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=2ee00d59057c5d1c26243695311028a0b3c83345;p=libvirt.git syntax-check: require intialization for new VIR_AUTO macros The syntax-check should also check the new ones. Signed-off-by: Peter Krempa Reviewed-by: Ján Tomko --- diff --git a/cfg.mk b/cfg.mk index 7762422da7..f99b8ae631 100644 --- 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)