File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ CC = clang
1010endif
1111ifeq ($(findstring clang, $(CC ) ) , clang)
1212E = -Weverything
13- CFLAGS += $E -Wno-unknown-warning-option -Wno-missing-prototypes
13+ CFLAGS += $E -Wno-unknown-warning-option
1414CFLAGS += -Wno-unsafe-buffer-usage
1515endif
1616CFLAGS += -std=c99 -pedantic -Wall -Wextra -Werror
Original file line number Diff line number Diff line change @@ -72,6 +72,9 @@ static char putcharSpyBuffer[SPY_BUFFER_MAX];
7272static UNITY_COUNTER_TYPE indexSpyBuffer ;
7373static UNITY_COUNTER_TYPE putcharSpyEnabled ;
7474
75+ #pragma clang diagnostic push
76+ #pragma clang diagnostic ignored "-Wmissing-prototypes"
77+
7578void startPutcharSpy (void )
7679{
7780 indexSpyBuffer = 0 ;
@@ -133,6 +136,8 @@ void flushSpy(void)
133136 if (flushSpyEnabled ){ flushSpyCalls ++ ; }
134137}
135138
139+ #pragma clang diagnostic pop
140+
136141#define TEST_ASSERT_EQUAL_PRINT_NUMBERS (expected , actual ) do { \
137142 startPutcharSpy(); UnityPrintNumber((actual)); endPutcharSpy(); \
138143 TEST_ASSERT_EQUAL_STRING((expected), getBufferPutcharSpy()); \
@@ -149,3 +154,6 @@ void flushSpy(void)
149154 } while (0)
150155
151156#endif
157+
158+ #pragma clang diagnostic push
159+ #pragma clang diagnostic ignored "-Wmissing-prototypes"
You can’t perform that action at this time.
0 commit comments