From 3e0786cc4645263202450dfa596390e9781d1a2e Mon Sep 17 00:00:00 2001 From: Shi Lei Date: Wed, 12 Sep 2018 17:46:35 +0800 Subject: [PATCH] cfg.mk: change syntax-check rule for VIR_AUTOCLOSE variable initialization Signed-off-by: Shi Lei --- cfg.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)