diff options
author | 2003-09-05 20:40:38 +0000 | |
---|---|---|
committer | 2003-09-05 20:40:38 +0000 | |
commit | e860393c18ea43b5a8354d9846660cd16a4389c4 (patch) | |
tree | 2fac5be4722bff78639649fb3dfe45a59b29f3fd | |
parent | Never enable interrupts just before processing data exceptions, but rather (diff) | |
download | wireguard-openbsd-e860393c18ea43b5a8354d9846660cd16a4389c4.tar.xz wireguard-openbsd-e860393c18ea43b5a8354d9846660cd16a4389c4.zip |
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
-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) |