提交 ec96b740 编写于 作者: J Ján Tomko

syntax-check: prohibit_attribute_macros: generalize error

Instead of enumerating every single macro variant, just emit
a more generic error.
Signed-off-by: NJán Tomko <jtomko@redhat.com>
Reviewed-by: NMichal Privoznik <mprivozn@redhat.com>
上级 81077d6e
......@@ -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:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册