mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-31 00:15:43 +08:00
* cpplex.c (is_macro_disabled): Use CPP_TRADITIONAL.
From-SVN: r34988
This commit is contained in:
parent
20217ac124
commit
e4a2ac1af7
@ -1,5 +1,7 @@
|
||||
2000-07-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
|
||||
|
||||
* cpplex.c (is_macro_disabled): Use CPP_TRADITIONAL.
|
||||
|
||||
* c-decl.c (set_current_function_name_declared, anon_aggr_type_p,
|
||||
lang_expand_stmt): Mark parameters with ATTRIBUTE_UNUSED.
|
||||
|
||||
|
@ -2069,7 +2069,7 @@ is_macro_disabled (pfile, expansion, token)
|
||||
if (next->type != CPP_OPEN_PAREN)
|
||||
{
|
||||
_cpp_push_token (pfile, next);
|
||||
if (CPP_OPTION (pfile, warn_traditional))
|
||||
if (CPP_TRADITIONAL (pfile))
|
||||
cpp_warning (pfile,
|
||||
"function macro %.*s must be used with arguments in traditional C",
|
||||
(int) token->val.node->length, token->val.node->name);
|
||||
|
Loading…
Reference in New Issue
Block a user