Fix uninitialized variables causing breakage with -Werror.
authorAdam Butcher <adam@jessamine.co.uk>
Fri, 13 Sep 2013 06:37:25 +0000 (07:37 +0100)
committerAdam Butcher <abutcher@gcc.gnu.org>
Fri, 13 Sep 2013 06:37:25 +0000 (07:37 +0100)
* lambda.c (maybe_add_lambda_conv_op): Initialize direct_argvec and call
to nullptr to avoid breakage with -Werror.

From-SVN: r202554

gcc/cp/ChangeLog
gcc/cp/lambda.c

index 68c8ea4beb3ecccdae670b2f5b05b9bd4013e982..80e0d9623dc4b8d1e919b28b35d8ee972c259a65 100644 (file)
@@ -1,3 +1,8 @@
+2013-09-13  Adam Butcher  <adam@jessamine.co.uk>
+
+       * lambda.c (maybe_add_lambda_conv_op): Initialize direct_argvec and call
+       to nullptr to avoid breakage with -Werror.
+
 2013-09-12  Brooks Moses  <bmoses@google.com>
 
        PR driver/42955
index 2d203331b81fa2ea89817c504e88bca885db2d13..0da22fdec6d9b88ea3e234634667becaa2af706a 100644 (file)
@@ -792,8 +792,8 @@ maybe_add_lambda_conv_op (tree type)
      particular, parameter pack expansions are marked PACK_EXPANSION_LOCAL_P in
      the body CALL, but not in DECLTYPE_CALL.  */
 
-  vec<tree, va_gc> *direct_argvec;
-  tree decltype_call = 0, call;
+  vec<tree, va_gc> *direct_argvec = 0;
+  tree decltype_call = 0, call = 0;
   tree fn_result = TREE_TYPE (TREE_TYPE (callop));
 
   if (generic_lambda_p)