diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-05-05 20:30:21 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-05-05 23:03:46 +0300 |
commit | 4e7b64f4c034e1d11b8ada8f2ba7f48dcb2fa8d8 (patch) | |
tree | f5bd7d8c1a6e4969b11224477ab53788edcb00bf /tools/ci/flags/gccsnapshot.sh | |
parent | 704672e323f88c68690ae976233e7447c131c96c (diff) | |
download | manaplus-4e7b64f4c034e1d11b8ada8f2ba7f48dcb2fa8d8.tar.gz manaplus-4e7b64f4c034e1d11b8ada8f2ba7f48dcb2fa8d8.tar.bz2 manaplus-4e7b64f4c034e1d11b8ada8f2ba7f48dcb2fa8d8.tar.xz manaplus-4e7b64f4c034e1d11b8ada8f2ba7f48dcb2fa8d8.zip |
Switch build script to gcc-8.
Add gcc-8 build flags file.
Diffstat (limited to 'tools/ci/flags/gccsnapshot.sh')
-rwxr-xr-x | tools/ci/flags/gccsnapshot.sh | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/tools/ci/flags/gccsnapshot.sh b/tools/ci/flags/gccsnapshot.sh index c69e04bc2..65ba7b110 100755 --- a/tools/ci/flags/gccsnapshot.sh +++ b/tools/ci/flags/gccsnapshot.sh @@ -31,6 +31,7 @@ export CXXFLAGS="${CXXFLAGS} -Warray-bounds=2" # not for C++ #export CXXFLAGS="${CXXFLAGS} -Warray-temporaries" #export CXXFLAGS="${CXXFLAGS} -Wassign-intercept" +export CXXFLAGS="${CXXFLAGS} -Wattribute-alias" export CXXFLAGS="${CXXFLAGS} -Wattributes" # not for C++ #export CXXFLAGS="${CXXFLAGS} -Wbad-function-cast" @@ -49,8 +50,11 @@ export CXXFLAGS="${CXXFLAGS} -Wc++1z-compat" #export CXXFLAGS="${CXXFLAGS} -Wc90-c99-compat" #export CXXFLAGS="${CXXFLAGS} -Wc99-c11-compat" export CXXFLAGS="${CXXFLAGS} -Wcast-align" +export CXXFLAGS="${CXXFLAGS} -Wcast-function-type" +# probably fix in future +#export CXXFLAGS="${CXXFLAGS} -Wcast-align=strict" export CXXFLAGS="${CXXFLAGS} -Wcast-qual" -# +++ enable after. some warnings +# probably fix in future #export CXXFLAGS="${CXXFLAGS} -Wcatch-value=3" export CXXFLAGS="${CXXFLAGS} -Wchar-subscripts" # not for C++ @@ -81,11 +85,14 @@ export CXXFLAGS="${CXXFLAGS} -Wdeprecated" export CXXFLAGS="${CXXFLAGS} -Wdeprecated-declarations" # not for C++ #export CXXFLAGS="${CXXFLAGS} -Wdesignated-init" -export CXXFLAGS="${CXXFLAGS} -Wdisabled-optimization" +# disabled for now +#export CXXFLAGS="${CXXFLAGS} -Wdisabled-optimization" # not for C++ #export CXXFLAGS="${CXXFLAGS} -Wdiscarded-array-qualifiers" #export CXXFLAGS="${CXXFLAGS} -Wdiscarded-qualifiers" export CXXFLAGS="${CXXFLAGS} -Wdiv-by-zero" +# not for C++ +#export CXXFLAGS="${CXXFLAGS} -Wdo-subscript" # +++ need fix in future #export CXXFLAGS="${CXXFLAGS} -Wdouble-promotion" # not for C++ @@ -100,9 +107,7 @@ export CXXFLAGS="${CXXFLAGS} -Wenum-compare" export CXXFLAGS="${CXXFLAGS} -Werror-implicit-function-declaration" export CXXFLAGS="${CXXFLAGS} -Wexpansion-to-defined" export CXXFLAGS="${CXXFLAGS} -Wextra" - -# not in all snapshots. need return after -#export CXXFLAGS="${CXXFLAGS} -Wextra-semi" +export CXXFLAGS="${CXXFLAGS} -Wextra-semi" # +++ need fix in future #export CXXFLAGS="${CXXFLAGS} -Wfloat-conversion" # +++ need fix in future @@ -167,6 +172,7 @@ export CXXFLAGS="${CXXFLAGS} -Wmaybe-uninitialized" export CXXFLAGS="${CXXFLAGS} -Wmemset-elt-size" export CXXFLAGS="${CXXFLAGS} -Wmemset-transposed-args" export CXXFLAGS="${CXXFLAGS} -Wmisleading-indentation" +export CXXFLAGS="${CXXFLAGS} -Wmissing-attributes" export CXXFLAGS="${CXXFLAGS} -Wmissing-braces" export CXXFLAGS="${CXXFLAGS} -Wmissing-declarations" export CXXFLAGS="${CXXFLAGS} -Wmissing-field-initializers" @@ -266,11 +272,16 @@ export CXXFLAGS="${CXXFLAGS} -Wstrict-null-sentinel" # not for C++ #export CXXFLAGS="${CXXFLAGS} -Wstrict-prototypes" export CXXFLAGS="${CXXFLAGS} -Wstringop-overflow=4" +export CXXFLAGS="${CXXFLAGS} -Wstringop-truncation" #export CXXFLAGS="${CXXFLAGS} -Wstrict-selector-match" export CXXFLAGS="${CXXFLAGS} -Wsubobject-linkage" +# fix probably in future +#export CXXFLAGS="${CXXFLAGS} -Wsuggest-attribute=cold" # +++ ignoring #export CXXFLAGS="${CXXFLAGS} -Wsuggest-attribute=const" #export CXXFLAGS="${CXXFLAGS} -Wsuggest-attribute=format" +export CXXFLAGS="${CXXFLAGS} -Wsuggest-attribute=malloc" +export CXXFLAGS="${CXXFLAGS} -Wsuggest-attribute=malloc" export CXXFLAGS="${CXXFLAGS} -Wsuggest-attribute=noreturn" # +++ ignoring #export CXXFLAGS="${CXXFLAGS} -Wsuggest-attribute=pure" |