S/390: Initialize variable to avoid warning
authorAndreas Krebbel <krebbel@linux.vnet.ibm.com>
Wed, 5 Apr 2017 08:24:34 +0000 (08:24 +0000)
committerAndreas Krebbel <krebbel@gcc.gnu.org>
Wed, 5 Apr 2017 08:24:34 +0000 (08:24 +0000)
gcc/ChangeLog:

2017-04-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>

* config/s390/s390-c.c (s390_resolve_overloaded_builtin):
Initialize last_match_fntype_index.

From-SVN: r246700

gcc/ChangeLog
gcc/config/s390/s390-c.c

index 3e1e0701e441d697a95f9fd1cba79dbec2e69c3c..5e6839ca45bd5e85e4d87f013f6cec900c7058ba 100644 (file)
@@ -1,3 +1,8 @@
+2017-04-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
+
+       * config/s390/s390-c.c (s390_resolve_overloaded_builtin):
+       Initialize last_match_fntype_index.
+
 2017-04-05  Jakub Jelinek  <jakub@redhat.com>
 
        PR target/80310
index fb8d821922d68724b1efe15e35cd49fc5a8bfc2d..35c35458791599562b15b85b9e4c96559cf214e5 100644 (file)
@@ -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,