[Bf-blender-cvs] [7f15120e9c3] master: Cleanup: GCC warning in guardedalloc_overflow_test

Campbell Barton noreply at git.blender.org
Tue Aug 11 06:44:07 CEST 2020


Commit: 7f15120e9c30fd934dfff2a6771996e0724f988d
Author: Campbell Barton
Date:   Tue Aug 11 13:22:59 2020 +1000
Branches: master
https://developer.blender.org/rB7f15120e9c30fd934dfff2a6771996e0724f988d

Cleanup: GCC warning in guardedalloc_overflow_test

===================================================================

M	intern/guardedalloc/tests/guardedalloc_overflow_test.cc

===================================================================

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)



More information about the Bf-blender-cvs mailing list