From b88a6a88183a6cf44721881fe81a8f5c731bce4f Mon Sep 17 00:00:00 2001 From: Andreas Krebbel Date: Wed, 5 Apr 2017 08:24:34 +0000 Subject: [PATCH] S/390: Initialize variable to avoid warning gcc/ChangeLog: 2017-04-05 Andreas Krebbel * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Initialize last_match_fntype_index. From-SVN: r246700 --- gcc/ChangeLog | 5 +++++ gcc/config/s390/s390-c.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3e1e0701e44..5e6839ca45b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2017-04-05 Andreas Krebbel + + * config/s390/s390-c.c (s390_resolve_overloaded_builtin): + Initialize last_match_fntype_index. + 2017-04-05 Jakub Jelinek PR target/80310 diff --git a/gcc/config/s390/s390-c.c b/gcc/config/s390/s390-c.c index fb8d821922d..35c35458791 100644 --- a/gcc/config/s390/s390-c.c +++ b/gcc/config/s390/s390-c.c @@ -854,7 +854,7 @@ s390_resolve_overloaded_builtin (location_t loc, const unsigned int ob_flags = bflags_for_builtin(ob_fcode); int num_matches = 0; tree target_builtin_decl, b_arg_chain, return_type; - enum s390_builtin_ov_type_index last_match_fntype_index; + enum s390_builtin_ov_type_index last_match_fntype_index = BT_OV_MAX; if (TARGET_DEBUG_ARG) fprintf (stderr, -- 2.30.2