summaryrefslogtreecommitdiffstats
path: root/cpukit
diff options
context:
space:
mode:
authorRyan Long <ryan.long@oarcorp.com>2022-08-16 11:59:09 -0500
committerJoel Sherrill <joel@rtems.org>2022-08-19 15:34:46 -0500
commitdf3fa4e0056aa46a4323ccc06fdffef1e1ffe721 (patch)
treecb71fb5937dacb50163a27566a55d11afbcf1cb2 /cpukit
parentlinkersets.h: Fix gcc 12 warning (diff)
downloadrtems-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
Diffstat (limited to 'cpukit')
-rw-r--r--cpukit/include/rtems/score/interr.h4
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;
/**