summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel@rtems.org>2017-06-12 11:49:51 -0500
committerJoel Sherrill <joel@rtems.org>2017-06-21 12:50:30 -0500
commitd93181a0597f75b57f9735cbf67d72063f13fd89 (patch)
tree0d25332557164e8a7a26e5539b4c2df34627ee52
parentcapture/rtems-trace-buffer-vars.c: Fix duplicate const warning (diff)
downloadrtems-d93181a0597f75b57f9735cbf67d72063f13fd89.tar.bz2
malloctest/init.c: Disable check maximum size warning to allow error test case
-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 );