D: [iurt_root_command] chroot warning: Macro expanded in comment on line 10: %{version}/%{name}-%{version}.tar.gz warning: %setup_compile_flags is deprecated, use %set_build_flags instead Installing /home/iurt/rpmbuild/SRPMS/monster-1.24-6.mga8.src.rpm Building target platforms: aarch64 Building for target aarch64 Executing(%prep): /bin/sh -e /home/iurt/rpmbuild/tmp/rpm-tmp.Q6LhaQ + umask 022 + cd /home/iurt/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/iurt/rpmbuild/BUILD + rm -rf monster-1.24 + /usr/bin/xz -dc /home/iurt/rpmbuild/SOURCES/monster-1.24.tar.xz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd monster-1.24 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/cat /home/iurt/rpmbuild/SOURCES/monster-1.24-mga-data-path.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /home/iurt/rpmbuild/SOURCES/monster-1.24-gcc7.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /home/iurt/rpmbuild/SOURCES/monster-1.24-allegra.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + sed -i s/-llua5.1/-llua/ src/Makefile.unix + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /home/iurt/rpmbuild/tmp/rpm-tmp.qsz5uQ + umask 022 + cd /home/iurt/rpmbuild/BUILD + cd monster-1.24 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables ' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables ' + export FCFLAGS + LDFLAGS=' -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags' + export LDFLAGS + make -C tgui-0.9 -f Makefile.unix make: Entering directory '/home/iurt/rpmbuild/BUILD/monster-1.24/tgui-0.9' g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -I. -c tgui.cpp g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c awidgets.cpp In file included from awidgets.cpp:4: TGUI/awidgets.h:21:24: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 21 | extern void aWgtInit() throw (std::bad_alloc); | ^~~~~ awidgets.cpp:39:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 39 | void aWgtInit() throw (std::bad_alloc) | ^~~~~ ar rc libtgui.a tgui.o awidgets.o ranlib libtgui.a g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables awexamp.cpp -o awexamp -L. -ltgui `allegro-config --libs` In file included from awexamp.cpp:5: TGUI/awidgets.h:21:24: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 21 | extern void aWgtInit() throw (std::bad_alloc); | ^~~~~ awexamp.cpp: In function 'int main()': awexamp.cpp:101:51: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 101 | AWgtFrame* frame = new AWgtFrame(0, 0, 400, 400, "Window", | ^~~~~~~~ awexamp.cpp:107:54: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 107 | AWgtFrame* frame2 = new AWgtFrame(50, 50, 400, 400, "Window 2", | ^~~~~~~~~~ awexamp.cpp:113:55: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 113 | AWgtButton* button = new AWgtButton(0, 0, -1, -1, 0, "Button", | ^~~~~~~~ awexamp.cpp:117:38: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 117 | AWgtText* text = new AWgtText(0, 0, "This is some text", | ^~~~~~~~~~~~~~~~~~~ awexamp.cpp:120:53: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 120 | AWgtCheckbox* checkbox = new AWgtCheckbox(0, 0, 0, "Checkbox", | ^~~~~~~~~~ awexamp.cpp:125:20: warning: ISO C++ forbids converting a string constant to 'std::vector::value_type' {aka 'char*'} [-Wwrite-strings] 125 | options.push_back("One"); | ^~~~~ awexamp.cpp:126:20: warning: ISO C++ forbids converting a string constant to 'std::vector::value_type' {aka 'char*'} [-Wwrite-strings] 126 | options.push_back("Number Two"); | ^~~~~~~~~~~~ awexamp.cpp:127:20: warning: ISO C++ forbids converting a string constant to 'std::vector::value_type' {aka 'char*'} [-Wwrite-strings] 127 | options.push_back("Three"); | ^~~~~~~ awexamp.cpp:128:20: warning: ISO C++ forbids converting a string constant to 'std::vector::value_type' {aka 'char*'} [-Wwrite-strings] 128 | options.push_back("And Four"); | ^~~~~~~~~~ make: Leaving directory '/home/iurt/rpmbuild/BUILD/monster-1.24/tgui-0.9' + /usr/bin/make -O -j8 V=1 VERBOSE=1 -C src -f Makefile.unix SHARED=1 make: Entering directory '/home/iurt/rpmbuild/BUILD/monster-1.24/src' g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -g -O2 -I/usr/include/lua5.1 -I../tgui-0.9 -c debug.cpp In file included from object.h:4, from graphics.h:11, from config.h:4, from debug.cpp:3: animation.h:19:54: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 19 | void saveFrame(BITMAP* bmp, int delay, PACKFILE* f) throw (WriteError); | ^~~~~ animation.h:20:25: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 20 | void save(PACKFILE* f) throw (WriteError); | ^~~~~ animation.h:22:3: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 22 | throw (ReadError); | ^~~~~ animation.h:23:25: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 23 | void load(PACKFILE* f) throw (std::bad_alloc, ReadError); | ^~~~~ animation.h:24:29: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 24 | void load(char *filename) throw (std::bad_alloc, ReadError); | ^~~~~ animation.h:31:3: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 31 | throw (std::bad_alloc); | ^~~~~ animation.h:55:37: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 55 | AnimationSet(const char* filename) throw (std::bad_alloc, ReadError); | ^~~~~ In file included from config.h:4, from debug.cpp:3: graphics.h:76:39: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 76 | Screen(ScreenDescriptor* wantedMode) throw (std::bad_alloc, NoMode); | ^~~~~ In file included from debug.cpp:3: config.h:52:14: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 52 | void read() throw (ReadError); | ^~~~~ config.h:53:15: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 53 | void write() throw (WriteError); | ^~~~~ make: Leaving directory '/home/iurt/rpmbuild/BUILD/monster-1.24/src' make: Entering directory '/home/iurt/rpmbuild/BUILD/monster-1.24/src' g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -g -O2 -I/usr/include/lua5.1 -I../tgui-0.9 -c battle_affects.cpp In file included from monster.h:7, from battle_affects.cpp:3: animation.h:19:54: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 19 | void saveFrame(BITMAP* bmp, int delay, PACKFILE* f) throw (WriteError); | ^~~~~ animation.h:20:25: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 20 | void save(PACKFILE* f) throw (WriteError); | ^~~~~ animation.h:22:3: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 22 | throw (ReadError); | ^~~~~ animation.h:23:25: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 23 | void load(PACKFILE* f) throw (std::bad_alloc, ReadError); | ^~~~~ animation.h:24:29: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 24 | void load(char *filename) throw (std::bad_alloc, ReadError); | ^~~~~ animation.h:31:3: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 31 | throw (std::bad_alloc); | ^~~~~ animation.h:55:37: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 55 | AnimationSet(const char* filename) throw (std::bad_alloc, ReadError); | ^~~~~ In file included from monster.h:8, from battle_affects.cpp:3: area.h:49:40: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 49 | void writeTile(int tile, PACKFILE* f) throw (WriteError); | ^~~~~ area.h:51:28: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 51 | void save(char* filename) throw (WriteError); | ^~~~~ area.h:54:30: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 54 | void addObject(Object* obj) throw (std::bad_alloc); | ^~~~~ area.h:58:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 58 | void initLua() throw (std::bad_alloc, ReadError, ScriptError); | ^~~~~ area.h:65:29: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 65 | Area(const char* filename) throw (std::bad_alloc, ReadError); | ^~~~~ area.h:71:14: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 71 | void load() throw (std::bad_alloc, ReadError); | ^~~~~ area.h:90:34: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 90 | extern void loadTileAnimations() throw (std::bad_alloc, ReadError); | ^~~~~ In file included from battle.h:6, from monster.h:9, from battle_affects.cpp:3: mwidgets.h:16:24: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 16 | extern void mWgtInit() throw (std::bad_alloc); | ^~~~~ In file included from config.h:4, from monster.h:12, from battle_affects.cpp:3: graphics.h:76:39: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 76 | Screen(ScreenDescriptor* wantedMode) throw (std::bad_alloc, NoMode); | ^~~~~ In file included from monster.h:12, from battle_affects.cpp:3: config.h:52:14: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 52 | void read() throw (ReadError); | ^~~~~ config.h:53:15: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 53 | void write() throw (WriteError); | ^~~~~ In file included from monster.h:17, from battle_affects.cpp:3: io.h:8:40: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 8 | extern void iputl(long l, PACKFILE *f) throw (WriteError); | ^~~~~ io.h:9:32: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 9 | extern long igetl(PACKFILE *f) throw (ReadError); | ^~~~~ io.h:10:46: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 10 | extern void my_pack_putc(int c, PACKFILE* f) throw (WriteError); | ^~~~~ io.h:11:38: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 11 | extern int my_pack_getc(PACKFILE* f) throw (ReadError); | ^~~~~ io.h:14:38: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 14 | extern char* readString(PACKFILE* f) throw (ReadError); | ^~~~~ io.h:15:47: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 15 | extern void writeString(char* s, PACKFILE* f) throw (WriteError); | ^~~~~ io.h:16:63: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 16 | extern void readStats(struct PlayerStats* stats, PACKFILE* f) throw (ReadError); | ^~~~~ io.h:17:64: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 17 | extern void writeStats(struct PlayerStats* stats, PACKFILE* f) throw (WriteError); | ^~~~~ io.h:18:54: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 18 | extern void readItem(struct Item* item, PACKFILE* f) throw (ReadError); | ^~~~~ io.h:19:55: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 19 | extern void writeItem(struct Item* item, PACKFILE* f) throw (WriteError); | ^~~~~ io.h:20:38: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 20 | extern void saveGame(char* filename) throw (WriteError); | ^~~~~ io.h:21:38: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 21 | extern void loadGame(char* filename) throw (ReadError); | ^~~~~ In file included from monster.h:18, from battle_affects.cpp:3: menu.h:5:28: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 5 | extern void loadMenuData() throw (ReadError); | ^~~~~ In file included from monster.h:23, from battle_affects.cpp:3: script.h:18:24: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 18 | extern void initGame() throw (ReadError, ScriptError); | ^~~~~ In file included from monster.h:27, from battle_affects.cpp:3: xml.h:16:26: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 16 | XMLData(char* filename) throw (ReadError); | ^~~~~ battle_affects.cpp: In constructor 'Slow1Affect::Slow1Affect()': battle_affects.cpp:22:31: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 22 | Slow1Affect() : BattleAffect("Slow1") { | ^~~~~~~ make: Leaving directory '/home/iurt/rpmbuild/BUILD/monster-1.24/src' make: Entering directory '/home/iurt/rpmbuild/BUILD/monster-1.24/src' g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -g -O2 -I/usr/include/lua5.1 -I../tgui-0.9 -c combatant.cpp In file included from monster.h:7, from combatant.cpp:1: animation.h:19:54: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 19 | void saveFrame(BITMAP* bmp, int delay, PACKFILE* f) throw (WriteError); | ^~~~~ animation.h:20:25: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 20 | void save(PACKFILE* f) throw (WriteError); | ^~~~~ animation.h:22:3: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 22 | throw (ReadError); | ^~~~~ animation.h:23:25: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 23 | void load(PACKFILE* f) throw (std::bad_alloc, ReadError); | ^~~~~ animation.h:24:29: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 24 | void load(char *filename) throw (std::bad_alloc, ReadError); | ^~~~~ animation.h:31:3: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 31 | throw (std::bad_alloc); | ^~~~~ animation.h:55:37: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 55 | AnimationSet(const char* filename) throw (std::bad_alloc, ReadError); | ^~~~~ In file included from monster.h:8, from combatant.cpp:1: area.h:49:40: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 49 | void writeTile(int tile, PACKFILE* f) throw (WriteError); | ^~~~~ area.h:51:28: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 51 | void save(char* filename) throw (WriteError); | ^~~~~ area.h:54:30: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 54 | void addObject(Object* obj) throw (std::bad_alloc); | ^~~~~ area.h:58:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 58 | void initLua() throw (std::bad_alloc, ReadError, ScriptError); | ^~~~~ area.h:65:29: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 65 | Area(const char* filename) throw (std::bad_alloc, ReadError); | ^~~~~ area.h:71:14: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 71 | void load() throw (std::bad_alloc, ReadError); | ^~~~~ area.h:90:34: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 90 | extern void loadTileAnimations() throw (std::bad_alloc, ReadError); | ^~~~~ In file included from battle.h:6, from monster.h:9, from combatant.cpp:1: mwidgets.h:16:24: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 16 | extern void mWgtInit() throw (std::bad_alloc); | ^~~~~ In file included from config.h:4, from monster.h:12, from combatant.cpp:1: graphics.h:76:39: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 76 | Screen(ScreenDescriptor* wantedMode) throw (std::bad_alloc, NoMode); | ^~~~~ In file included from monster.h:12, from combatant.cpp:1: config.h:52:14: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 52 | void read() throw (ReadError); | ^~~~~ config.h:53:15: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 53 | void write() throw (WriteError); | ^~~~~ In file included from monster.h:17, from combatant.cpp:1: io.h:8:40: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 8 | extern void iputl(long l, PACKFILE *f) throw (WriteError); | ^~~~~ io.h:9:32: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 9 | extern long igetl(PACKFILE *f) throw (ReadError); | ^~~~~ io.h:10:46: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 10 | extern void my_pack_putc(int c, PACKFILE* f) throw (WriteError); | ^~~~~ io.h:11:38: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 11 | extern int my_pack_getc(PACKFILE* f) throw (ReadError); | ^~~~~ io.h:14:38: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 14 | extern char* readString(PACKFILE* f) throw (ReadError); | ^~~~~ io.h:15:47: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 15 | extern void writeString(char* s, PACKFILE* f) throw (WriteError); | ^~~~~ io.h:16:63: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 16 | extern void readStats(struct PlayerStats* stats, PACKFILE* f) throw (ReadError); | ^~~~~ io.h:17:64: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 17 | extern void writeStats(struct PlayerStats* stats, PACKFILE* f) throw (WriteError); | ^~~~~ io.h:18:54: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 18 | extern void readItem(struct Item* item, PACKFILE* f) throw (ReadError); | ^~~~~ io.h:19:55: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 19 | extern void writeItem(struct Item* item, PACKFILE* f) throw (WriteError); | ^~~~~ io.h:20:38: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 20 | extern void saveGame(char* filename) throw (WriteError); | ^~~~~ io.h:21:38: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 21 | extern void loadGame(char* filename) throw (ReadError); | ^~~~~ In file included from monster.h:18, from combatant.cpp:1: menu.h:5:28: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 5 | extern void loadMenuData() throw (ReadError); | ^~~~~ In file included from monster.h:23, from combatant.cpp:1: script.h:18:24: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 18 | extern void initGame() throw (ReadError, ScriptError); | ^~~~~ In file included from monster.h:27, from combatant.cpp:1: xml.h:16:26: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 16 | XMLData(char* filename) throw (ReadError); | ^~~~~ make: Leaving directory '/home/iurt/rpmbuild/BUILD/monster-1.24/src' make: Entering directory '/home/iurt/rpmbuild/BUILD/monster-1.24/src' g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -g -O2 -I/usr/include/lua5.1 -I../tgui-0.9 -c enemy_combatant.cpp In file included from monster.h:7, from enemy_combatant.cpp:1: animation.h:19:54: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 19 | void saveFrame(BITMAP* bmp, int delay, PACKFILE* f) throw (WriteError); | ^~~~~ animation.h:20:25: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 20 | void save(PACKFILE* f) throw (WriteError); | ^~~~~ animation.h:22:3: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 22 | throw (ReadError); | ^~~~~ animation.h:23:25: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 23 | void load(PACKFILE* f) throw (std::bad_alloc, ReadError); | ^~~~~ animation.h:24:29: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 24 | void load(char *filename) throw (std::bad_alloc, ReadError); | ^~~~~ animation.h:31:3: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 31 | throw (std::bad_alloc); | ^~~~~ animation.h:55:37: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 55 | AnimationSet(const char* filename) throw (std::bad_alloc, ReadError); | ^~~~~ In file included from monster.h:8, from enemy_combatant.cpp:1: area.h:49:40: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 49 | void writeTile(int tile, PACKFILE* f) throw (WriteError); | ^~~~~ area.h:51:28: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 51 | void save(char* filename) throw (WriteError); | ^~~~~ area.h:54:30: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 54 | void addObject(Object* obj) throw (std::bad_alloc); | ^~~~~ area.h:58:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 58 | void initLua() throw (std::bad_alloc, ReadError, ScriptError); | ^~~~~ area.h:65:29: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 65 | Area(const char* filename) throw (std::bad_alloc, ReadError); | ^~~~~ area.h:71:14: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 71 | void load() throw (std::bad_alloc, ReadError); | ^~~~~ area.h:90:34: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 90 | extern void loadTileAnimations() throw (std::bad_alloc, ReadError); | ^~~~~ In file included from battle.h:6, from monster.h:9, from enemy_combatant.cpp:1: mwidgets.h:16:24: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 16 | extern void mWgtInit() throw (std::bad_alloc); | ^~~~~ In file included from config.h:4, from monster.h:12, from enemy_combatant.cpp:1: graphics.h:76:39: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 76 | Screen(ScreenDescriptor* wantedMode) throw (std::bad_alloc, NoMode); | ^~~~~ In file included from monster.h:12, from enemy_combatant.cpp:1: config.h:52:14: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 52 | void read() throw (ReadError); | ^~~~~ config.h:53:15: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 53 | void write() throw (WriteError); | ^~~~~ In file included from monster.h:17, from enemy_combatant.cpp:1: io.h:8:40: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 8 | extern void iputl(long l, PACKFILE *f) throw (WriteError); | ^~~~~ io.h:9:32: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 9 | extern long igetl(PACKFILE *f) throw (ReadError); | ^~~~~ io.h:10:46: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 10 | extern void my_pack_putc(int c, PACKFILE* f) throw (WriteError); | ^~~~~ io.h:11:38: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 11 | extern int my_pack_getc(PACKFILE* f) throw (ReadError); | ^~~~~ io.h:14:38: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 14 | extern char* readString(PACKFILE* f) throw (ReadError); | ^~~~~ io.h:15:47: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 15 | extern void writeString(char* s, PACKFILE* f) throw (WriteError); | ^~~~~ io.h:16:63: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 16 | extern void readStats(struct PlayerStats* stats, PACKFILE* f) throw (ReadError); | ^~~~~ io.h:17:64: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 17 | extern void writeStats(struct PlayerStats* stats, PACKFILE* f) throw (WriteError); | ^~~~~ io.h:18:54: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 18 | extern void readItem(struct Item* item, PACKFILE* f) throw (ReadError); | ^~~~~ io.h:19:55: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 19 | extern void writeItem(struct Item* item, PACKFILE* f) throw (WriteError); | ^~~~~ io.h:20:38: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 20 | extern void saveGame(char* filename) throw (WriteError); | ^~~~~ io.h:21:38: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 21 | extern void loadGame(char* filename) throw (ReadError); | ^~~~~ In file included from monster.h:18, from enemy_combatant.cpp:1: menu.h:5:28: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 5 | extern void loadMenuData() throw (ReadError); | ^~~~~ In file included from monster.h:23, from enemy_combatant.cpp:1: script.h:18:24: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 18 | extern void initGame() throw (ReadError, ScriptError); | ^~~~~ In file included from monster.h:27, from enemy_combatant.cpp:1: xml.h:16:26: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 16 | XMLData(char* filename) throw (ReadError); | ^~~~~ enemy_combatant.cpp: In member function 'void EnemyCombatant::init()': enemy_combatant.cpp:11:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 11 | debug_message("Loading global script...\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ enemy_combatant.cpp:12:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 12 | if (luaL_loadfile(luaState, getResource("scripts/global.%s", getScriptExtension()))) { | ^~~~~~~~~~~~~~~~~~~ enemy_combatant.cpp:17:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 17 | debug_message("Running global script...\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ enemy_combatant.cpp:24:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 24 | debug_message("Loading global enemy script...\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ enemy_combatant.cpp:25:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 25 | if (luaL_loadfile(luaState, getResource("enemy_scripts/global.%s", getScriptExtension()))) { | ^~~~~~~~~~~~~~~~~~~~~~~~~ enemy_combatant.cpp:30:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 30 | debug_message("Running global enemy script...\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ enemy_combatant.cpp:37:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 37 | debug_message("Loading enemy script...\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ enemy_combatant.cpp:38:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 38 | if (luaL_loadfile(luaState, getResource("enemy_scripts/%s.%s", name, getScriptExtension()))) { | ^~~~~~~~~~~~~~~~~~~~~ enemy_combatant.cpp:43:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 43 | debug_message("Running enemy script...\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ enemy_combatant.cpp:52:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 52 | animSet = new AnimationSet(getResource("enemy_animations/%s.anims", name)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ make: Leaving directory '/home/iurt/rpmbuild/BUILD/monster-1.24/src' make: Entering directory '/home/iurt/rpmbuild/BUILD/monster-1.24/src' g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -g -O2 -I/usr/include/lua5.1 -I../tgui-0.9 -c animation.cpp In file included from animation.cpp:5: animation.h:19:54: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 19 | void saveFrame(BITMAP* bmp, int delay, PACKFILE* f) throw (WriteError); | ^~~~~ animation.h:20:25: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 20 | void save(PACKFILE* f) throw (WriteError); | ^~~~~ animation.h:22:3: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 22 | throw (ReadError); | ^~~~~ animation.h:23:25: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 23 | void load(PACKFILE* f) throw (std::bad_alloc, ReadError); | ^~~~~ animation.h:24:29: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 24 | void load(char *filename) throw (std::bad_alloc, ReadError); | ^~~~~ animation.h:31:3: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 31 | throw (std::bad_alloc); | ^~~~~ animation.h:55:37: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 55 | AnimationSet(const char* filename) throw (std::bad_alloc, ReadError); | ^~~~~ In file included from monster.h:8, from io.h:6, from animation.cpp:7: area.h:49:40: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 49 | void writeTile(int tile, PACKFILE* f) throw (WriteError); | ^~~~~ area.h:51:28: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 51 | void save(char* filename) throw (WriteError); | ^~~~~ area.h:54:30: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 54 | void addObject(Object* obj) throw (std::bad_alloc); | ^~~~~ area.h:58:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 58 | void initLua() throw (std::bad_alloc, ReadError, ScriptError); | ^~~~~ area.h:65:29: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 65 | Area(const char* filename) throw (std::bad_alloc, ReadError); | ^~~~~ area.h:71:14: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 71 | void load() throw (std::bad_alloc, ReadError); | ^~~~~ area.h:90:34: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 90 | extern void loadTileAnimations() throw (std::bad_alloc, ReadError); | ^~~~~ In file included from battle.h:6, from monster.h:9, from io.h:6, from animation.cpp:7: mwidgets.h:16:24: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 16 | extern void mWgtInit() throw (std::bad_alloc); | ^~~~~ In file included from config.h:4, from monster.h:12, from io.h:6, from animation.cpp:7: graphics.h:76:39: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 76 | Screen(ScreenDescriptor* wantedMode) throw (std::bad_alloc, NoMode); | ^~~~~ In file included from monster.h:12, from io.h:6, from animation.cpp:7: config.h:52:14: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 52 | void read() throw (ReadError); | ^~~~~ config.h:53:15: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 53 | void write() throw (WriteError); | ^~~~~ In file included from monster.h:18, from io.h:6, from animation.cpp:7: menu.h:5:28: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 5 | extern void loadMenuData() throw (ReadError); | ^~~~~ In file included from monster.h:23, from io.h:6, from animation.cpp:7: script.h:18:24: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 18 | extern void initGame() throw (ReadError, ScriptError); | ^~~~~ In file included from monster.h:27, from io.h:6, from animation.cpp:7: xml.h:16:26: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 16 | XMLData(char* filename) throw (ReadError); | ^~~~~ In file included from animation.cpp:7: io.h:8:40: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 8 | extern void iputl(long l, PACKFILE *f) throw (WriteError); | ^~~~~ io.h:9:32: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 9 | extern long igetl(PACKFILE *f) throw (ReadError); | ^~~~~ io.h:10:46: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 10 | extern void my_pack_putc(int c, PACKFILE* f) throw (WriteError); | ^~~~~ io.h:11:38: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 11 | extern int my_pack_getc(PACKFILE* f) throw (ReadError); | ^~~~~ io.h:14:38: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 14 | extern char* readString(PACKFILE* f) throw (ReadError); | ^~~~~ io.h:15:47: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 15 | extern void writeString(char* s, PACKFILE* f) throw (WriteError); | ^~~~~ io.h:16:63: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 16 | extern void readStats(struct PlayerStats* stats, PACKFILE* f) throw (ReadError); | ^~~~~ io.h:17:64: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 17 | extern void writeStats(struct PlayerStats* stats, PACKFILE* f) throw (WriteError); | ^~~~~ io.h:18:54: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 18 | extern void readItem(struct Item* item, PACKFILE* f) throw (ReadError); | ^~~~~ io.h:19:55: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 19 | extern void writeItem(struct Item* item, PACKFILE* f) throw (WriteError); | ^~~~~ io.h:20:38: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 20 | extern void saveGame(char* filename) throw (WriteError); | ^~~~~ io.h:21:38: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 21 | extern void loadGame(char* filename) throw (ReadError); | ^~~~~ animation.cpp:44:64: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 44 | void Animation::saveFrame(BITMAP* bmp, int delay, PACKFILE* f) throw (WriteError) | ^~~~~ animation.cpp:60:35: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 60 | void Animation::save(PACKFILE* f) throw (WriteError) | ^~~~~ animation.cpp:72:80: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 72 | void Animation::loadFrame(int w, int h, BITMAP* dest, int* delay, PACKFILE* f) throw (ReadError) | ^~~~~ animation.cpp:86:38: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 86 | void Animation::load(char *filename) throw (std::bad_alloc, ReadError) | ^~~~~ animation.cpp:97:35: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 97 | void Animation::load(PACKFILE* f) throw (std::bad_alloc, ReadError) | ^~~~~ animation.cpp:178:79: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 178 | Animation::Animation(char* name, int numFrames, BITMAP** frames, int* delays) throw (std::bad_alloc) : | ^~~~~ animation.cpp: In member function 'bool AnimationSet::setSubAnimation(const char*)': animation.cpp:260:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 260 | debug_message("Set sub animation to %s\n", subName); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ animation.cpp: At global scope: animation.cpp:303:50: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 303 | AnimationSet::AnimationSet(const char* filename) throw (std::bad_alloc, ReadError) : | ^~~~~ animation.cpp: In constructor 'AnimationSet::AnimationSet(const char*)': animation.cpp:346:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 346 | debug_message("Animation set %s loaded\n", filename); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ make: Leaving directory '/home/iurt/rpmbuild/BUILD/monster-1.24/src' make: Entering directory '/home/iurt/rpmbuild/BUILD/monster-1.24/src' g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -g -O2 -I/usr/include/lua5.1 -I../tgui-0.9 -c area.cpp In file included from monster.h:7, from area.cpp:3: animation.h:19:54: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 19 | void saveFrame(BITMAP* bmp, int delay, PACKFILE* f) throw (WriteError); | ^~~~~ animation.h:20:25: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 20 | void save(PACKFILE* f) throw (WriteError); | ^~~~~ animation.h:22:3: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 22 | throw (ReadError); | ^~~~~ animation.h:23:25: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 23 | void load(PACKFILE* f) throw (std::bad_alloc, ReadError); | ^~~~~ animation.h:24:29: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 24 | void load(char *filename) throw (std::bad_alloc, ReadError); | ^~~~~ animation.h:31:3: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 31 | throw (std::bad_alloc); | ^~~~~ animation.h:55:37: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 55 | AnimationSet(const char* filename) throw (std::bad_alloc, ReadError); | ^~~~~ In file included from monster.h:8, from area.cpp:3: area.h:49:40: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 49 | void writeTile(int tile, PACKFILE* f) throw (WriteError); | ^~~~~ area.h:51:28: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 51 | void save(char* filename) throw (WriteError); | ^~~~~ area.h:54:30: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 54 | void addObject(Object* obj) throw (std::bad_alloc); | ^~~~~ area.h:58:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 58 | void initLua() throw (std::bad_alloc, ReadError, ScriptError); | ^~~~~ area.h:65:29: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 65 | Area(const char* filename) throw (std::bad_alloc, ReadError); | ^~~~~ area.h:71:14: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 71 | void load() throw (std::bad_alloc, ReadError); | ^~~~~ area.h:90:34: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 90 | extern void loadTileAnimations() throw (std::bad_alloc, ReadError); | ^~~~~ In file included from battle.h:6, from monster.h:9, from area.cpp:3: mwidgets.h:16:24: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 16 | extern void mWgtInit() throw (std::bad_alloc); | ^~~~~ In file included from config.h:4, from monster.h:12, from area.cpp:3: graphics.h:76:39: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 76 | Screen(ScreenDescriptor* wantedMode) throw (std::bad_alloc, NoMode); | ^~~~~ In file included from monster.h:12, from area.cpp:3: config.h:52:14: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 52 | void read() throw (ReadError); | ^~~~~ config.h:53:15: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 53 | void write() throw (WriteError); | ^~~~~ In file included from monster.h:17, from area.cpp:3: io.h:8:40: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 8 | extern void iputl(long l, PACKFILE *f) throw (WriteError); | ^~~~~ io.h:9:32: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 9 | extern long igetl(PACKFILE *f) throw (ReadError); | ^~~~~ io.h:10:46: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 10 | extern void my_pack_putc(int c, PACKFILE* f) throw (WriteError); | ^~~~~ io.h:11:38: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 11 | extern int my_pack_getc(PACKFILE* f) throw (ReadError); | ^~~~~ io.h:14:38: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 14 | extern char* readString(PACKFILE* f) throw (ReadError); | ^~~~~ io.h:15:47: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 15 | extern void writeString(char* s, PACKFILE* f) throw (WriteError); | ^~~~~ io.h:16:63: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 16 | extern void readStats(struct PlayerStats* stats, PACKFILE* f) throw (ReadError); | ^~~~~ io.h:17:64: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 17 | extern void writeStats(struct PlayerStats* stats, PACKFILE* f) throw (WriteError); | ^~~~~ io.h:18:54: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 18 | extern void readItem(struct Item* item, PACKFILE* f) throw (ReadError); | ^~~~~ io.h:19:55: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 19 | extern void writeItem(struct Item* item, PACKFILE* f) throw (WriteError); | ^~~~~ io.h:20:38: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 20 | extern void saveGame(char* filename) throw (WriteError); | ^~~~~ io.h:21:38: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 21 | extern void loadGame(char* filename) throw (ReadError); | ^~~~~ In file included from monster.h:18, from area.cpp:3: menu.h:5:28: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 5 | extern void loadMenuData() throw (ReadError); | ^~~~~ In file included from monster.h:23, from area.cpp:3: script.h:18:24: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 18 | extern void initGame() throw (ReadError, ScriptError); | ^~~~~ In file included from monster.h:27, from area.cpp:3: xml.h:16:26: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 16 | XMLData(char* filename) throw (ReadError); | ^~~~~ area.cpp:33:27: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 33 | void loadTileAnimations() throw (std::bad_alloc, ReadError) | ^~~~~ area.cpp: In function 'void loadTileAnimations()': area.cpp:35:51: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 35 | DATAFILE* dat = load_datafile_object(getResource("tilemap.dat"), | ^~~~~~~~~~~~~ area.cpp:38:17: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 38 | debug_message("Error loading tilemap.\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ area.cpp: At global scope: area.cpp:497:45: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 497 | void Area::writeTile(int tile, PACKFILE* f) throw (WriteError) | ^~~~~ area.cpp:525:33: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 525 | void Area::save(char *filename) throw (WriteError) | ^~~~~ area.cpp:587:35: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 587 | void Area::addObject(Object* obj) throw (std::bad_alloc) | ^~~~~ area.cpp:705:22: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 705 | void Area::initLua() throw (std::bad_alloc, ReadError, ScriptError) | ^~~~~ area.cpp: In member function 'void Area::initLua()': area.cpp:713:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 713 | debug_message("Loading global script...\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ area.cpp:714:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 714 | if (luaL_loadfile(luaState, getResource("scripts/global.%s", getScriptExtension()))) { | ^~~~~~~~~~~~~~~~~~~ area.cpp:719:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 719 | debug_message("Running global script...\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ area.cpp:726:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 726 | debug_message("Loading global area script...\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ area.cpp:727:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 727 | if (luaL_loadfile(luaState, getResource("area_scripts/global.%s", getScriptExtension()))) { | ^~~~~~~~~~~~~~~~~~~~~~~~ area.cpp:732:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 732 | debug_message("Running global area script...\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ area.cpp:739:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 739 | debug_message("Loading area script (%s)...\n", name); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ area.cpp:740:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 740 | if (luaL_loadfile(luaState, getResource("area_scripts/%s.%s", name, getScriptExtension()))) { | ^~~~~~~~~~~~~~~~~~~~ area.cpp:746:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 746 | debug_message("Running area script...\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ area.cpp:753:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 753 | debug_message("Calling 'start'...\n"); | ^~~~~~~~~~~~~~~~~~~~~~ area.cpp: At global scope: area.cpp:773:34: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 773 | Area::Area(const char* filename) throw (std::bad_alloc, ReadError) | ^~~~~ area.cpp: In constructor 'Area::Area(const char*)': area.cpp:825:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 825 | debug_message("Turning off dirty rectangles for this area...\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ area.cpp: At global scope: area.cpp:874:19: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 874 | void Area::load() throw (std::bad_alloc, ReadError) | ^~~~~ area.cpp: In destructor 'Area::~Area()': area.cpp:901:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 901 | debug_message("Setting dirty rectangles to %d\n", oldDirtyRectanglesState); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make: Leaving directory '/home/iurt/rpmbuild/BUILD/monster-1.24/src' make: Entering directory '/home/iurt/rpmbuild/BUILD/monster-1.24/src' g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -g -O2 -I/usr/include/lua5.1 -I../tgui-0.9 -c input.cpp In file included from monster.h:7, from input.cpp:3: animation.h:19:54: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 19 | void saveFrame(BITMAP* bmp, int delay, PACKFILE* f) throw (WriteError); | ^~~~~ animation.h:20:25: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 20 | void save(PACKFILE* f) throw (WriteError); | ^~~~~ animation.h:22:3: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 22 | throw (ReadError); | ^~~~~ animation.h:23:25: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 23 | void load(PACKFILE* f) throw (std::bad_alloc, ReadError); | ^~~~~ animation.h:24:29: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 24 | void load(char *filename) throw (std::bad_alloc, ReadError); | ^~~~~ animation.h:31:3: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 31 | throw (std::bad_alloc); | ^~~~~ animation.h:55:37: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 55 | AnimationSet(const char* filename) throw (std::bad_alloc, ReadError); | ^~~~~ In file included from monster.h:8, from input.cpp:3: area.h:49:40: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 49 | void writeTile(int tile, PACKFILE* f) throw (WriteError); | ^~~~~ area.h:51:28: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 51 | void save(char* filename) throw (WriteError); | ^~~~~ area.h:54:30: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 54 | void addObject(Object* obj) throw (std::bad_alloc); | ^~~~~ area.h:58:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 58 | void initLua() throw (std::bad_alloc, ReadError, ScriptError); | ^~~~~ area.h:65:29: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 65 | Area(const char* filename) throw (std::bad_alloc, ReadError); | ^~~~~ area.h:71:14: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 71 | void load() throw (std::bad_alloc, ReadError); | ^~~~~ area.h:90:34: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 90 | extern void loadTileAnimations() throw (std::bad_alloc, ReadError); | ^~~~~ In file included from battle.h:6, from monster.h:9, from input.cpp:3: mwidgets.h:16:24: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 16 | extern void mWgtInit() throw (std::bad_alloc); | ^~~~~ In file included from config.h:4, from monster.h:12, from input.cpp:3: graphics.h:76:39: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 76 | Screen(ScreenDescriptor* wantedMode) throw (std::bad_alloc, NoMode); | ^~~~~ In file included from monster.h:12, from input.cpp:3: config.h:52:14: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 52 | void read() throw (ReadError); | ^~~~~ config.h:53:15: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 53 | void write() throw (WriteError); | ^~~~~ In file included from monster.h:17, from input.cpp:3: io.h:8:40: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 8 | extern void iputl(long l, PACKFILE *f) throw (WriteError); | ^~~~~ io.h:9:32: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 9 | extern long igetl(PACKFILE *f) throw (ReadError); | ^~~~~ io.h:10:46: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 10 | extern void my_pack_putc(int c, PACKFILE* f) throw (WriteError); | ^~~~~ io.h:11:38: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 11 | extern int my_pack_getc(PACKFILE* f) throw (ReadError); | ^~~~~ io.h:14:38: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 14 | extern char* readString(PACKFILE* f) throw (ReadError); | ^~~~~ io.h:15:47: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 15 | extern void writeString(char* s, PACKFILE* f) throw (WriteError); | ^~~~~ io.h:16:63: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 16 | extern void readStats(struct PlayerStats* stats, PACKFILE* f) throw (ReadError); | ^~~~~ io.h:17:64: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 17 | extern void writeStats(struct PlayerStats* stats, PACKFILE* f) throw (WriteError); | ^~~~~ io.h:18:54: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 18 | extern void readItem(struct Item* item, PACKFILE* f) throw (ReadError); | ^~~~~ io.h:19:55: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 19 | extern void writeItem(struct Item* item, PACKFILE* f) throw (WriteError); | ^~~~~ io.h:20:38: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 20 | extern void saveGame(char* filename) throw (WriteError); | ^~~~~ io.h:21:38: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 21 | extern void loadGame(char* filename) throw (ReadError); | ^~~~~ In file included from monster.h:18, from input.cpp:3: menu.h:5:28: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 5 | extern void loadMenuData() throw (ReadError); | ^~~~~ In file included from monster.h:23, from input.cpp:3: script.h:18:24: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 18 | extern void initGame() throw (ReadError, ScriptError); | ^~~~~ In file included from monster.h:27, from input.cpp:3: xml.h:16:26: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 16 | XMLData(char* filename) throw (ReadError); | ^~~~~ make: Leaving directory '/home/iurt/rpmbuild/BUILD/monster-1.24/src' make: Entering directory '/home/iurt/rpmbuild/BUILD/monster-1.24/src' g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -g -O2 -I/usr/include/lua5.1 -I../tgui-0.9 -c io.cpp In file included from monster.h:7, from io.cpp:4: animation.h:19:54: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 19 | void saveFrame(BITMAP* bmp, int delay, PACKFILE* f) throw (WriteError); | ^~~~~ animation.h:20:25: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 20 | void save(PACKFILE* f) throw (WriteError); | ^~~~~ animation.h:22:3: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 22 | throw (ReadError); | ^~~~~ animation.h:23:25: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 23 | void load(PACKFILE* f) throw (std::bad_alloc, ReadError); | ^~~~~ animation.h:24:29: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 24 | void load(char *filename) throw (std::bad_alloc, ReadError); | ^~~~~ animation.h:31:3: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 31 | throw (std::bad_alloc); | ^~~~~ animation.h:55:37: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 55 | AnimationSet(const char* filename) throw (std::bad_alloc, ReadError); | ^~~~~ In file included from monster.h:8, from io.cpp:4: area.h:49:40: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 49 | void writeTile(int tile, PACKFILE* f) throw (WriteError); | ^~~~~ area.h:51:28: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 51 | void save(char* filename) throw (WriteError); | ^~~~~ area.h:54:30: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 54 | void addObject(Object* obj) throw (std::bad_alloc); | ^~~~~ area.h:58:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 58 | void initLua() throw (std::bad_alloc, ReadError, ScriptError); | ^~~~~ area.h:65:29: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 65 | Area(const char* filename) throw (std::bad_alloc, ReadError); | ^~~~~ area.h:71:14: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 71 | void load() throw (std::bad_alloc, ReadError); | ^~~~~ area.h:90:34: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 90 | extern void loadTileAnimations() throw (std::bad_alloc, ReadError); | ^~~~~ In file included from battle.h:6, from monster.h:9, from io.cpp:4: mwidgets.h:16:24: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 16 | extern void mWgtInit() throw (std::bad_alloc); | ^~~~~ In file included from config.h:4, from monster.h:12, from io.cpp:4: graphics.h:76:39: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 76 | Screen(ScreenDescriptor* wantedMode) throw (std::bad_alloc, NoMode); | ^~~~~ In file included from monster.h:12, from io.cpp:4: config.h:52:14: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 52 | void read() throw (ReadError); | ^~~~~ config.h:53:15: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 53 | void write() throw (WriteError); | ^~~~~ In file included from monster.h:17, from io.cpp:4: io.h:8:40: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 8 | extern void iputl(long l, PACKFILE *f) throw (WriteError); | ^~~~~ io.h:9:32: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 9 | extern long igetl(PACKFILE *f) throw (ReadError); | ^~~~~ io.h:10:46: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 10 | extern void my_pack_putc(int c, PACKFILE* f) throw (WriteError); | ^~~~~ io.h:11:38: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 11 | extern int my_pack_getc(PACKFILE* f) throw (ReadError); | ^~~~~ io.h:14:38: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 14 | extern char* readString(PACKFILE* f) throw (ReadError); | ^~~~~ io.h:15:47: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 15 | extern void writeString(char* s, PACKFILE* f) throw (WriteError); | ^~~~~ io.h:16:63: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 16 | extern void readStats(struct PlayerStats* stats, PACKFILE* f) throw (ReadError); | ^~~~~ io.h:17:64: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 17 | extern void writeStats(struct PlayerStats* stats, PACKFILE* f) throw (WriteError); | ^~~~~ io.h:18:54: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 18 | extern void readItem(struct Item* item, PACKFILE* f) throw (ReadError); | ^~~~~ io.h:19:55: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 19 | extern void writeItem(struct Item* item, PACKFILE* f) throw (WriteError); | ^~~~~ io.h:20:38: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 20 | extern void saveGame(char* filename) throw (WriteError); | ^~~~~ io.h:21:38: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 21 | extern void loadGame(char* filename) throw (ReadError); | ^~~~~ In file included from monster.h:18, from io.cpp:4: menu.h:5:28: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 5 | extern void loadMenuData() throw (ReadError); | ^~~~~ In file included from monster.h:23, from io.cpp:4: script.h:18:24: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 18 | extern void initGame() throw (ReadError, ScriptError); | ^~~~~ In file included from monster.h:27, from io.cpp:4: xml.h:16:26: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 16 | XMLData(char* filename) throw (ReadError); | ^~~~~ io.cpp:9:33: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 9 | void iputl(long l, PACKFILE *f) throw (WriteError) | ^~~~~ io.cpp:28:25: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 28 | long igetl(PACKFILE *f) throw (ReadError) | ^~~~~ io.cpp:41:39: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 41 | void my_pack_putc(int c, PACKFILE* f) throw (WriteError) | ^~~~~ io.cpp:47:31: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 47 | int my_pack_getc(PACKFILE* f) throw (ReadError) | ^~~~~ io.cpp:55:31: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 55 | char* readString(PACKFILE* f) throw (ReadError) | ^~~~~ io.cpp: In function 'char* readString(PACKFILE*)': io.cpp:61:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 61 | debug_message("readString: length=%d\n", length); | ^~~~~~~~~~~~~~~~~~~~~~~~~ io.cpp: At global scope: io.cpp:70:40: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 70 | void writeString(char* s, PACKFILE* f) throw (WriteError) | ^~~~~ io.cpp: In function 'bool writeMilestones(bool*, int, PACKFILE*)': io.cpp:116:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 116 | debug_message("writeMilestones: wrote %d bytes\n", count); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ io.cpp: At global scope: io.cpp:120:40: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 120 | void readItem(Item* item, PACKFILE* f) throw (ReadError) | ^~~~~ io.cpp:142:41: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 142 | void writeItem(Item* item, PACKFILE* f) throw (WriteError) | ^~~~~ io.cpp:148:50: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 148 | void writeStats(PlayerStats* stats, PACKFILE* f) throw (WriteError) | ^~~~~ io.cpp:160:49: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 160 | void readStats(PlayerStats* stats, PACKFILE* f) throw (ReadError) | ^~~~~ io.cpp:172:31: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 172 | void saveGame(char* filename) throw (WriteError) | ^~~~~ io.cpp: In function 'void saveGame(char*)': io.cpp:179:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 179 | debug_message("Saving in area %s\n", areaName); | ^~~~~~~~~~~~~~~~~~~~~ io.cpp:205:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 205 | debug_message("writing spell %s\n", stats.spells[i]); | ^~~~~~~~~~~~~~~~~~~~ io.cpp:209:19: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 209 | writeString("", f); | ^~ io.cpp: At global scope: io.cpp:224:31: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 224 | void loadGame(char* filename) throw (ReadError) | ^~~~~ io.cpp: In function 'void loadGame(char*)': io.cpp:256:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 256 | debug_message("found spell %s\n", spell); | ^~~~~~~~~~~~~~~~~~ make: Leaving directory '/home/iurt/rpmbuild/BUILD/monster-1.24/src' make: Entering directory '/home/iurt/rpmbuild/BUILD/monster-1.24/src' g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -g -O2 -I/usr/include/lua5.1 -I../tgui-0.9 -c mode7.cpp In file included from monster.h:7, from mode7.cpp:1: animation.h:19:54: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 19 | void saveFrame(BITMAP* bmp, int delay, PACKFILE* f) throw (WriteError); | ^~~~~ animation.h:20:25: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 20 | void save(PACKFILE* f) throw (WriteError); | ^~~~~ animation.h:22:3: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 22 | throw (ReadError); | ^~~~~ animation.h:23:25: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 23 | void load(PACKFILE* f) throw (std::bad_alloc, ReadError); | ^~~~~ animation.h:24:29: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 24 | void load(char *filename) throw (std::bad_alloc, ReadError); | ^~~~~ animation.h:31:3: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 31 | throw (std::bad_alloc); | ^~~~~ animation.h:55:37: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 55 | AnimationSet(const char* filename) throw (std::bad_alloc, ReadError); | ^~~~~ In file included from monster.h:8, from mode7.cpp:1: area.h:49:40: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 49 | void writeTile(int tile, PACKFILE* f) throw (WriteError); | ^~~~~ area.h:51:28: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 51 | void save(char* filename) throw (WriteError); | ^~~~~ area.h:54:30: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 54 | void addObject(Object* obj) throw (std::bad_alloc); | ^~~~~ area.h:58:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 58 | void initLua() throw (std::bad_alloc, ReadError, ScriptError); | ^~~~~ area.h:65:29: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 65 | Area(const char* filename) throw (std::bad_alloc, ReadError); | ^~~~~ area.h:71:14: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 71 | void load() throw (std::bad_alloc, ReadError); | ^~~~~ area.h:90:34: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 90 | extern void loadTileAnimations() throw (std::bad_alloc, ReadError); | ^~~~~ In file included from battle.h:6, from monster.h:9, from mode7.cpp:1: mwidgets.h:16:24: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 16 | extern void mWgtInit() throw (std::bad_alloc); | ^~~~~ In file included from config.h:4, from monster.h:12, from mode7.cpp:1: graphics.h:76:39: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 76 | Screen(ScreenDescriptor* wantedMode) throw (std::bad_alloc, NoMode); | ^~~~~ In file included from monster.h:12, from mode7.cpp:1: config.h:52:14: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 52 | void read() throw (ReadError); | ^~~~~ config.h:53:15: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 53 | void write() throw (WriteError); | ^~~~~ In file included from monster.h:17, from mode7.cpp:1: io.h:8:40: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 8 | extern void iputl(long l, PACKFILE *f) throw (WriteError); | ^~~~~ io.h:9:32: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 9 | extern long igetl(PACKFILE *f) throw (ReadError); | ^~~~~ io.h:10:46: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 10 | extern void my_pack_putc(int c, PACKFILE* f) throw (WriteError); | ^~~~~ io.h:11:38: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 11 | extern int my_pack_getc(PACKFILE* f) throw (ReadError); | ^~~~~ io.h:14:38: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 14 | extern char* readString(PACKFILE* f) throw (ReadError); | ^~~~~ io.h:15:47: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 15 | extern void writeString(char* s, PACKFILE* f) throw (WriteError); | ^~~~~ io.h:16:63: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 16 | extern void readStats(struct PlayerStats* stats, PACKFILE* f) throw (ReadError); | ^~~~~ io.h:17:64: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 17 | extern void writeStats(struct PlayerStats* stats, PACKFILE* f) throw (WriteError); | ^~~~~ io.h:18:54: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 18 | extern void readItem(struct Item* item, PACKFILE* f) throw (ReadError); | ^~~~~ io.h:19:55: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 19 | extern void writeItem(struct Item* item, PACKFILE* f) throw (WriteError); | ^~~~~ io.h:20:38: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 20 | extern void saveGame(char* filename) throw (WriteError); | ^~~~~ io.h:21:38: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 21 | extern void loadGame(char* filename) throw (ReadError); | ^~~~~ In file included from monster.h:18, from mode7.cpp:1: menu.h:5:28: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 5 | extern void loadMenuData() throw (ReadError); | ^~~~~ In file included from monster.h:23, from mode7.cpp:1: script.h:18:24: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 18 | extern void initGame() throw (ReadError, ScriptError); | ^~~~~ In file included from monster.h:27, from mode7.cpp:1: xml.h:16:26: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 16 | XMLData(char* filename) throw (ReadError); | ^~~~~ make: Leaving directory '/home/iurt/rpmbuild/BUILD/monster-1.24/src' make: Entering directory '/home/iurt/rpmbuild/BUILD/monster-1.24/src' g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -g -O2 -I/usr/include/lua5.1 -I../tgui-0.9 -c battle.cpp In file included from monster.h:7, from battle.cpp:1: animation.h:19:54: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 19 | void saveFrame(BITMAP* bmp, int delay, PACKFILE* f) throw (WriteError); | ^~~~~ animation.h:20:25: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 20 | void save(PACKFILE* f) throw (WriteError); | ^~~~~ animation.h:22:3: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 22 | throw (ReadError); | ^~~~~ animation.h:23:25: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 23 | void load(PACKFILE* f) throw (std::bad_alloc, ReadError); | ^~~~~ animation.h:24:29: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 24 | void load(char *filename) throw (std::bad_alloc, ReadError); | ^~~~~ animation.h:31:3: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 31 | throw (std::bad_alloc); | ^~~~~ animation.h:55:37: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 55 | AnimationSet(const char* filename) throw (std::bad_alloc, ReadError); | ^~~~~ In file included from monster.h:8, from battle.cpp:1: area.h:49:40: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 49 | void writeTile(int tile, PACKFILE* f) throw (WriteError); | ^~~~~ area.h:51:28: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 51 | void save(char* filename) throw (WriteError); | ^~~~~ area.h:54:30: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 54 | void addObject(Object* obj) throw (std::bad_alloc); | ^~~~~ area.h:58:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 58 | void initLua() throw (std::bad_alloc, ReadError, ScriptError); | ^~~~~ area.h:65:29: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 65 | Area(const char* filename) throw (std::bad_alloc, ReadError); | ^~~~~ area.h:71:14: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 71 | void load() throw (std::bad_alloc, ReadError); | ^~~~~ area.h:90:34: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 90 | extern void loadTileAnimations() throw (std::bad_alloc, ReadError); | ^~~~~ In file included from battle.h:6, from monster.h:9, from battle.cpp:1: mwidgets.h:16:24: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 16 | extern void mWgtInit() throw (std::bad_alloc); | ^~~~~ In file included from config.h:4, from monster.h:12, from battle.cpp:1: graphics.h:76:39: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 76 | Screen(ScreenDescriptor* wantedMode) throw (std::bad_alloc, NoMode); | ^~~~~ In file included from monster.h:12, from battle.cpp:1: config.h:52:14: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 52 | void read() throw (ReadError); | ^~~~~ config.h:53:15: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 53 | void write() throw (WriteError); | ^~~~~ In file included from monster.h:17, from battle.cpp:1: io.h:8:40: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 8 | extern void iputl(long l, PACKFILE *f) throw (WriteError); | ^~~~~ io.h:9:32: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 9 | extern long igetl(PACKFILE *f) throw (ReadError); | ^~~~~ io.h:10:46: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 10 | extern void my_pack_putc(int c, PACKFILE* f) throw (WriteError); | ^~~~~ io.h:11:38: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 11 | extern int my_pack_getc(PACKFILE* f) throw (ReadError); | ^~~~~ io.h:14:38: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 14 | extern char* readString(PACKFILE* f) throw (ReadError); | ^~~~~ io.h:15:47: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 15 | extern void writeString(char* s, PACKFILE* f) throw (WriteError); | ^~~~~ io.h:16:63: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 16 | extern void readStats(struct PlayerStats* stats, PACKFILE* f) throw (ReadError); | ^~~~~ io.h:17:64: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 17 | extern void writeStats(struct PlayerStats* stats, PACKFILE* f) throw (WriteError); | ^~~~~ io.h:18:54: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 18 | extern void readItem(struct Item* item, PACKFILE* f) throw (ReadError); | ^~~~~ io.h:19:55: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 19 | extern void writeItem(struct Item* item, PACKFILE* f) throw (WriteError); | ^~~~~ io.h:20:38: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 20 | extern void saveGame(char* filename) throw (WriteError); | ^~~~~ io.h:21:38: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 21 | extern void loadGame(char* filename) throw (ReadError); | ^~~~~ In file included from monster.h:18, from battle.cpp:1: menu.h:5:28: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 5 | extern void loadMenuData() throw (ReadError); | ^~~~~ In file included from monster.h:23, from battle.cpp:1: script.h:18:24: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 18 | extern void initGame() throw (ReadError, ScriptError); | ^~~~~ In file included from monster.h:27, from battle.cpp:1: xml.h:16:26: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 16 | XMLData(char* filename) throw (ReadError); | ^~~~~ battle.cpp: In member function 'void Battle::init()': battle.cpp:333:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 333 | debug_message("Loading global script...\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ battle.cpp:334:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 334 | if (luaL_loadfile(luaState, getResource("scripts/global.%s", getScriptExtension()))) { | ^~~~~~~~~~~~~~~~~~~ battle.cpp:339:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 339 | debug_message("Running global script...\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ battle.cpp:346:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 346 | debug_message("Loading global battle script...\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ battle.cpp:347:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 347 | if (luaL_loadfile(luaState, getResource("battle_scripts/global.%s", getScriptExtension()))) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ battle.cpp:352:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 352 | debug_message("Running global battle script...\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ battle.cpp:359:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 359 | debug_message("Loading battle script...\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ battle.cpp:360:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 360 | if (luaL_loadfile(luaState, getResource("battle_scripts/%s.%s", id, getScriptExtension()))) { | ^~~~~~~~~~~~~~~~~~~~~~ battle.cpp:365:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 365 | debug_message("Running battle script...\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ battle.cpp:372:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 372 | debug_message("Calling 'start'...\n"); | ^~~~~~~~~~~~~~~~~~~~~~ battle.cpp: In member function 'void Battle::drawPlayerInAction(Combatant*)': battle.cpp:518:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 518 | c->setSubAnimation("walk_e"); | ^~~~~~~~ battle.cpp:536:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 536 | c->setSubAnimation("walk_w"); | ^~~~~~~~ battle.cpp:593:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 593 | c->setSubAnimation("stand_w"); | ^~~~~~~~~ battle.cpp:601:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 601 | c->setSubAnimation("walk_e"); | ^~~~~~~~ battle.cpp:613:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 613 | c->setSubAnimation("attack"); | ^~~~~~~~ battle.cpp: In member function 'void Battle::initAttackEffect()': battle.cpp:752:10: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 752 | playOgg("attack.ogg"); | ^~~~~~~~~~~~ battle.cpp: In member function 'void Battle::initDeaths()': battle.cpp:1131:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1131 | c->setSubAnimation("dead"); | ^~~~~~ battle.cpp:1135:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1135 | playOgg("enemy_death.ogg"); | ^~~~~~~~~~~~~~~~~ battle.cpp:1147:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1147 | debug_message("Death list size=%d\n", deathList.size()); | ^~~~~~~~~~~~~~~~~~~~~~ battle.cpp: In member function 'void Battle::applyTurn()': battle.cpp:1188:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1188 | debug_message("in apply turn\n"); | ^~~~~~~~~~~~~~~~~ battle.cpp:1295:17: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1295 | debug_message("applying spell\n"); | ^~~~~~~~~~~~~~~~~~ battle.cpp:1297:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1297 | debug_message("spell has no \"results\""); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ battle.cpp:1308:19: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1308 | debug_message("spell affects all\n"); | ^~~~~~~~~~~~~~~~~~~~~ battle.cpp:1336:19: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1336 | debug_message("applying spell to target %d\n", currentAction->target); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ battle.cpp: In member function 'void Battle::update(int)': battle.cpp:1436:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1436 | debug_message("Skipping turn hp <= 0\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~ battle.cpp:1465:19: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1465 | debug_message("Skipping combatant ... hp <= 0\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ battle.cpp: In member function 'void Battle::addEnemy(const char*, int, int, bool)': battle.cpp:1519:17: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1519 | debug_message("suprised\n"); | ^~~~~~~~~~~~ battle.cpp: In member function 'void Battle::loadBackground(const char*)': battle.cpp:1578:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1578 | debug_message("loading background %s\n", name); | ^~~~~~~~~~~~~~~~~~~~~~~~~ battle.cpp:1579:59: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1579 | DATAFILE* bg_datafile = load_datafile_object(getResource("battle_bgs/%s.dat", name), "BACKGROUND_PCX"); | ^~~~~~~~~~~~~~~~~~~ battle.cpp: In member function 'void Battle::start()': battle.cpp:1655:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1655 | playOgg("run.ogg"); | ^~~~~~~~~ battle.cpp: In function 'void initBattleSystem()': battle.cpp:1793:38: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1793 | heartIcon = load_bitmap(getResource("battle_gfx/heart.pcx"), 0); | ^~~~~~~~~~~~~~~~~~~~~~ battle.cpp:1794:38: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1794 | clockIcon = load_bitmap(getResource("battle_gfx/clock.pcx"), 0); | ^~~~~~~~~~~~~~~~~~~~~~ battle.cpp:1795:37: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1795 | manaIcon = load_bitmap(getResource("battle_gfx/mana.pcx"), 0); | ^~~~~~~~~~~~~~~~~~~~~ make: Leaving directory '/home/iurt/rpmbuild/BUILD/monster-1.24/src' make: Entering directory '/home/iurt/rpmbuild/BUILD/monster-1.24/src' g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -g -O2 -I/usr/include/lua5.1 -I../tgui-0.9 -c object.cpp In file included from monster.h:7, from object.cpp:3: animation.h:19:54: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 19 | void saveFrame(BITMAP* bmp, int delay, PACKFILE* f) throw (WriteError); | ^~~~~ animation.h:20:25: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 20 | void save(PACKFILE* f) throw (WriteError); | ^~~~~ animation.h:22:3: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 22 | throw (ReadError); | ^~~~~ animation.h:23:25: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 23 | void load(PACKFILE* f) throw (std::bad_alloc, ReadError); | ^~~~~ animation.h:24:29: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 24 | void load(char *filename) throw (std::bad_alloc, ReadError); | ^~~~~ animation.h:31:3: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 31 | throw (std::bad_alloc); | ^~~~~ animation.h:55:37: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 55 | AnimationSet(const char* filename) throw (std::bad_alloc, ReadError); | ^~~~~ In file included from monster.h:8, from object.cpp:3: area.h:49:40: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 49 | void writeTile(int tile, PACKFILE* f) throw (WriteError); | ^~~~~ area.h:51:28: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 51 | void save(char* filename) throw (WriteError); | ^~~~~ area.h:54:30: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 54 | void addObject(Object* obj) throw (std::bad_alloc); | ^~~~~ area.h:58:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 58 | void initLua() throw (std::bad_alloc, ReadError, ScriptError); | ^~~~~ area.h:65:29: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 65 | Area(const char* filename) throw (std::bad_alloc, ReadError); | ^~~~~ area.h:71:14: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 71 | void load() throw (std::bad_alloc, ReadError); | ^~~~~ area.h:90:34: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 90 | extern void loadTileAnimations() throw (std::bad_alloc, ReadError); | ^~~~~ In file included from battle.h:6, from monster.h:9, from object.cpp:3: mwidgets.h:16:24: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 16 | extern void mWgtInit() throw (std::bad_alloc); | ^~~~~ In file included from config.h:4, from monster.h:12, from object.cpp:3: graphics.h:76:39: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 76 | Screen(ScreenDescriptor* wantedMode) throw (std::bad_alloc, NoMode); | ^~~~~ In file included from monster.h:12, from object.cpp:3: config.h:52:14: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 52 | void read() throw (ReadError); | ^~~~~ config.h:53:15: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 53 | void write() throw (WriteError); | ^~~~~ In file included from monster.h:17, from object.cpp:3: io.h:8:40: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 8 | extern void iputl(long l, PACKFILE *f) throw (WriteError); | ^~~~~ io.h:9:32: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 9 | extern long igetl(PACKFILE *f) throw (ReadError); | ^~~~~ io.h:10:46: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 10 | extern void my_pack_putc(int c, PACKFILE* f) throw (WriteError); | ^~~~~ io.h:11:38: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 11 | extern int my_pack_getc(PACKFILE* f) throw (ReadError); | ^~~~~ io.h:14:38: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 14 | extern char* readString(PACKFILE* f) throw (ReadError); | ^~~~~ io.h:15:47: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 15 | extern void writeString(char* s, PACKFILE* f) throw (WriteError); | ^~~~~ io.h:16:63: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 16 | extern void readStats(struct PlayerStats* stats, PACKFILE* f) throw (ReadError); | ^~~~~ io.h:17:64: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 17 | extern void writeStats(struct PlayerStats* stats, PACKFILE* f) throw (WriteError); | ^~~~~ io.h:18:54: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 18 | extern void readItem(struct Item* item, PACKFILE* f) throw (ReadError); | ^~~~~ io.h:19:55: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 19 | extern void writeItem(struct Item* item, PACKFILE* f) throw (WriteError); | ^~~~~ io.h:20:38: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 20 | extern void saveGame(char* filename) throw (WriteError); | ^~~~~ io.h:21:38: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 21 | extern void loadGame(char* filename) throw (ReadError); | ^~~~~ In file included from monster.h:18, from object.cpp:3: menu.h:5:28: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 5 | extern void loadMenuData() throw (ReadError); | ^~~~~ In file included from monster.h:23, from object.cpp:3: script.h:18:24: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 18 | extern void initGame() throw (ReadError, ScriptError); | ^~~~~ In file included from monster.h:27, from object.cpp:3: xml.h:16:26: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 16 | XMLData(char* filename) throw (ReadError); | ^~~~~ object.cpp: In member function 'void Object::setDirection(Direction)': object.cpp:210:17: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 210 | debug_message("Setting sub animation %d\n", direction); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ make: Leaving directory '/home/iurt/rpmbuild/BUILD/monster-1.24/src' make: Entering directory '/home/iurt/rpmbuild/BUILD/monster-1.24/src' g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -g -O2 -I/usr/include/lua5.1 -I../tgui-0.9 -c config.cpp In file included from monster.h:7, from config.cpp:5: animation.h:19:54: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 19 | void saveFrame(BITMAP* bmp, int delay, PACKFILE* f) throw (WriteError); | ^~~~~ animation.h:20:25: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 20 | void save(PACKFILE* f) throw (WriteError); | ^~~~~ animation.h:22:3: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 22 | throw (ReadError); | ^~~~~ animation.h:23:25: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 23 | void load(PACKFILE* f) throw (std::bad_alloc, ReadError); | ^~~~~ animation.h:24:29: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 24 | void load(char *filename) throw (std::bad_alloc, ReadError); | ^~~~~ animation.h:31:3: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 31 | throw (std::bad_alloc); | ^~~~~ animation.h:55:37: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 55 | AnimationSet(const char* filename) throw (std::bad_alloc, ReadError); | ^~~~~ In file included from monster.h:8, from config.cpp:5: area.h:49:40: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 49 | void writeTile(int tile, PACKFILE* f) throw (WriteError); | ^~~~~ area.h:51:28: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 51 | void save(char* filename) throw (WriteError); | ^~~~~ area.h:54:30: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 54 | void addObject(Object* obj) throw (std::bad_alloc); | ^~~~~ area.h:58:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 58 | void initLua() throw (std::bad_alloc, ReadError, ScriptError); | ^~~~~ area.h:65:29: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 65 | Area(const char* filename) throw (std::bad_alloc, ReadError); | ^~~~~ area.h:71:14: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 71 | void load() throw (std::bad_alloc, ReadError); | ^~~~~ area.h:90:34: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 90 | extern void loadTileAnimations() throw (std::bad_alloc, ReadError); | ^~~~~ In file included from battle.h:6, from monster.h:9, from config.cpp:5: mwidgets.h:16:24: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 16 | extern void mWgtInit() throw (std::bad_alloc); | ^~~~~ In file included from config.h:4, from monster.h:12, from config.cpp:5: graphics.h:76:39: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 76 | Screen(ScreenDescriptor* wantedMode) throw (std::bad_alloc, NoMode); | ^~~~~ In file included from monster.h:12, from config.cpp:5: config.h:52:14: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 52 | void read() throw (ReadError); | ^~~~~ config.h:53:15: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 53 | void write() throw (WriteError); | ^~~~~ In file included from monster.h:17, from config.cpp:5: io.h:8:40: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 8 | extern void iputl(long l, PACKFILE *f) throw (WriteError); | ^~~~~ io.h:9:32: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 9 | extern long igetl(PACKFILE *f) throw (ReadError); | ^~~~~ io.h:10:46: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 10 | extern void my_pack_putc(int c, PACKFILE* f) throw (WriteError); | ^~~~~ io.h:11:38: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 11 | extern int my_pack_getc(PACKFILE* f) throw (ReadError); | ^~~~~ io.h:14:38: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 14 | extern char* readString(PACKFILE* f) throw (ReadError); | ^~~~~ io.h:15:47: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 15 | extern void writeString(char* s, PACKFILE* f) throw (WriteError); | ^~~~~ io.h:16:63: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 16 | extern void readStats(struct PlayerStats* stats, PACKFILE* f) throw (ReadError); | ^~~~~ io.h:17:64: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 17 | extern void writeStats(struct PlayerStats* stats, PACKFILE* f) throw (WriteError); | ^~~~~ io.h:18:54: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 18 | extern void readItem(struct Item* item, PACKFILE* f) throw (ReadError); | ^~~~~ io.h:19:55: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 19 | extern void writeItem(struct Item* item, PACKFILE* f) throw (WriteError); | ^~~~~ io.h:20:38: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 20 | extern void saveGame(char* filename) throw (WriteError); | ^~~~~ io.h:21:38: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 21 | extern void loadGame(char* filename) throw (ReadError); | ^~~~~ In file included from monster.h:18, from config.cpp:5: menu.h:5:28: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 5 | extern void loadMenuData() throw (ReadError); | ^~~~~ In file included from monster.h:23, from config.cpp:5: script.h:18:24: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 18 | extern void initGame() throw (ReadError, ScriptError); | ^~~~~ In file included from monster.h:27, from config.cpp:5: xml.h:16:26: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 16 | XMLData(char* filename) throw (ReadError); | ^~~~~ config.cpp:23:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 23 | { 320, 240, "320x240" }, | ^~~~~~~~~ config.cpp:24:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 24 | { 640, 480, "640x480" }, | ^~~~~~~~~ config.cpp:25:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 25 | { 800, 600, "800x600" }, | ^~~~~~~~~ config.cpp:26:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 26 | { 1024, 768, "1024x768" }, | ^~~~~~~~~~ config.cpp: In function 'int getGamepadButton()': config.cpp:111:10: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 111 | playOgg("button.ogg"); | ^~~~~~~~~~~~ config.cpp: In function 'void configureGamepadButtons()': config.cpp:147:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 147 | buttons[0] = new MWgtButton(0, 0, 80, "Action"); | ^~~~~~~~ config.cpp:148:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 148 | buttons[1] = new MWgtButton(0, 0, 80, "Cancel"); | ^~~~~~~~ config.cpp:149:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 149 | buttons[2] = new MWgtButton(0, 0, 80, "Run"); | ^~~~~ config.cpp:155:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 155 | MWgtButton* ok = new MWgtButton(0, 0, 40, "OK"); | ^~~~ config.cpp:156:47: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 156 | MWgtButton* reset = new MWgtButton(0, 0, 60, "Reset"); | ^~~~~~~ config.cpp: In function 'int getKeyboardButton()': config.cpp:299:10: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 299 | playOgg("button.ogg"); | ^~~~~~~~~~~~ config.cpp: In function 'void configureKeyboardButtons()': config.cpp:341:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 341 | buttons[0] = new MWgtButton(0, 0, 80, "Action"); | ^~~~~~~~ config.cpp:342:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 342 | buttons[1] = new MWgtButton(0, 0, 80, "Cancel"); | ^~~~~~~~ config.cpp:343:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 343 | buttons[2] = new MWgtButton(0, 0, 80, "Left"); | ^~~~~~ config.cpp:344:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 344 | buttons[3] = new MWgtButton(0, 0, 80, "Right"); | ^~~~~~~ config.cpp:345:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 345 | buttons[4] = new MWgtButton(0, 0, 80, "Up"); | ^~~~ config.cpp:346:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 346 | buttons[5] = new MWgtButton(0, 0, 80, "Down"); | ^~~~~~ config.cpp:352:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 352 | MWgtButton* ok = new MWgtButton(0, 0, 40, "OK"); | ^~~~ config.cpp:353:47: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 353 | MWgtButton* reset = new MWgtButton(0, 0, 60, "Reset"); | ^~~~~~~ config.cpp: In function 'bool configurate()': config.cpp:484:53: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 484 | MWgtButton *cfgButtons = new MWgtButton(0, 0, 170, "Configure Buttons"); | ^~~~~~~~~~~~~~~~~~~ config.cpp:485:52: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 485 | MWgtButton *calibrate = new MWgtButton(0, 0, 160, "Calibrate Gamepad"); | ^~~~~~~~~~~~~~~~~~~ config.cpp:486:53: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 486 | MWgtCheckbox* battleSpeed = new MWgtCheckbox(0, 0, "Fast Battles"); | ^~~~~~~~~~~~~~ config.cpp:493:47: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 493 | MWgtButton* save = new MWgtButton(0, 0, 150, "Save Configuration"); | ^~~~~~~~~~~~~~~~~~~~ config.cpp:494:48: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 494 | MWgtButton* cancel = new MWgtButton(0, 0, 50, "Cancel"); | ^~~~~~~~ config.cpp:529:52: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 529 | MWgtCheckbox* fullscreen = new MWgtCheckbox(0, 0, "Fullscreen"); | ^~~~~~~~~~~~ config.cpp:540:47: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 540 | MWgtCheckbox* vSync = new MWgtCheckbox(0, 0, "Vsync"); | ^~~~~~~ config.cpp:542:55: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 542 | MWgtCheckbox* smoothScaling = new MWgtCheckbox(0, 0, "Smooth Scaling"); | ^~~~~~~~~~~~~~~~ config.cpp:544:57: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 544 | MWgtCheckbox* dirtyRectangles = new MWgtCheckbox(0, 0, "Dirty Rectangles"); | ^~~~~~~~~~~~~~~~~~ config.cpp:674:13: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 674 | notify("You must restart the program", "for the changes to take affect...", ""); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.cpp:674:45: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 674 | notify("You must restart the program", "for the changes to take affect...", ""); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.cpp:674:82: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 674 | notify("You must restart the program", "for the changes to take affect...", ""); | ^~ config.cpp:701:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 701 | notify("*** Warning: Two or more buttons ***", "*** Have the same value! ***", ""); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.cpp:701:55: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 701 | notify("*** Warning: Two or more buttons ***", "*** Have the same value! ***", ""); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.cpp:701:87: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 701 | notify("*** Warning: Two or more buttons ***", "*** Have the same value! ***", ""); | ^~ config.cpp:705:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 705 | notify("No gamepad available...", "You may need to restart", "the program..."); | ^~~~~~~~~~~~~~~~~~~~~~~~~ config.cpp:705:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 705 | notify("No gamepad available...", "You may need to restart", "the program..."); | ^~~~~~~~~~~~~~~~~~~~~~~~~ config.cpp:705:68: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 705 | notify("No gamepad available...", "You may need to restart", "the program..."); | ^~~~~~~~~~~~~~~~ config.cpp:734:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 734 | notify("", "Error calibrating gamepad!", ""); | ^~ config.cpp:734:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 734 | notify("", "Error calibrating gamepad!", ""); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.cpp:734:48: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 734 | notify("", "Error calibrating gamepad!", ""); | ^~ config.cpp:738:13: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 738 | notify("The gamepad does not", "need calibration", ""); | ^~~~~~~~~~~~~~~~~~~~~~ config.cpp:738:37: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 738 | notify("The gamepad does not", "need calibration", ""); | ^~~~~~~~~~~~~~~~~~ config.cpp:738:57: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 738 | notify("The gamepad does not", "need calibration", ""); | ^~ config.cpp: At global scope: config.cpp:1023:28: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 1023 | void Configuration::read() throw (ReadError) | ^~~~~ config.cpp: In member function 'void Configuration::read()': config.cpp:1026:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1026 | sprintf(userDir, "%s", getUserResource("")); | ^~ config.cpp:1034:30: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1034 | if (!exists(getUserResource("config"))) { | ^~~~~~~~ config.cpp:1041:45: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1041 | XMLData* xml = new XMLData(getUserResource("config")); | ^~~~~~~~ config.cpp: At global scope: config.cpp:1105:29: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 1105 | void Configuration::write() throw (WriteError) | ^~~~~ config.cpp: In member function 'void Configuration::write()': config.cpp:1107:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1107 | XMLData* monster = new XMLData("monster", ""); | ^~~~~~~~~ config.cpp:1107:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1107 | XMLData* monster = new XMLData("monster", ""); | ^~ config.cpp:1109:30: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1109 | XMLData* game = new XMLData("game", ""); | ^~~~~~ config.cpp:1109:38: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1109 | XMLData* game = new XMLData("game", ""); | ^~ config.cpp:1110:31: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1110 | XMLData* input = new XMLData("input", itoa(getInputType())); | ^~~~~~~ config.cpp:1111:38: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1111 | XMLData* battle_speed = new XMLData("battle_speed", itoa(getBattleSpeed())); | ^~~~~~~~~~~~~~ config.cpp:1112:31: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1112 | XMLData* joyb1 = new XMLData("joyb1", itoa(getJoyButton1())); | ^~~~~~~ config.cpp:1113:31: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1113 | XMLData* joyb2 = new XMLData("joyb2", itoa(getJoyButton2())); | ^~~~~~~ config.cpp:1114:31: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1114 | XMLData* joyb3 = new XMLData("joyb3", itoa(getJoyButton3())); | ^~~~~~~ config.cpp:1115:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1115 | XMLData* k1 = new XMLData("keyb1", itoa(getKey1())); | ^~~~~~~ config.cpp:1116:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1116 | XMLData* k2 = new XMLData("keyb2", itoa(getKey2())); | ^~~~~~~ config.cpp:1117:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1117 | XMLData* kl = new XMLData("keyLeft", itoa(getKeyLeft())); | ^~~~~~~~~ config.cpp:1118:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1118 | XMLData* kr = new XMLData("keyRight", itoa(getKeyRight())); | ^~~~~~~~~~ config.cpp:1119:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1119 | XMLData* ku = new XMLData("keyUp", itoa(getKeyUp())); | ^~~~~~~ config.cpp:1120:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1120 | XMLData* kd = new XMLData("keyDown", itoa(getKeyDown())); | ^~~~~~~~~ config.cpp:1133:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1133 | XMLData* gfx = new XMLData("gfx", ""); | ^~~~~ config.cpp:1133:36: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1133 | XMLData* gfx = new XMLData("gfx", ""); | ^~ config.cpp:1135:31: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1135 | XMLData* width = new XMLData("width", itoa(sd->width)); | ^~~~~~~ config.cpp:1136:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1136 | XMLData* height = new XMLData("height", itoa(sd->height)); | ^~~~~~~~ config.cpp:1137:31: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1137 | XMLData* depth = new XMLData("depth", itoa(sd->depth)); | ^~~~~~~ config.cpp:1138:36: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1138 | XMLData* fullscreen = new XMLData("fullscreen", itoa(sd->fullscreen)); | ^~~~~~~~~~~~ config.cpp:1139:35: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1139 | XMLData* frameskip = new XMLData("frameskip", itoa(getFrameSkip())); | ^~~~~~~~~~~ config.cpp:1140:31: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1140 | XMLData* vsync = new XMLData("vsync", itoa(getWaitForVsync())); | ^~~~~~~ config.cpp:1141:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1141 | XMLData* smooth_scaling = new XMLData("smooth_scaling", itoa(useSmoothScaling())); | ^~~~~~~~~~~~~~~~ config.cpp:1142:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1142 | XMLData* dirty_rectangles = new XMLData("dirty_rectangles", itoa(useDirtyRectangles())); | ^~~~~~~~~~~~~~~~~~ config.cpp:1152:31: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1152 | XMLData* sound = new XMLData("sound", ""); | ^~~~~~~ config.cpp:1152:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1152 | XMLData* sound = new XMLData("sound", ""); | ^~ config.cpp:1153:38: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1153 | XMLData* music_volume = new XMLData("music_volume", itoa(getMusicVolume())); | ^~~~~~~~~~~~~~ config.cpp:1154:36: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1154 | XMLData* sfx_volume = new XMLData("sfx_volume", itoa(getSFXVolume())); | ^~~~~~~~~~~~ config.cpp:1162:37: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1162 | std::ofstream fout(getUserResource("config"), std::ios::out); | ^~~~~~~~ make: Leaving directory '/home/iurt/rpmbuild/BUILD/monster-1.24/src' make: Entering directory '/home/iurt/rpmbuild/BUILD/monster-1.24/src' g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -g -O2 -I/usr/include/lua5.1 -I../tgui-0.9 -c menu.cpp In file included from monster.h:7, from menu.cpp:9: animation.h:19:54: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 19 | void saveFrame(BITMAP* bmp, int delay, PACKFILE* f) throw (WriteError); | ^~~~~ animation.h:20:25: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 20 | void save(PACKFILE* f) throw (WriteError); | ^~~~~ animation.h:22:3: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 22 | throw (ReadError); | ^~~~~ animation.h:23:25: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 23 | void load(PACKFILE* f) throw (std::bad_alloc, ReadError); | ^~~~~ animation.h:24:29: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 24 | void load(char *filename) throw (std::bad_alloc, ReadError); | ^~~~~ animation.h:31:3: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 31 | throw (std::bad_alloc); | ^~~~~ animation.h:55:37: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 55 | AnimationSet(const char* filename) throw (std::bad_alloc, ReadError); | ^~~~~ In file included from monster.h:8, from menu.cpp:9: area.h:49:40: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 49 | void writeTile(int tile, PACKFILE* f) throw (WriteError); | ^~~~~ area.h:51:28: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 51 | void save(char* filename) throw (WriteError); | ^~~~~ area.h:54:30: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 54 | void addObject(Object* obj) throw (std::bad_alloc); | ^~~~~ area.h:58:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 58 | void initLua() throw (std::bad_alloc, ReadError, ScriptError); | ^~~~~ area.h:65:29: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 65 | Area(const char* filename) throw (std::bad_alloc, ReadError); | ^~~~~ area.h:71:14: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 71 | void load() throw (std::bad_alloc, ReadError); | ^~~~~ area.h:90:34: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 90 | extern void loadTileAnimations() throw (std::bad_alloc, ReadError); | ^~~~~ In file included from battle.h:6, from monster.h:9, from menu.cpp:9: mwidgets.h:16:24: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 16 | extern void mWgtInit() throw (std::bad_alloc); | ^~~~~ In file included from config.h:4, from monster.h:12, from menu.cpp:9: graphics.h:76:39: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 76 | Screen(ScreenDescriptor* wantedMode) throw (std::bad_alloc, NoMode); | ^~~~~ In file included from monster.h:12, from menu.cpp:9: config.h:52:14: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 52 | void read() throw (ReadError); | ^~~~~ config.h:53:15: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 53 | void write() throw (WriteError); | ^~~~~ In file included from monster.h:17, from menu.cpp:9: io.h:8:40: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 8 | extern void iputl(long l, PACKFILE *f) throw (WriteError); | ^~~~~ io.h:9:32: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 9 | extern long igetl(PACKFILE *f) throw (ReadError); | ^~~~~ io.h:10:46: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 10 | extern void my_pack_putc(int c, PACKFILE* f) throw (WriteError); | ^~~~~ io.h:11:38: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 11 | extern int my_pack_getc(PACKFILE* f) throw (ReadError); | ^~~~~ io.h:14:38: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 14 | extern char* readString(PACKFILE* f) throw (ReadError); | ^~~~~ io.h:15:47: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 15 | extern void writeString(char* s, PACKFILE* f) throw (WriteError); | ^~~~~ io.h:16:63: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 16 | extern void readStats(struct PlayerStats* stats, PACKFILE* f) throw (ReadError); | ^~~~~ io.h:17:64: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 17 | extern void writeStats(struct PlayerStats* stats, PACKFILE* f) throw (WriteError); | ^~~~~ io.h:18:54: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 18 | extern void readItem(struct Item* item, PACKFILE* f) throw (ReadError); | ^~~~~ io.h:19:55: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 19 | extern void writeItem(struct Item* item, PACKFILE* f) throw (WriteError); | ^~~~~ io.h:20:38: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 20 | extern void saveGame(char* filename) throw (WriteError); | ^~~~~ io.h:21:38: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 21 | extern void loadGame(char* filename) throw (ReadError); | ^~~~~ In file included from monster.h:18, from menu.cpp:9: menu.h:5:28: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 5 | extern void loadMenuData() throw (ReadError); | ^~~~~ In file included from monster.h:23, from menu.cpp:9: script.h:18:24: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 18 | extern void initGame() throw (ReadError, ScriptError); | ^~~~~ In file included from monster.h:27, from menu.cpp:9: xml.h:16:26: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 16 | XMLData(char* filename) throw (ReadError); | ^~~~~ menu.cpp:405:21: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 405 | void loadMenuData() throw (ReadError) | ^~~~~ menu.cpp: In function 'void loadMenuData()': menu.cpp:407:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 407 | datafile = load_datafile(getResource("menu.dat")); | ^~~~~~~~~~ menu.cpp: In function 'void drawMenu(BITMAP*)': menu.cpp:520:17: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 520 | drawStats(bmp, "Coro", coro_face, &stats, x, y, bg, true); | ^~~~~~ menu.cpp: In function 'int inventoryPopup()': menu.cpp:551:51: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 551 | MWgtTextButton* use = new MWgtTextButton(10, 10, "Use"); | ^~~~~ menu.cpp:553:4: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 553 | "Arrange"); | ^~~~~~~~~ menu.cpp:555:4: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 555 | "Drop"); | ^~~~~~ menu.cpp:557:4: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 557 | "Examine"); | ^~~~~~~~~ menu.cpp:612:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 612 | playOgg("button.ogg"); | ^~~~~~~~~~~~ menu.cpp: In function 'int magicPopup()': menu.cpp:644:51: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 644 | MWgtTextButton* use = new MWgtTextButton(10, 10, "Cast"); | ^~~~~~ menu.cpp:646:4: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 646 | "Arrange"); | ^~~~~~~~~ menu.cpp:691:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 691 | playOgg("button.ogg"); | ^~~~~~~~~~~~ menu.cpp: In function 'int unequipPopup()': menu.cpp:722:54: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 722 | MWgtTextButton* weapon = new MWgtTextButton(10, 10, "Weapon"); | ^~~~~~~~ menu.cpp:724:4: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 724 | "Armor"); | ^~~~~~~ menu.cpp:769:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 769 | playOgg("button.ogg"); | ^~~~~~~~~~~~ menu.cpp: In function 'void dropPromptCallback(int*)': menu.cpp:795:10: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 795 | notify("", "You can't drop that...", ""); | ^~ menu.cpp:795:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 795 | notify("", "You can't drop that...", ""); | ^~~~~~~~~~~~~~~~~~~~~~~~ menu.cpp:795:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 795 | notify("", "You can't drop that...", ""); | ^~ menu.cpp:799:10: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 799 | notify("", "You better hold on to that...", ""); | ^~ menu.cpp:799:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 799 | notify("", "You better hold on to that...", ""); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ menu.cpp:799:47: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 799 | notify("", "You better hold on to that...", ""); | ^~ menu.cpp:802:43: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 802 | else if (*pressed >= 0 && !prompt(false, "Do you really want to", "drop this item?", "")) | ^~~~~~~~~~~~~~~~~~~~~~~ menu.cpp:802:68: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 802 | else if (*pressed >= 0 && !prompt(false, "Do you really want to", "drop this item?", "")) | ^~~~~~~~~~~~~~~~~ menu.cpp:802:87: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 802 | else if (*pressed >= 0 && !prompt(false, "Do you really want to", "drop this item?", "")) | ^~ menu.cpp: In function 'void pickEquipCallback(int*)': menu.cpp:811:10: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 811 | notify("", "You can't equip nothing...", ""); | ^~ menu.cpp:811:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 811 | notify("", "You can't equip nothing...", ""); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ menu.cpp:811:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 811 | notify("", "You can't equip nothing...", ""); | ^~ menu.cpp:815:10: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 815 | notify("", "You must drop something first...", ""); | ^~ menu.cpp:815:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 815 | notify("", "You must drop something first...", ""); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ menu.cpp:815:50: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 815 | notify("", "You must drop something first...", ""); | ^~ menu.cpp:821:11: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 821 | notify("That item is not", "a weapon or armor...", ""); | ^~~~~~~~~~~~~~~~~~ menu.cpp:821:31: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 821 | notify("That item is not", "a weapon or armor...", ""); | ^~~~~~~~~~~~~~~~~~~~~~ menu.cpp:821:55: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 821 | notify("That item is not", "a weapon or armor...", ""); | ^~ menu.cpp: In function 'void useItemCallback(int*)': menu.cpp:833:10: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 833 | notify("", "You can't use that now...", ""); | ^~ menu.cpp:833:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 833 | notify("", "You can't use that now...", ""); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ menu.cpp:833:43: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 833 | notify("", "You can't use that now...", ""); | ^~ menu.cpp:837:10: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 837 | notify("", "You can't use that...", ""); | ^~ menu.cpp:837:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 837 | notify("", "You can't use that...", ""); | ^~~~~~~~~~~~~~~~~~~~~~~ menu.cpp:837:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 837 | notify("", "You can't use that...", ""); | ^~ menu.cpp: In function 'void castSpellCallback(int*, PlayerStats*)': menu.cpp:857:10: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 857 | notify("", "You can't cast that now...", ""); | ^~ menu.cpp:857:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 857 | notify("", "You can't cast that now...", ""); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ menu.cpp:857:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 857 | notify("", "You can't cast that now...", ""); | ^~ menu.cpp:861:10: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 861 | notify("You don't have enough mana", "to cast that...", ""); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ menu.cpp:861:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 861 | notify("You don't have enough mana", "to cast that...", ""); | ^~~~~~~~~~~~~~~~~ menu.cpp:861:59: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 861 | notify("You don't have enough mana", "to cast that...", ""); | ^~ menu.cpp: In function 'bool pauseGame()': menu.cpp:898:57: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 898 | MWgtTextButton* magic = new MWgtTextButton(225, 15, "Magic"); | ^~~~~~~ menu.cpp:899:61: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 899 | MWgtTextButton* inventory = new MWgtTextButton(225, 30, "Inventory"); | ^~~~~~~~~~~ menu.cpp:900:57: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 900 | MWgtTextButton* equip = new MWgtTextButton(225, 45, "Equip"); | ^~~~~~~ menu.cpp:901:59: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 901 | MWgtTextButton* unequip = new MWgtTextButton(225, 60, "Un-Equip"); | ^~~~~~~~~~ menu.cpp:902:63: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 902 | MWgtTextButton* playerstats = new MWgtTextButton(225, 75, "Stats"); | ^~~~~~~ menu.cpp:903:56: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 903 | MWgtTextButton* save = new MWgtTextButton(225, 90, "Save"); | ^~~~~~ menu.cpp:904:59: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 904 | MWgtTextButton* resume = new MWgtTextButton(225, 105, "Resume"); | ^~~~~~~~ menu.cpp:905:57: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 905 | MWgtTextButton* quit = new MWgtTextButton(225, 120, "Quit"); | ^~~~~~ menu.cpp:958:26: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 958 | if (prompt(false, "Do you really want to quit?", "Unsaved data will be lost...", "")) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ menu.cpp:958:57: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 958 | if (prompt(false, "Do you really want to quit?", "Unsaved data will be lost...", "")) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ menu.cpp:958:89: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 958 | if (prompt(false, "Do you really want to quit?", "Unsaved data will be lost...", "")) { | ^~ menu.cpp:1008:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1008 | playOgg("error.ogg"); | ^~~~~~~~~~~ menu.cpp:1028:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1028 | playOgg("error.ogg"); | ^~~~~~~~~~~ menu.cpp:1215:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1215 | notify("", msg, ""); | ^~ menu.cpp:1215:27: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1215 | notify("", msg, ""); | ^~ menu.cpp:1240:17: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1240 | notify("You inventory is full...", "Drop or use an item", "to proceed"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ menu.cpp:1240:45: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1240 | notify("You inventory is full...", "Drop or use an item", "to proceed"); | ^~~~~~~~~~~~~~~~~~~~~ menu.cpp:1240:68: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1240 | notify("You inventory is full...", "Drop or use an item", "to proceed"); | ^~~~~~~~~~~~ menu.cpp:1265:17: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1265 | notify("You inventory is full...", "Drop or use an item", "to proceed"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ menu.cpp:1265:45: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1265 | notify("You inventory is full...", "Drop or use an item", "to proceed"); | ^~~~~~~~~~~~~~~~~~~~~ menu.cpp:1265:68: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1265 | notify("You inventory is full...", "Drop or use an item", "to proceed"); | ^~~~~~~~~~~~ menu.cpp:1354:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1354 | playOgg("error.ogg"); | ^~~~~~~~~~~ menu.cpp:1461:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1461 | int n = selectSaveState("Save Game", "Are you sure you want to overwrite", "this save state?", "", true); | ^~~~~~~~~~~ menu.cpp:1461:46: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1461 | int n = selectSaveState("Save Game", "Are you sure you want to overwrite", "this save state?", "", true); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ menu.cpp:1461:84: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1461 | int n = selectSaveState("Save Game", "Are you sure you want to overwrite", "this save state?", "", true); | ^~~~~~~~~~~~~~~~~~ menu.cpp:1461:104: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1461 | int n = selectSaveState("Save Game", "Are you sure you want to overwrite", "this save state?", "", true); | ^~ menu.cpp:1463:35: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1463 | saveGame(getUserResource("save/%d.save", n+1)); | ^~~~~~~~~~~~~~ menu.cpp:1480:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1480 | notify("", "You can't save here...", ""); | ^~ menu.cpp:1480:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1480 | notify("", "You can't save here...", ""); | ^~~~~~~~~~~~~~~~~~~~~~~~ menu.cpp:1480:46: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1480 | notify("", "You can't save here...", ""); | ^~ menu.cpp: In function 'void notify(char*, char*, char*)': menu.cpp:1555:48: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1555 | MWgtButton* button = new MWgtButton(0, 0, -1, "OK"); | ^~~~ menu.cpp: In function 'void jumboNotify(char**)': menu.cpp:1658:48: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1658 | MWgtButton* button = new MWgtButton(0, 0, -1, "OK"); | ^~~~ menu.cpp: In function 'bool prompt(bool, char*, char*, char*)': menu.cpp:1754:49: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1754 | MWgtButton* button1 = new MWgtButton(0, 0, -1, "Yes"); | ^~~~~ menu.cpp:1755:49: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1755 | MWgtButton* button2 = new MWgtButton(0, 0, -1, "No"); | ^~~~ menu.cpp: In function 'bool createSaveState(char*)': menu.cpp:1915:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1915 | writeString("start", f); | ^~~~~~~ menu.cpp:1936:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1936 | writeString("", f); | ^~ menu.cpp: In function 'bool readPreviews()': menu.cpp:1957:30: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1957 | if (exists(getUserResource("save/%d.save", i+1))) { | ^~~~~~~~~~~~~~ menu.cpp:1959:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1959 | readPreview(getUserResource("save/%d.save", i+1), &previews[i]); | ^~~~~~~~~~~~~~ menu.cpp:1966:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1966 | if (!createSaveState(getUserResource("save/%d.save", i+1))) { | ^~~~~~~~~~~~~~ menu.cpp:1967:19: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1967 | debug_message("Error creating empty save state.\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ menu.cpp: In function 'int selectSaveState(char*, char*, char*, char*, bool)': menu.cpp:2010:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2010 | sprintf(userDir, "%s", getUserResource("")); | ^~ menu.cpp:2017:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2017 | mkdir(getUserResource("save"), 0770); | ^~~~~~ menu.cpp:2020:10: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2020 | notify("", "Could not read save states", ""); | ^~ menu.cpp:2020:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2020 | notify("", "Could not read save states", ""); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ menu.cpp:2020:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2020 | notify("", "Could not read save states", ""); | ^~ make: Leaving directory '/home/iurt/rpmbuild/BUILD/monster-1.24/src' make: Entering directory '/home/iurt/rpmbuild/BUILD/monster-1.24/src' g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -g -O2 -I/usr/include/lua5.1 -I../tgui-0.9 -c graphics.cpp In file included from monster.h:7, from graphics.cpp:7: animation.h:19:54: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 19 | void saveFrame(BITMAP* bmp, int delay, PACKFILE* f) throw (WriteError); | ^~~~~ animation.h:20:25: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 20 | void save(PACKFILE* f) throw (WriteError); | ^~~~~ animation.h:22:3: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 22 | throw (ReadError); | ^~~~~ animation.h:23:25: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 23 | void load(PACKFILE* f) throw (std::bad_alloc, ReadError); | ^~~~~ animation.h:24:29: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 24 | void load(char *filename) throw (std::bad_alloc, ReadError); | ^~~~~ animation.h:31:3: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 31 | throw (std::bad_alloc); | ^~~~~ animation.h:55:37: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 55 | AnimationSet(const char* filename) throw (std::bad_alloc, ReadError); | ^~~~~ In file included from monster.h:8, from graphics.cpp:7: area.h:49:40: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 49 | void writeTile(int tile, PACKFILE* f) throw (WriteError); | ^~~~~ area.h:51:28: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 51 | void save(char* filename) throw (WriteError); | ^~~~~ area.h:54:30: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 54 | void addObject(Object* obj) throw (std::bad_alloc); | ^~~~~ area.h:58:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 58 | void initLua() throw (std::bad_alloc, ReadError, ScriptError); | ^~~~~ area.h:65:29: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 65 | Area(const char* filename) throw (std::bad_alloc, ReadError); | ^~~~~ area.h:71:14: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 71 | void load() throw (std::bad_alloc, ReadError); | ^~~~~ area.h:90:34: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 90 | extern void loadTileAnimations() throw (std::bad_alloc, ReadError); | ^~~~~ In file included from battle.h:6, from monster.h:9, from graphics.cpp:7: mwidgets.h:16:24: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 16 | extern void mWgtInit() throw (std::bad_alloc); | ^~~~~ In file included from config.h:4, from monster.h:12, from graphics.cpp:7: graphics.h:76:39: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 76 | Screen(ScreenDescriptor* wantedMode) throw (std::bad_alloc, NoMode); | ^~~~~ In file included from monster.h:12, from graphics.cpp:7: config.h:52:14: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 52 | void read() throw (ReadError); | ^~~~~ config.h:53:15: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 53 | void write() throw (WriteError); | ^~~~~ In file included from monster.h:17, from graphics.cpp:7: io.h:8:40: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 8 | extern void iputl(long l, PACKFILE *f) throw (WriteError); | ^~~~~ io.h:9:32: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 9 | extern long igetl(PACKFILE *f) throw (ReadError); | ^~~~~ io.h:10:46: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 10 | extern void my_pack_putc(int c, PACKFILE* f) throw (WriteError); | ^~~~~ io.h:11:38: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 11 | extern int my_pack_getc(PACKFILE* f) throw (ReadError); | ^~~~~ io.h:14:38: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 14 | extern char* readString(PACKFILE* f) throw (ReadError); | ^~~~~ io.h:15:47: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 15 | extern void writeString(char* s, PACKFILE* f) throw (WriteError); | ^~~~~ io.h:16:63: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 16 | extern void readStats(struct PlayerStats* stats, PACKFILE* f) throw (ReadError); | ^~~~~ io.h:17:64: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 17 | extern void writeStats(struct PlayerStats* stats, PACKFILE* f) throw (WriteError); | ^~~~~ io.h:18:54: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 18 | extern void readItem(struct Item* item, PACKFILE* f) throw (ReadError); | ^~~~~ io.h:19:55: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 19 | extern void writeItem(struct Item* item, PACKFILE* f) throw (WriteError); | ^~~~~ io.h:20:38: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 20 | extern void saveGame(char* filename) throw (WriteError); | ^~~~~ io.h:21:38: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 21 | extern void loadGame(char* filename) throw (ReadError); | ^~~~~ In file included from monster.h:18, from graphics.cpp:7: menu.h:5:28: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 5 | extern void loadMenuData() throw (ReadError); | ^~~~~ In file included from monster.h:23, from graphics.cpp:7: script.h:18:24: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 18 | extern void initGame() throw (ReadError, ScriptError); | ^~~~~ In file included from monster.h:27, from graphics.cpp:7: xml.h:16:26: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 16 | XMLData(char* filename) throw (ReadError); | ^~~~~ graphics.cpp: In member function 'bool Screen::setMode(ScreenDescriptor*)': graphics.cpp:1405:17: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1405 | debug_message("Error setting graphics mode: %s\n", allegro_error); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ graphics.cpp: At global scope: graphics.cpp:1743:46: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 1743 | Screen::Screen(ScreenDescriptor* wantedMode) throw (std::bad_alloc, NoMode) : | ^~~~~ make: Leaving directory '/home/iurt/rpmbuild/BUILD/monster-1.24/src' make: Entering directory '/home/iurt/rpmbuild/BUILD/monster-1.24/src' g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -g -O2 -I/usr/include/lua5.1 -I../tgui-0.9 -c player.cpp In file included from monster.h:7, from player.cpp:1: animation.h:19:54: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 19 | void saveFrame(BITMAP* bmp, int delay, PACKFILE* f) throw (WriteError); | ^~~~~ animation.h:20:25: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 20 | void save(PACKFILE* f) throw (WriteError); | ^~~~~ animation.h:22:3: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 22 | throw (ReadError); | ^~~~~ animation.h:23:25: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 23 | void load(PACKFILE* f) throw (std::bad_alloc, ReadError); | ^~~~~ animation.h:24:29: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 24 | void load(char *filename) throw (std::bad_alloc, ReadError); | ^~~~~ animation.h:31:3: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 31 | throw (std::bad_alloc); | ^~~~~ animation.h:55:37: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 55 | AnimationSet(const char* filename) throw (std::bad_alloc, ReadError); | ^~~~~ In file included from monster.h:8, from player.cpp:1: area.h:49:40: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 49 | void writeTile(int tile, PACKFILE* f) throw (WriteError); | ^~~~~ area.h:51:28: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 51 | void save(char* filename) throw (WriteError); | ^~~~~ area.h:54:30: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 54 | void addObject(Object* obj) throw (std::bad_alloc); | ^~~~~ area.h:58:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 58 | void initLua() throw (std::bad_alloc, ReadError, ScriptError); | ^~~~~ area.h:65:29: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 65 | Area(const char* filename) throw (std::bad_alloc, ReadError); | ^~~~~ area.h:71:14: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 71 | void load() throw (std::bad_alloc, ReadError); | ^~~~~ area.h:90:34: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 90 | extern void loadTileAnimations() throw (std::bad_alloc, ReadError); | ^~~~~ In file included from battle.h:6, from monster.h:9, from player.cpp:1: mwidgets.h:16:24: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 16 | extern void mWgtInit() throw (std::bad_alloc); | ^~~~~ In file included from config.h:4, from monster.h:12, from player.cpp:1: graphics.h:76:39: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 76 | Screen(ScreenDescriptor* wantedMode) throw (std::bad_alloc, NoMode); | ^~~~~ In file included from monster.h:12, from player.cpp:1: config.h:52:14: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 52 | void read() throw (ReadError); | ^~~~~ config.h:53:15: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 53 | void write() throw (WriteError); | ^~~~~ In file included from monster.h:17, from player.cpp:1: io.h:8:40: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 8 | extern void iputl(long l, PACKFILE *f) throw (WriteError); | ^~~~~ io.h:9:32: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 9 | extern long igetl(PACKFILE *f) throw (ReadError); | ^~~~~ io.h:10:46: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 10 | extern void my_pack_putc(int c, PACKFILE* f) throw (WriteError); | ^~~~~ io.h:11:38: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 11 | extern int my_pack_getc(PACKFILE* f) throw (ReadError); | ^~~~~ io.h:14:38: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 14 | extern char* readString(PACKFILE* f) throw (ReadError); | ^~~~~ io.h:15:47: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 15 | extern void writeString(char* s, PACKFILE* f) throw (WriteError); | ^~~~~ io.h:16:63: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 16 | extern void readStats(struct PlayerStats* stats, PACKFILE* f) throw (ReadError); | ^~~~~ io.h:17:64: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 17 | extern void writeStats(struct PlayerStats* stats, PACKFILE* f) throw (WriteError); | ^~~~~ io.h:18:54: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 18 | extern void readItem(struct Item* item, PACKFILE* f) throw (ReadError); | ^~~~~ io.h:19:55: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 19 | extern void writeItem(struct Item* item, PACKFILE* f) throw (WriteError); | ^~~~~ io.h:20:38: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 20 | extern void saveGame(char* filename) throw (WriteError); | ^~~~~ io.h:21:38: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 21 | extern void loadGame(char* filename) throw (ReadError); | ^~~~~ In file included from monster.h:18, from player.cpp:1: menu.h:5:28: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 5 | extern void loadMenuData() throw (ReadError); | ^~~~~ In file included from monster.h:23, from player.cpp:1: script.h:18:24: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 18 | extern void initGame() throw (ReadError, ScriptError); | ^~~~~ In file included from monster.h:27, from player.cpp:1: xml.h:16:26: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 16 | XMLData(char* filename) throw (ReadError); | ^~~~~ player.cpp:12:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 12 | char* playerName = "Coro"; | ^~~~~~ player.cpp:14:2: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 14 | "Moryt" | ^~~~~~~ player.cpp: In function 'void applyItemEffects(ItemEffects*, PlayerStats*, BattleStats*)': player.cpp:90:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 90 | debug_message("status->%d\n", ie->status); | ^~~~~~~~~~~~~~ player.cpp:91:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 91 | debug_message("hp->%d\n", ie->hp); | ^~~~~~~~~~ player.cpp:92:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 92 | debug_message("maxHP->%d\n", ie->maxHP); | ^~~~~~~~~~~~~ player.cpp:93:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 93 | debug_message("mana->%d\n", ie->mana); | ^~~~~~~~~~~~ make: Leaving directory '/home/iurt/rpmbuild/BUILD/monster-1.24/src' make: Entering directory '/home/iurt/rpmbuild/BUILD/monster-1.24/src' g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -g -O2 -I/usr/include/lua5.1 -I../tgui-0.9 -c timer.cpp make: Leaving directory '/home/iurt/rpmbuild/BUILD/monster-1.24/src' make: Entering directory '/home/iurt/rpmbuild/BUILD/monster-1.24/src' g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -g -O2 -I/usr/include/lua5.1 -I../tgui-0.9 -c player_combatant.cpp In file included from monster.h:7, from player_combatant.cpp:1: animation.h:19:54: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 19 | void saveFrame(BITMAP* bmp, int delay, PACKFILE* f) throw (WriteError); | ^~~~~ animation.h:20:25: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 20 | void save(PACKFILE* f) throw (WriteError); | ^~~~~ animation.h:22:3: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 22 | throw (ReadError); | ^~~~~ animation.h:23:25: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 23 | void load(PACKFILE* f) throw (std::bad_alloc, ReadError); | ^~~~~ animation.h:24:29: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 24 | void load(char *filename) throw (std::bad_alloc, ReadError); | ^~~~~ animation.h:31:3: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 31 | throw (std::bad_alloc); | ^~~~~ animation.h:55:37: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 55 | AnimationSet(const char* filename) throw (std::bad_alloc, ReadError); | ^~~~~ In file included from monster.h:8, from player_combatant.cpp:1: area.h:49:40: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 49 | void writeTile(int tile, PACKFILE* f) throw (WriteError); | ^~~~~ area.h:51:28: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 51 | void save(char* filename) throw (WriteError); | ^~~~~ area.h:54:30: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 54 | void addObject(Object* obj) throw (std::bad_alloc); | ^~~~~ area.h:58:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 58 | void initLua() throw (std::bad_alloc, ReadError, ScriptError); | ^~~~~ area.h:65:29: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 65 | Area(const char* filename) throw (std::bad_alloc, ReadError); | ^~~~~ area.h:71:14: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 71 | void load() throw (std::bad_alloc, ReadError); | ^~~~~ area.h:90:34: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 90 | extern void loadTileAnimations() throw (std::bad_alloc, ReadError); | ^~~~~ In file included from battle.h:6, from monster.h:9, from player_combatant.cpp:1: mwidgets.h:16:24: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 16 | extern void mWgtInit() throw (std::bad_alloc); | ^~~~~ In file included from config.h:4, from monster.h:12, from player_combatant.cpp:1: graphics.h:76:39: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 76 | Screen(ScreenDescriptor* wantedMode) throw (std::bad_alloc, NoMode); | ^~~~~ In file included from monster.h:12, from player_combatant.cpp:1: config.h:52:14: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 52 | void read() throw (ReadError); | ^~~~~ config.h:53:15: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 53 | void write() throw (WriteError); | ^~~~~ In file included from monster.h:17, from player_combatant.cpp:1: io.h:8:40: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 8 | extern void iputl(long l, PACKFILE *f) throw (WriteError); | ^~~~~ io.h:9:32: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 9 | extern long igetl(PACKFILE *f) throw (ReadError); | ^~~~~ io.h:10:46: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 10 | extern void my_pack_putc(int c, PACKFILE* f) throw (WriteError); | ^~~~~ io.h:11:38: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 11 | extern int my_pack_getc(PACKFILE* f) throw (ReadError); | ^~~~~ io.h:14:38: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 14 | extern char* readString(PACKFILE* f) throw (ReadError); | ^~~~~ io.h:15:47: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 15 | extern void writeString(char* s, PACKFILE* f) throw (WriteError); | ^~~~~ io.h:16:63: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 16 | extern void readStats(struct PlayerStats* stats, PACKFILE* f) throw (ReadError); | ^~~~~ io.h:17:64: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 17 | extern void writeStats(struct PlayerStats* stats, PACKFILE* f) throw (WriteError); | ^~~~~ io.h:18:54: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 18 | extern void readItem(struct Item* item, PACKFILE* f) throw (ReadError); | ^~~~~ io.h:19:55: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 19 | extern void writeItem(struct Item* item, PACKFILE* f) throw (WriteError); | ^~~~~ io.h:20:38: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 20 | extern void saveGame(char* filename) throw (WriteError); | ^~~~~ io.h:21:38: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 21 | extern void loadGame(char* filename) throw (ReadError); | ^~~~~ In file included from monster.h:18, from player_combatant.cpp:1: menu.h:5:28: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 5 | extern void loadMenuData() throw (ReadError); | ^~~~~ In file included from monster.h:23, from player_combatant.cpp:1: script.h:18:24: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 18 | extern void initGame() throw (ReadError, ScriptError); | ^~~~~ In file included from monster.h:27, from player_combatant.cpp:1: xml.h:16:26: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 16 | XMLData(char* filename) throw (ReadError); | ^~~~~ player_combatant.cpp: In member function 'virtual TurnAction* PlayerCombatant::getAction()': player_combatant.cpp:62:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 62 | playOgg("error.ogg"); | ^~~~~~~~~~~ player_combatant.cpp:141:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 141 | playOgg("error.ogg"); | ^~~~~~~~~~~ player_combatant.cpp:145:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 145 | playOgg("error.ogg"); | ^~~~~~~~~~~ player_combatant.cpp:169:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 169 | playOgg("error.ogg"); | ^~~~~~~~~~~ player_combatant.cpp:198:19: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 198 | debug_message("Using party item...\n"); | ^~~~~~~~~~~~~~~~~~~~~~~ player_combatant.cpp: In member function 'void PlayerCombatant::createActionGUI()': player_combatant.cpp:263:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 263 | txtAttack = new MWgtTextButton(10, 8, "Attack"); | ^~~~~~~~ player_combatant.cpp:264:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 264 | txtSpell = new MWgtTextButton(10, 20, "Magic"); | ^~~~~~~ player_combatant.cpp:265:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 265 | txtItem = new MWgtTextButton(10, 32, "Item"); | ^~~~~~ player_combatant.cpp:266:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 266 | txtSkip = new MWgtTextButton(10, 44, "Skip"); | ^~~~~~ player_combatant.cpp:267:38: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 267 | txtRun = new MWgtTextButton(10, 56, "Run"); | ^~~~~ player_combatant.cpp: In constructor 'PlayerCombatant::PlayerCombatant(const char*, bool, int, int)': player_combatant.cpp:553:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 553 | animSet = new AnimationSet(getResource("objects/%s.anims", partnerNames[partner])); | ^~~~~~~~~~~~~~~~~~ player_combatant.cpp:563:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 563 | animSet = new AnimationSet(getResource("objects/%s.anims", playerName)); | ^~~~~~~~~~~~~~~~~~ make: Leaving directory '/home/iurt/rpmbuild/BUILD/monster-1.24/src' make: Entering directory '/home/iurt/rpmbuild/BUILD/monster-1.24/src' g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -g -O2 -I/usr/include/lua5.1 -I../tgui-0.9 -c sound.cpp In file included from monster.h:7, from sound.cpp:9: animation.h:19:54: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 19 | void saveFrame(BITMAP* bmp, int delay, PACKFILE* f) throw (WriteError); | ^~~~~ animation.h:20:25: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 20 | void save(PACKFILE* f) throw (WriteError); | ^~~~~ animation.h:22:3: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 22 | throw (ReadError); | ^~~~~ animation.h:23:25: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 23 | void load(PACKFILE* f) throw (std::bad_alloc, ReadError); | ^~~~~ animation.h:24:29: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 24 | void load(char *filename) throw (std::bad_alloc, ReadError); | ^~~~~ animation.h:31:3: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 31 | throw (std::bad_alloc); | ^~~~~ animation.h:55:37: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 55 | AnimationSet(const char* filename) throw (std::bad_alloc, ReadError); | ^~~~~ In file included from monster.h:8, from sound.cpp:9: area.h:49:40: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 49 | void writeTile(int tile, PACKFILE* f) throw (WriteError); | ^~~~~ area.h:51:28: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 51 | void save(char* filename) throw (WriteError); | ^~~~~ area.h:54:30: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 54 | void addObject(Object* obj) throw (std::bad_alloc); | ^~~~~ area.h:58:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 58 | void initLua() throw (std::bad_alloc, ReadError, ScriptError); | ^~~~~ area.h:65:29: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 65 | Area(const char* filename) throw (std::bad_alloc, ReadError); | ^~~~~ area.h:71:14: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 71 | void load() throw (std::bad_alloc, ReadError); | ^~~~~ area.h:90:34: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 90 | extern void loadTileAnimations() throw (std::bad_alloc, ReadError); | ^~~~~ In file included from battle.h:6, from monster.h:9, from sound.cpp:9: mwidgets.h:16:24: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 16 | extern void mWgtInit() throw (std::bad_alloc); | ^~~~~ In file included from config.h:4, from monster.h:12, from sound.cpp:9: graphics.h:76:39: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 76 | Screen(ScreenDescriptor* wantedMode) throw (std::bad_alloc, NoMode); | ^~~~~ In file included from monster.h:12, from sound.cpp:9: config.h:52:14: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 52 | void read() throw (ReadError); | ^~~~~ config.h:53:15: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 53 | void write() throw (WriteError); | ^~~~~ In file included from monster.h:17, from sound.cpp:9: io.h:8:40: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 8 | extern void iputl(long l, PACKFILE *f) throw (WriteError); | ^~~~~ io.h:9:32: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 9 | extern long igetl(PACKFILE *f) throw (ReadError); | ^~~~~ io.h:10:46: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 10 | extern void my_pack_putc(int c, PACKFILE* f) throw (WriteError); | ^~~~~ io.h:11:38: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 11 | extern int my_pack_getc(PACKFILE* f) throw (ReadError); | ^~~~~ io.h:14:38: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 14 | extern char* readString(PACKFILE* f) throw (ReadError); | ^~~~~ io.h:15:47: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 15 | extern void writeString(char* s, PACKFILE* f) throw (WriteError); | ^~~~~ io.h:16:63: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 16 | extern void readStats(struct PlayerStats* stats, PACKFILE* f) throw (ReadError); | ^~~~~ io.h:17:64: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 17 | extern void writeStats(struct PlayerStats* stats, PACKFILE* f) throw (WriteError); | ^~~~~ io.h:18:54: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 18 | extern void readItem(struct Item* item, PACKFILE* f) throw (ReadError); | ^~~~~ io.h:19:55: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 19 | extern void writeItem(struct Item* item, PACKFILE* f) throw (WriteError); | ^~~~~ io.h:20:38: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 20 | extern void saveGame(char* filename) throw (WriteError); | ^~~~~ io.h:21:38: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 21 | extern void loadGame(char* filename) throw (ReadError); | ^~~~~ In file included from monster.h:18, from sound.cpp:9: menu.h:5:28: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 5 | extern void loadMenuData() throw (ReadError); | ^~~~~ In file included from monster.h:23, from sound.cpp:9: script.h:18:24: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 18 | extern void initGame() throw (ReadError, ScriptError); | ^~~~~ In file included from monster.h:27, from sound.cpp:9: xml.h:16:26: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 16 | XMLData(char* filename) throw (ReadError); | ^~~~~ sound.cpp: In function 'Sound* loadSound(char*)': sound.cpp:73:36: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 73 | s->sample = logg_load(getResource("sounds/%s", name)); | ^~~~~~~~~~~ sound.cpp: In function 'void startMusic(const char*)': sound.cpp:115:30: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 115 | strcpy(resName, getResource("music/%s", name)); | ^~~~~~~~~~ sound.cpp:120:69: error: invalid use of incomplete type 'struct LOGG_Stream' 120 | if (music_size != 0 && music[music_end] && !strcmp(music[music_end]->filename, resName)) { | ^~ In file included from sound.cpp:6: /usr/include/logg.h:33:16: note: forward declaration of 'struct LOGG_Stream' 33 | typedef struct LOGG_Stream LOGG_Stream; | ^~~~~~~~~~~ sound.cpp: In function 'void restartMusic()': sound.cpp:176:18: error: invalid use of incomplete type 'struct LOGG_Stream' 176 | music[music_end]->volume = config.getMusicVolume(); | ^~ In file included from sound.cpp:6: /usr/include/logg.h:33:16: note: forward declaration of 'struct LOGG_Stream' 33 | typedef struct LOGG_Stream LOGG_Stream; | ^~~~~~~~~~~ make: *** [Makefile.unix:63: sound.o] Error 1 make: Leaving directory '/home/iurt/rpmbuild/BUILD/monster-1.24/src' make: *** Waiting for unfinished jobs.... make: Entering directory '/home/iurt/rpmbuild/BUILD/monster-1.24/src' g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -g -O2 -I/usr/include/lua5.1 -I../tgui-0.9 -c util.cpp In file included from monster.h:7, from util.cpp:5: animation.h:19:54: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 19 | void saveFrame(BITMAP* bmp, int delay, PACKFILE* f) throw (WriteError); | ^~~~~ animation.h:20:25: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 20 | void save(PACKFILE* f) throw (WriteError); | ^~~~~ animation.h:22:3: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 22 | throw (ReadError); | ^~~~~ animation.h:23:25: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 23 | void load(PACKFILE* f) throw (std::bad_alloc, ReadError); | ^~~~~ animation.h:24:29: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 24 | void load(char *filename) throw (std::bad_alloc, ReadError); | ^~~~~ animation.h:31:3: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 31 | throw (std::bad_alloc); | ^~~~~ animation.h:55:37: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 55 | AnimationSet(const char* filename) throw (std::bad_alloc, ReadError); | ^~~~~ In file included from monster.h:8, from util.cpp:5: area.h:49:40: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 49 | void writeTile(int tile, PACKFILE* f) throw (WriteError); | ^~~~~ area.h:51:28: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 51 | void save(char* filename) throw (WriteError); | ^~~~~ area.h:54:30: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 54 | void addObject(Object* obj) throw (std::bad_alloc); | ^~~~~ area.h:58:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 58 | void initLua() throw (std::bad_alloc, ReadError, ScriptError); | ^~~~~ area.h:65:29: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 65 | Area(const char* filename) throw (std::bad_alloc, ReadError); | ^~~~~ area.h:71:14: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 71 | void load() throw (std::bad_alloc, ReadError); | ^~~~~ area.h:90:34: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 90 | extern void loadTileAnimations() throw (std::bad_alloc, ReadError); | ^~~~~ In file included from battle.h:6, from monster.h:9, from util.cpp:5: mwidgets.h:16:24: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 16 | extern void mWgtInit() throw (std::bad_alloc); | ^~~~~ In file included from config.h:4, from monster.h:12, from util.cpp:5: graphics.h:76:39: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 76 | Screen(ScreenDescriptor* wantedMode) throw (std::bad_alloc, NoMode); | ^~~~~ In file included from monster.h:12, from util.cpp:5: config.h:52:14: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 52 | void read() throw (ReadError); | ^~~~~ config.h:53:15: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 53 | void write() throw (WriteError); | ^~~~~ In file included from monster.h:17, from util.cpp:5: io.h:8:40: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 8 | extern void iputl(long l, PACKFILE *f) throw (WriteError); | ^~~~~ io.h:9:32: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 9 | extern long igetl(PACKFILE *f) throw (ReadError); | ^~~~~ io.h:10:46: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 10 | extern void my_pack_putc(int c, PACKFILE* f) throw (WriteError); | ^~~~~ io.h:11:38: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 11 | extern int my_pack_getc(PACKFILE* f) throw (ReadError); | ^~~~~ io.h:14:38: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 14 | extern char* readString(PACKFILE* f) throw (ReadError); | ^~~~~ io.h:15:47: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 15 | extern void writeString(char* s, PACKFILE* f) throw (WriteError); | ^~~~~ io.h:16:63: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 16 | extern void readStats(struct PlayerStats* stats, PACKFILE* f) throw (ReadError); | ^~~~~ io.h:17:64: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 17 | extern void writeStats(struct PlayerStats* stats, PACKFILE* f) throw (WriteError); | ^~~~~ io.h:18:54: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 18 | extern void readItem(struct Item* item, PACKFILE* f) throw (ReadError); | ^~~~~ io.h:19:55: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 19 | extern void writeItem(struct Item* item, PACKFILE* f) throw (WriteError); | ^~~~~ io.h:20:38: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 20 | extern void saveGame(char* filename) throw (WriteError); | ^~~~~ io.h:21:38: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 21 | extern void loadGame(char* filename) throw (ReadError); | ^~~~~ In file included from monster.h:18, from util.cpp:5: menu.h:5:28: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 5 | extern void loadMenuData() throw (ReadError); | ^~~~~ In file included from monster.h:23, from util.cpp:5: script.h:18:24: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 18 | extern void initGame() throw (ReadError, ScriptError); | ^~~~~ In file included from monster.h:27, from util.cpp:5: xml.h:16:26: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 16 | XMLData(char* filename) throw (ReadError); | ^~~~~ util.cpp: In function 'char* getScriptExtension()': util.cpp:144:10: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 144 | return "scr"; | ^~~~~ util.cpp:146:10: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 146 | return "lua"; | ^~~~~ util.cpp: In function 'void start(bool)': util.cpp:231:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 231 | debug_message("Using %dx%d@%dbpp\n", SCREEN_W, SCREEN_H, get_color_depth()); | ^~~~~~~~~~~~~~~~~~~~~ util.cpp:245:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 245 | animSet = new AnimationSet(getResource("objects/Coro.anims")); | ^~~~~~~~~~~~~~~~~~~~ make: Leaving directory '/home/iurt/rpmbuild/BUILD/monster-1.24/src' make: Entering directory '/home/iurt/rpmbuild/BUILD/monster-1.24/src' g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -g -O2 -I/usr/include/lua5.1 -I../tgui-0.9 -c mwidgets.cpp In file included from monster.h:7, from mwidgets.cpp:7: animation.h:19:54: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 19 | void saveFrame(BITMAP* bmp, int delay, PACKFILE* f) throw (WriteError); | ^~~~~ animation.h:20:25: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 20 | void save(PACKFILE* f) throw (WriteError); | ^~~~~ animation.h:22:3: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 22 | throw (ReadError); | ^~~~~ animation.h:23:25: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 23 | void load(PACKFILE* f) throw (std::bad_alloc, ReadError); | ^~~~~ animation.h:24:29: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 24 | void load(char *filename) throw (std::bad_alloc, ReadError); | ^~~~~ animation.h:31:3: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 31 | throw (std::bad_alloc); | ^~~~~ animation.h:55:37: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 55 | AnimationSet(const char* filename) throw (std::bad_alloc, ReadError); | ^~~~~ In file included from monster.h:8, from mwidgets.cpp:7: area.h:49:40: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 49 | void writeTile(int tile, PACKFILE* f) throw (WriteError); | ^~~~~ area.h:51:28: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 51 | void save(char* filename) throw (WriteError); | ^~~~~ area.h:54:30: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 54 | void addObject(Object* obj) throw (std::bad_alloc); | ^~~~~ area.h:58:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 58 | void initLua() throw (std::bad_alloc, ReadError, ScriptError); | ^~~~~ area.h:65:29: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 65 | Area(const char* filename) throw (std::bad_alloc, ReadError); | ^~~~~ area.h:71:14: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 71 | void load() throw (std::bad_alloc, ReadError); | ^~~~~ area.h:90:34: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 90 | extern void loadTileAnimations() throw (std::bad_alloc, ReadError); | ^~~~~ In file included from battle.h:6, from monster.h:9, from mwidgets.cpp:7: mwidgets.h:16:24: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 16 | extern void mWgtInit() throw (std::bad_alloc); | ^~~~~ In file included from config.h:4, from monster.h:12, from mwidgets.cpp:7: graphics.h:76:39: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 76 | Screen(ScreenDescriptor* wantedMode) throw (std::bad_alloc, NoMode); | ^~~~~ In file included from monster.h:12, from mwidgets.cpp:7: config.h:52:14: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 52 | void read() throw (ReadError); | ^~~~~ config.h:53:15: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 53 | void write() throw (WriteError); | ^~~~~ In file included from monster.h:17, from mwidgets.cpp:7: io.h:8:40: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 8 | extern void iputl(long l, PACKFILE *f) throw (WriteError); | ^~~~~ io.h:9:32: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 9 | extern long igetl(PACKFILE *f) throw (ReadError); | ^~~~~ io.h:10:46: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 10 | extern void my_pack_putc(int c, PACKFILE* f) throw (WriteError); | ^~~~~ io.h:11:38: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 11 | extern int my_pack_getc(PACKFILE* f) throw (ReadError); | ^~~~~ io.h:14:38: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 14 | extern char* readString(PACKFILE* f) throw (ReadError); | ^~~~~ io.h:15:47: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 15 | extern void writeString(char* s, PACKFILE* f) throw (WriteError); | ^~~~~ io.h:16:63: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 16 | extern void readStats(struct PlayerStats* stats, PACKFILE* f) throw (ReadError); | ^~~~~ io.h:17:64: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 17 | extern void writeStats(struct PlayerStats* stats, PACKFILE* f) throw (WriteError); | ^~~~~ io.h:18:54: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 18 | extern void readItem(struct Item* item, PACKFILE* f) throw (ReadError); | ^~~~~ io.h:19:55: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 19 | extern void writeItem(struct Item* item, PACKFILE* f) throw (WriteError); | ^~~~~ io.h:20:38: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 20 | extern void saveGame(char* filename) throw (WriteError); | ^~~~~ io.h:21:38: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 21 | extern void loadGame(char* filename) throw (ReadError); | ^~~~~ In file included from monster.h:18, from mwidgets.cpp:7: menu.h:5:28: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 5 | extern void loadMenuData() throw (ReadError); | ^~~~~ In file included from monster.h:23, from mwidgets.cpp:7: script.h:18:24: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 18 | extern void initGame() throw (ReadError, ScriptError); | ^~~~~ In file included from monster.h:27, from mwidgets.cpp:7: xml.h:16:26: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 16 | XMLData(char* filename) throw (ReadError); | ^~~~~ mwidgets.cpp:64:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 64 | void mWgtInit() throw (std::bad_alloc) | ^~~~~ mwidgets.cpp: In function 'void mWgtInit()': mwidgets.cpp:77:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 77 | mFont = load_font(getResource("bmpfont.pcx"), pal, &size); | ^~~~~~~~~~~~~ mwidgets.cpp:81:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 81 | mFont = load_font(getResource("font.ttf"), pal, &size); | ^~~~~~~~~~ mwidgets.cpp:92:34: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 92 | dat = load_datafile(getResource("gui.dat")); | ^~~~~~~~~ mwidgets.cpp:121:35: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 121 | tinyfont = load_font(getResource("battle_gfx/tinyfont.pcx"), 0, 0); | ^~~~~~~~~~~~~~~~~~~~~~~~~ mwidgets.cpp: In member function 'virtual bool MWgtButton::handleKey(int)': mwidgets.cpp:423:11: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 423 | playOgg("button.ogg"); | ^~~~~~~~~~~~ mwidgets.cpp: In member function 'virtual bool MWgtCheckbox::handleKey(int)': mwidgets.cpp:547:11: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 547 | playOgg("button.ogg"); | ^~~~~~~~~~~~ mwidgets.cpp: In member function 'virtual bool MWgtIcon::handleKey(int)': mwidgets.cpp:820:11: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 820 | playOgg("button.ogg"); | ^~~~~~~~~~~~ mwidgets.cpp: In member function 'virtual bool MWgtTextButton::handleKey(int)': mwidgets.cpp:1110:11: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1110 | playOgg("button.ogg"); | ^~~~~~~~~~~~ mwidgets.cpp: In member function 'virtual bool MWgtInventory::handleKey(int)': mwidgets.cpp:1210:11: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1210 | playOgg("button.ogg"); | ^~~~~~~~~~~~ mwidgets.cpp:1226:11: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1226 | playOgg("button.ogg"); | ^~~~~~~~~~~~ mwidgets.cpp: In member function 'virtual bool MWgtSelector::handleKey(int)': mwidgets.cpp:1383:11: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1383 | playOgg("button.ogg"); | ^~~~~~~~~~~~ mwidgets.cpp:1400:11: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1400 | playOgg("button.ogg"); | ^~~~~~~~~~~~ mwidgets.cpp: In member function 'virtual bool MWgtSpellSelector::handleKey(int)': mwidgets.cpp:1489:11: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1489 | playOgg("button.ogg"); | ^~~~~~~~~~~~ mwidgets.cpp:1505:11: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1505 | playOgg("button.ogg"); | ^~~~~~~~~~~~ make: Leaving directory '/home/iurt/rpmbuild/BUILD/monster-1.24/src' make: Entering directory '/home/iurt/rpmbuild/BUILD/monster-1.24/src' g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -g -O2 -I/usr/include/lua5.1 -I../tgui-0.9 -c monster.cpp In file included from monster.h:7, from monster.cpp:3: animation.h:19:54: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 19 | void saveFrame(BITMAP* bmp, int delay, PACKFILE* f) throw (WriteError); | ^~~~~ animation.h:20:25: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 20 | void save(PACKFILE* f) throw (WriteError); | ^~~~~ animation.h:22:3: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 22 | throw (ReadError); | ^~~~~ animation.h:23:25: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 23 | void load(PACKFILE* f) throw (std::bad_alloc, ReadError); | ^~~~~ animation.h:24:29: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 24 | void load(char *filename) throw (std::bad_alloc, ReadError); | ^~~~~ animation.h:31:3: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 31 | throw (std::bad_alloc); | ^~~~~ animation.h:55:37: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 55 | AnimationSet(const char* filename) throw (std::bad_alloc, ReadError); | ^~~~~ In file included from monster.h:8, from monster.cpp:3: area.h:49:40: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 49 | void writeTile(int tile, PACKFILE* f) throw (WriteError); | ^~~~~ area.h:51:28: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 51 | void save(char* filename) throw (WriteError); | ^~~~~ area.h:54:30: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 54 | void addObject(Object* obj) throw (std::bad_alloc); | ^~~~~ area.h:58:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 58 | void initLua() throw (std::bad_alloc, ReadError, ScriptError); | ^~~~~ area.h:65:29: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 65 | Area(const char* filename) throw (std::bad_alloc, ReadError); | ^~~~~ area.h:71:14: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 71 | void load() throw (std::bad_alloc, ReadError); | ^~~~~ area.h:90:34: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 90 | extern void loadTileAnimations() throw (std::bad_alloc, ReadError); | ^~~~~ In file included from battle.h:6, from monster.h:9, from monster.cpp:3: mwidgets.h:16:24: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 16 | extern void mWgtInit() throw (std::bad_alloc); | ^~~~~ In file included from config.h:4, from monster.h:12, from monster.cpp:3: graphics.h:76:39: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 76 | Screen(ScreenDescriptor* wantedMode) throw (std::bad_alloc, NoMode); | ^~~~~ In file included from monster.h:12, from monster.cpp:3: config.h:52:14: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 52 | void read() throw (ReadError); | ^~~~~ config.h:53:15: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 53 | void write() throw (WriteError); | ^~~~~ In file included from monster.h:17, from monster.cpp:3: io.h:8:40: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 8 | extern void iputl(long l, PACKFILE *f) throw (WriteError); | ^~~~~ io.h:9:32: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 9 | extern long igetl(PACKFILE *f) throw (ReadError); | ^~~~~ io.h:10:46: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 10 | extern void my_pack_putc(int c, PACKFILE* f) throw (WriteError); | ^~~~~ io.h:11:38: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 11 | extern int my_pack_getc(PACKFILE* f) throw (ReadError); | ^~~~~ io.h:14:38: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 14 | extern char* readString(PACKFILE* f) throw (ReadError); | ^~~~~ io.h:15:47: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 15 | extern void writeString(char* s, PACKFILE* f) throw (WriteError); | ^~~~~ io.h:16:63: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 16 | extern void readStats(struct PlayerStats* stats, PACKFILE* f) throw (ReadError); | ^~~~~ io.h:17:64: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 17 | extern void writeStats(struct PlayerStats* stats, PACKFILE* f) throw (WriteError); | ^~~~~ io.h:18:54: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 18 | extern void readItem(struct Item* item, PACKFILE* f) throw (ReadError); | ^~~~~ io.h:19:55: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 19 | extern void writeItem(struct Item* item, PACKFILE* f) throw (WriteError); | ^~~~~ io.h:20:38: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 20 | extern void saveGame(char* filename) throw (WriteError); | ^~~~~ io.h:21:38: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 21 | extern void loadGame(char* filename) throw (ReadError); | ^~~~~ In file included from monster.h:18, from monster.cpp:3: menu.h:5:28: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 5 | extern void loadMenuData() throw (ReadError); | ^~~~~ In file included from monster.h:23, from monster.cpp:3: script.h:18:24: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 18 | extern void initGame() throw (ReadError, ScriptError); | ^~~~~ In file included from monster.h:27, from monster.cpp:3: xml.h:16:26: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 16 | XMLData(char* filename) throw (ReadError); | ^~~~~ monster.cpp: In function 'void handleScrolling()': monster.cpp:80:17: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 80 | debug_message("New area name: %s\n", newAreaName); | ^~~~~~~~~~~~~~~~~~~~~ monster.cpp: In function 'void run()': monster.cpp:144:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 144 | debug_message("%d FPS.\n", fps); | ^~~~~~~~~~~ monster.cpp:160:21: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 160 | if (prompt(true, "Really exit this game?", "Unsaved data will be lost!", "")) | ^~~~~~~~~~~~~~~~~~~~~~~~ monster.cpp:160:47: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 160 | if (prompt(true, "Really exit this game?", "Unsaved data will be lost!", "")) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ monster.cpp:160:77: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 160 | if (prompt(true, "Really exit this game?", "Unsaved data will be lost!", "")) | ^~ monster.cpp: In function 'int main(int, char**)': monster.cpp:189:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 189 | if (check_arg(argc, argv, "-ttf") >= 0) { | ^~~~~~ monster.cpp:193:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 193 | if (check_arg(argc, argv, "-no-cfg") >= 0) { | ^~~~~~~~~ monster.cpp:200:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 200 | if (check_arg(argc, argv, "-impatient-mode") >= 0) { | ^~~~~~~~~~~~~~~~~ monster.cpp:204:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 204 | int n = check_arg(argc, argv, "-audio-buffer"); | ^~~~~~~~~~~~~~~ monster.cpp:232:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 232 | if (check_arg(argc, argv, "-disable-battles") >= 0) | ^~~~~~~~~~~~~~~~~~ monster.cpp:235:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 235 | if (check_arg(argc, argv, "-no-intro") >= 0) | ^~~~~~~~~~~ monster.cpp:240:45: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 240 | logos_datafile = load_datafile(getResource("logos.dat")); | ^~~~~~~~~~~ monster.cpp:280:10: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 280 | playOgg("nooskewl.ogg"); | ^~~~~~~~~~~~~~ monster.cpp:296:55: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 296 | DATAFILE* textDat = load_datafile_object(getResource("monster.dat"), "MONSTER_PCX"); | ^~~~~~~~~~~~~ monster.cpp:304:85: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 304 | MWgtTextButton* cont = new MWgtTextButton(320/2-mWgtTextWidth("Continue")/2, 130, "Continue"); | ^~~~~~~~~~ monster.cpp:305:83: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 305 | MWgtTextButton* erase = new MWgtTextButton(320/2-mWgtTextWidth("Erase")/2, 145, "Erase"); | ^~~~~~~ monster.cpp:306:89: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 306 | MWgtTextButton* settings = new MWgtTextButton(320/2-mWgtTextWidth("Settings")/2, 160, "Settings"); | ^~~~~~~~~~ monster.cpp:307:81: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 307 | MWgtTextButton* quit = new MWgtTextButton(320/2-mWgtTextWidth("Quit")/2, 175, "Quit"); | ^~~~~~ monster.cpp:399:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 399 | int ss = selectSaveState("Load Game", 0, 0, 0, true); | ^~~~~~~~~~~ monster.cpp:404:30: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 404 | loadGame(getUserResource("save/%d.save", ss+1)); | ^~~~~~~~~~~~~~ monster.cpp:422:31: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 422 | int n = selectSaveState("Erase Game", "*** Are you sure you want to erase ***", "*** this save state? ***", "*** No undo! ***", false); | ^~~~~~~~~~~~ monster.cpp:422:45: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 422 | int n = selectSaveState("Erase Game", "*** Are you sure you want to erase ***", "*** this save state? ***", "*** No undo! ***", false); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ monster.cpp:422:87: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 422 | int n = selectSaveState("Erase Game", "*** Are you sure you want to erase ***", "*** this save state? ***", "*** No undo! ***", false); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ monster.cpp:422:115: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 422 | int n = selectSaveState("Erase Game", "*** Are you sure you want to erase ***", "*** this save state? ***", "*** No undo! ***", false); | ^~~~~~~~~~~~~~~~~~ monster.cpp:424:36: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 424 | delete_file(getUserResource("save/%d.save", n+1)); | ^~~~~~~~~~~~~~ monster.cpp: In function 'void handleScrolling()': monster.cpp:78:29: warning: '-' directive writing 1 byte into a region of size between 0 and 255 [-Wformat-overflow=] 78 | sprintf(newAreaName, "%s%d-%d", section, xi+xinc, yi+yinc); | ^ In file included from /usr/include/stdio.h:867, from /usr/include/c++/9/cstdio:42, from /usr/include/c++/9/ext/string_conversions.h:43, from /usr/include/c++/9/bits/basic_string.h:6493, from /usr/include/c++/9/string:55, from mwidgets.h:5, from battle.h:6, from monster.h:9, from monster.cpp:3: /usr/include/bits/stdio2.h:36:34: note: '__builtin___sprintf_chk' output between 4 and 279 bytes into a destination of size 256 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 37 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make: Leaving directory '/home/iurt/rpmbuild/BUILD/monster-1.24/src' make: Entering directory '/home/iurt/rpmbuild/BUILD/monster-1.24/src' g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -g -O2 -I/usr/include/lua5.1 -I../tgui-0.9 -c xml.cpp In file included from xml.cpp:1: xml.h:16:26: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 16 | XMLData(char* filename) throw (ReadError); | ^~~~~ xml.cpp:13:34: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 13 | XMLData::XMLData(char* filename) throw (ReadError) : | ^~~~~ make: Leaving directory '/home/iurt/rpmbuild/BUILD/monster-1.24/src' make: Entering directory '/home/iurt/rpmbuild/BUILD/monster-1.24/src' g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -g -O2 -I/usr/include/lua5.1 -I../tgui-0.9 -c spell.cpp In file included from monster.h:7, from spell.cpp:3: animation.h:19:54: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 19 | void saveFrame(BITMAP* bmp, int delay, PACKFILE* f) throw (WriteError); | ^~~~~ animation.h:20:25: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 20 | void save(PACKFILE* f) throw (WriteError); | ^~~~~ animation.h:22:3: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 22 | throw (ReadError); | ^~~~~ animation.h:23:25: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 23 | void load(PACKFILE* f) throw (std::bad_alloc, ReadError); | ^~~~~ animation.h:24:29: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 24 | void load(char *filename) throw (std::bad_alloc, ReadError); | ^~~~~ animation.h:31:3: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 31 | throw (std::bad_alloc); | ^~~~~ animation.h:55:37: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 55 | AnimationSet(const char* filename) throw (std::bad_alloc, ReadError); | ^~~~~ In file included from monster.h:8, from spell.cpp:3: area.h:49:40: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 49 | void writeTile(int tile, PACKFILE* f) throw (WriteError); | ^~~~~ area.h:51:28: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 51 | void save(char* filename) throw (WriteError); | ^~~~~ area.h:54:30: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 54 | void addObject(Object* obj) throw (std::bad_alloc); | ^~~~~ area.h:58:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 58 | void initLua() throw (std::bad_alloc, ReadError, ScriptError); | ^~~~~ area.h:65:29: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 65 | Area(const char* filename) throw (std::bad_alloc, ReadError); | ^~~~~ area.h:71:14: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 71 | void load() throw (std::bad_alloc, ReadError); | ^~~~~ area.h:90:34: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 90 | extern void loadTileAnimations() throw (std::bad_alloc, ReadError); | ^~~~~ In file included from battle.h:6, from monster.h:9, from spell.cpp:3: mwidgets.h:16:24: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 16 | extern void mWgtInit() throw (std::bad_alloc); | ^~~~~ In file included from config.h:4, from monster.h:12, from spell.cpp:3: graphics.h:76:39: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 76 | Screen(ScreenDescriptor* wantedMode) throw (std::bad_alloc, NoMode); | ^~~~~ In file included from monster.h:12, from spell.cpp:3: config.h:52:14: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 52 | void read() throw (ReadError); | ^~~~~ config.h:53:15: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 53 | void write() throw (WriteError); | ^~~~~ In file included from monster.h:17, from spell.cpp:3: io.h:8:40: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 8 | extern void iputl(long l, PACKFILE *f) throw (WriteError); | ^~~~~ io.h:9:32: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 9 | extern long igetl(PACKFILE *f) throw (ReadError); | ^~~~~ io.h:10:46: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 10 | extern void my_pack_putc(int c, PACKFILE* f) throw (WriteError); | ^~~~~ io.h:11:38: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 11 | extern int my_pack_getc(PACKFILE* f) throw (ReadError); | ^~~~~ io.h:14:38: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 14 | extern char* readString(PACKFILE* f) throw (ReadError); | ^~~~~ io.h:15:47: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 15 | extern void writeString(char* s, PACKFILE* f) throw (WriteError); | ^~~~~ io.h:16:63: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 16 | extern void readStats(struct PlayerStats* stats, PACKFILE* f) throw (ReadError); | ^~~~~ io.h:17:64: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 17 | extern void writeStats(struct PlayerStats* stats, PACKFILE* f) throw (WriteError); | ^~~~~ io.h:18:54: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 18 | extern void readItem(struct Item* item, PACKFILE* f) throw (ReadError); | ^~~~~ io.h:19:55: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 19 | extern void writeItem(struct Item* item, PACKFILE* f) throw (WriteError); | ^~~~~ io.h:20:38: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 20 | extern void saveGame(char* filename) throw (WriteError); | ^~~~~ io.h:21:38: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 21 | extern void loadGame(char* filename) throw (ReadError); | ^~~~~ In file included from monster.h:18, from spell.cpp:3: menu.h:5:28: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 5 | extern void loadMenuData() throw (ReadError); | ^~~~~ In file included from monster.h:23, from spell.cpp:3: script.h:18:24: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 18 | extern void initGame() throw (ReadError, ScriptError); | ^~~~~ In file included from monster.h:27, from spell.cpp:3: xml.h:16:26: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 16 | XMLData(char* filename) throw (ReadError); | ^~~~~ spell.cpp: In member function 'virtual char* CureSpell::apply(PlayerStats*, BattleStats*, int, bool&, bool)': spell.cpp:91:10: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 91 | playOgg("dust.ogg"); | ^~~~~~~~~~ spell.cpp: In member function 'virtual void DarknessSpell::init(std::vector&)': spell.cpp:353:10: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 353 | playOgg("darkness.ogg"); | ^~~~~~~~~~~~~~ spell.cpp: In constructor 'DarknessSpell::DarknessSpell()': spell.cpp:357:8: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 357 | Spell("Darkness") | ^~~~~~~~~~ spell.cpp: In member function 'virtual void FireSpell::init(std::vector&)': spell.cpp:499:10: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 499 | playOgg("fire.ogg"); | ^~~~~~~~~~ spell.cpp: In constructor 'FireSpell::FireSpell(char*, bool, int, int, int)': spell.cpp:511:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 511 | anim->load(getResource("spell_gfx/Fire.anim")); | ^~~~~~~~~~~~~~~~~~~~~ spell.cpp: In member function 'virtual char* SummonSpell::apply(PlayerStats*, BattleStats*, int, bool&, bool)': spell.cpp:545:10: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 545 | playOgg("dust.ogg"); | ^~~~~~~~~~ spell.cpp: In constructor 'SummonSpell::SummonSpell()': spell.cpp:569:8: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 569 | Spell("Summon") | ^~~~~~~~ spell.cpp: In member function 'virtual void DemonSpell::init(std::vector&)': spell.cpp:667:10: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 667 | playOgg("demons.ogg"); | ^~~~~~~~~~~~ spell.cpp: In constructor 'DemonSpell::DemonSpell(char*, bool, int, int, int)': spell.cpp:679:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 679 | anim->load(getResource("spell_gfx/Demon.anim")); | ^~~~~~~~~~~~~~~~~~~~~~ spell.cpp: In function 'void initSpells()': spell.cpp:696:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 696 | spells.push_back(new CureSpell("Cure", 50, 5)); | ^~~~~~ spell.cpp:697:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 697 | spells.push_back(new RainSpell("Rain", 2500, 30, 5, 32, 64, 0, 0.0f, 0.06f, 200, 32, 9, "rain.ogg")); | ^~~~~~ spell.cpp:697:90: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 697 | spells.push_back(new RainSpell("Rain", 2500, 30, 5, 32, 64, 0, 0.0f, 0.06f, 200, 32, 9, "rain.ogg")); | ^~~~~~~~~~ spell.cpp:699:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 699 | spells.push_back(new FireSpell("Fire", false, 200, 80, 10)); | ^~~~~~ spell.cpp:701:34: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 701 | spells.push_back(new DemonSpell("Demons", true, 150, 75, 8)); | ^~~~~~~~ make: Leaving directory '/home/iurt/rpmbuild/BUILD/monster-1.24/src' make: Entering directory '/home/iurt/rpmbuild/BUILD/monster-1.24/src' g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -g -O2 -I/usr/include/lua5.1 -I../tgui-0.9 -c script.cpp In file included from monster.h:7, from script.cpp:6: animation.h:19:54: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 19 | void saveFrame(BITMAP* bmp, int delay, PACKFILE* f) throw (WriteError); | ^~~~~ animation.h:20:25: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 20 | void save(PACKFILE* f) throw (WriteError); | ^~~~~ animation.h:22:3: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 22 | throw (ReadError); | ^~~~~ animation.h:23:25: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 23 | void load(PACKFILE* f) throw (std::bad_alloc, ReadError); | ^~~~~ animation.h:24:29: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 24 | void load(char *filename) throw (std::bad_alloc, ReadError); | ^~~~~ animation.h:31:3: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 31 | throw (std::bad_alloc); | ^~~~~ animation.h:55:37: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 55 | AnimationSet(const char* filename) throw (std::bad_alloc, ReadError); | ^~~~~ In file included from monster.h:8, from script.cpp:6: area.h:49:40: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 49 | void writeTile(int tile, PACKFILE* f) throw (WriteError); | ^~~~~ area.h:51:28: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 51 | void save(char* filename) throw (WriteError); | ^~~~~ area.h:54:30: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 54 | void addObject(Object* obj) throw (std::bad_alloc); | ^~~~~ area.h:58:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 58 | void initLua() throw (std::bad_alloc, ReadError, ScriptError); | ^~~~~ area.h:65:29: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 65 | Area(const char* filename) throw (std::bad_alloc, ReadError); | ^~~~~ area.h:71:14: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 71 | void load() throw (std::bad_alloc, ReadError); | ^~~~~ area.h:90:34: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 90 | extern void loadTileAnimations() throw (std::bad_alloc, ReadError); | ^~~~~ In file included from battle.h:6, from monster.h:9, from script.cpp:6: mwidgets.h:16:24: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 16 | extern void mWgtInit() throw (std::bad_alloc); | ^~~~~ In file included from config.h:4, from monster.h:12, from script.cpp:6: graphics.h:76:39: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 76 | Screen(ScreenDescriptor* wantedMode) throw (std::bad_alloc, NoMode); | ^~~~~ In file included from monster.h:12, from script.cpp:6: config.h:52:14: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 52 | void read() throw (ReadError); | ^~~~~ config.h:53:15: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 53 | void write() throw (WriteError); | ^~~~~ In file included from monster.h:17, from script.cpp:6: io.h:8:40: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 8 | extern void iputl(long l, PACKFILE *f) throw (WriteError); | ^~~~~ io.h:9:32: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 9 | extern long igetl(PACKFILE *f) throw (ReadError); | ^~~~~ io.h:10:46: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 10 | extern void my_pack_putc(int c, PACKFILE* f) throw (WriteError); | ^~~~~ io.h:11:38: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 11 | extern int my_pack_getc(PACKFILE* f) throw (ReadError); | ^~~~~ io.h:14:38: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 14 | extern char* readString(PACKFILE* f) throw (ReadError); | ^~~~~ io.h:15:47: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 15 | extern void writeString(char* s, PACKFILE* f) throw (WriteError); | ^~~~~ io.h:16:63: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 16 | extern void readStats(struct PlayerStats* stats, PACKFILE* f) throw (ReadError); | ^~~~~ io.h:17:64: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 17 | extern void writeStats(struct PlayerStats* stats, PACKFILE* f) throw (WriteError); | ^~~~~ io.h:18:54: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 18 | extern void readItem(struct Item* item, PACKFILE* f) throw (ReadError); | ^~~~~ io.h:19:55: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 19 | extern void writeItem(struct Item* item, PACKFILE* f) throw (WriteError); | ^~~~~ io.h:20:38: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 20 | extern void saveGame(char* filename) throw (WriteError); | ^~~~~ io.h:21:38: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 21 | extern void loadGame(char* filename) throw (ReadError); | ^~~~~ In file included from monster.h:18, from script.cpp:6: menu.h:5:28: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 5 | extern void loadMenuData() throw (ReadError); | ^~~~~ In file included from monster.h:23, from script.cpp:6: script.h:18:24: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 18 | extern void initGame() throw (ReadError, ScriptError); | ^~~~~ In file included from monster.h:27, from script.cpp:6: xml.h:16:26: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 16 | XMLData(char* filename) throw (ReadError); | ^~~~~ script.cpp: In function 'void callLua(lua_State*, const char*, const char*, ...)': script.cpp:60:17: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 60 | debug_message("error running function `f': %s", lua_tostring(luaState, -1)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ script.cpp: In function 'ItemEffects* getItemEffects(int)': script.cpp:193:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 193 | debug_message("Loading global script...\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ script.cpp:194:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 194 | if (luaL_loadfile(luaState, getResource("scripts/global.%s", getScriptExtension()))) { | ^~~~~~~~~~~~~~~~~~~ script.cpp:199:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 199 | debug_message("Running global script...\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ script.cpp: In function 'bool itemAffectsAll(int)': script.cpp:232:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 232 | debug_message("Loading global script...\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ script.cpp:233:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 233 | if (luaL_loadfile(luaState, getResource("scripts/global.%s", getScriptExtension()))) { | ^~~~~~~~~~~~~~~~~~~ script.cpp:238:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 238 | debug_message("Running global script...\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ script.cpp: In function 'int CAddObject(lua_State*)': script.cpp:369:17: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 369 | debug_message("%s", "Error adding object at %d,%d\n", x, y); | ^~~~ script.cpp: In function 'int CSetObjectAnimationSet(lua_State*)': script.cpp:384:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 384 | debug_message("Setting object %d animation set to %s\n", n-1, name); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ script.cpp:388:36: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 388 | a = new AnimationSet(getResource("objects/%s.anims", name)); | ^~~~~~~~~~~~~~~~~~ script.cpp:391:17: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 391 | debug_message("Error loading animation set %s\n", name); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ script.cpp: In function 'int CSetObjectSubAnimationNamed(lua_State*)': script.cpp:865:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 865 | debug_message("Trying to set object %d sub animation to %s failed.\n", obj-1, name); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ script.cpp: In function 'int CDoShop(lua_State*)': script.cpp:975:66: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 975 | MWgtButton* doneButton = new MWgtButton(frameWidth/2-32, y, 64, "Done"); | ^~~~~~ script.cpp:988:62: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 988 | MWgtButton* yes = new MWgtButton(confirmWidth/4-15, by, 30, "Yes"); | ^~~~~ script.cpp:989:63: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 989 | MWgtButton* no = new MWgtButton(confirmWidth*3/4-15, by, 30, "No"); | ^~~~ script.cpp:990:69: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 990 | MWgtButton *examine = new MWgtButton(confirmWidth/2-30, by+23, 60, "Examine"); | ^~~~~~~~~ script.cpp:1037:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1037 | playOgg("error.ogg"); | ^~~~~~~~~~~ script.cpp:1041:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1041 | playOgg("error.ogg"); | ^~~~~~~~~~~ script.cpp:1047:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1047 | playOgg("give.ogg"); | ^~~~~~~~~~ script.cpp: In function 'int CDoQuestion(lua_State*)': script.cpp:1199:60: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1199 | MWgtButton* yes = new MWgtButton(frameWidth/4-15, by, 30, "Yes"); | ^~~~~ script.cpp:1200:61: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1200 | MWgtButton* no = new MWgtButton(frameWidth*3/4-15, by, 30, "No"); | ^~~~ script.cpp: In function 'int CUpdateUntilArrival(lua_State*)': script.cpp:1316:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1316 | debug_message("Reached destination.\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~ script.cpp: In function 'int CStartBattle(lua_State*)': script.cpp:1413:10: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1413 | playOgg("enter_battle.ogg"); | ^~~~~~~~~~~~~~~~~~ script.cpp: In function 'int CBurnStuff(lua_State*)': script.cpp:1831:26: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1831 | Spell* fire = findSpell("Fire"); | ^~~~~~ script.cpp: In function 'int CShowEnding(lua_State*)': script.cpp:1887:51: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1887 | DATAFILE *dat = load_datafile_object(getResource("the_end.dat"), "THE_END_PCX"); | ^~~~~~~~~~~~~ make: Leaving directory '/home/iurt/rpmbuild/BUILD/monster-1.24/src' error: Bad exit status from /home/iurt/rpmbuild/tmp/rpm-tmp.qsz5uQ (%build) RPM build errors: Macro expanded in comment on line 10: %{version}/%{name}-%{version}.tar.gz %setup_compile_flags is deprecated, use %set_build_flags instead Bad exit status from /home/iurt/rpmbuild/tmp/rpm-tmp.qsz5uQ (%build) I: [iurt_root_command] ERROR: chroot