summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rwxr-xr-xtools/ci/flags/gcc6.sh3
-rwxr-xr-xtools/ci/flags/gccsnapshot.sh3
-rwxr-xr-xtools/ci/jobs/clang38.sh2
-rwxr-xr-xtools/ci/jobs/clang39.sh2
-rwxr-xr-xtools/ci/jobs/clang39.sh_c++11.sh2
-rwxr-xr-xtools/ci/jobs/clang39_sdl2.sh2
-rwxr-xr-xtools/ci/jobs/clang40.sh2
-rwxr-xr-xtools/ci/jobs/gcc48_c++11.sh3
-rwxr-xr-xtools/ci/jobs/gcc49_c++11.sh3
-rwxr-xr-xtools/ci/jobs/gcc5.sh2
-rwxr-xr-xtools/ci/jobs/gcc5_c++11.sh2
-rwxr-xr-xtools/ci/jobs/gcc5_sanitize.sh3
-rwxr-xr-xtools/ci/jobs/gcc5_sanitize_tests.sh3
-rwxr-xr-xtools/ci/jobs/gcc5_sdl2.sh2
-rwxr-xr-xtools/ci/jobs/gcc5_sdl2_c++11.sh2
-rwxr-xr-xtools/ci/jobs/gcc5_sdl2_tests.sh2
-rwxr-xr-xtools/ci/jobs/gcc5_tarball.sh2
-rwxr-xr-xtools/ci/jobs/gcc5_tests.sh2
-rwxr-xr-xtools/ci/jobs/gcc6_lto.sh3
-rwxr-xr-xtools/ci/jobs/gcc6_tests.sh3
-rwxr-xr-xtools/ci/jobs/gccsnapshot.sh3
21 files changed, 30 insertions, 21 deletions
diff --git a/tools/ci/flags/gcc6.sh b/tools/ci/flags/gcc6.sh
index 095a878ab..c245ac72b 100755
--- a/tools/ci/flags/gcc6.sh
+++ b/tools/ci/flags/gcc6.sh
@@ -23,7 +23,8 @@ export CXXFLAGS="${CXXFLAGS} -Warray-bounds=2"
# not for C++
#export CXXFLAGS="${CXXFLAGS} -Warray-temporaries"
#export CXXFLAGS="${CXXFLAGS} -Wassign-intercept"
-export CXXFLAGS="${CXXFLAGS} -Wattributes"
+# show warning for padding
+#export CXXFLAGS="${CXXFLAGS} -Wattributes"
# not for C++
#export CXXFLAGS="${CXXFLAGS} -Wbad-function-cast"
export CXXFLAGS="${CXXFLAGS} -Wbool-compare"
diff --git a/tools/ci/flags/gccsnapshot.sh b/tools/ci/flags/gccsnapshot.sh
index 0a14cfb02..7297c3a8b 100755
--- a/tools/ci/flags/gccsnapshot.sh
+++ b/tools/ci/flags/gccsnapshot.sh
@@ -25,7 +25,8 @@ export CXXFLAGS="${CXXFLAGS} -Warray-bounds=2"
# not for C++
#export CXXFLAGS="${CXXFLAGS} -Warray-temporaries"
#export CXXFLAGS="${CXXFLAGS} -Wassign-intercept"
-export CXXFLAGS="${CXXFLAGS} -Wattributes"
+# show warning for padding
+#export CXXFLAGS="${CXXFLAGS} -Wattributes"
# not for C++
#export CXXFLAGS="${CXXFLAGS} -Wbad-function-cast"
export CXXFLAGS="${CXXFLAGS} -Wbool-compare"
diff --git a/tools/ci/jobs/clang38.sh b/tools/ci/jobs/clang38.sh
index 5399f4b27..7501f2b4f 100755
--- a/tools/ci/jobs/clang38.sh
+++ b/tools/ci/jobs/clang38.sh
@@ -17,7 +17,7 @@ export CXXFLAGS="-Weverything -Wno-documentation -Wno-padded -Wno-sign-conversio
-Wno-shorten-64-to-32 -Wno-missing-variable-declarations \
-Wno-disabled-macro-expansion -Wno-format-nonliteral -stdlib=libc++ \
-Wno-reserved-id-macro -Wno-packed -Wno-documentation-unknown-command \
--Wno-variadic-macros -Wno-double-promotion \
+-Wno-variadic-macros -Wno-double-promotion -Wno-attributes \
-Wpointer-bool-conversion"
do_init
diff --git a/tools/ci/jobs/clang39.sh b/tools/ci/jobs/clang39.sh
index 5a62a0941..cb090f151 100755
--- a/tools/ci/jobs/clang39.sh
+++ b/tools/ci/jobs/clang39.sh
@@ -17,7 +17,7 @@ export CXXFLAGS="-Weverything -Wno-documentation -Wno-padded -Wno-sign-conversio
-Wno-shorten-64-to-32 -Wno-missing-variable-declarations \
-Wno-disabled-macro-expansion -Wno-format-nonliteral -stdlib=libc++ \
-Wno-reserved-id-macro -Wno-packed -Wno-documentation-unknown-command \
--Wno-variadic-macros -Wno-double-promotion \
+-Wno-variadic-macros -Wno-double-promotion -Wno-attributes \
-Wpointer-bool-conversion"
do_init
diff --git a/tools/ci/jobs/clang39.sh_c++11.sh b/tools/ci/jobs/clang39.sh_c++11.sh
index ac44cdf49..9186eeddf 100755
--- a/tools/ci/jobs/clang39.sh_c++11.sh
+++ b/tools/ci/jobs/clang39.sh_c++11.sh
@@ -17,7 +17,7 @@ export CXXFLAGS="-Weverything -Wno-documentation -Wno-padded -Wno-sign-conversio
-Wno-shorten-64-to-32 -Wno-missing-variable-declarations \
-Wno-disabled-macro-expansion -Wno-format-nonliteral -stdlib=libc++ \
-Wno-reserved-id-macro -Wno-packed -Wno-documentation-unknown-command \
--Wno-variadic-macros -Wno-double-promotion \
+-Wno-variadic-macros -Wno-double-promotion -Wno-attributes \
-Wpointer-bool-conversion \
-O3 -std=c++11 -Wno-c++98-compat-pedantic"
diff --git a/tools/ci/jobs/clang39_sdl2.sh b/tools/ci/jobs/clang39_sdl2.sh
index d4a3ffe21..bdd09ff6a 100755
--- a/tools/ci/jobs/clang39_sdl2.sh
+++ b/tools/ci/jobs/clang39_sdl2.sh
@@ -17,7 +17,7 @@ export CXXFLAGS="-Weverything -Wno-documentation -Wno-padded -Wno-sign-conversio
-Wno-shorten-64-to-32 -Wno-missing-variable-declarations \
-Wno-disabled-macro-expansion -Wno-format-nonliteral -stdlib=libc++ \
-Wno-reserved-id-macro -Wno-packed -Wno-documentation-unknown-command \
--Wno-variadic-macros -Wno-double-promotion \
+-Wno-variadic-macros -Wno-double-promotion -Wno-attributes \
-Wpointer-bool-conversion"
do_init
diff --git a/tools/ci/jobs/clang40.sh b/tools/ci/jobs/clang40.sh
index f8042878f..fccf52618 100755
--- a/tools/ci/jobs/clang40.sh
+++ b/tools/ci/jobs/clang40.sh
@@ -17,7 +17,7 @@ export CXXFLAGS="-Weverything -Wno-documentation -Wno-padded -Wno-sign-conversio
-Wno-shorten-64-to-32 -Wno-missing-variable-declarations \
-Wno-disabled-macro-expansion -Wno-format-nonliteral -stdlib=libc++ \
-Wno-reserved-id-macro -Wno-packed -Wno-documentation-unknown-command \
--Wno-variadic-macros -Wno-double-promotion \
+-Wno-variadic-macros -Wno-double-promotion -Wno-attributes \
-Wpointer-bool-conversion"
do_init
diff --git a/tools/ci/jobs/gcc48_c++11.sh b/tools/ci/jobs/gcc48_c++11.sh
index 90490f8a0..5e894de7f 100755
--- a/tools/ci/jobs/gcc48_c++11.sh
+++ b/tools/ci/jobs/gcc48_c++11.sh
@@ -36,7 +36,8 @@ export CXXFLAGS="-ggdb3 -O2 -pipe -ffast-math \
-Woverlength-strings -Wpedantic -Wsign-compare -Wsizeof-pointer-memaccess \
-Wsuggest-attribute=format -Wtype-limits -Wuninitialized \
-Wunused-but-set-parameter -Wunused-but-set-variable -Wunused-function \
--Wunused-label -Wunused-parameter -Wunused-value -Wunused-variable"
+-Wunused-label -Wunused-parameter -Wunused-value -Wunused-variable \
+-Wno-attributes"
do_init
run_configure --enable-werror
diff --git a/tools/ci/jobs/gcc49_c++11.sh b/tools/ci/jobs/gcc49_c++11.sh
index 2ff8b6477..12165a232 100755
--- a/tools/ci/jobs/gcc49_c++11.sh
+++ b/tools/ci/jobs/gcc49_c++11.sh
@@ -37,7 +37,8 @@ export CXXFLAGS="-ggdb3 -O2 -pipe -ffast-math \
-Wsuggest-attribute=format -Wtype-limits -Wuninitialized \
-Wunused-but-set-parameter -Wunused-but-set-variable -Wunused-function \
-Wunused-label -Wunused-parameter -Wunused-value -Wunused-variable \
--fno-var-tracking -Woverloaded-virtual"
+-fno-var-tracking -Wno-attributes \
+-Woverloaded-virtual"
do_init
run_configure --enable-werror
diff --git a/tools/ci/jobs/gcc5.sh b/tools/ci/jobs/gcc5.sh
index 0fab3f9d4..edc8f90cf 100755
--- a/tools/ci/jobs/gcc5.sh
+++ b/tools/ci/jobs/gcc5.sh
@@ -39,7 +39,7 @@ export CXXFLAGS="-ggdb3 -O2 -pipe -ffast-math \
-Wunused-label -Wunused-parameter -Wunused-value -Wunused-variable -ftrapv \
-fsched-pressure \
-Wconditionally-supported -Wdate-time \
--fno-var-tracking \
+-fno-var-tracking -Wno-attributes \
-Wopenmp-simd -Wformat-signedness \
-Wswitch-bool -Wmemset-transposed-args -Wchkp -Wsized-deallocation \
-Wlogical-not-parentheses -Woverloaded-virtual \
diff --git a/tools/ci/jobs/gcc5_c++11.sh b/tools/ci/jobs/gcc5_c++11.sh
index 86bf0d470..16879aef9 100755
--- a/tools/ci/jobs/gcc5_c++11.sh
+++ b/tools/ci/jobs/gcc5_c++11.sh
@@ -39,7 +39,7 @@ export CXXFLAGS="-ggdb3 -O2 -pipe -ffast-math \
-Wunused-label -Wunused-parameter -Wunused-value -Wunused-variable -ftrapv \
-fsched-pressure \
-Wconditionally-supported -Wdate-time \
--fno-var-tracking \
+-fno-var-tracking -Wno-attributes \
-Wopenmp-simd -Wformat-signedness \
-Wswitch-bool -Wmemset-transposed-args -Wchkp -Wc++14-compat -Wsized-deallocation \
-Wlogical-not-parentheses -Woverloaded-virtual"
diff --git a/tools/ci/jobs/gcc5_sanitize.sh b/tools/ci/jobs/gcc5_sanitize.sh
index 624968ea2..0d188a3b0 100755
--- a/tools/ci/jobs/gcc5_sanitize.sh
+++ b/tools/ci/jobs/gcc5_sanitize.sh
@@ -51,7 +51,8 @@ export CXXFLAGS="-ggdb3 -O2 -pipe -ffast-math \
-Wc++14-compat -Wsized-deallocation -Wlogical-not-parentheses \
-Woverloaded-virtual -Warray-bounds -Wbool-compare -Wchar-subscripts \
-Wcomment -Wmissing-braces -Wnonnull -Wopenmp-simd -Wparentheses \
--Wreturn-type -Wsequence-point -Wswitch"
+-Wreturn-type -Wsequence-point -Wswitch \
+-Wno-attributes"
do_init
run_configure --enable-werror
diff --git a/tools/ci/jobs/gcc5_sanitize_tests.sh b/tools/ci/jobs/gcc5_sanitize_tests.sh
index b5b944780..66d4975b4 100755
--- a/tools/ci/jobs/gcc5_sanitize_tests.sh
+++ b/tools/ci/jobs/gcc5_sanitize_tests.sh
@@ -52,7 +52,8 @@ export CXXFLAGS="-ggdb3 -O2 -pipe -ffast-math \
-Wc++14-compat -Wsized-deallocation -Wlogical-not-parentheses \
-Woverloaded-virtual -Warray-bounds -Wbool-compare -Wchar-subscripts \
-Wcomment -Wmissing-braces -Wnonnull -Wopenmp-simd -Wparentheses \
--Wreturn-type -Wsequence-point -Wswitch"
+-Wreturn-type -Wsequence-point -Wswitch \
+-Wno-attributes"
do_init
run_configure --enable-unittests=yes $*
diff --git a/tools/ci/jobs/gcc5_sdl2.sh b/tools/ci/jobs/gcc5_sdl2.sh
index 8203459fe..40e6f4d2e 100755
--- a/tools/ci/jobs/gcc5_sdl2.sh
+++ b/tools/ci/jobs/gcc5_sdl2.sh
@@ -40,7 +40,7 @@ export CXXFLAGS="-ggdb3 -O2 -pipe -ffast-math \
-Wunused-label -Wunused-parameter -Wunused-value -Wunused-variable -ftrapv \
-fsched-pressure \
-Wconditionally-supported -Wdate-time \
--fno-var-tracking \
+-fno-var-tracking -Wno-attributes \
-Wopenmp-simd -Wformat-signedness \
-Wswitch-bool -Wmemset-transposed-args -Wchkp -Wsized-deallocation \
-Wlogical-not-parentheses \
diff --git a/tools/ci/jobs/gcc5_sdl2_c++11.sh b/tools/ci/jobs/gcc5_sdl2_c++11.sh
index b5809d0dd..4341221e6 100755
--- a/tools/ci/jobs/gcc5_sdl2_c++11.sh
+++ b/tools/ci/jobs/gcc5_sdl2_c++11.sh
@@ -40,7 +40,7 @@ export CXXFLAGS="-ggdb3 -O2 -pipe -ffast-math \
-Wunused-label -Wunused-parameter -Wunused-value -Wunused-variable -ftrapv \
-fsched-pressure \
-Wconditionally-supported -Wdate-time \
--fno-var-tracking \
+-fno-var-tracking -Wno-attributes \
-Wopenmp-simd -Wformat-signedness \
-Wswitch-bool -Wmemset-transposed-args -Wchkp -Wc++14-compat -Wsized-deallocation \
-Wlogical-not-parentheses"
diff --git a/tools/ci/jobs/gcc5_sdl2_tests.sh b/tools/ci/jobs/gcc5_sdl2_tests.sh
index 4d335a1ad..c44128562 100755
--- a/tools/ci/jobs/gcc5_sdl2_tests.sh
+++ b/tools/ci/jobs/gcc5_sdl2_tests.sh
@@ -40,7 +40,7 @@ export CXXFLAGS="-ggdb3 -O2 -pipe -ffast-math \
-Wunused-label -Wunused-parameter -Wunused-value -Wunused-variable -ftrapv \
-fsched-pressure \
-Wconditionally-supported -Wdate-time \
--fno-var-tracking \
+-fno-var-tracking -Wno-attributes \
-Wopenmp-simd -Wformat-signedness \
-Wswitch-bool -Wmemset-transposed-args -Wchkp -Wc++14-compat -Wsized-deallocation \
-Wlogical-not-parentheses -Woverloaded-virtual"
diff --git a/tools/ci/jobs/gcc5_tarball.sh b/tools/ci/jobs/gcc5_tarball.sh
index 508e8f307..604b0a995 100755
--- a/tools/ci/jobs/gcc5_tarball.sh
+++ b/tools/ci/jobs/gcc5_tarball.sh
@@ -39,7 +39,7 @@ export CXXFLAGS="-ggdb3 -O2 -pipe -ffast-math \
-Wunused-label -Wunused-parameter -Wunused-value -Wunused-variable -ftrapv \
-fsched-pressure \
-Wconditionally-supported -Wdate-time \
--fno-var-tracking \
+-fno-var-tracking -Wno-attributes \
-Wopenmp-simd -Wformat-signedness \
-Wswitch-bool -Wmemset-transposed-args -Wchkp -Wc++14-compat -Wsized-deallocation \
-Wlogical-not-parentheses -Woverloaded-virtual"
diff --git a/tools/ci/jobs/gcc5_tests.sh b/tools/ci/jobs/gcc5_tests.sh
index 4ebaadbeb..c5e95275e 100755
--- a/tools/ci/jobs/gcc5_tests.sh
+++ b/tools/ci/jobs/gcc5_tests.sh
@@ -40,7 +40,7 @@ export CXXFLAGS="-ggdb3 -O2 -pipe -ffast-math \
-Wunused-label -Wunused-parameter -Wunused-value -Wunused-variable -ftrapv \
-fsched-pressure \
-Wconditionally-supported -Wdate-time \
--fno-var-tracking \
+-fno-var-tracking -Wno-attributes \
-Wopenmp-simd -Wformat-signedness \
-Wswitch-bool -Wmemset-transposed-args -Wchkp -Wc++14-compat -Wsized-deallocation \
-Wlogical-not-parentheses -Woverloaded-virtual"
diff --git a/tools/ci/jobs/gcc6_lto.sh b/tools/ci/jobs/gcc6_lto.sh
index 0a638828f..53c484d59 100755
--- a/tools/ci/jobs/gcc6_lto.sh
+++ b/tools/ci/jobs/gcc6_lto.sh
@@ -12,7 +12,8 @@ aptget_install gcc-6 g++-6 \
libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev
export CXXFLAGS="-ggdb3 -pipe -ffast-math -O9 -flto -fwhole-program \
--fno-omit-frame-pointer -funswitch-loops -D_FORTIFY_SOURCE=2 -std=gnu++1z"
+-fno-omit-frame-pointer -funswitch-loops -D_FORTIFY_SOURCE=2 -std=gnu++1z \
+-Wno-attributes"
source ./tools/ci/flags/gcc6.sh
diff --git a/tools/ci/jobs/gcc6_tests.sh b/tools/ci/jobs/gcc6_tests.sh
index d91ea87fd..1a2fdb978 100755
--- a/tools/ci/jobs/gcc6_tests.sh
+++ b/tools/ci/jobs/gcc6_tests.sh
@@ -14,7 +14,8 @@ aptget_install gcc-6 g++-6 \
export CXXFLAGS="-pedantic -ggdb3 -O2 -pipe -Wstrict-aliasing=2 \
-Wstrict-overflow=1 -Wformat=1 -D_FORTIFY_SOURCE=2 \
--std=gnu++1z -Wformat=1"
+-std=gnu++1z -Wformat=1 \
+-Wno-attributes"
source ./tools/ci/flags/gcc6.sh
diff --git a/tools/ci/jobs/gccsnapshot.sh b/tools/ci/jobs/gccsnapshot.sh
index 70a0ff3f0..a32b0baf1 100755
--- a/tools/ci/jobs/gccsnapshot.sh
+++ b/tools/ci/jobs/gccsnapshot.sh
@@ -14,7 +14,8 @@ aptget_install gcc-snapshot \
export CXXFLAGS="-pedantic -ggdb3 -O2 -pipe -Wstrict-aliasing=2 \
-Wstrict-overflow=1 -Wformat=1 -D_FORTIFY_SOURCE=2 \
--std=gnu++1z -Wformat=1"
+-std=gnu++1z -Wformat=1 \
+-Wno-attributes"
source ./tools/ci/flags/gccsnapshot.sh