From 29ec07a5b1f301d04a798515e5b7c0587a32a737 Mon Sep 17 00:00:00 2001 From: Monty Date: Thu, 8 Jun 2023 15:50:50 +0300 Subject: [PATCH] Update BUILD scripts - Remove -Wimplicit-fallthrough=2 for gcc versions < 6 - Don't do git submodule update one fresh git clones This fixes an issue when using git 1.0 that gives errors on empty submodule directories --- BUILD/FINISH.sh | 2 +- BUILD/SETUP.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/BUILD/FINISH.sh b/BUILD/FINISH.sh index cc66ed09f5d..1b730dee377 100644 --- a/BUILD/FINISH.sh +++ b/BUILD/FINISH.sh @@ -34,7 +34,7 @@ fi commands="" # git clean -fdX removes all ignored (build) files -if test -d .git +if test -d .git && test -d libmariadb/CMakeFiles then commands="\ git clean -fdX diff --git a/BUILD/SETUP.sh b/BUILD/SETUP.sh index e51f9df6a6d..85b21da1521 100755 --- a/BUILD/SETUP.sh +++ b/BUILD/SETUP.sh @@ -145,7 +145,7 @@ elif [ "x$warning_mode" = "xmaintainer" ]; then debug_extra_cflags="-g3" else # Both C and C++ warnings - warnings="-Wall -Wextra -Wunused -Wwrite-strings -Wno-uninitialized -Wno-strict-aliasing -Wimplicit-fallthrough=2 -Wformat-security -Wvla" + warnings="-Wall -Wextra -Wunused -Wwrite-strings -Wno-uninitialized -Wno-strict-aliasing -Wformat-security -Wvla" # For more warnings, uncomment the following line # warnings="$warnings -Wshadow"