diff options
Diffstat (limited to 'intern/guardedalloc/tests/guardedalloc_overflow_test.cc')
-rw-r--r-- | intern/guardedalloc/tests/guardedalloc_overflow_test.cc | 5 |
1 files changed, 5 insertions, 0 deletions
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) |