diff options
author | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-07-16 14:34:37 +0000 |
---|---|---|
committer | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-07-16 14:34:37 +0000 |
commit | c7eca98668329969d87a2221b819d3c5028eef5b (patch) | |
tree | 044051897e2c4a0878da1f67eb77e10315cca5e6 /gcc | |
parent | b8d0afb6a08f0dc076b09a9a8ce484f5b8d85b2d (diff) | |
download | gcc-c7eca98668329969d87a2221b819d3c5028eef5b.tar.gz |
* c-typeck.c (digest_init): Call 'convert_for_assignment'
before returning.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@102090 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/c-typeck.c | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index de6bad93aff..8b57b807621 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +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. diff --git a/gcc/c-typeck.c b/gcc/c-typeck.c index ab72ceea120..907a4fcba07 100644 --- a/gcc/c-typeck.c +++ b/gcc/c-typeck.c @@ -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; } |