mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2026-01-28 10:44:26 +01:00
Fixture C99 compliance on tricky macros for Spy & match core Unity version
Add CFLAGS in Fixture Makefile to catch C99 rules with '-pedantic'
This commit is contained in:
@@ -1,4 +1,8 @@
|
||||
CC = gcc
|
||||
CFLAGS += -Werror
|
||||
CFLAGS += -std=c99
|
||||
CFLAGS += -pedantic
|
||||
CFLAGS += -Wundef
|
||||
DEFINES = -D UNITY_OUTPUT_CHAR=UnityOutputCharSpy_OutputChar
|
||||
SRC = ../src/unity_fixture.c \
|
||||
../../../src/unity.c \
|
||||
@@ -11,5 +15,5 @@ INC_DIR = -I../src -I../../../src/
|
||||
TARGET = fixture_tests.exe
|
||||
|
||||
all:
|
||||
@ $(CC) $(DEFINES) $(SRC) $(INC_DIR) -o $(TARGET)
|
||||
@ ./$(TARGET)
|
||||
$(CC) $(CFLAGS) $(DEFINES) $(SRC) $(INC_DIR) -o $(TARGET)
|
||||
./$(TARGET)
|
||||
|
||||
Reference in New Issue
Block a user