summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2020-11-25 07:59:30 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2020-11-26 11:10:21 +0100
commitef8c4ebce778f63842b2f21b30cbe3c12e28b1a3 (patch)
tree3a72bd375345e01646810d430a5810eddb98c65b
parentrtems: Move "Set Errno" group to the API (diff)
downloadrtems-ef8c4ebce778f63842b2f21b30cbe3c12e28b1a3.tar.bz2
config: Clarify the use of pragmas
-rw-r--r--cpukit/include/rtems/confdefs/wkspace.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/cpukit/include/rtems/confdefs/wkspace.h b/cpukit/include/rtems/confdefs/wkspace.h
index 803d8bdc10..a08823fa17 100644
--- a/cpukit/include/rtems/confdefs/wkspace.h
+++ b/cpukit/include/rtems/confdefs/wkspace.h
@@ -137,7 +137,15 @@ const uintptr_t _Stack_Space_size = _CONFIGURE_STACK_SPACE_SIZE;
#if defined(CONFIGURE_TASK_STACK_ALLOCATOR) \
&& defined(CONFIGURE_TASK_STACK_DEALLOCATOR)
- /* Ignore potential warnings from the static assertions below */
+ /*
+ * Ignore the following warnings from g++ and clang in the static assertions
+ * below:
+ *
+ * warning: the address of 'f()' will never be NULL [-Waddress]
+ *
+ * warning: comparison of function 'f' not equal to a null pointer is always
+ * true [-Wtautological-pointer-compare]
+ */
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Waddress"
#pragma GCC diagnostic ignored "-Wpragmas"