[PATCH] fixed warning related to spstdc17

zack liang zakthertemsdev at gmail.com
Sat Oct 21 01:36:50 UTC 2023


---
 cpukit/include/rtems/score/isrlock.h   | 1 +
 cpukit/include/rtems/score/scheduler.h | 1 +
 2 files changed, 2 insertions(+)

diff --git a/cpukit/include/rtems/score/isrlock.h b/cpukit/include/rtems/score/isrlock.h
index 7586624f9d..612f17a34d 100644
--- a/cpukit/include/rtems/score/isrlock.h
+++ b/cpukit/include/rtems/score/isrlock.h
@@ -70,6 +70,7 @@ extern "C" {
  * size of zero.  In C++ empty structures have a non-zero size.
  */
 typedef struct {
+void * dummy; 
 #if defined( RTEMS_SMP )
   SMP_lock_Control Lock;
 #endif
diff --git a/cpukit/include/rtems/score/scheduler.h b/cpukit/include/rtems/score/scheduler.h
index d0fe2a8626..fc6fde6252 100644
--- a/cpukit/include/rtems/score/scheduler.h
+++ b/cpukit/include/rtems/score/scheduler.h
@@ -316,6 +316,7 @@ typedef struct {
  * this structure at the begin of its context structure.
  */
 typedef struct Scheduler_Context {
+void * dummy;
 #if defined(RTEMS_SMP)
   /**
    * @brief Lock to protect this scheduler instance.
-- 
2.42.0



More information about the devel mailing list