diff options
author | Ryan Long <ryan.long@oarcorp.com> | 2022-08-16 11:59:48 -0500 |
---|---|---|
committer | Joel Sherrill <joel@rtems.org> | 2022-08-19 15:34:46 -0500 |
commit | c55bd160377f52548a9be1dea1a1261213fcd830 (patch) | |
tree | b7817b4f605fa613429eb9b44dac5951343e13b7 /cpukit/include/rtems/score/percpu.h | |
parent | interr.h: Fix gcc 12 warning (diff) | |
download | rtems-c55bd160377f52548a9be1dea1a1261213fcd830.tar.bz2 |
percpu.h: Add pragma for gcc 12 warning
Updates #4662
Diffstat (limited to '')
-rw-r--r-- | cpukit/include/rtems/score/percpu.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/cpukit/include/rtems/score/percpu.h b/cpukit/include/rtems/score/percpu.h index 24086cde86..fdd40e0a8b 100644 --- a/cpukit/include/rtems/score/percpu.h +++ b/cpukit/include/rtems/score/percpu.h @@ -262,6 +262,13 @@ typedef struct Per_CPU_Job { /** * @brief Per-CPU statistics. */ + +/* + * This was added to address the following warning: + * warning: struct has no members + */ +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wpedantic" typedef struct { #if defined( RTEMS_PROFILING ) /** @@ -330,6 +337,7 @@ typedef struct { uint64_t total_interrupt_time; #endif /* defined( RTEMS_PROFILING ) */ } Per_CPU_Stats; +#pragma GCC diagnostic pop /** * @brief Per-CPU watchdog header index. |