From 65f702020e8da79494fe5795d61bff1e2f5edd2d Mon Sep 17 00:00:00 2001 From: Peter Krempa Date: Wed, 31 Mar 2021 10:18:54 +0200 Subject: [PATCH] syntax-check: Clean up check for g_auto* MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove the old libvirt variants that are no longer in use and include g_autostringlist. Signed-off-by: Peter Krempa Reviewed-by: Ján Tomko --- build-aux/syntax-check.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-aux/syntax-check.mk b/build-aux/syntax-check.mk index 10fa4bb553..94340ddf92 100644 --- a/build-aux/syntax-check.mk +++ b/build-aux/syntax-check.mk @@ -1106,7 +1106,7 @@ sc_prohibit_backslash_alignment: # Rule to ensure that variables declared using a cleanup macro are # always initialized. sc_require_attribute_cleanup_initialization: - @prohibit='((g_auto(ptr|free)?)|(VIR_AUTO((FREE|PTR|UNREF|CLEAN)\(.+\)|CLOSE|STRINGLIST))) *[^=]+;' \ + @prohibit='((g_auto(ptr|free|slist)?)|VIR_AUTOCLOSE)) *[^=]+;' \ in_vc_files='\.[chx]$$' \ halt='variable declared with a cleanup macro must be initialized' \ $(_sc_search_regexp)