diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-08-11 06:22:59 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-08-11 06:22:59 +0300 |
commit | 7f15120e9c30fd934dfff2a6771996e0724f988d (patch) | |
tree | 006945df74bdb08b74ca279e140d54e6e5d25254 /intern/guardedalloc | |
parent | 0c0f972e86a2e38912114c5333f23f9effd37a3b (diff) |
Cleanup: GCC warning in guardedalloc_overflow_test
Diffstat (limited to 'intern/guardedalloc')
-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) |