diff --git a/Makefile b/Makefile index dbc46fb1b87..8067be95af5 100644 --- a/Makefile +++ b/Makefile @@ -94,7 +94,12 @@ NVCC=nvcc OPTS=-Ofast LDFLAGS= -lm -pthread COMMON= -Iinclude/ -I3rdparty/stb/include -CFLAGS=-Wall -Wextra -Wno-unused-parameter -Wno-unknown-pragmas -fPIC -rdynamic +CFLAGS=-Wall -Wno-unused-parameter -Wno-unknown-pragmas -fPIC -rdynamic + +ifneq ($(USE_CPP), 1) +# C is not C++ +CFLAGS+=-Wextra +endif ifeq ($(DEBUG), 1) #OPTS= -O0 -g