Skip to content

Commit f38b914

Browse files
committed
Remove custom GCC warn flags
To fix build error on macOS where g++ is actually clang++: error: unknown warning option '-Wstrict-null-sentinel' [-Werror,-Wunknown-warning-option] See also: - https://travis-ci.org/weisslj/cpp-optparse/jobs/292772674 - https://stackoverflow.com/questions/11714827/how-to-turn-on-literally-all-of-gccs-warnings - https://stackoverflow.com/questions/19535422/os-x-10-9-gcc-links-to-clang - https://docs.travis-ci.com/user/languages/c/#GCC-on-OS-X
1 parent 100d9fa commit f38b914

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
ifeq ($(WARN),1)
22
ifeq ($(CXX),g++)
3-
WARN_FLAGS = -O3 -g -Wall -Wextra -Wabi -Wctor-dtor-privacy -Wnon-virtual-dtor -Wreorder -Wstrict-null-sentinel -Woverloaded-virtual -Wshadow -Wcast-align -Wpointer-arith -Wwrite-strings -Wundef -Wredundant-decls -Werror # -Weffc++
3+
WARN_FLAGS = -O3 -g -Wall -Wextra -Werror # -Weffc++
44
else ifeq ($(CXX),clang++)
55
WARN_FLAGS = -O3 -g -Werror
66
else ifeq ($(CXX),icpc)

0 commit comments

Comments
 (0)