[PATCH v1 03/12] interr.h: Fix gcc 12 warning
Ryan Long
ryan.long at oarcorp.com
Tue Aug 16 20:11:50 UTC 2022
The warning that this fixes states that "ISO C restricts enumerator values to
range of 'int'."
Updates #4662
---
cpukit/include/rtems/score/interr.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cpukit/include/rtems/score/interr.h b/cpukit/include/rtems/score/interr.h
index d3fb370ec3..61233dce5f 100644
--- a/cpukit/include/rtems/score/interr.h
+++ b/cpukit/include/rtems/score/interr.h
@@ -175,7 +175,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;
/**
--
2.11.0
More information about the devel
mailing list