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

_______________________________________________
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Reply via email to