forked from Imagelibrary/rtems
score/cpu/or1k/include/.../or1k-utility.h: enum value must be int
GCC gave the warning that "ISO C restricts enumerator values to range of 'int' before C23 [-Wpedantic]." Changed place holder value from 0xffffffff to 0x7fffffff.
This commit is contained in:
committed by
Kinsey Moore
parent
39d6c3bd26
commit
cc0823b2ca
@@ -338,7 +338,7 @@ typedef enum {
|
|||||||
OR1K_EXCPETION_RESERVED2 = 16,
|
OR1K_EXCPETION_RESERVED2 = 16,
|
||||||
OR1K_EXCPETION_RESERVED3 = 17,
|
OR1K_EXCPETION_RESERVED3 = 17,
|
||||||
MAX_EXCEPTIONS = 17,
|
MAX_EXCEPTIONS = 17,
|
||||||
OR1K_EXCEPTION_MAKE_ENUM_32_BIT = 0xffffffff
|
OR1K_EXCEPTION_MAKE_ENUM_32_BIT = 0x7fffffff
|
||||||
} OR1K_Symbolic_exception_name;
|
} OR1K_Symbolic_exception_name;
|
||||||
|
|
||||||
static inline uint32_t _OR1K_mfspr(uint32_t reg)
|
static inline uint32_t _OR1K_mfspr(uint32_t reg)
|
||||||
|
|||||||
Reference in New Issue
Block a user