mirror of
https://github.com/MariaDB/server.git
synced 2025-01-15 19:42:28 +01:00
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
This commit is contained in:
parent
56bcb2b5c6
commit
29ec07a5b1
2 changed files with 2 additions and 2 deletions
|
@ -34,7 +34,7 @@ fi
|
||||||
|
|
||||||
commands=""
|
commands=""
|
||||||
# git clean -fdX removes all ignored (build) files
|
# git clean -fdX removes all ignored (build) files
|
||||||
if test -d .git
|
if test -d .git && test -d libmariadb/CMakeFiles
|
||||||
then
|
then
|
||||||
commands="\
|
commands="\
|
||||||
git clean -fdX
|
git clean -fdX
|
||||||
|
|
|
@ -145,7 +145,7 @@ elif [ "x$warning_mode" = "xmaintainer" ]; then
|
||||||
debug_extra_cflags="-g3"
|
debug_extra_cflags="-g3"
|
||||||
else
|
else
|
||||||
# Both C and C++ warnings
|
# 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
|
# For more warnings, uncomment the following line
|
||||||
# warnings="$warnings -Wshadow"
|
# warnings="$warnings -Wshadow"
|
||||||
|
|
Loading…
Reference in a new issue