Skip to content

Commit 861ddc6

Browse files
committed
add additional makefile compiler warnings
1 parent 353d25c commit 861ddc6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,16 @@
66
# -std=c++20: compile to c++20 standard, needed for some std library functions
77
# -march=x86-64: compile only for x64 platforms (32 bit not officially supported)
88
# -Wall: show "all" level of compiler warnings (which is not actually all possible warnings)
9+
# -Wextra: show "extra" level of compiler warnings (more than just -Wall)
10+
# -Wsuggest-override: warn if base classes are missing required virtuals
11+
# -Wpedantic: enforce ISO C++ standard (no compiler extensions)
12+
# -Wno-cast-function-type: disables -Wextra warning for function casts (mainly in cubescript)
913

1014
# -fsigned-char: have the `char` type be signed (as opposed to `uchar`)
1115
# -fno-rtti: disable runtime type interpretation, it's not used
1216
# -fpic: compile position independent code for library creation
1317

14-
CXXFLAGS ?= -ffast-math -Wall -Wsuggest-override -Wpedantic
18+
CXXFLAGS ?= -ffast-math -Wall -Wextra -Wsuggest-override -Wpedantic -Wno-cast-function-type -Wold-style-cast
1519
CXXFLAGS += -march=x86-64 -fsigned-char -fno-rtti -fpic
1620
#-Ishared
1721
CLIENT_INCLUDES= -Iengine $(INCLUDES) `sdl2-config --cflags`

0 commit comments

Comments
 (0)