Revert "Hide clang warnings when building tests"

Didn't work again, giving up for now.

This reverts commit c77b875e89.
This commit is contained in:
Erik Ekman 2020-07-03 18:25:54 +02:00
parent c77b875e89
commit d09c3e4f0b
2 changed files with 2 additions and 8 deletions

View file

@ -5,7 +5,7 @@ language: objective-c
os: osx os: osx
before_install: brew update before_install: brew update
install: brew install check && brew install make install: brew install check
script: make && gmake test script: make && make test

View file

@ -8,12 +8,6 @@ CHECK_PATH = /usr/local
LDFLAGS = -L$(CHECK_PATH)/lib `pkg-config check --libs` -lpthread `sh ../src/osflags $(TARGETOS) link` LDFLAGS = -L$(CHECK_PATH)/lib `pkg-config check --libs` -lpthread `sh ../src/osflags $(TARGETOS) link`
CFLAGS = -std=c99 -g -Wall -D$(OS) `pkg-config check --cflags` -I../src -I$(CHECK_PATH)/include -pedantic `sh ../src/osflags $(TARGETOS) cflags` CFLAGS = -std=c99 -g -Wall -D$(OS) `pkg-config check --cflags` -I../src -I$(CHECK_PATH)/include -pedantic `sh ../src/osflags $(TARGETOS) cflags`
# Hide clang warnings from check.h about "token pasting of ',' and __VA_ARGS__ is a GNU extension"
# and "'format' attribute argument not supported: gnu_printf"
ifeq (clang,$(findstring clang,$(CC)))
CFLAGS += -Wno-gnu-zero-variadic-macro-arguments -Wno-ignored-attributes
endif
all: $(TEST) all: $(TEST)
@LD_LIBRARY_PATH=${CHECK_PATH}/lib ./$(TEST) @LD_LIBRARY_PATH=${CHECK_PATH}/lib ./$(TEST)