aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/lambda.c
diff options
context:
space:
mode:
authorAdam Butcher <adam@jessamine.co.uk>2013-09-13 07:37:25 +0100
committerAdam Butcher <abutcher@gcc.gnu.org>2013-09-13 07:37:25 +0100
commitf0e40b0a064d027278df3bc690bc5bfc4dbf8878 (patch)
treeb15bb40f3518494bd206b36977d776a621ecfdd8 /gcc/cp/lambda.c
parent823b5d6bbc2a7495618f3e42a223be6500d27ca4 (diff)
downloadgcc-f0e40b0a064d027278df3bc690bc5bfc4dbf8878.zip
gcc-f0e40b0a064d027278df3bc690bc5bfc4dbf8878.tar.gz
gcc-f0e40b0a064d027278df3bc690bc5bfc4dbf8878.tar.bz2
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
Diffstat (limited to 'gcc/cp/lambda.c')
-rw-r--r--gcc/cp/lambda.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/cp/lambda.c b/gcc/cp/lambda.c
index 2d20333..0da22fd 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<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)