aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1992-07-01 23:07:27 +0000
committerRichard Stallman <rms@gnu.org>1992-07-01 23:07:27 +0000
commit0597a777990575c0cfa62bcfd1a9946b407b38e2 (patch)
tree6406aa0edc34202ec29c9bdf072b1b369ff4d4a8
parent4db3b35d80c5a7c15f661a2ba36cc51ce332db47 (diff)
downloadgcc-0597a777990575c0cfa62bcfd1a9946b407b38e2.zip
gcc-0597a777990575c0cfa62bcfd1a9946b407b38e2.tar.gz
gcc-0597a777990575c0cfa62bcfd1a9946b407b38e2.tar.bz2
(check_format): Comment changes.
From-SVN: r1381
-rw-r--r--gcc/c-typeck.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/c-typeck.c b/gcc/c-typeck.c
index 0c56a6f..1d5b763 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,