diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-01-04 01:43:42 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-01-04 01:43:42 +0300 |
commit | 65bccb4fc48707a8bcccedaa57a87468ad8b7349 (patch) | |
tree | 49d7821a48bd8545afb0f917cec185798f7e034c /build | |
parent | 2e82d3003315806076a53df23064ba744e491fc2 (diff) | |
download | manaplus-65bccb4fc48707a8bcccedaa57a87468ad8b7349.tar.gz manaplus-65bccb4fc48707a8bcccedaa57a87468ad8b7349.tar.bz2 manaplus-65bccb4fc48707a8bcccedaa57a87468ad8b7349.tar.xz manaplus-65bccb4fc48707a8bcccedaa57a87468ad8b7349.zip |
Add compiler flag -Wno-attributes for prevent warnings about packed attributes.
Diffstat (limited to 'build')
-rwxr-xr-x | build/bcmake | 2 | ||||
-rwxr-xr-x | build/bmake | 2 | ||||
-rwxr-xr-x | build/bmake0 | 3 | ||||
-rwxr-xr-x | build/bmake44 | 3 | ||||
-rwxr-xr-x | build/bmake45 | 3 | ||||
-rwxr-xr-x | build/bmake46 | 3 | ||||
-rwxr-xr-x | build/bmakedebug | 2 | ||||
-rwxr-xr-x | build/bmakedebugsdl2 | 2 | ||||
-rwxr-xr-x | build/bmakemem | 3 | ||||
-rwxr-xr-x | build/bmakespeed | 2 | ||||
-rwxr-xr-x | build/bmaketest | 2 | ||||
-rwxr-xr-x | build/dcmake | 2 | ||||
-rwxr-xr-x | build/gcc6flags.sh | 3 | ||||
-rwxr-xr-x | build/pcmake | 2 | ||||
-rwxr-xr-x | build/pmake | 2 | ||||
-rwxr-xr-x | build/pmake46 | 3 |
16 files changed, 23 insertions, 16 deletions
diff --git a/build/bcmake b/build/bcmake index ec0234367..4cfc60646 100755 --- a/build/bcmake +++ b/build/bcmake @@ -3,7 +3,7 @@ cd .. export PATH=/home/mingw/cross/i686-w64-mingw32/bin:/home/mingw/cross/bin:$PATH -export CXXFLAGS="-Wall -O5 -flto -fwhole-program -ffast-math -funswitch-loops -funsafe-loop-optimizations -std=gnu++0x" +export CXXFLAGS="-Wall -O5 -flto -fwhole-program -ffast-math -funswitch-loops -funsafe-loop-optimizations -std=gnu++0x -Wno-attributes" #export CXXFLAGS="-Wall -O5 -g1 -ffast-math -funswitch-loops -funsafe-loop-optimizations -std=gnu++0x" cmake -DCMAKE_TOOLCHAIN_FILE=build/toolchain.cmake . 2>build/make1.log diff --git a/build/bmake b/build/bmake index 231525118..292c8c7bf 100755 --- a/build/bmake +++ b/build/bmake @@ -13,7 +13,7 @@ export LANG=C export CXXFLAGS="-pedantic -ggdb3 -O3 -pipe -ffast-math \ -D_FORTIFY_SOURCE=2 \ -std=gnu++1z \ --fno-var-tracking" +-fno-var-tracking -Wno-attributes" source ./build/gcc6flags.sh diff --git a/build/bmake0 b/build/bmake0 index addcf9032..a8c44b597 100755 --- a/build/bmake0 +++ b/build/bmake0 @@ -26,7 +26,8 @@ export CXXFLAGS="-Wvariadic-macros -Wvla -Wredundant-decls \ -Wsign-promo -Wwrite-strings -D_FORTIFY_SOURCE=2 -Wc++11-compat -std=c++0x \ -Wdelete-non-virtual-dtor -Wmaybe-uninitialized -Wunused-local-typedefs \ -Wvector-operation-performance -Wfree-nonheap-object -Winvalid-memory-model \ --Wnarrowing -Wzero-as-null-pointer-constant" +-Wnarrowing -Wzero-as-null-pointer-constant \ +-Wno-attributes" autoreconf -i ./configure --prefix=$dir/run \ diff --git a/build/bmake44 b/build/bmake44 index a347dd7cb..06c8d8d9a 100755 --- a/build/bmake44 +++ b/build/bmake44 @@ -35,7 +35,8 @@ export CXXFLAGS="-Wmissing-field-initializers \ -Wempty-body -Wsign-compare -Wclobbered -Wcast-align -Wcast-qual \ -Wtype-limits -Wpointer-arith -Wundef -Wmissing-include-dirs \ -Wignored-qualifiers -Winit-self -pedantic -Wall -ggdb3 -O2 -pipe \ --Wpacked -Wshadow -D_FORTIFY_SOURCE=2" +-Wpacked -Wshadow -D_FORTIFY_SOURCE=2 \ +-Wno-attributes" autoreconf -i ./configure --prefix=$dir/run \ diff --git a/build/bmake45 b/build/bmake45 index 00cb09413..b7509087e 100755 --- a/build/bmake45 +++ b/build/bmake45 @@ -37,7 +37,8 @@ export CXXFLAGS="-Wunreachable-code -Wmissing-field-initializers \ -Wpacked -Wshadow -Wunused -Wsynth \ -Wbuiltin-macro-redefined -Wctor-dtor-privacy -Wdeprecated -Wextra \ -Wendif-labels -Wformat=1 -Wimport -Wnon-virtual-dtor -Wpsabi \ --Wsign-promo -Wwrite-strings -D_FORTIFY_SOURCE=2" +-Wsign-promo -Wwrite-strings -D_FORTIFY_SOURCE=2 \ +-Wno-attributes" autoreconf -i ./configure --prefix=$dir/run \ diff --git a/build/bmake46 b/build/bmake46 index a30b8550a..f6ee3b5f4 100755 --- a/build/bmake46 +++ b/build/bmake46 @@ -50,7 +50,8 @@ export CXXFLAGS="-Wvariadic-macros -Wvla -Wredundant-decls \ -Wstack-protector -Wshadow -Wunused -Wunused-macros -Wsynth \ -Wbuiltin-macro-redefined -Wctor-dtor-privacy -Wdeprecated -Wextra \ -Wendif-labels -Wformat=1 -Wimport -Wnon-virtual-dtor -Wpsabi \ --Wsign-promo -Wwrite-strings -D_FORTIFY_SOURCE=2 -Wc++0x-compat" +-Wsign-promo -Wwrite-strings -D_FORTIFY_SOURCE=2 -Wc++0x-compat \ +-Wno-attributes" autoreconf -i ./configure --prefix=$dir/run \ diff --git a/build/bmakedebug b/build/bmakedebug index c7c28b079..41ad0eb87 100755 --- a/build/bmakedebug +++ b/build/bmakedebug @@ -20,7 +20,7 @@ export CXXFLAGS="-pedantic -ggdb3 -O3 -pipe -ffast-math \ -fsanitize=nonnull-attribute -fsanitize=returns-nonnull-attribute -fsanitize=bool \ -fsanitize=enum -fsanitize=vptr -fsanitize=bounds-strict \ -std=gnu++1z \ --fno-var-tracking" +-fno-var-tracking -Wno-attributes" source ./build/gcc6flags.sh diff --git a/build/bmakedebugsdl2 b/build/bmakedebugsdl2 index cd564b4a4..d3bd476be 100755 --- a/build/bmakedebugsdl2 +++ b/build/bmakedebugsdl2 @@ -20,7 +20,7 @@ export CXXFLAGS="-pedantic -ggdb3 -O3 -pipe -ffast-math \ -fsanitize=nonnull-attribute -fsanitize=returns-nonnull-attribute -fsanitize=bool \ -fsanitize=enum -fsanitize=vptr \ -std=gnu++1z \ --fno-var-tracking" +-fno-var-tracking -Wno-attributes" source ./build/gcc6flags.sh diff --git a/build/bmakemem b/build/bmakemem index b8cb79dbf..e5de60ccf 100755 --- a/build/bmakemem +++ b/build/bmakemem @@ -36,7 +36,8 @@ export CXXFLAGS="-ggdb3 -O2 -pipe -ffast-math \ -Wunused-but-set-parameter -Wunused-but-set-variable -Wunused-function \ -Wunused-label -Wunused-parameter -Wunused-value -Wunused-variable \ -fsched-pressure \ --Wconditionally-supported -Wdate-time" +-Wconditionally-supported -Wdate-time \ +-Wno-attributes" autoreconf -i ./configure --prefix=$dir/run \ diff --git a/build/bmakespeed b/build/bmakespeed index ad0fec601..f9a3bc0bd 100755 --- a/build/bmakespeed +++ b/build/bmakespeed @@ -16,7 +16,7 @@ export CXXFLAGS="-pedantic -ggdb3 -O5 -pipe -ffast-math \ -funsafe-loop-optimizations -flto -fwhole-program \ -march=native -fsched-pressure -std=gnu++1z \ --fno-var-tracking" +-fno-var-tracking -Wno-attributes" source ./build/gcc6flags.sh diff --git a/build/bmaketest b/build/bmaketest index 6051a0922..6deff7d4c 100755 --- a/build/bmaketest +++ b/build/bmaketest @@ -12,7 +12,7 @@ export LANG=C export CXXFLAGS="-pedantic -ggdb3 -O3 -pipe -ffast-math \ -D_FORTIFY_SOURCE=2 \ -std=gnu++1z \ --fno-var-tracking" +-fno-var-tracking -Wno-attributes" source ./build/gcc6flags.sh diff --git a/build/dcmake b/build/dcmake index 9a1b61a93..96957472a 100755 --- a/build/dcmake +++ b/build/dcmake @@ -3,7 +3,7 @@ cd .. export PATH=/home/mingw/cross/i686-w64-mingw32/bin:/home/mingw/cross/bin:$PATH -export CXXFLAGS="-Wall -g1 -O2 -ffast-math -std=gnu++0x -funswitch-loops -funsafe-loop-optimizations" +export CXXFLAGS="-Wall -g1 -O2 -ffast-math -std=gnu++0x -funswitch-loops -funsafe-loop-optimizations -Wno-attributes" cmake -DCMAKE_TOOLCHAIN_FILE=build/toolchain.cmake . 2>build/make1.log make -j8 VERBOSE=1 2>>build/make.log diff --git a/build/gcc6flags.sh b/build/gcc6flags.sh index e3632a938..94e0cf6e4 100755 --- a/build/gcc6flags.sh +++ b/build/gcc6flags.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 warnings for padding +#export CXXFLAGS="${CXXFLAGS} -Wattributes" # not for C++ #export CXXFLAGS="${CXXFLAGS} -Wbad-function-cast" export CXXFLAGS="${CXXFLAGS} -Wbool-compare" diff --git a/build/pcmake b/build/pcmake index 543e906ce..fed0a4d68 100755 --- a/build/pcmake +++ b/build/pcmake @@ -3,7 +3,7 @@ cd .. export PATH=/home/mingw/cross/i686-w64-mingw32/bin:/home/mingw/cross/bin:$PATH -export CXXFLAGS="-Wall -g1 -O2 -pg -ffast-math -std=gnu++0x" +export CXXFLAGS="-Wall -g1 -O2 -pg -ffast-math -std=gnu++0x -Wno-attributes" cmake -DCMAKE_TOOLCHAIN_FILE=build/toolchain.cmake . 2>build/make1.log make -j8 VERBOSE=1 2>>build/make.log diff --git a/build/pmake b/build/pmake index e1cf775c9..f853353e1 100755 --- a/build/pmake +++ b/build/pmake @@ -10,7 +10,7 @@ export CXX=g++ export LANG=C -export CXXFLAGS="-g -pg -fno-inline -fno-omit-frame-pointer" +export CXXFLAGS="-g -pg -fno-inline -fno-omit-frame-pointer -Wno-attributes" autoreconf -i cd build/tmp diff --git a/build/pmake46 b/build/pmake46 index 9d8201306..2237158cc 100755 --- a/build/pmake46 +++ b/build/pmake46 @@ -19,7 +19,8 @@ export CXXFLAGS="-pg -fno-inline -Wunreachable-code -Wmissing-field-initializers -Wunused-parameter -Wredundant-decls -Wlogical-op \ -Wempty-body -Wsign-compare -Wclobbered -Wcast-align -Wcast-qual \ -Wtype-limits -Wpointer-arith -Wundef -Wmissing-include-dirs \ --Wignored-qualifiers -Winit-self -pedantic -Wall -ggdb3 -O2 -pipe" +-Wignored-qualifiers -Winit-self -pedantic -Wall -ggdb3 -O2 -pipe \ +-Wno-attributes" autoreconf -i ./configure --prefix=$dir/run \ |