(check_format): Comment changes.
authorRichard Stallman <rms@gnu.org>
Wed, 1 Jul 1992 23:07:27 +0000 (23:07 +0000)
committerRichard Stallman <rms@gnu.org>
Wed, 1 Jul 1992 23:07:27 +0000 (23:07 +0000)
From-SVN: r1381

gcc/c-typeck.c

index 0c56a6f38cafe80926e45085c0e9e2a9b7a18db7..1d5b763937e0d48a782314c7e45b98dc3d18e1a8 100644 (file)
@@ -1528,6 +1528,10 @@ check_format (info, params)
                  cur_param = TREE_VALUE (params);
                  params = TREE_CHAIN (params);
                  ++arg_num;
+                 /* size_t is generally not valid here.
+                    It will work on most machines, because size_t and int
+                    have the same mode.  But might as well warn anyway,
+                    since it will fail on other machines.  */
                  if (TREE_TYPE (cur_param) != integer_type_node)
                    {
                      sprintf (message,