diff options
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.) |