1
0
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:
jsalling
2015-12-22 12:40:31 -06:00
parent 5cc5e3473d
commit c5bfe0e100
2 changed files with 14 additions and 7 deletions

View File

@@ -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)