projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4db3b35
)
(check_format): Comment changes.
author
Richard Stallman
<rms@gnu.org>
Wed, 1 Jul 1992 23:07:27 +0000
(23:07 +0000)
committer
Richard Stallman
<rms@gnu.org>
Wed, 1 Jul 1992 23:07:27 +0000
(23:07 +0000)
From-SVN: r1381
gcc/c-typeck.c
patch
|
blob
|
history
diff --git
a/gcc/c-typeck.c
b/gcc/c-typeck.c
index 0c56a6f38cafe80926e45085c0e9e2a9b7a18db7..1d5b763937e0d48a782314c7e45b98dc3d18e1a8 100644
(file)
--- 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,