]> gcc.gnu.org Git - gcc.git/commitdiff
(check_format_info): Handle missing type in format when terminated by
authorRichard Kenner <kenner@gcc.gnu.org>
Sun, 11 Feb 1996 13:44:40 +0000 (08:44 -0500)
committerRichard Kenner <kenner@gcc.gnu.org>
Sun, 11 Feb 1996 13:44:40 +0000 (08:44 -0500)
a new `%'.

From-SVN: r11203

gcc/c-common.c

index 58e9df02cd908c133426392bdb05a1c9f3e2546d..f87105d1e20dc62227229871c2183ac65bf3459c 100644 (file)
@@ -1102,7 +1102,7 @@ check_format_info (info, params)
          warning (message);
        }
       format_char = *format_chars;
-      if (format_char == 0)
+      if (format_char == 0 || format_char == '%')
        {
          warning ("conversion lacks type at end of format");
          continue;
This page took 0.057301 seconds and 5 git commands to generate.