summaryrefslogtreecommitdiffstats
path: root/cpukit/include/rtems/confdefs
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2022-08-30 07:58:56 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2022-08-31 13:21:02 +0200
commitdad6d32271ea919e18abe3e18496ea88e282c53c (patch)
tree706b08542b0d13a1f69e9e8bdd836d011acc779c /cpukit/include/rtems/confdefs
parentlibtest: Fix warnings without a pragma (diff)
downloadrtems-dad6d32271ea919e18abe3e18496ea88e282c53c.tar.bz2
Fix pedanic warnings without a storage increase
Use RTEMS_ZERO_LENGTH_ARRAY for flexible array member. Update #4662.
Diffstat (limited to 'cpukit/include/rtems/confdefs')
-rw-r--r--cpukit/include/rtems/confdefs/scheduler.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/cpukit/include/rtems/confdefs/scheduler.h b/cpukit/include/rtems/confdefs/scheduler.h
index 84ca810fd7..8ac943921f 100644
--- a/cpukit/include/rtems/confdefs/scheduler.h
+++ b/cpukit/include/rtems/confdefs/scheduler.h
@@ -234,7 +234,17 @@ extern "C" {
#endif
#ifdef CONFIGURE_SCHEDULER
+ /*
+ * Ignore these warnings:
+ *
+ * - invalid use of structure with flexible array member
+ *
+ * - struct has no members
+ */
+ #pragma GCC diagnostic push
+ #pragma GCC diagnostic ignored "-Wpedantic"
CONFIGURE_SCHEDULER;
+ #pragma GCC diagnostic pop
#endif
const Scheduler_Control _Scheduler_Table[] = {