[Bug boehm-gc/66884] New: trunk/boehm-gc/cord/cordbscs.c:455: bad if ?
dcb314 at hotmail dot com
gcc-bugzilla@gcc.gnu.org
Wed Jul 15 18:07:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66884
Bug ID: 66884
Summary: trunk/boehm-gc/cord/cordbscs.c:455: bad if ?
Product: gcc
Version: 6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: boehm-gc
Assignee: unassigned at gcc dot gnu.org
Reporter: dcb314 at hotmail dot com
Target Milestone: ---
[trunk/boehm-gc/cord/cordbscs.c:455]: (style) Checking if unsigned variable 'i'
is less than zero.
# ifndef __STDC__
if (i < 0) ABORT("CORD_substr: second arg. negative");
/* Possible only if both client and C implementation are buggy. */
/* But empirically this happens frequently. */
# endif
but
CORD CORD_substr(CORD x, size_t i, size_t n)
Suggest code removal. It seems to be dead, and I don't think anyone
still uses K&R (ie pre ANSI) compilers anymore.
More information about the Gcc-bugs
mailing list