public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug boehm-gc/66884] New: trunk/boehm-gc/cord/cordbscs.c:455: bad if ?
@ 2015-07-15 18:07 dcb314 at hotmail dot com
0 siblings, 0 replies; only message in thread
From: dcb314 at hotmail dot com @ 2015-07-15 18:07 UTC (permalink / raw)
To: gcc-bugs
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.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-07-15 18:07 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-15 18:07 [Bug boehm-gc/66884] New: trunk/boehm-gc/cord/cordbscs.c:455: bad if ? dcb314 at hotmail dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).