Cleanup: GCC warning in guardedalloc_overflow_test

This commit is contained in:
Campbell Barton 2020-08-11 13:22:59 +10:00
parent 0c0f972e86
commit 7f15120e9c
1 changed files with 5 additions and 0 deletions

View File

@ -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)