Skip to content

Commit

Permalink
-Wextra only without USE_CPP
Browse files Browse the repository at this point in the history
  • Loading branch information
uecker committed Jun 28, 2024
1 parent c45c47e commit 15462e7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 15462e7

Please sign in to comment.