summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--testsuites/libtests/malloctest/init.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/testsuites/libtests/malloctest/init.c b/testsuites/libtests/malloctest/init.c
index fb22e4d76f..6be6c1c25d 100644
--- a/testsuites/libtests/malloctest/init.c
+++ b/testsuites/libtests/malloctest/init.c
@@ -1260,7 +1260,10 @@ rtems_task Init(
/*
* Verify case where block is too large to calloc.
*/
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Walloc-size-larger-than=N"
p1 = calloc( 1, SIZE_MAX );
+#pragma GCC diagnostic pop
if (p1) {
printf("ERROR on attempt to calloc SIZE_MAX block expected failure.");
free( p1 );