diff options
author | Ryan Long <ryan.long@oarcorp.com> | 2022-08-16 11:59:09 -0500 |
---|---|---|
committer | Joel Sherrill <joel@rtems.org> | 2022-08-19 15:34:46 -0500 |
commit | df3fa4e0056aa46a4323ccc06fdffef1e1ffe721 (patch) | |
tree | cb71fb5937dacb50163a27566a55d11afbcf1cb2 | |
parent | linkersets.h: Fix gcc 12 warning (diff) | |
download | rtems-df3fa4e0056aa46a4323ccc06fdffef1e1ffe721.tar.bz2 |
interr.h: Fix gcc 12 warning
The warning that this fixes states that "ISO C restricts enumerator values to
range of 'int'."
Updates #4662
-rw-r--r-- | cpukit/include/rtems/score/interr.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cpukit/include/rtems/score/interr.h b/cpukit/include/rtems/score/interr.h index d3fb370ec3..0616220040 100644 --- a/cpukit/include/rtems/score/interr.h +++ b/cpukit/include/rtems/score/interr.h @@ -38,6 +38,8 @@ #ifndef _RTEMS_SCORE_INTERR_H #define _RTEMS_SCORE_INTERR_H +#include <limits.h> + #include <rtems/score/cpu.h> /** @@ -175,7 +177,7 @@ typedef enum { * This enum value ensures that the enum type needs at least 32-bits for * architectures with short enums. */ - RTEMS_FATAL_SOURCE_LAST = 0xffffffff + RTEMS_FATAL_SOURCE_LAST = INT_MAX } Internal_errors_Source; /** |