From 15cf7c831ed77da1369ba0b27480fc3a73c2b396 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Sun, 18 Feb 1996 13:29:45 -0500 Subject: [PATCH] (check_format_info): Warn about `L' if -pedantic. From-SVN: r11291 --- gcc/c-common.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/gcc/c-common.c b/gcc/c-common.c index b181a1c76b3..492aa4b08f2 100644 --- a/gcc/c-common.c +++ b/gcc/c-common.c @@ -1083,11 +1083,19 @@ check_format_info (info, params) } if (*format_chars == 'h' || *format_chars == 'l' || *format_chars == 'q' || *format_chars == 'L') - length_char = *format_chars++; + { + length_char = *format_chars++; + if (pedantic) + pedwarn ("ANSI C does not support the `q' length modifier"); + } else length_char = 0; 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; if (*format_chars == 'a') {