From 7f15120e9c30fd934dfff2a6771996e0724f988d Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 11 Aug 2020 13:22:59 +1000 Subject: Cleanup: GCC warning in guardedalloc_overflow_test --- intern/guardedalloc/tests/guardedalloc_overflow_test.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'intern/guardedalloc') diff --git a/intern/guardedalloc/tests/guardedalloc_overflow_test.cc b/intern/guardedalloc/tests/guardedalloc_overflow_test.cc index bd47482d033..eb9a2a68cb0 100644 --- a/intern/guardedalloc/tests/guardedalloc_overflow_test.cc +++ b/intern/guardedalloc/tests/guardedalloc_overflow_test.cc @@ -11,6 +11,11 @@ # define ABORT_PREDICATE ::testing::KilledBySignal(SIGABRT) #endif +#ifdef __GNUC__ +/* Disable since it's the purpose of this test. */ +# pragma GCC diagnostic ignored "-Walloc-size-larger-than=" +#endif + namespace { void MallocArray(size_t len, size_t size) -- cgit v1.2.3