From: Ján Tomko Date: Tue, 15 Oct 2019 11:13:39 +0000 (+0200) Subject: syntax-check: prohibit_attribute_macros: generalize error X-Git-Tag: v5.9.0-rc1~216 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ec96b740418a75e001be65b82ba6497f2dac8fcc;p=thirdparty%2Flibvirt.git syntax-check: prohibit_attribute_macros: generalize error Instead of enumerating every single macro variant, just emit a more generic error. Signed-off-by: Ján Tomko Reviewed-by: Michal Privoznik --- 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_ for most' \ $(_sc_search_regexp) sc_prohibit_int_index: