Fix reserved-identifier errors

These are reserved by the standard
This commit is contained in:
Ross Smyth
2025-07-09 15:17:56 -04:00
parent 1638627cb5
commit 8bac36463d
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ ifeq ($(findstring clang, $(CC)), clang)
E = -Weverything E = -Weverything
CFLAGS += $E -Wno-unknown-warning-option -Wno-missing-prototypes CFLAGS += $E -Wno-unknown-warning-option -Wno-missing-prototypes
CFLAGS += -Wno-unused-macros -Wno-padded -Wno-missing-noreturn CFLAGS += -Wno-unused-macros -Wno-padded -Wno-missing-noreturn
CFLAGS += -Wno-unsafe-buffer-usage -Wno-reserved-identifier CFLAGS += -Wno-unsafe-buffer-usage
endif endif
CFLAGS += -std=c99 -pedantic -Wall -Wextra -Werror CFLAGS += -std=c99 -pedantic -Wall -Wextra -Werror
#CFLAGS += -Wconversion #disabled because if falsely complains about the isinf and isnan macros #CFLAGS += -Wconversion #disabled because if falsely complains about the isinf and isnan macros
+3 -3
View File
@@ -61,7 +61,7 @@ void testUnitySizeInitializationReminder(void)
#ifndef UNITY_EXCLUDE_SETJMP_H #ifndef UNITY_EXCLUDE_SETJMP_H
jmp_buf AbortFrame; jmp_buf AbortFrame;
#endif #endif
} _Expected_Unity; } Expected_Unity;
#else #else
struct { struct {
const char* TestFile; const char* TestFile;
@@ -81,7 +81,7 @@ void testUnitySizeInitializationReminder(void)
#ifndef UNITY_EXCLUDE_SETJMP_H #ifndef UNITY_EXCLUDE_SETJMP_H
jmp_buf AbortFrame; jmp_buf AbortFrame;
#endif #endif
} _Expected_Unity; } Expected_Unity;
#endif #endif
/* Compare our fake structure's size to the actual structure's size. They /* Compare our fake structure's size to the actual structure's size. They
@@ -89,7 +89,7 @@ void testUnitySizeInitializationReminder(void)
* *
* This accounts for alignment, padding, and packing issues that might come * This accounts for alignment, padding, and packing issues that might come
* up between different architectures. */ * up between different architectures. */
TEST_ASSERT_EQUAL_MESSAGE(sizeof(_Expected_Unity), sizeof(Unity), message); TEST_ASSERT_EQUAL_MESSAGE(sizeof(Expected_Unity), sizeof(Unity), message);
} }
void testPassShouldEndImmediatelyWithPass(void) void testPassShouldEndImmediatelyWithPass(void)