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.
From-SVN: r251672
2017-09-04 Jonathan Wakely <jwakely@redhat.com>
+ 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.
+
Backport from mainline
2017-08-18 Jonathan Wakely <jwakely@redhat.com>
// NB: __n is permitted to be 0. The C++ standard says nothing
// about what the return value is when __n == 0.
pointer
- allocate(size_type __n, const void* = 0)
- {
+ allocate(size_type __n, const void* = static_cast<const void*>(0))
+ {
if (__n > this->max_size())
std::__throw_bad_alloc();