[Bug c++/82039] -Wzero-as-null-pointer-constant triggers when calling std::allocate<...>::allocate
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Sep 4 16:42:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82039
--- Comment #7 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Mon Sep 4 16:41:38 2017
New Revision: 251672
URL: https://gcc.gnu.org/viewcvs?rev=251672&root=gcc&view=rev
Log:
PR c++/82039 suppress -Wzero-as-null-pointer-constant warning
Backport from mainline
2017-08-31 Jonathan Wakely <jwakely@redhat.com>
PR c++/82039
* include/ext/new_allocator.h (__gnu_cxx::new_allocator::allocate):
Adjust null pointer constant to avoid warning.
Modified:
branches/gcc-5-branch/libstdc++-v3/ChangeLog
branches/gcc-5-branch/libstdc++-v3/include/ext/new_allocator.h
More information about the Gcc-bugs
mailing list