diff mbox

[C++,obvious] Avoid spurious -Wuninitialized warning

Message ID 538D209C.80401@oracle.com
State New
Headers show

Commit Message

Paolo Carlini June 3, 2014, 1:10 a.m. UTC
Hi,

I noticed only today that the code I touched a few days ago can trigger 
a spurious -Wuninitialized warning, which I'm going to avoid with the below.

Thanks,
Paolo.

////////////////////
2014-06-02  Paolo Carlini  <paolo.carlini@oracle.com>

	* pt.c (tsubst_function_type): Initialize arg_types.
diff mbox

Patch

Index: pt.c
===================================================================
--- pt.c	(revision 211157)
+++ pt.c	(working copy)
@@ -11320,7 +11320,7 @@  tsubst_function_type (tree t,
 		      tree in_decl)
 {
   tree return_type;
-  tree arg_types;
+  tree arg_types = NULL_TREE;
   tree fntype;
 
   /* The TYPE_CONTEXT is not used for function/method types.  */