Commit f0e40b0a by Adam Butcher Committed by Adam Butcher

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
parent 823b5d6b
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> 2013-09-12 Brooks Moses <bmoses@google.com>
PR driver/42955 PR driver/42955
......
...@@ -792,8 +792,8 @@ maybe_add_lambda_conv_op (tree type) ...@@ -792,8 +792,8 @@ maybe_add_lambda_conv_op (tree type)
particular, parameter pack expansions are marked PACK_EXPANSION_LOCAL_P in particular, parameter pack expansions are marked PACK_EXPANSION_LOCAL_P in
the body CALL, but not in DECLTYPE_CALL. */ the body CALL, but not in DECLTYPE_CALL. */
vec<tree, va_gc> *direct_argvec; vec<tree, va_gc> *direct_argvec = 0;
tree decltype_call = 0, call; tree decltype_call = 0, call = 0;
tree fn_result = TREE_TYPE (TREE_TYPE (callop)); tree fn_result = TREE_TYPE (TREE_TYPE (callop));
if (generic_lambda_p) if (generic_lambda_p)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment