cvs commit: src/lib/libc/stdlib malloc.c
Peter Jeremy
peterjeremy at optushome.com.au
Wed Apr 5 19:12:53 UTC 2006
On Wed, 2006-Apr-05 18:46:24 +0000, Jason Evans wrote:
>jasone 2006-04-05 18:46:24 UTC
>
> FreeBSD src repository
>
> Modified files:
> lib/libc/stdlib malloc.c
> Log:
> Add an unreachable return statement, in order to avoid a compiler warning
> for non-standard optimization levels.
This just masks the problem. assert(0) is not guaranteed to abort the
program because you can disabled asserts using NDEBUG.
--
Peter Jeremy
More information about the cvs-src
mailing list