diff options
author | pinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-10-26 02:15:02 +0000 |
---|---|---|
committer | pinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-10-26 02:15:02 +0000 |
commit | f6f70456f2bb9e02b146c06cc9059d136e9068f8 (patch) | |
tree | a73391aa16683e6aebff717c58244aca7c03c219 /gcc/c-format.c | |
parent | 221fe31a3cf1be01f1653e56e2beb36752c1aaee (diff) | |
download | gcc-f6f70456f2bb9e02b146c06cc9059d136e9068f8.tar.gz |
2005-10-24 Andrew Pinski <pinskia@physics.uc.edu>
PR c/23103
* c-format.c (check_format_types): Use lang_hooks.types_compatible_p
instead of pointer equality when comparing types.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@105911 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-format.c')
-rw-r--r-- | gcc/c-format.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/c-format.c b/gcc/c-format.c index 7d5af422eb5..82f2bc77b0f 100644 --- a/gcc/c-format.c +++ b/gcc/c-format.c @@ -2216,7 +2216,7 @@ check_format_types (format_wanted_type *types, const char *format_start, || cur_type == unsigned_char_type_node); /* Check the type of the "real" argument, if there's a type we want. */ - if (wanted_type == cur_type) + if (lang_hooks.types_compatible_p (wanted_type, cur_type)) continue; /* If we want 'void *', allow any pointer type. (Anything else would already have got a warning.) |