From d97e1a8336d5db7a690e11c2ba4c27a28ee8d3a1 Mon Sep 17 00:00:00 2001 From: BodgeMaster <> Date: Sat, 23 Jul 2022 10:54:05 +0200 Subject: [PATCH] Build system: Use -Wextra --- scripts/build.sh | 2 +- scripts/test.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/build.sh b/scripts/build.sh index cf354fa..643be55 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -26,7 +26,7 @@ if [ -z "$CXX" ]; then CXX="c++" fi if [ -z "$CXXFLAGS" ]; then - CXXFLAGS="-std=c++20 -Wall" + CXXFLAGS="-std=c++20 -Wall -Wextra" fi CXX_WITH_FLAGS="$CXX $CXXFLAGS" diff --git a/scripts/test.sh b/scripts/test.sh index 936c434..fc289e1 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -26,7 +26,7 @@ if [ -z "$CXX" ]; then CXX="c++" fi if [ -z "$CXXFLAGS" ]; then - CXXFLAGS="-std=c++20 -Wall" + CXXFLAGS="-std=c++20 -Wall -Wextra" fi CXX_WITH_FLAGS="$CXX $CXXFLAGS"