If pedantic, whine about long long length modifiers. Suggested by der Mouse.

This commit is contained in:
mycroft 1996-02-08 08:57:22 +00:00
parent 62b296d0eb
commit fa9dad8bfa
1 changed files with 10 additions and 2 deletions

View File

@ -1069,11 +1069,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')
{ {