This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/82039] -Wzero-as-null-pointer-constant triggers when calling std::allocate<...>::allocate
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 31 Aug 2017 16:46:09 +0000
- Subject: [Bug c++/82039] -Wzero-as-null-pointer-constant triggers when calling std::allocate<...>::allocate
- Auto-submitted: auto-generated
- References: <bug-82039-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82039
--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Thu Aug 31 16:45:37 2017
New Revision: 251570
URL: https://gcc.gnu.org/viewcvs?rev=251570&root=gcc&view=rev
Log:
PR c++/82039 suppress -Wzero-as-null-pointer-constant warning
PR c++/82039
* include/ext/new_allocator.h (__gnu_cxx::new_allocator::allocate):
Adjust null pointer constant to avoid warning.
Modified:
trunk/libstdc++-v3/ChangeLog
trunk/libstdc++-v3/include/ext/new_allocator.h