Oops, use CPP_WTRADITIONAL, not CPP_TRADITIONAL.

From-SVN: r34989
This commit is contained in:
Kaveh R. Ghazi 2000-07-12 17:08:20 +00:00 committed by Kaveh Ghazi
parent e4a2ac1af7
commit b9bf5af853
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
2000-07-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 2000-07-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* cpplex.c (is_macro_disabled): Use CPP_TRADITIONAL. * cpplex.c (is_macro_disabled): Use CPP_WTRADITIONAL.
* c-decl.c (set_current_function_name_declared, anon_aggr_type_p, * c-decl.c (set_current_function_name_declared, anon_aggr_type_p,
lang_expand_stmt): Mark parameters with ATTRIBUTE_UNUSED. lang_expand_stmt): Mark parameters with ATTRIBUTE_UNUSED.

View File

@ -2069,7 +2069,7 @@ is_macro_disabled (pfile, expansion, token)
if (next->type != CPP_OPEN_PAREN) if (next->type != CPP_OPEN_PAREN)
{ {
_cpp_push_token (pfile, next); _cpp_push_token (pfile, next);
if (CPP_TRADITIONAL (pfile)) if (CPP_WTRADITIONAL (pfile))
cpp_warning (pfile, cpp_warning (pfile,
"function macro %.*s must be used with arguments in traditional C", "function macro %.*s must be used with arguments in traditional C",
(int) token->val.node->length, token->val.node->name); (int) token->val.node->length, token->val.node->name);