diff options
Diffstat (limited to 'gcc/cp/call.c')
-rw-r--r-- | gcc/cp/call.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/cp/call.c b/gcc/cp/call.c index 0348eb1..90fa20a 100644 --- a/gcc/cp/call.c +++ b/gcc/cp/call.c @@ -3404,7 +3404,7 @@ build_conditional_expr (tree arg1, tree arg2, tree arg3, if (!arg2) { if (complain & tf_error) - pedwarn (OPT_pedantic, + pedwarn (input_location, OPT_pedantic, "ISO C++ forbids omitting the middle term of a ?: expression"); /* Make sure that lvalues remain lvalues. See g++.oliva/ext1.C. */ @@ -6766,7 +6766,7 @@ tweak: { if (warn) { - pedwarn (0, + pedwarn (input_location, 0, "ISO C++ says that these are ambiguous, even " "though the worst conversion for the first is better than " "the worst conversion for the second:"); |