mirror of
https://git.themanaworld.org/mana/verse
synced 2026-08-16 04:23:07 -04:00
Covering every switch with default cases doesen't seem like good programming practice, -Wswitch seems reasonable (and enabled by -Wall, already).
42 lines
1.3 KiB
Bash
Executable file
42 lines
1.3 KiB
Bash
Executable file
#!/bin/sh
|
|
|
|
cd ..
|
|
|
|
dir=`pwd`
|
|
|
|
export CC=gcc
|
|
export CXX=g++
|
|
|
|
export LANG=C
|
|
|
|
export CXXFLAGS="-Wvariadic-macros -Wvla -Wredundant-decls \
|
|
-Wpacked-bitfield-compat -Wtrampolines \
|
|
-Wsuggest-attribute=noreturn -Wunused -Wstrict-aliasing=2 \
|
|
-fstrict-aliasing -Wunreachable-code -Wabi -Wdisabled-optimization \
|
|
-Wvolatile-register-var -Winvalid-pch -Wredundant-decls \
|
|
-Wnormalized=nfkc -Wmissing-format-attribute -Wmissing-noreturn \
|
|
-Wsign-promo -Waddress -Wmissing-declarations \
|
|
-Wctor-dtor-privacy -Wstrict-null-sentinel -Wlogical-op \
|
|
-Wcast-align -Wpointer-arith -Wundef \
|
|
-Wmissing-include-dirs -Winit-self -pedantic -Wall -ggdb3 -O0 -pipe \
|
|
-Wpacked -Wextra -Wstrict-overflow=1 -Wunknown-pragmas -Wwrite-strings \
|
|
-Wstack-protector -Wshadow -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++17-compat \
|
|
-Wdelete-non-virtual-dtor -Wmaybe-uninitialized -Wunused-local-typedefs \
|
|
-Wvector-operation-performance -Wfree-nonheap-object -Winvalid-memory-model \
|
|
-Wnarrowing -Wzero-as-null-pointer-constant \
|
|
-Wno-attributes"
|
|
|
|
autoreconf -i
|
|
./configure --prefix=$dir/run \
|
|
--datadir=$dir/run/share/games \
|
|
--bindir=$dir/run/bin \
|
|
--mandir=$dir/run/share/man
|
|
|
|
cd po
|
|
make -j5 update-gmo
|
|
cd ..
|
|
make -j5
|
|
|