On Mar 19 13:45, Peter Foley wrote:
> GCC 6.0+ can assert that this argument is nonnull.
> Remove the unnecessary check to fix a warning.
> 
> winsup/cygwin/ChangeLog
> malloc_wrapper.cc (posix_memalign): Remove always true nonnull check.

Eh, what?!?  How on earth can gcc assert memptr is always non-NULL?
An application can call posix_memalign(NULL, 4096, 4096) just fine,
can't it?  If so, *memptr = res crashes.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

Attachment: signature.asc
Description: PGP signature

Reply via email to