diff options
-rw-r--r-- | contrib/gcc/c-common.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/gcc/c-common.c b/contrib/gcc/c-common.c index 5e5b712..53a8bba 100644 --- a/contrib/gcc/c-common.c +++ b/contrib/gcc/c-common.c @@ -1615,7 +1615,8 @@ check_format_info (info, params) { if (*format_chars == 'h' || *format_chars == 'l') length_char = *format_chars++; - else if (*format_chars == 'q' || *format_chars == 'L') + else if ((*format_chars == 'q' || *format_chars == 'L') + && !flag_format_extensions) { length_char = *format_chars++; if (pedantic) |