Skip to content

Commit 8bac364

Browse files
committed
Fix reserved-identifier errors
These are reserved by the standard
1 parent 1638627 commit 8bac364

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

test/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ ifeq ($(findstring clang, $(CC)), clang)
1212
E = -Weverything
1313
CFLAGS += $E -Wno-unknown-warning-option -Wno-missing-prototypes
1414
CFLAGS += -Wno-unused-macros -Wno-padded -Wno-missing-noreturn
15-
CFLAGS += -Wno-unsafe-buffer-usage -Wno-reserved-identifier
15+
CFLAGS += -Wno-unsafe-buffer-usage
1616
endif
1717
CFLAGS += -std=c99 -pedantic -Wall -Wextra -Werror
1818
#CFLAGS += -Wconversion #disabled because if falsely complains about the isinf and isnan macros

test/tests/test_unity_core.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ void testUnitySizeInitializationReminder(void)
6161
#ifndef UNITY_EXCLUDE_SETJMP_H
6262
jmp_buf AbortFrame;
6363
#endif
64-
} _Expected_Unity;
64+
} Expected_Unity;
6565
#else
6666
struct {
6767
const char* TestFile;
@@ -81,15 +81,15 @@ void testUnitySizeInitializationReminder(void)
8181
#ifndef UNITY_EXCLUDE_SETJMP_H
8282
jmp_buf AbortFrame;
8383
#endif
84-
} _Expected_Unity;
84+
} Expected_Unity;
8585
#endif
8686

8787
/* Compare our fake structure's size to the actual structure's size. They
8888
* should be the same.
8989
*
9090
* This accounts for alignment, padding, and packing issues that might come
9191
* up between different architectures. */
92-
TEST_ASSERT_EQUAL_MESSAGE(sizeof(_Expected_Unity), sizeof(Unity), message);
92+
TEST_ASSERT_EQUAL_MESSAGE(sizeof(Expected_Unity), sizeof(Unity), message);
9393
}
9494

9595
void testPassShouldEndImmediatelyWithPass(void)

0 commit comments

Comments
 (0)