From da7e375cf98d287d688e61d9aaed08c202d945fa Mon Sep 17 00:00:00 2001 From: jsalling Date: Sat, 27 Aug 2016 16:15:00 -0500 Subject: [PATCH] Start building Unity & Fixture with C89 flags in continuous integration Remove stdint.h from the C89 build due to -pedantic warnings from type 'long long' and constants like UINTPTR_MAX = 18446744073709551615ULL --- .travis.yml | 1 + extras/fixture/test/Makefile | 9 +++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index d75cbd2..7e64a0c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,3 +7,4 @@ script: - make -s - cd ../extras/fixture/test && rake ci - make -s default noStdlibMalloc + - make -s C89 diff --git a/extras/fixture/test/Makefile b/extras/fixture/test/Makefile index e217f04..179b12a 100644 --- a/extras/fixture/test/Makefile +++ b/extras/fixture/test/Makefile @@ -38,10 +38,11 @@ noStdlibMalloc: $(BUILD_DIR) @ echo "build with noStdlibMalloc" ./$(TARGET) -C89: ../build/ - clang $(CFLAGS) $(DEFINES) $(SRC) $(INC_DIR) -o $(TARGET) -m32 -std=c89 - clang $(CFLAGS) $(DEFINES) $(SRC) $(INC_DIR) -o $(TARGET) -m32 \ - -D UNITY_EXCLUDE_STDLIB_MALLOC -std=c89 ; ./$(TARGET) +C89: CFLAGS += -D UNITY_EXCLUDE_STDINT_H # C89 did not have type 'long long', +C89: $(BUILD_DIR) + $(CC) $(CFLAGS) $(DEFINES) $(SRC) $(INC_DIR) -o $(TARGET) -std=c89 && ./$(TARGET) + $(CC) $(CFLAGS) $(DEFINES) $(SRC) $(INC_DIR) -o $(TARGET) -D UNITY_EXCLUDE_STDLIB_MALLOC -std=c89 + ./$(TARGET) clangEverything: clang $(CFLAGS) $(DEFINES) $(SRC) $(INC_DIR) -o $(TARGET) -Weverything