diff options
Diffstat (limited to 'gcc/c-common.c')
-rw-r--r-- | gcc/c-common.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/gcc/c-common.c b/gcc/c-common.c index 71334a2176e..742eba0bfbf 100644 --- a/gcc/c-common.c +++ b/gcc/c-common.c @@ -1925,10 +1925,12 @@ check_format_info (info, params) continue; } if (TREE_CODE (cur_type) != ERROR_MARK) - warning ((fci->pointer_count + aflag == 1 - ? "format argument is not a pointer (arg %d)" - : "format argument is not a pointer to a pointer (arg %d)"), - arg_num); + { + if (fci->pointer_count + aflag == 1) + warning ("format argument is not a pointer (arg %d)", arg_num); + else + warning ("format argument is not a pointer to a pointer (arg %d)", arg_num); + } break; } |