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 <jtomko@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
Ján Tomko 2019-10-15 13:13:39 +02:00
parent 81077d6e8a
commit ec96b74041
1 changed files with 1 additions and 1 deletions

View File

@ -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: