From 0597a777990575c0cfa62bcfd1a9946b407b38e2 Mon Sep 17 00:00:00 2001 From: Richard Stallman Date: Wed, 1 Jul 1992 23:07:27 +0000 Subject: [PATCH] (check_format): Comment changes. From-SVN: r1381 --- gcc/c-typeck.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gcc/c-typeck.c b/gcc/c-typeck.c index 0c56a6f38ca..1d5b763937e 100644 --- a/gcc/c-typeck.c +++ b/gcc/c-typeck.c @@ -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, -- 2.30.2