File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed
Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,6 @@ E = -Weverything
1313CFLAGS += $E -Wno-unknown-warning-option -Wno-missing-prototypes
1414CFLAGS += -Wno-unused-macros -Wno-padded -Wno-missing-noreturn
1515CFLAGS += -Wno-unsafe-buffer-usage -Wno-reserved-identifier
16- CFLAGS += -Wno-extra-semi-stmt
1716endif
1817CFLAGS += -std=c99 -pedantic -Wall -Wextra -Werror
1918# CFLAGS += -Wconversion #disabled because if falsely complains about the isinf and isnan macros
Original file line number Diff line number Diff line change @@ -133,19 +133,19 @@ void flushSpy(void)
133133 if (flushSpyEnabled ){ flushSpyCalls ++ ; }
134134}
135135
136- #define TEST_ASSERT_EQUAL_PRINT_NUMBERS (expected , actual ) { \
136+ #define TEST_ASSERT_EQUAL_PRINT_NUMBERS (expected , actual ) do { \
137137 startPutcharSpy(); UnityPrintNumber((actual)); endPutcharSpy(); \
138138 TEST_ASSERT_EQUAL_STRING((expected), getBufferPutcharSpy()); \
139- }
139+ } while (0)
140140
141- #define TEST_ASSERT_EQUAL_PRINT_UNSIGNED_NUMBERS (expected , actual ) { \
141+ #define TEST_ASSERT_EQUAL_PRINT_UNSIGNED_NUMBERS (expected , actual ) do { \
142142 startPutcharSpy(); UnityPrintNumberUnsigned((actual)); endPutcharSpy(); \
143143 TEST_ASSERT_EQUAL_STRING((expected), getBufferPutcharSpy()); \
144- }
144+ } while (0)
145145
146- #define TEST_ASSERT_EQUAL_PRINT_FLOATING (expected , actual ) { \
146+ #define TEST_ASSERT_EQUAL_PRINT_FLOATING (expected , actual ) do { \
147147 startPutcharSpy(); UnityPrintFloat((actual)); endPutcharSpy(); \
148148 TEST_ASSERT_EQUAL_STRING((expected), getBufferPutcharSpy()); \
149- }
149+ } while (0)
150150
151151#endif
You can’t perform that action at this time.
0 commit comments