commit fffe6bb569890cb139ef104d840545b2accc2a6a parent cbd021184ff8012a562946fc3d786038dc814db6 Author: Michael Savage <mikejsavage@gmail.com> Date: Thu Oct 6 20:16:51 +0300 Add some warnings and disable warnings in STB/relacy builds because they're so spammy Diffstat:
Makefile | | | 3 | +-- |
rules.mk | | | 2 | +- |
diff --git a/Makefile b/Makefile @@ -23,11 +23,10 @@ test_lockfree: relacy.cc COMMON_OBJS := log.o memory_arena.o work_queue.o immediate.o benchmark.o stb_truetype.o glsl.o # Compiler flags -WARNINGS := -Wall -Wextra -Wno-unused-parameter -Wno-unused-function # -Wconversion -Wold-style-casts +WARNINGS := -Wall -Wextra -Wno-unused-parameter -Wno-unused-function -Wconversion -Wshadow -Wcast-align -Wstrict-overflow CXXFLAGS += -std=c++11 -msse2 -fno-exceptions -fno-rtti -I. \ -O2 \ -ggdb3 -fno-omit-frame-pointer -fno-strict-aliasing -fno-strict-overflow \ - $(WARNINGS) \ -DGLFW_INCLUDE_NONE LDFLAGS += -lm -pthread diff --git a/rules.mk b/rules.mk @@ -24,7 +24,7 @@ $(MODULES): %.so: $(COMMON_OBJS) # The -M* stuff is for generating dependency lists %.o: %.cc .deps @echo -e "\e[1;32mbuilding $<\e[0m" - $(CXX) -c -o $@ $< -MMD -MP -MF .deps/$(subst /,_,$*).d $(CXXFLAGS) + $(CXX) -c -o $@ $< -MMD -MP -MF .deps/$(subst /,_,$*).d $(CXXFLAGS) $(WARNINGS) # Make sure .deps exists .deps: