File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 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
1519CXXFLAGS += -march=x86-64 -fsigned-char -fno-rtti -fpic
1620# -Ishared
1721CLIENT_INCLUDES = -Iengine $(INCLUDES ) ` sdl2-config --cflags `
You can’t perform that action at this time.
0 commit comments