Commit 8fcef540 by Kaveh R. Ghazi Committed by Kaveh Ghazi

c-typeck.c (digest_init): Call 'convert_for_assignment' before returning.

	* c-typeck.c (digest_init): Call 'convert_for_assignment'
	before returning.

From-SVN: r102090
parent 72e78bf3
2005-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* c-typeck.c (digest_init): Call 'convert_for_assignment'
before returning.
2005-07-16 Jan Hubicka <jh@suse.cz>
* cfg.c (update_bb_profile_for_threading): Fix profile updating.
......
......@@ -4442,6 +4442,10 @@ digest_init (tree type, tree init, bool strict_string, int require_constant)
inside_init = error_mark_node;
}
/* Added to enable additional -Wmissing-format-attribute warnings. */
if (TREE_CODE (TREE_TYPE (inside_init)) == POINTER_TYPE)
inside_init = convert_for_assignment (type, inside_init, ic_init, NULL_TREE,
NULL_TREE, 0);
return inside_init;
}
......
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