aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-family/c-warn.c
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2020-01-22 14:12:55 -0500
committerJason Merrill <jason@redhat.com>2020-01-22 17:05:42 -0500
commitd9637168812939d6c9df29ce747d8d4648b37cef (patch)
treec004b459cb8d6ac1b58af5af2646e98736c91e8a /gcc/c-family/c-warn.c
parent9085381f1931cc3667412c8fff91878184835901 (diff)
downloadgcc-d9637168812939d6c9df29ce747d8d4648b37cef.zip
gcc-d9637168812939d6c9df29ce747d8d4648b37cef.tar.gz
gcc-d9637168812939d6c9df29ce747d8d4648b37cef.tar.bz2
c-family: Remove location parm from unsafe_conversion_p.
My earlier change removed the warning calls from this function, so the location is no longer useful. * c-common.c (unsafe_conversion_p): Remove location parm.
Diffstat (limited to 'gcc/c-family/c-warn.c')
-rw-r--r--gcc/c-family/c-warn.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/c-family/c-warn.c b/gcc/c-family/c-warn.c
index d8f0ad6..4df4893 100644
--- a/gcc/c-family/c-warn.c
+++ b/gcc/c-family/c-warn.c
@@ -1202,7 +1202,7 @@ conversion_warning (location_t loc, tree type, tree expr, tree result)
case INTEGER_CST:
case COMPLEX_CST:
{
- conversion_kind = unsafe_conversion_p (loc, type, expr, result, true);
+ conversion_kind = unsafe_conversion_p (type, expr, result, true);
int warnopt;
if (conversion_kind == UNSAFE_REAL)
warnopt = OPT_Wfloat_conversion;
@@ -1310,7 +1310,7 @@ conversion_warning (location_t loc, tree type, tree expr, tree result)
is_arith = true;
gcc_fallthrough ();
default:
- conversion_kind = unsafe_conversion_p (loc, type, expr, result, true);
+ conversion_kind = unsafe_conversion_p (type, expr, result, true);
{
int warnopt;
if (conversion_kind == UNSAFE_REAL)