Commit 15cf7c83 by Richard Kenner

(check_format_info): Warn about `L' if -pedantic.

From-SVN: r11291
parent 7e842ef8
...@@ -1083,11 +1083,19 @@ check_format_info (info, params) ...@@ -1083,11 +1083,19 @@ check_format_info (info, params)
} }
if (*format_chars == 'h' || *format_chars == 'l' || *format_chars == 'q' || if (*format_chars == 'h' || *format_chars == 'l' || *format_chars == 'q' ||
*format_chars == 'L') *format_chars == 'L')
{
length_char = *format_chars++; length_char = *format_chars++;
if (pedantic)
pedwarn ("ANSI C does not support the `q' length modifier");
}
else else
length_char = 0; length_char = 0;
if (length_char == 'l' && *format_chars == 'l') if (length_char == 'l' && *format_chars == 'l')
{
length_char = 'q', format_chars++; length_char = 'q', format_chars++;
if (pedantic)
pedwarn ("ANSI C does not support the `ll' length modifier");
}
aflag = 0; aflag = 0;
if (*format_chars == 'a') if (*format_chars == 'a')
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment