diff options
author | Anil Madhavapeddy <avsm@cvs.openbsd.org> | 2003-09-05 20:40:39 +0000 |
---|---|---|
committer | Anil Madhavapeddy <avsm@cvs.openbsd.org> | 2003-09-05 20:40:39 +0000 |
commit | 2fd7d416ccfdb678771bbbd8c00c8b51cbd5fec8 (patch) | |
tree | 8b805431a0358a9414ced57922679a9aeb84041e /gnu/egcs | |
parent | 592d4af86122c21e94486f53e1e0e89e1f0b8d83 (diff) |
Stop the bounds checker warning on a bound of 0, so now it only triggers
on negative values. Suppresses some warnings on code which is useless
but legal. deraadt@ ok
Diffstat (limited to 'gnu/egcs')
-rw-r--r-- | gnu/egcs/gcc/c-common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gnu/egcs/gcc/c-common.c b/gnu/egcs/gcc/c-common.c index 95942113ff0..1f76a3381e1 100644 --- a/gnu/egcs/gcc/c-common.c +++ b/gnu/egcs/gcc/c-common.c @@ -2060,7 +2060,7 @@ check_bound_info (info, params) case string_bound_type: case buffer_bound_type: /* warn about illegal bounds value */ - if (length < 1) + if (length < 0) warning ("non-positive bounds length (%d) detected", length); /* check if the static buffer is smaller than bound length */ if (array_size < length) |