expr.c (eval_token): Append "evaluates to 0" to Wundef diagnostic.
2016-08-19 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org> libcpp/ * expr.c (eval_token): Append "evaluates to 0" to Wundef diagnostic. testsuite/ * gcc.dg/cpp/warn-undef.c: Append "evaluates to 0" to dg-error. * gcc.dg/cpp/warn-undef-2.c: Likewise. From-SVN: r239609
This commit is contained in:
parent
1f4ed04ed8
commit
fcf830abf7
5 changed files with 12 additions and 3 deletions
|
@ -1073,7 +1073,7 @@ eval_token (cpp_reader *pfile, const cpp_token *token,
|
|||
result.low = 0;
|
||||
if (CPP_OPTION (pfile, warn_undef) && !pfile->state.skip_eval)
|
||||
cpp_warning_with_line (pfile, CPP_W_UNDEF, virtual_location, 0,
|
||||
"\"%s\" is not defined",
|
||||
"\"%s\" is not defined, evaluates to 0",
|
||||
NODE_NAME (token->val.node.node));
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue