Make XAPIAN_NONNULL a no-op for GCC 4.8
commitf8638ee2c1a020567221a180ff1c9328d2ade6a9
authorOlly Betts <olly@survex.com>
Tue, 3 Oct 2017 23:49:35 +0000 (4 12:49 +1300)
committerOlly Betts <olly@survex.com>
Tue, 3 Oct 2017 23:59:12 +0000 (4 12:59 +1300)
tree295f3da06e7d7edc6fa047de02db5b5b4af7f5e6
parent45817bea4b0cd0d3ccdcacd7d9c247ec81f60b52
Make XAPIAN_NONNULL a no-op for GCC 4.8

It seems to give false positive warnings:

In file included from ./common/submatch.h:24:0,
                 from matcher/multimatch.h:27,
                 from matcher/multimatch.cc:28:
./include/xapian/intrusive_ptr.h: In instantiation of ‘Xapian::Internal::intrusive_ptr_nonnull<T>& Xapian::Internal::intrusive_ptr_nonnull<T>::operator=(T*) [with T = Xapian::MSet::Internal]’:
matcher/multimatch.cc:318:16:   required from here
./include/xapian/intrusive_ptr.h:224:9: error: null argument where non-null required (argument 1) [-Werror=nonnull]
         this_type(rhs).swap(*this);
         ^
xapian-core/include/xapian/attributes.h