summaryrefslogtreecommitdiffstats
path: root/testsuites/sptests/spfatal32/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'testsuites/sptests/spfatal32/init.c')
-rw-r--r--testsuites/sptests/spfatal32/init.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/testsuites/sptests/spfatal32/init.c b/testsuites/sptests/spfatal32/init.c
index 78dcfeb669..48979cebd8 100644
--- a/testsuites/sptests/spfatal32/init.c
+++ b/testsuites/sptests/spfatal32/init.c
@@ -7,7 +7,7 @@
#include "../spfatal_support/spfatal.h"
/*
- * Copyright (c) 2018 embedded brains GmbH. All rights reserved.
+ * Copyright (c) 2018 embedded brains GmbH & Co. KG
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -39,6 +39,11 @@
#define FATAL_ERROR_EXPECTED_SOURCE RTEMS_FATAL_SOURCE_INVALID_HEAP_FREE
#define FATAL_ERROR_EXPECTED_ERROR 1
+/*
+ * Disable for the specific test case.
+ */
+#pragma GCC diagnostic ignored "-Wfree-nonheap-object"
+
static void force_error(void)
{
uintptr_t invalid = 1;