[libvirt] [PATCH 2/8] syntax-check: prohibit_attribute_macros: generalize error

Ján Tomko jtomko at redhat.com
Tue Oct 15 12:21:24 UTC 2019


Instead of enumerating every single macro variant, just emit
a more generic error.

Signed-off-by: Ján Tomko <jtomko at redhat.com>
---
 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 c30d575e77..c0612a3319 100644
--- a/build-aux/syntax-check.mk
+++ b/build-aux/syntax-check.mk
@@ -631,7 +631,7 @@ sc_avoid_g_gnuc_unused_in_header:
 sc_prohibit_attribute_macros:
 	@prohibit='ATTRIBUTE_(UNUSED|NORETURN|SENTINEL|RETURN_CHECK)' \
 	in_vc_files='\.[ch]$$' \
-	halt='use GLib macros: G_GNUC_{UNUSED,NORETURN,NULL_TERMINATED,WARN_UNUSED_RESULT}' \
+	halt='use GLib macros: G_GNUC_<ATTRIBUTE_SUFFIX> for most' \
 	  $(_sc_search_regexp)
 
 sc_prohibit_int_index:
-- 
2.19.2




More information about the libvir-list mailing list