Skip to content

Commit

Permalink
add additional makefile compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
no-lex committed Feb 7, 2025
1 parent 353d25c commit 861ddc6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,16 @@
# -std=c++20: compile to c++20 standard, needed for some std library functions
# -march=x86-64: compile only for x64 platforms (32 bit not officially supported)
# -Wall: show "all" level of compiler warnings (which is not actually all possible warnings)
# -Wextra: show "extra" level of compiler warnings (more than just -Wall)
# -Wsuggest-override: warn if base classes are missing required virtuals
# -Wpedantic: enforce ISO C++ standard (no compiler extensions)
# -Wno-cast-function-type: disables -Wextra warning for function casts (mainly in cubescript)

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

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

0 comments on commit 861ddc6

Please sign in to comment.