diff options
author | prathamesh3492 <prathamesh3492@138bc75d-0d04-0410-961f-82ee72b054a4> | 2016-08-19 13:17:09 +0000 |
---|---|---|
committer | prathamesh3492 <prathamesh3492@138bc75d-0d04-0410-961f-82ee72b054a4> | 2016-08-19 13:17:09 +0000 |
commit | 6d7de6093c139f0ff11c0af03429dcf26b965f20 (patch) | |
tree | 75ec25af5dae2c4d482f058f1db7a9e65768c87b /libcpp/expr.c | |
parent | 432400939585c40402db82b08baa7aae30875ddb (diff) |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@239609 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libcpp/expr.c')
-rw-r--r-- | libcpp/expr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcpp/expr.c b/libcpp/expr.c index 5cdca6f1bec6..d32f5a971899 100644 --- a/libcpp/expr.c +++ b/libcpp/expr.c @@ -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; |