@@ -151,7 +151,7 @@ cxxflags.gcc.debug := -Og -f{stack-protector-all,no-omit-frame-pointer} # -D_GLI
151151cxxflags.gcc.release := -O3 -mtune=native -fno-{stack-protector,stack-clash-protection,move-loop-invariants} -falign-functions=64 -DNDEBUG ${cxxflags.gcc.asm.${ASM}}
152152cxxflags.gcc.sanitize := ${cxxflags.gcc.debug} -fsanitize=thread
153153cxxflags.gcc.sanitize2 := ${cxxflags.gcc.debug} -fsanitize=undefined,address
154- cxxflags.gcc := -march=native -f{no-plt,no-math-errno,finite-math-only,message-length=0} -W{all,extra,error,no-maybe-uninitialized} ${cxxflags.gcc.${BUILD}}
154+ cxxflags.gcc := -march=native -f{no-plt,no-math-errno,finite-math-only,message-length=0} -W{all,extra,error,no-maybe-uninitialized,no-unused-variable } ${cxxflags.gcc.${BUILD}}
155155ldflags.gcc.sanitize := ${ldflags.gcc.debug} -fsanitize=thread
156156ldflags.gcc.sanitize2 := ${ldflags.gcc.debug} -fsanitize=undefined,address
157157# ldflags.gcc := -fuse-ld=${use-ld.gcc} -Wl,--compress-debug-sections=zstd,-O2,--gc-sections ${ldflags.gcc.${BUILD}}
@@ -163,7 +163,7 @@ cxxflags.clang.debug := -O0 -fstack-protector-all $(and ${has_native},-march=nat
163163cxxflags.clang.release := -O3 -fno-stack-protector -falign-functions=64 -DNDEBUG $(and ${has_native},-march=native -mtune=native)
164164cxxflags.clang.sanitize := ${cxxflags.clang.debug} -fsanitize=thread
165165cxxflags.clang.sanitize2 := ${cxxflags.clang.debug} -fsanitize=undefined,address
166- cxxflags.clang := -stdlib=libstdc++ -f{no-plt,no-math-errno,finite-math-only,message-length=0} -W{all,extra,error} ${cxxflags.clang.${BUILD}}
166+ cxxflags.clang := -stdlib=libstdc++ -f{no-plt,no-math-errno,finite-math-only,message-length=0} -W{all,extra,error,no-unused-variable } ${cxxflags.clang.${BUILD}}
167167ldflags.clang.debug := -latomic # A work-around for clang bug.
168168ldflags.clang.sanitize := ${ldflags.clang.debug} -fsanitize=thread
169169ldflags.clang.sanitize2 := ${ldflags.clang.debug} -fsanitize=undefined,address
@@ -208,7 +208,6 @@ endif
208208exes := example tests benchmarks
209209
210210example_src := example.cc
211- ${build_dir}/example.o : cxxflags += -std=c++17 # example.cc uses c++17 features.
212211
213212tests_src := tests.cc
214213${build_dir}/tests.o : cppflags += -DBOOST_TEST_DYN_LINK=1
0 commit comments