interr.h: Fix gcc 12 warning

The warning that this fixes states that "ISO C restricts enumerator values to
range of 'int'."

Updates #4662
This commit is contained in:
Ryan Long
2022-08-16 11:59:09 -05:00
committed by Joel Sherrill
parent f930206724
commit df3fa4e005

View File

@@ -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;
/**