From: Shi Lei Date: Wed, 12 Sep 2018 09:46:35 +0000 (+0800) Subject: cfg.mk: change syntax-check rule for VIR_AUTOCLOSE variable initialization X-Git-Tag: v4.8.0-rc1~203 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3e0786cc4645263202450dfa596390e9781d1a2e;p=thirdparty%2Flibvirt.git cfg.mk: change syntax-check rule for VIR_AUTOCLOSE variable initialization Signed-off-by: Shi Lei --- diff --git a/cfg.mk b/cfg.mk index 609ae869c2..eddd110ed6 100644 --- 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)