diff --git a/test/test_primitive_array.cpp b/test/test_primitive_array.cpp index 840bf40e..2ef5ddea 100644 --- a/test/test_primitive_array.cpp +++ b/test/test_primitive_array.cpp @@ -13,7 +13,14 @@ // limitations under the License. #include +#if defined(__GNUC__) +# pragma GCC diagnostic push +# pragma GCC diagnostic ignored "-Wfree-nonheap-object" +#endif #include +#if defined(__GNUC__) +# pragma GCC diagnostic pop +#endif #include #include "sparrow/array.hpp"