forked from Imagelibrary/rtems
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:
@@ -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;
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user