From: Adam Butcher Date: Fri, 13 Sep 2013 06:37:25 +0000 (+0100) Subject: Fix uninitialized variables causing breakage with -Werror. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f0e40b0a064d027278df3bc690bc5bfc4dbf8878;p=gcc.git Fix uninitialized variables causing breakage with -Werror. * lambda.c (maybe_add_lambda_conv_op): Initialize direct_argvec and call to nullptr to avoid breakage with -Werror. From-SVN: r202554 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 68c8ea4beb3..80e0d9623dc 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2013-09-13 Adam Butcher + + * lambda.c (maybe_add_lambda_conv_op): Initialize direct_argvec and call + to nullptr to avoid breakage with -Werror. + 2013-09-12 Brooks Moses PR driver/42955 diff --git a/gcc/cp/lambda.c b/gcc/cp/lambda.c index 2d203331b81..0da22fdec6d 100644 --- a/gcc/cp/lambda.c +++ b/gcc/cp/lambda.c @@ -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 *direct_argvec; - tree decltype_call = 0, call; + vec *direct_argvec = 0; + tree decltype_call = 0, call = 0; tree fn_result = TREE_TYPE (TREE_TYPE (callop)); if (generic_lambda_p)