D: [iurt_root_command] chroot warning: Macro expanded in comment on line 12: %{version}/%{name}-%{version}.tar.gz Installing /home/pterjan/rpmbuild/SRPMS/monster-1.24-10.mga9.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.hIN2G8 + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD + rm -rf monster-1.24 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/monster-1.24.tar.xz + STATUS=0 + '[' 0 -ne 0 ']' + cd monster-1.24 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/monster-1.24-mga-data-path.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/monster-1.24-gcc7.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/monster-1.24-allegra.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/monster-1.24-git-logg_stream.patch + sed -i s/lua5.1/lua-5.1/ src/Makefile.unix + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.6LNFBX + umask 022 + cd /home/pterjan/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=sha1 -Wl,--enable-new-dtags' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + export 'CFLAGS=-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -std=c++14' + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -std=c++14' + make -C tgui-0.9 -f Makefile.unix make: Entering directory '/home/pterjan/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 -std=c++14 -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 -std=c++14 -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 -std=c++14 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:58: 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:61: 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:62: 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:45: 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:60: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 120 | AWgtCheckbox* checkbox = new AWgtCheckbox(0, 0, 0, "Checkbox", | ^~~~~~~~~~ awexamp.cpp:125:27: 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:27: 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:27: 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:27: 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/pterjan/rpmbuild/BUILD/monster-1.24/tgui-0.9' + /usr/bin/make -O -j16 V=1 VERBOSE=1 -C src -f Makefile.unix SHARED=1 make: Entering directory '/home/pterjan/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 -std=c++14 -g -O2 -I/usr/include/lua-5.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:61: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 19 | void saveFrame(BITMAP* bmp, int delay, PACKFILE* f) throw (WriteError); | ^~~~~ animation.h:20:32: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 20 | void save(PACKFILE* f) throw (WriteError); | ^~~~~ animation.h:22:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 22 | throw (ReadError); | ^~~~~ animation.h:23:32: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 23 | void load(PACKFILE* f) throw (std::bad_alloc, ReadError); | ^~~~~ animation.h:24:36: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 24 | void load(char *filename) throw (std::bad_alloc, ReadError); | ^~~~~ animation.h:31:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 31 | throw (std::bad_alloc); | ^~~~~ animation.h:55:44: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 55 | AnimationSet(const char* filename) throw (std::bad_alloc, ReadError); | ^~~~~ graphics.h:76:46: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 76 | Screen(ScreenDescriptor* wantedMode) throw (std::bad_alloc, NoMode); | ^~~~~ config.h:52:21: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 52 | void read() throw (ReadError); | ^~~~~ config.h:53:22: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 53 | void write() throw (WriteError); | ^~~~~ make: Leaving directory '/home/pterjan/rpmbuild/BUILD/monster-1.24/src' make: Entering directory '/home/pterjan/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 -std=c++14 -g -O2 -I/usr/include/lua-5.1 -I../tgui-0.9 -c animation.cpp In file included from animation.cpp:5: animation.h:19:61: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 19 | void saveFrame(BITMAP* bmp, int delay, PACKFILE* f) throw (WriteError); | ^~~~~ animation.h:20:32: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 20 | void save(PACKFILE* f) throw (WriteError); | ^~~~~ animation.h:22:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 22 | throw (ReadError); | ^~~~~ animation.h:23:32: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 23 | void load(PACKFILE* f) throw (std::bad_alloc, ReadError); | ^~~~~ animation.h:24:36: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 24 | void load(char *filename) throw (std::bad_alloc, ReadError); | ^~~~~ animation.h:31:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 31 | throw (std::bad_alloc); | ^~~~~ animation.h:55:44: 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:47: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 49 | void writeTile(int tile, PACKFILE* f) throw (WriteError); | ^~~~~ area.h:51:35: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 51 | void save(char* filename) throw (WriteError); | ^~~~~ area.h:54:37: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 54 | void addObject(Object* obj) throw (std::bad_alloc); | ^~~~~ area.h:58:24: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 58 | void initLua() throw (std::bad_alloc, ReadError, ScriptError); | ^~~~~ area.h:65:36: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 65 | Area(const char* filename) throw (std::bad_alloc, ReadError); | ^~~~~ area.h:71:21: 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: 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: graphics.h:76:46: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 76 | Screen(ScreenDescriptor* wantedMode) throw (std::bad_alloc, NoMode); | ^~~~~ config.h:52:21: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 52 | void read() throw (ReadError); | ^~~~~ config.h:53:22: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 53 | void write() throw (WriteError); | ^~~~~ In file included from monster.h:18: 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: 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: xml.h:16:33: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 16 | XMLData(char* filename) throw (ReadError); | ^~~~~ 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:39: 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:23: 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/pterjan/rpmbuild/BUILD/monster-1.24/src' make: Entering directory '/home/pterjan/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 -std=c++14 -g -O2 -I/usr/include/lua-5.1 -I../tgui-0.9 -c battle_affects.cpp In file included from monster.h:7, from battle_affects.cpp:3: animation.h:19:61: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 19 | void saveFrame(BITMAP* bmp, int delay, PACKFILE* f) throw (WriteError); | ^~~~~ animation.h:20:32: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 20 | void save(PACKFILE* f) throw (WriteError); | ^~~~~ animation.h:22:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 22 | throw (ReadError); | ^~~~~ animation.h:23:32: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 23 | void load(PACKFILE* f) throw (std::bad_alloc, ReadError); | ^~~~~ animation.h:24:36: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 24 | void load(char *filename) throw (std::bad_alloc, ReadError); | ^~~~~ animation.h:31:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 31 | throw (std::bad_alloc); | ^~~~~ animation.h:55:44: 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: area.h:49:47: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 49 | void writeTile(int tile, PACKFILE* f) throw (WriteError); | ^~~~~ area.h:51:35: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 51 | void save(char* filename) throw (WriteError); | ^~~~~ area.h:54:37: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 54 | void addObject(Object* obj) throw (std::bad_alloc); | ^~~~~ area.h:58:24: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 58 | void initLua() throw (std::bad_alloc, ReadError, ScriptError); | ^~~~~ area.h:65:36: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 65 | Area(const char* filename) throw (std::bad_alloc, ReadError); | ^~~~~ area.h:71:21: 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: 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: graphics.h:76:46: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 76 | Screen(ScreenDescriptor* wantedMode) throw (std::bad_alloc, NoMode); | ^~~~~ config.h:52:21: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 52 | void read() throw (ReadError); | ^~~~~ config.h:53:22: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 53 | void write() throw (WriteError); | ^~~~~ In file included from monster.h:17: 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: 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: 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: xml.h:16:33: 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:38: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 22 | Slow1Affect() : BattleAffect("Slow1") { | ^~~~~~~ make: Leaving directory '/home/pterjan/rpmbuild/BUILD/monster-1.24/src' make: Entering directory '/home/pterjan/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 -std=c++14 -g -O2 -I/usr/include/lua-5.1 -I../tgui-0.9 -c enemy_combatant.cpp In file included from monster.h:7, from enemy_combatant.cpp:1: animation.h:19:61: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 19 | void saveFrame(BITMAP* bmp, int delay, PACKFILE* f) throw (WriteError); | ^~~~~ animation.h:20:32: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 20 | void save(PACKFILE* f) throw (WriteError); | ^~~~~ animation.h:22:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 22 | throw (ReadError); | ^~~~~ animation.h:23:32: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 23 | void load(PACKFILE* f) throw (std::bad_alloc, ReadError); | ^~~~~ animation.h:24:36: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 24 | void load(char *filename) throw (std::bad_alloc, ReadError); | ^~~~~ animation.h:31:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 31 | throw (std::bad_alloc); | ^~~~~ animation.h:55:44: 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: area.h:49:47: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 49 | void writeTile(int tile, PACKFILE* f) throw (WriteError); | ^~~~~ area.h:51:35: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 51 | void save(char* filename) throw (WriteError); | ^~~~~ area.h:54:37: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 54 | void addObject(Object* obj) throw (std::bad_alloc); | ^~~~~ area.h:58:24: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 58 | void initLua() throw (std::bad_alloc, ReadError, ScriptError); | ^~~~~ area.h:65:36: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 65 | Area(const char* filename) throw (std::bad_alloc, ReadError); | ^~~~~ area.h:71:21: 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: 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: graphics.h:76:46: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 76 | Screen(ScreenDescriptor* wantedMode) throw (std::bad_alloc, NoMode); | ^~~~~ config.h:52:21: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 52 | void read() throw (ReadError); | ^~~~~ config.h:53:22: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 53 | void write() throw (WriteError); | ^~~~~ In file included from monster.h:17: 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: 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: 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: xml.h:16:33: 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:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 11 | debug_message("Loading global script...\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ enemy_combatant.cpp:12:49: 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:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 17 | debug_message("Running global script...\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ enemy_combatant.cpp:24:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 24 | debug_message("Loading global enemy script...\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ enemy_combatant.cpp:25:49: 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:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 30 | debug_message("Running global enemy script...\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ enemy_combatant.cpp:37:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 37 | debug_message("Loading enemy script...\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ enemy_combatant.cpp:38:49: 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:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 43 | debug_message("Running enemy script...\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ enemy_combatant.cpp:52:48: 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/pterjan/rpmbuild/BUILD/monster-1.24/src' make: Entering directory '/home/pterjan/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 -std=c++14 -g -O2 -I/usr/include/lua-5.1 -I../tgui-0.9 -c combatant.cpp In file included from monster.h:7, from combatant.cpp:1: animation.h:19:61: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 19 | void saveFrame(BITMAP* bmp, int delay, PACKFILE* f) throw (WriteError); | ^~~~~ animation.h:20:32: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 20 | void save(PACKFILE* f) throw (WriteError); | ^~~~~ animation.h:22:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 22 | throw (ReadError); | ^~~~~ animation.h:23:32: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 23 | void load(PACKFILE* f) throw (std::bad_alloc, ReadError); | ^~~~~ animation.h:24:36: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 24 | void load(char *filename) throw (std::bad_alloc, ReadError); | ^~~~~ animation.h:31:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 31 | throw (std::bad_alloc); | ^~~~~ animation.h:55:44: 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: area.h:49:47: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 49 | void writeTile(int tile, PACKFILE* f) throw (WriteError); | ^~~~~ area.h:51:35: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 51 | void save(char* filename) throw (WriteError); | ^~~~~ area.h:54:37: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 54 | void addObject(Object* obj) throw (std::bad_alloc); | ^~~~~ area.h:58:24: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 58 | void initLua() throw (std::bad_alloc, ReadError, ScriptError); | ^~~~~ area.h:65:36: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 65 | Area(const char* filename) throw (std::bad_alloc, ReadError); | ^~~~~ area.h:71:21: 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: 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: graphics.h:76:46: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 76 | Screen(ScreenDescriptor* wantedMode) throw (std::bad_alloc, NoMode); | ^~~~~ config.h:52:21: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 52 | void read() throw (ReadError); | ^~~~~ config.h:53:22: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 53 | void write() throw (WriteError); | ^~~~~ In file included from monster.h:17: 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: 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: 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: xml.h:16:33: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 16 | XMLData(char* filename) throw (ReadError); | ^~~~~ make: Leaving directory '/home/pterjan/rpmbuild/BUILD/monster-1.24/src' make: Entering directory '/home/pterjan/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 -std=c++14 -g -O2 -I/usr/include/lua-5.1 -I../tgui-0.9 -c menu.cpp In file included from monster.h:7, from menu.cpp:9: animation.h:19:61: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 19 | void saveFrame(BITMAP* bmp, int delay, PACKFILE* f) throw (WriteError); | ^~~~~ animation.h:20:32: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 20 | void save(PACKFILE* f) throw (WriteError); | ^~~~~ animation.h:22:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 22 | throw (ReadError); | ^~~~~ animation.h:23:32: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 23 | void load(PACKFILE* f) throw (std::bad_alloc, ReadError); | ^~~~~ animation.h:24:36: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 24 | void load(char *filename) throw (std::bad_alloc, ReadError); | ^~~~~ animation.h:31:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 31 | throw (std::bad_alloc); | ^~~~~ animation.h:55:44: 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: area.h:49:47: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 49 | void writeTile(int tile, PACKFILE* f) throw (WriteError); | ^~~~~ area.h:51:35: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 51 | void save(char* filename) throw (WriteError); | ^~~~~ area.h:54:37: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 54 | void addObject(Object* obj) throw (std::bad_alloc); | ^~~~~ area.h:58:24: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 58 | void initLua() throw (std::bad_alloc, ReadError, ScriptError); | ^~~~~ area.h:65:36: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 65 | Area(const char* filename) throw (std::bad_alloc, ReadError); | ^~~~~ area.h:71:21: 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: 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: graphics.h:76:46: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 76 | Screen(ScreenDescriptor* wantedMode) throw (std::bad_alloc, NoMode); | ^~~~~ config.h:52:21: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 52 | void read() throw (ReadError); | ^~~~~ config.h:53:22: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 53 | void write() throw (WriteError); | ^~~~~ In file included from monster.h:17: 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: 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: 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: xml.h:16:33: 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:46: 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:24: 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:58: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 551 | MWgtTextButton* use = new MWgtTextButton(10, 10, "Use"); | ^~~~~ menu.cpp:553:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 553 | "Arrange"); | ^~~~~~~~~ menu.cpp:555:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 555 | "Drop"); | ^~~~~~ menu.cpp:557:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 557 | "Examine"); | ^~~~~~~~~ menu.cpp:612:33: 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:58: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 644 | MWgtTextButton* use = new MWgtTextButton(10, 10, "Cast"); | ^~~~~~ menu.cpp:646:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 646 | "Arrange"); | ^~~~~~~~~ menu.cpp:691:33: 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:61: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 722 | MWgtTextButton* weapon = new MWgtTextButton(10, 10, "Weapon"); | ^~~~~~~~ menu.cpp:724:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 724 | "Armor"); | ^~~~~~~ menu.cpp:769:33: 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:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 795 | notify("", "You can't drop that...", ""); | ^~ menu.cpp:795:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 795 | notify("", "You can't drop that...", ""); | ^~~~~~~~~~~~~~~~~~~~~~~~ menu.cpp:795:54: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 795 | notify("", "You can't drop that...", ""); | ^~ menu.cpp:799:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 799 | notify("", "You better hold on to that...", ""); | ^~ menu.cpp:799:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 799 | notify("", "You better hold on to that...", ""); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ menu.cpp:799:61: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 799 | notify("", "You better hold on to that...", ""); | ^~ menu.cpp:802:50: 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:75: 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:94: 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:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 811 | notify("", "You can't equip nothing...", ""); | ^~ menu.cpp:811:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 811 | notify("", "You can't equip nothing...", ""); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ menu.cpp:811:58: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 811 | notify("", "You can't equip nothing...", ""); | ^~ menu.cpp:815:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 815 | notify("", "You must drop something first...", ""); | ^~ menu.cpp:815:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 815 | notify("", "You must drop something first...", ""); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ menu.cpp:815:64: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 815 | notify("", "You must drop something first...", ""); | ^~ menu.cpp:821:32: 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:52: 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:76: 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:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 833 | notify("", "You can't use that now...", ""); | ^~ menu.cpp:833:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 833 | notify("", "You can't use that now...", ""); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ menu.cpp:833:57: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 833 | notify("", "You can't use that now...", ""); | ^~ menu.cpp:837:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 837 | notify("", "You can't use that...", ""); | ^~ menu.cpp:837:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 837 | notify("", "You can't use that...", ""); | ^~~~~~~~~~~~~~~~~~~~~~~ menu.cpp:837:53: 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:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 857 | notify("", "You can't cast that now...", ""); | ^~ menu.cpp:857:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 857 | notify("", "You can't cast that now...", ""); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ menu.cpp:857:58: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 857 | notify("", "You can't cast that now...", ""); | ^~ menu.cpp:861:24: 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:54: 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:73: 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:47: 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:78: 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:110: 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:53: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1008 | playOgg("error.ogg"); | ^~~~~~~~~~~ menu.cpp:1028:45: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1028 | playOgg("error.ogg"); | ^~~~~~~~~~~ menu.cpp:1215:60: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1215 | notify("", msg, ""); | ^~ menu.cpp:1215:69: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1215 | notify("", msg, ""); | ^~ menu.cpp:1240:52: 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:80: 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:103: 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:52: 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:80: 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:103: 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:57: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1354 | playOgg("error.ogg"); | ^~~~~~~~~~~ menu.cpp:1461:61: 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:74: 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:112: 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:132: 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:70: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1463 | saveGame(getUserResource("save/%d.save", n+1)); | ^~~~~~~~~~~~~~ menu.cpp:1480:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1480 | notify("", "You can't save here...", ""); | ^~ menu.cpp:1480:48: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1480 | notify("", "You can't save here...", ""); | ^~~~~~~~~~~~~~~~~~~~~~~~ menu.cpp:1480:74: 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:55: 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:55: 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:56: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1754 | MWgtButton* button1 = new MWgtButton(0, 0, -1, "Yes"); | ^~~~~ menu.cpp:1755:56: 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:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1915 | writeString("start", f); | ^~~~~~~ menu.cpp:1936:37: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1936 | writeString("", f); | ^~ menu.cpp: In function 'bool readPreviews()': menu.cpp:1957:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1957 | if (exists(getUserResource("save/%d.save", i+1))) { | ^~~~~~~~~~~~~~ menu.cpp:1959:61: 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:62: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1966 | if (!createSaveState(getUserResource("save/%d.save", i+1))) { | ^~~~~~~~~~~~~~ menu.cpp:1967:47: 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:48: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2010 | sprintf(userDir, "%s", getUserResource("")); | ^~ menu.cpp:2017:31: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2017 | mkdir(getUserResource("save"), 0770); | ^~~~~~ menu.cpp:2020:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2020 | notify("", "Could not read save states", ""); | ^~ menu.cpp:2020:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2020 | notify("", "Could not read save states", ""); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ menu.cpp:2020:58: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2020 | notify("", "Could not read save states", ""); | ^~ make: Leaving directory '/home/pterjan/rpmbuild/BUILD/monster-1.24/src' make: Entering directory '/home/pterjan/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 -std=c++14 -g -O2 -I/usr/include/lua-5.1 -I../tgui-0.9 -c mode7.cpp In file included from monster.h:7, from mode7.cpp:1: animation.h:19:61: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 19 | void saveFrame(BITMAP* bmp, int delay, PACKFILE* f) throw (WriteError); | ^~~~~ animation.h:20:32: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 20 | void save(PACKFILE* f) throw (WriteError); | ^~~~~ animation.h:22:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 22 | throw (ReadError); | ^~~~~ animation.h:23:32: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 23 | void load(PACKFILE* f) throw (std::bad_alloc, ReadError); | ^~~~~ animation.h:24:36: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 24 | void load(char *filename) throw (std::bad_alloc, ReadError); | ^~~~~ animation.h:31:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 31 | throw (std::bad_alloc); | ^~~~~ animation.h:55:44: 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: area.h:49:47: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 49 | void writeTile(int tile, PACKFILE* f) throw (WriteError); | ^~~~~ area.h:51:35: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 51 | void save(char* filename) throw (WriteError); | ^~~~~ area.h:54:37: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 54 | void addObject(Object* obj) throw (std::bad_alloc); | ^~~~~ area.h:58:24: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 58 | void initLua() throw (std::bad_alloc, ReadError, ScriptError); | ^~~~~ area.h:65:36: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 65 | Area(const char* filename) throw (std::bad_alloc, ReadError); | ^~~~~ area.h:71:21: 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: 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: graphics.h:76:46: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 76 | Screen(ScreenDescriptor* wantedMode) throw (std::bad_alloc, NoMode); | ^~~~~ config.h:52:21: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 52 | void read() throw (ReadError); | ^~~~~ config.h:53:22: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 53 | void write() throw (WriteError); | ^~~~~ In file included from monster.h:17: 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: 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: 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: xml.h:16:33: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 16 | XMLData(char* filename) throw (ReadError); | ^~~~~ make: Leaving directory '/home/pterjan/rpmbuild/BUILD/monster-1.24/src' make: Entering directory '/home/pterjan/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 -std=c++14 -g -O2 -I/usr/include/lua-5.1 -I../tgui-0.9 -c timer.cpp make: Leaving directory '/home/pterjan/rpmbuild/BUILD/monster-1.24/src' make: Entering directory '/home/pterjan/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 -std=c++14 -g -O2 -I/usr/include/lua-5.1 -I../tgui-0.9 -c player_combatant.cpp In file included from monster.h:7, from player_combatant.cpp:1: animation.h:19:61: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 19 | void saveFrame(BITMAP* bmp, int delay, PACKFILE* f) throw (WriteError); | ^~~~~ animation.h:20:32: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 20 | void save(PACKFILE* f) throw (WriteError); | ^~~~~ animation.h:22:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 22 | throw (ReadError); | ^~~~~ animation.h:23:32: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 23 | void load(PACKFILE* f) throw (std::bad_alloc, ReadError); | ^~~~~ animation.h:24:36: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 24 | void load(char *filename) throw (std::bad_alloc, ReadError); | ^~~~~ animation.h:31:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 31 | throw (std::bad_alloc); | ^~~~~ animation.h:55:44: 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: area.h:49:47: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 49 | void writeTile(int tile, PACKFILE* f) throw (WriteError); | ^~~~~ area.h:51:35: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 51 | void save(char* filename) throw (WriteError); | ^~~~~ area.h:54:37: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 54 | void addObject(Object* obj) throw (std::bad_alloc); | ^~~~~ area.h:58:24: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 58 | void initLua() throw (std::bad_alloc, ReadError, ScriptError); | ^~~~~ area.h:65:36: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 65 | Area(const char* filename) throw (std::bad_alloc, ReadError); | ^~~~~ area.h:71:21: 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: 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: graphics.h:76:46: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 76 | Screen(ScreenDescriptor* wantedMode) throw (std::bad_alloc, NoMode); | ^~~~~ config.h:52:21: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 52 | void read() throw (ReadError); | ^~~~~ config.h:53:22: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 53 | void write() throw (WriteError); | ^~~~~ In file included from monster.h:17: 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: 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: 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: xml.h:16:33: 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:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 62 | playOgg("error.ogg"); | ^~~~~~~~~~~ player_combatant.cpp:141:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 141 | playOgg("error.ogg"); | ^~~~~~~~~~~ player_combatant.cpp:145:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 145 | playOgg("error.ogg"); | ^~~~~~~~~~~ player_combatant.cpp:169:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 169 | playOgg("error.ogg"); | ^~~~~~~~~~~ player_combatant.cpp:198:47: 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:47: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 263 | txtAttack = new MWgtTextButton(10, 8, "Attack"); | ^~~~~~~~ player_combatant.cpp:264:47: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 264 | txtSpell = new MWgtTextButton(10, 20, "Magic"); | ^~~~~~~ player_combatant.cpp:265:46: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 265 | txtItem = new MWgtTextButton(10, 32, "Item"); | ^~~~~~ player_combatant.cpp:266:46: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 266 | txtSkip = new MWgtTextButton(10, 44, "Skip"); | ^~~~~~ player_combatant.cpp:267:45: 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:56: 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:56: 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/pterjan/rpmbuild/BUILD/monster-1.24/src' make: Entering directory '/home/pterjan/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 -std=c++14 -g -O2 -I/usr/include/lua-5.1 -I../tgui-0.9 -c area.cpp In file included from monster.h:7, from area.cpp:3: animation.h:19:61: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 19 | void saveFrame(BITMAP* bmp, int delay, PACKFILE* f) throw (WriteError); | ^~~~~ animation.h:20:32: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 20 | void save(PACKFILE* f) throw (WriteError); | ^~~~~ animation.h:22:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 22 | throw (ReadError); | ^~~~~ animation.h:23:32: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 23 | void load(PACKFILE* f) throw (std::bad_alloc, ReadError); | ^~~~~ animation.h:24:36: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 24 | void load(char *filename) throw (std::bad_alloc, ReadError); | ^~~~~ animation.h:31:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 31 | throw (std::bad_alloc); | ^~~~~ animation.h:55:44: 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: area.h:49:47: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 49 | void writeTile(int tile, PACKFILE* f) throw (WriteError); | ^~~~~ area.h:51:35: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 51 | void save(char* filename) throw (WriteError); | ^~~~~ area.h:54:37: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 54 | void addObject(Object* obj) throw (std::bad_alloc); | ^~~~~ area.h:58:24: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 58 | void initLua() throw (std::bad_alloc, ReadError, ScriptError); | ^~~~~ area.h:65:36: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 65 | Area(const char* filename) throw (std::bad_alloc, ReadError); | ^~~~~ area.h:71:21: 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: 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: graphics.h:76:46: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 76 | Screen(ScreenDescriptor* wantedMode) throw (std::bad_alloc, NoMode); | ^~~~~ config.h:52:21: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 52 | void read() throw (ReadError); | ^~~~~ config.h:53:22: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 53 | void write() throw (WriteError); | ^~~~~ In file included from monster.h:17: 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: 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: 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: xml.h:16:33: 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:58: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 35 | DATAFILE* dat = load_datafile_object(getResource("tilemap.dat"), | ^~~~~~~~~~~~~ area.cpp:38:31: 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:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 713 | debug_message("Loading global script...\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ area.cpp:714:49: 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:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 719 | debug_message("Running global script...\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ area.cpp:726:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 726 | debug_message("Loading global area script...\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ area.cpp:727:49: 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:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 732 | debug_message("Running global area script...\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ area.cpp:739:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 739 | debug_message("Loading area script (%s)...\n", name); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ area.cpp:740:49: 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:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 746 | debug_message("Running area script...\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ area.cpp:753:23: 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:55: 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:23: 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/pterjan/rpmbuild/BUILD/monster-1.24/src' make: Entering directory '/home/pterjan/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 -std=c++14 -g -O2 -I/usr/include/lua-5.1 -I../tgui-0.9 -c object.cpp In file included from monster.h:7, from object.cpp:3: animation.h:19:61: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 19 | void saveFrame(BITMAP* bmp, int delay, PACKFILE* f) throw (WriteError); | ^~~~~ animation.h:20:32: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 20 | void save(PACKFILE* f) throw (WriteError); | ^~~~~ animation.h:22:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 22 | throw (ReadError); | ^~~~~ animation.h:23:32: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 23 | void load(PACKFILE* f) throw (std::bad_alloc, ReadError); | ^~~~~ animation.h:24:36: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 24 | void load(char *filename) throw (std::bad_alloc, ReadError); | ^~~~~ animation.h:31:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 31 | throw (std::bad_alloc); | ^~~~~ animation.h:55:44: 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: area.h:49:47: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 49 | void writeTile(int tile, PACKFILE* f) throw (WriteError); | ^~~~~ area.h:51:35: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 51 | void save(char* filename) throw (WriteError); | ^~~~~ area.h:54:37: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 54 | void addObject(Object* obj) throw (std::bad_alloc); | ^~~~~ area.h:58:24: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 58 | void initLua() throw (std::bad_alloc, ReadError, ScriptError); | ^~~~~ area.h:65:36: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 65 | Area(const char* filename) throw (std::bad_alloc, ReadError); | ^~~~~ area.h:71:21: 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: 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: graphics.h:76:46: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 76 | Screen(ScreenDescriptor* wantedMode) throw (std::bad_alloc, NoMode); | ^~~~~ config.h:52:21: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 52 | void read() throw (ReadError); | ^~~~~ config.h:53:22: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 53 | void write() throw (WriteError); | ^~~~~ In file included from monster.h:17: 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: 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: 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: xml.h:16:33: 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:31: 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/pterjan/rpmbuild/BUILD/monster-1.24/src' make: Entering directory '/home/pterjan/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 -std=c++14 -g -O2 -I/usr/include/lua-5.1 -I../tgui-0.9 -c battle.cpp In file included from monster.h:7, from battle.cpp:1: animation.h:19:61: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 19 | void saveFrame(BITMAP* bmp, int delay, PACKFILE* f) throw (WriteError); | ^~~~~ animation.h:20:32: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 20 | void save(PACKFILE* f) throw (WriteError); | ^~~~~ animation.h:22:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 22 | throw (ReadError); | ^~~~~ animation.h:23:32: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 23 | void load(PACKFILE* f) throw (std::bad_alloc, ReadError); | ^~~~~ animation.h:24:36: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 24 | void load(char *filename) throw (std::bad_alloc, ReadError); | ^~~~~ animation.h:31:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 31 | throw (std::bad_alloc); | ^~~~~ animation.h:55:44: 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: area.h:49:47: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 49 | void writeTile(int tile, PACKFILE* f) throw (WriteError); | ^~~~~ area.h:51:35: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 51 | void save(char* filename) throw (WriteError); | ^~~~~ area.h:54:37: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 54 | void addObject(Object* obj) throw (std::bad_alloc); | ^~~~~ area.h:58:24: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 58 | void initLua() throw (std::bad_alloc, ReadError, ScriptError); | ^~~~~ area.h:65:36: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 65 | Area(const char* filename) throw (std::bad_alloc, ReadError); | ^~~~~ area.h:71:21: 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: 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: graphics.h:76:46: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 76 | Screen(ScreenDescriptor* wantedMode) throw (std::bad_alloc, NoMode); | ^~~~~ config.h:52:21: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 52 | void read() throw (ReadError); | ^~~~~ config.h:53:22: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 53 | void write() throw (WriteError); | ^~~~~ In file included from monster.h:17: 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: 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: 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: xml.h:16:33: 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:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 333 | debug_message("Loading global script...\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ battle.cpp:334:49: 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:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 339 | debug_message("Running global script...\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ battle.cpp:346:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 346 | debug_message("Loading global battle script...\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ battle.cpp:347:49: 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:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 352 | debug_message("Running global battle script...\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ battle.cpp:359:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 359 | debug_message("Loading battle script...\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ battle.cpp:360:49: 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:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 365 | debug_message("Running battle script...\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ battle.cpp:372:23: 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:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 518 | c->setSubAnimation("walk_e"); | ^~~~~~~~ battle.cpp:536:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 536 | c->setSubAnimation("walk_w"); | ^~~~~~~~ battle.cpp:593:60: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 593 | c->setSubAnimation("stand_w"); | ^~~~~~~~~ battle.cpp:601:52: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 601 | c->setSubAnimation("walk_e"); | ^~~~~~~~ battle.cpp:613:60: 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:17: 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:52: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1131 | c->setSubAnimation("dead"); | ^~~~~~ battle.cpp:1135:49: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1135 | playOgg("enemy_death.ogg"); | ^~~~~~~~~~~~~~~~~ battle.cpp:1147:23: 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:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1188 | debug_message("in apply turn\n"); | ^~~~~~~~~~~~~~~~~ battle.cpp:1295:31: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1295 | debug_message("applying spell\n"); | ^~~~~~~~~~~~~~~~~~ battle.cpp:1297:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1297 | debug_message("spell has no \"results\""); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ battle.cpp:1308:47: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1308 | debug_message("spell affects all\n"); | ^~~~~~~~~~~~~~~~~~~~~ battle.cpp:1336:47: 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:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1436 | debug_message("Skipping turn hp <= 0\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~ battle.cpp:1465:47: 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:31: 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:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1578 | debug_message("loading background %s\n", name); | ^~~~~~~~~~~~~~~~~~~~~~~~~ battle.cpp:1579:66: 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:57: 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:45: 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:45: 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:44: 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/pterjan/rpmbuild/BUILD/monster-1.24/src' make: Entering directory '/home/pterjan/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 -std=c++14 -g -O2 -I/usr/include/lua-5.1 -I../tgui-0.9 -c input.cpp In file included from monster.h:7, from input.cpp:3: animation.h:19:61: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 19 | void saveFrame(BITMAP* bmp, int delay, PACKFILE* f) throw (WriteError); | ^~~~~ animation.h:20:32: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 20 | void save(PACKFILE* f) throw (WriteError); | ^~~~~ animation.h:22:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 22 | throw (ReadError); | ^~~~~ animation.h:23:32: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 23 | void load(PACKFILE* f) throw (std::bad_alloc, ReadError); | ^~~~~ animation.h:24:36: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 24 | void load(char *filename) throw (std::bad_alloc, ReadError); | ^~~~~ animation.h:31:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 31 | throw (std::bad_alloc); | ^~~~~ animation.h:55:44: 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: area.h:49:47: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 49 | void writeTile(int tile, PACKFILE* f) throw (WriteError); | ^~~~~ area.h:51:35: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 51 | void save(char* filename) throw (WriteError); | ^~~~~ area.h:54:37: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 54 | void addObject(Object* obj) throw (std::bad_alloc); | ^~~~~ area.h:58:24: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 58 | void initLua() throw (std::bad_alloc, ReadError, ScriptError); | ^~~~~ area.h:65:36: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 65 | Area(const char* filename) throw (std::bad_alloc, ReadError); | ^~~~~ area.h:71:21: 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: 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: graphics.h:76:46: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 76 | Screen(ScreenDescriptor* wantedMode) throw (std::bad_alloc, NoMode); | ^~~~~ config.h:52:21: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 52 | void read() throw (ReadError); | ^~~~~ config.h:53:22: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 53 | void write() throw (WriteError); | ^~~~~ In file included from monster.h:17: 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: 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: 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: xml.h:16:33: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 16 | XMLData(char* filename) throw (ReadError); | ^~~~~ make: Leaving directory '/home/pterjan/rpmbuild/BUILD/monster-1.24/src' make: Entering directory '/home/pterjan/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 -std=c++14 -g -O2 -I/usr/include/lua-5.1 -I../tgui-0.9 -c io.cpp In file included from monster.h:7, from io.cpp:4: animation.h:19:61: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 19 | void saveFrame(BITMAP* bmp, int delay, PACKFILE* f) throw (WriteError); | ^~~~~ animation.h:20:32: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 20 | void save(PACKFILE* f) throw (WriteError); | ^~~~~ animation.h:22:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 22 | throw (ReadError); | ^~~~~ animation.h:23:32: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 23 | void load(PACKFILE* f) throw (std::bad_alloc, ReadError); | ^~~~~ animation.h:24:36: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 24 | void load(char *filename) throw (std::bad_alloc, ReadError); | ^~~~~ animation.h:31:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 31 | throw (std::bad_alloc); | ^~~~~ animation.h:55:44: 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: area.h:49:47: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 49 | void writeTile(int tile, PACKFILE* f) throw (WriteError); | ^~~~~ area.h:51:35: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 51 | void save(char* filename) throw (WriteError); | ^~~~~ area.h:54:37: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 54 | void addObject(Object* obj) throw (std::bad_alloc); | ^~~~~ area.h:58:24: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 58 | void initLua() throw (std::bad_alloc, ReadError, ScriptError); | ^~~~~ area.h:65:36: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 65 | Area(const char* filename) throw (std::bad_alloc, ReadError); | ^~~~~ area.h:71:21: 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: 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: graphics.h:76:46: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 76 | Screen(ScreenDescriptor* wantedMode) throw (std::bad_alloc, NoMode); | ^~~~~ config.h:52:21: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 52 | void read() throw (ReadError); | ^~~~~ config.h:53:22: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 53 | void write() throw (WriteError); | ^~~~~ In file included from monster.h:17: 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: 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: 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: xml.h:16:33: 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:23: 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:23: 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:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 179 | debug_message("Saving in area %s\n", areaName); | ^~~~~~~~~~~~~~~~~~~~~ io.cpp:205:55: 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:61: 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:71: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 256 | debug_message("found spell %s\n", spell); | ^~~~~~~~~~~~~~~~~~ make: Leaving directory '/home/pterjan/rpmbuild/BUILD/monster-1.24/src' make: Entering directory '/home/pterjan/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 -std=c++14 -g -O2 -I/usr/include/lua-5.1 -I../tgui-0.9 -c sound.cpp In file included from monster.h:7, from sound.cpp:10: animation.h:19:61: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 19 | void saveFrame(BITMAP* bmp, int delay, PACKFILE* f) throw (WriteError); | ^~~~~ animation.h:20:32: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 20 | void save(PACKFILE* f) throw (WriteError); | ^~~~~ animation.h:22:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 22 | throw (ReadError); | ^~~~~ animation.h:23:32: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 23 | void load(PACKFILE* f) throw (std::bad_alloc, ReadError); | ^~~~~ animation.h:24:36: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 24 | void load(char *filename) throw (std::bad_alloc, ReadError); | ^~~~~ animation.h:31:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 31 | throw (std::bad_alloc); | ^~~~~ animation.h:55:44: 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: area.h:49:47: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 49 | void writeTile(int tile, PACKFILE* f) throw (WriteError); | ^~~~~ area.h:51:35: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 51 | void save(char* filename) throw (WriteError); | ^~~~~ area.h:54:37: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 54 | void addObject(Object* obj) throw (std::bad_alloc); | ^~~~~ area.h:58:24: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 58 | void initLua() throw (std::bad_alloc, ReadError, ScriptError); | ^~~~~ area.h:65:36: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 65 | Area(const char* filename) throw (std::bad_alloc, ReadError); | ^~~~~ area.h:71:21: 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: 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: graphics.h:76:46: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 76 | Screen(ScreenDescriptor* wantedMode) throw (std::bad_alloc, NoMode); | ^~~~~ config.h:52:21: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 52 | void read() throw (ReadError); | ^~~~~ config.h:53:22: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 53 | void write() throw (WriteError); | ^~~~~ In file included from monster.h:17: 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: 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: 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: xml.h:16:33: 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:74:43: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 74 | s->sample = logg_load(getResource("sounds/%s", name)); | ^~~~~~~~~~~ sound.cpp: In function 'void startMusic(const char*)': sound.cpp:116:37: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 116 | strcpy(resName, getResource("music/%s", name)); | ^~~~~~~~~~ make: Leaving directory '/home/pterjan/rpmbuild/BUILD/monster-1.24/src' make: Entering directory '/home/pterjan/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 -std=c++14 -g -O2 -I/usr/include/lua-5.1 -I../tgui-0.9 -c player.cpp In file included from monster.h:7, from player.cpp:1: animation.h:19:61: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 19 | void saveFrame(BITMAP* bmp, int delay, PACKFILE* f) throw (WriteError); | ^~~~~ animation.h:20:32: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 20 | void save(PACKFILE* f) throw (WriteError); | ^~~~~ animation.h:22:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 22 | throw (ReadError); | ^~~~~ animation.h:23:32: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 23 | void load(PACKFILE* f) throw (std::bad_alloc, ReadError); | ^~~~~ animation.h:24:36: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 24 | void load(char *filename) throw (std::bad_alloc, ReadError); | ^~~~~ animation.h:31:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 31 | throw (std::bad_alloc); | ^~~~~ animation.h:55:44: 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: area.h:49:47: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 49 | void writeTile(int tile, PACKFILE* f) throw (WriteError); | ^~~~~ area.h:51:35: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 51 | void save(char* filename) throw (WriteError); | ^~~~~ area.h:54:37: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 54 | void addObject(Object* obj) throw (std::bad_alloc); | ^~~~~ area.h:58:24: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 58 | void initLua() throw (std::bad_alloc, ReadError, ScriptError); | ^~~~~ area.h:65:36: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 65 | Area(const char* filename) throw (std::bad_alloc, ReadError); | ^~~~~ area.h:71:21: 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: 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: graphics.h:76:46: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 76 | Screen(ScreenDescriptor* wantedMode) throw (std::bad_alloc, NoMode); | ^~~~~ config.h:52:21: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 52 | void read() throw (ReadError); | ^~~~~ config.h:53:22: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 53 | void write() throw (WriteError); | ^~~~~ In file included from monster.h:17: 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: 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: 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: xml.h:16:33: 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:9: 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:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 90 | debug_message("status->%d\n", ie->status); | ^~~~~~~~~~~~~~ player.cpp:91:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 91 | debug_message("hp->%d\n", ie->hp); | ^~~~~~~~~~ player.cpp:92:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 92 | debug_message("maxHP->%d\n", ie->maxHP); | ^~~~~~~~~~~~~ player.cpp:93:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 93 | debug_message("mana->%d\n", ie->mana); | ^~~~~~~~~~~~ make: Leaving directory '/home/pterjan/rpmbuild/BUILD/monster-1.24/src' make: Entering directory '/home/pterjan/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 -std=c++14 -g -O2 -I/usr/include/lua-5.1 -I../tgui-0.9 -c util.cpp In file included from monster.h:7, from util.cpp:5: animation.h:19:61: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 19 | void saveFrame(BITMAP* bmp, int delay, PACKFILE* f) throw (WriteError); | ^~~~~ animation.h:20:32: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 20 | void save(PACKFILE* f) throw (WriteError); | ^~~~~ animation.h:22:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 22 | throw (ReadError); | ^~~~~ animation.h:23:32: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 23 | void load(PACKFILE* f) throw (std::bad_alloc, ReadError); | ^~~~~ animation.h:24:36: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 24 | void load(char *filename) throw (std::bad_alloc, ReadError); | ^~~~~ animation.h:31:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 31 | throw (std::bad_alloc); | ^~~~~ animation.h:55:44: 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: area.h:49:47: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 49 | void writeTile(int tile, PACKFILE* f) throw (WriteError); | ^~~~~ area.h:51:35: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 51 | void save(char* filename) throw (WriteError); | ^~~~~ area.h:54:37: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 54 | void addObject(Object* obj) throw (std::bad_alloc); | ^~~~~ area.h:58:24: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 58 | void initLua() throw (std::bad_alloc, ReadError, ScriptError); | ^~~~~ area.h:65:36: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 65 | Area(const char* filename) throw (std::bad_alloc, ReadError); | ^~~~~ area.h:71:21: 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: 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: graphics.h:76:46: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 76 | Screen(ScreenDescriptor* wantedMode) throw (std::bad_alloc, NoMode); | ^~~~~ config.h:52:21: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 52 | void read() throw (ReadError); | ^~~~~ config.h:53:22: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 53 | void write() throw (WriteError); | ^~~~~ In file included from monster.h:17: 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: 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: 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: xml.h:16:33: 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:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 144 | return "scr"; | ^~~~~ util.cpp:146:24: 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:23: 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:48: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 245 | animSet = new AnimationSet(getResource("objects/Coro.anims")); | ^~~~~~~~~~~~~~~~~~~~ make: Leaving directory '/home/pterjan/rpmbuild/BUILD/monster-1.24/src' make: Entering directory '/home/pterjan/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 -std=c++14 -g -O2 -I/usr/include/lua-5.1 -I../tgui-0.9 -c monster.cpp In file included from monster.h:7, from monster.cpp:3: animation.h:19:61: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 19 | void saveFrame(BITMAP* bmp, int delay, PACKFILE* f) throw (WriteError); | ^~~~~ animation.h:20:32: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 20 | void save(PACKFILE* f) throw (WriteError); | ^~~~~ animation.h:22:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 22 | throw (ReadError); | ^~~~~ animation.h:23:32: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 23 | void load(PACKFILE* f) throw (std::bad_alloc, ReadError); | ^~~~~ animation.h:24:36: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 24 | void load(char *filename) throw (std::bad_alloc, ReadError); | ^~~~~ animation.h:31:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 31 | throw (std::bad_alloc); | ^~~~~ animation.h:55:44: 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: area.h:49:47: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 49 | void writeTile(int tile, PACKFILE* f) throw (WriteError); | ^~~~~ area.h:51:35: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 51 | void save(char* filename) throw (WriteError); | ^~~~~ area.h:54:37: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 54 | void addObject(Object* obj) throw (std::bad_alloc); | ^~~~~ area.h:58:24: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 58 | void initLua() throw (std::bad_alloc, ReadError, ScriptError); | ^~~~~ area.h:65:36: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 65 | Area(const char* filename) throw (std::bad_alloc, ReadError); | ^~~~~ area.h:71:21: 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: 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: graphics.h:76:46: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 76 | Screen(ScreenDescriptor* wantedMode) throw (std::bad_alloc, NoMode); | ^~~~~ config.h:52:21: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 52 | void read() throw (ReadError); | ^~~~~ config.h:53:22: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 53 | void write() throw (WriteError); | ^~~~~ In file included from monster.h:17: 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: 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: 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: xml.h:16:33: 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:31: 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:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 144 | debug_message("%d FPS.\n", fps); | ^~~~~~~~~~~ monster.cpp:160:42: 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:68: 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:98: 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:35: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 189 | if (check_arg(argc, argv, "-ttf") >= 0) { | ^~~~~~ monster.cpp:193:35: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 193 | if (check_arg(argc, argv, "-no-cfg") >= 0) { | ^~~~~~~~~ monster.cpp:200:35: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 200 | if (check_arg(argc, argv, "-impatient-mode") >= 0) { | ^~~~~~~~~~~~~~~~~ monster.cpp:204:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 204 | int n = check_arg(argc, argv, "-audio-buffer"); | ^~~~~~~~~~~~~~~ monster.cpp:232:35: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 232 | if (check_arg(argc, argv, "-disable-battles") >= 0) | ^~~~~~~~~~~~~~~~~~ monster.cpp:235:35: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 235 | if (check_arg(argc, argv, "-no-intro") >= 0) | ^~~~~~~~~~~ monster.cpp:240:52: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 240 | logos_datafile = load_datafile(getResource("logos.dat")); | ^~~~~~~~~~~ monster.cpp:280:17: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 280 | playOgg("nooskewl.ogg"); | ^~~~~~~~~~~~~~ monster.cpp:296:62: 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:99: 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:97: 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:103: 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:95: 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:50: 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:58: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 404 | loadGame(getUserResource("save/%d.save", ss+1)); | ^~~~~~~~~~~~~~ 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:59: 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:101: 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:129: 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:53: 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:43: 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:906, from /usr/include/c++/12/cstdio:42, from /usr/include/c++/12/ext/string_conversions.h:43, from /usr/include/c++/12/bits/basic_string.h:3968, from /usr/include/c++/12/string:53, from mwidgets.h:5: In function 'int sprintf(char*, const char*, ...)', inlined from 'void handleScrolling()' at monster.cpp:78:10: /usr/include/bits/stdio2.h:30:34: note: '__builtin___sprintf_chk' output between 4 and 279 bytes into a destination of size 256 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ make: Leaving directory '/home/pterjan/rpmbuild/BUILD/monster-1.24/src' make: Entering directory '/home/pterjan/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 -std=c++14 -g -O2 -I/usr/include/lua-5.1 -I../tgui-0.9 -c xml.cpp In file included from xml.cpp:1: xml.h:16:33: 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/pterjan/rpmbuild/BUILD/monster-1.24/src' make: Entering directory '/home/pterjan/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 -std=c++14 -g -O2 -I/usr/include/lua-5.1 -I../tgui-0.9 -c spell.cpp In file included from monster.h:7, from spell.cpp:3: animation.h:19:61: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 19 | void saveFrame(BITMAP* bmp, int delay, PACKFILE* f) throw (WriteError); | ^~~~~ animation.h:20:32: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 20 | void save(PACKFILE* f) throw (WriteError); | ^~~~~ animation.h:22:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 22 | throw (ReadError); | ^~~~~ animation.h:23:32: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 23 | void load(PACKFILE* f) throw (std::bad_alloc, ReadError); | ^~~~~ animation.h:24:36: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 24 | void load(char *filename) throw (std::bad_alloc, ReadError); | ^~~~~ animation.h:31:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 31 | throw (std::bad_alloc); | ^~~~~ animation.h:55:44: 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: area.h:49:47: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 49 | void writeTile(int tile, PACKFILE* f) throw (WriteError); | ^~~~~ area.h:51:35: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 51 | void save(char* filename) throw (WriteError); | ^~~~~ area.h:54:37: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 54 | void addObject(Object* obj) throw (std::bad_alloc); | ^~~~~ area.h:58:24: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 58 | void initLua() throw (std::bad_alloc, ReadError, ScriptError); | ^~~~~ area.h:65:36: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 65 | Area(const char* filename) throw (std::bad_alloc, ReadError); | ^~~~~ area.h:71:21: 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: 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: graphics.h:76:46: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 76 | Screen(ScreenDescriptor* wantedMode) throw (std::bad_alloc, NoMode); | ^~~~~ config.h:52:21: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 52 | void read() throw (ReadError); | ^~~~~ config.h:53:22: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 53 | void write() throw (WriteError); | ^~~~~ In file included from monster.h:17: 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: 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: 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: xml.h:16:33: 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:17: 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:17: 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:15: 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:17: 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:32: 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:17: 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:15: 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:17: 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:32: 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:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 696 | spells.push_back(new CureSpell("Cure", 50, 5)); | ^~~~~~ spell.cpp:697:40: 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:97: 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:40: 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:41: 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/pterjan/rpmbuild/BUILD/monster-1.24/src' make: Entering directory '/home/pterjan/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 -std=c++14 -g -O2 -I/usr/include/lua-5.1 -I../tgui-0.9 -c mwidgets.cpp In file included from monster.h:7, from mwidgets.cpp:7: animation.h:19:61: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 19 | void saveFrame(BITMAP* bmp, int delay, PACKFILE* f) throw (WriteError); | ^~~~~ animation.h:20:32: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 20 | void save(PACKFILE* f) throw (WriteError); | ^~~~~ animation.h:22:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 22 | throw (ReadError); | ^~~~~ animation.h:23:32: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 23 | void load(PACKFILE* f) throw (std::bad_alloc, ReadError); | ^~~~~ animation.h:24:36: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 24 | void load(char *filename) throw (std::bad_alloc, ReadError); | ^~~~~ animation.h:31:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 31 | throw (std::bad_alloc); | ^~~~~ animation.h:55:44: 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: area.h:49:47: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 49 | void writeTile(int tile, PACKFILE* f) throw (WriteError); | ^~~~~ area.h:51:35: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 51 | void save(char* filename) throw (WriteError); | ^~~~~ area.h:54:37: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 54 | void addObject(Object* obj) throw (std::bad_alloc); | ^~~~~ area.h:58:24: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 58 | void initLua() throw (std::bad_alloc, ReadError, ScriptError); | ^~~~~ area.h:65:36: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 65 | Area(const char* filename) throw (std::bad_alloc, ReadError); | ^~~~~ area.h:71:21: 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: 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: graphics.h:76:46: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 76 | Screen(ScreenDescriptor* wantedMode) throw (std::bad_alloc, NoMode); | ^~~~~ config.h:52:21: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 52 | void read() throw (ReadError); | ^~~~~ config.h:53:22: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 53 | void write() throw (WriteError); | ^~~~~ In file included from monster.h:17: 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: 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: 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: xml.h:16:33: 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:47: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 77 | mFont = load_font(getResource("bmpfont.pcx"), pal, &size); | ^~~~~~~~~~~~~ mwidgets.cpp:81:47: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 81 | mFont = load_font(getResource("font.ttf"), pal, &size); | ^~~~~~~~~~ mwidgets.cpp:92:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 92 | dat = load_datafile(getResource("gui.dat")); | ^~~~~~~~~ mwidgets.cpp:121:42: 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:25: 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:25: 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:25: 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:25: 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:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1210 | playOgg("button.ogg"); | ^~~~~~~~~~~~ mwidgets.cpp:1226:25: 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:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1383 | playOgg("button.ogg"); | ^~~~~~~~~~~~ mwidgets.cpp:1400:25: 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:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1489 | playOgg("button.ogg"); | ^~~~~~~~~~~~ mwidgets.cpp:1505:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1505 | playOgg("button.ogg"); | ^~~~~~~~~~~~ make: Leaving directory '/home/pterjan/rpmbuild/BUILD/monster-1.24/src' make: Entering directory '/home/pterjan/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 -std=c++14 -g -O2 -I/usr/include/lua-5.1 -I../tgui-0.9 -c config.cpp In file included from monster.h:7, from config.cpp:5: animation.h:19:61: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 19 | void saveFrame(BITMAP* bmp, int delay, PACKFILE* f) throw (WriteError); | ^~~~~ animation.h:20:32: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 20 | void save(PACKFILE* f) throw (WriteError); | ^~~~~ animation.h:22:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 22 | throw (ReadError); | ^~~~~ animation.h:23:32: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 23 | void load(PACKFILE* f) throw (std::bad_alloc, ReadError); | ^~~~~ animation.h:24:36: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 24 | void load(char *filename) throw (std::bad_alloc, ReadError); | ^~~~~ animation.h:31:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 31 | throw (std::bad_alloc); | ^~~~~ animation.h:55:44: 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: area.h:49:47: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 49 | void writeTile(int tile, PACKFILE* f) throw (WriteError); | ^~~~~ area.h:51:35: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 51 | void save(char* filename) throw (WriteError); | ^~~~~ area.h:54:37: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 54 | void addObject(Object* obj) throw (std::bad_alloc); | ^~~~~ area.h:58:24: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 58 | void initLua() throw (std::bad_alloc, ReadError, ScriptError); | ^~~~~ area.h:65:36: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 65 | Area(const char* filename) throw (std::bad_alloc, ReadError); | ^~~~~ area.h:71:21: 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: 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: graphics.h:76:46: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 76 | Screen(ScreenDescriptor* wantedMode) throw (std::bad_alloc, NoMode); | ^~~~~ config.h:52:21: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 52 | void read() throw (ReadError); | ^~~~~ config.h:53:22: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 53 | void write() throw (WriteError); | ^~~~~ In file included from monster.h:17: 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: 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: 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: xml.h:16:33: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 16 | XMLData(char* filename) throw (ReadError); | ^~~~~ config.cpp:23:21: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 23 | { 320, 240, "320x240" }, | ^~~~~~~~~ config.cpp:24:21: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 24 | { 640, 480, "640x480" }, | ^~~~~~~~~ config.cpp:25:21: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 25 | { 800, 600, "800x600" }, | ^~~~~~~~~ config.cpp:26:22: 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:17: 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:47: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 147 | buttons[0] = new MWgtButton(0, 0, 80, "Action"); | ^~~~~~~~ config.cpp:148:47: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 148 | buttons[1] = new MWgtButton(0, 0, 80, "Cancel"); | ^~~~~~~~ config.cpp:149:47: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 149 | buttons[2] = new MWgtButton(0, 0, 80, "Run"); | ^~~~~ config.cpp:155:51: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 155 | MWgtButton* ok = new MWgtButton(0, 0, 40, "OK"); | ^~~~ config.cpp:156:54: 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:17: 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:47: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 341 | buttons[0] = new MWgtButton(0, 0, 80, "Action"); | ^~~~~~~~ config.cpp:342:47: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 342 | buttons[1] = new MWgtButton(0, 0, 80, "Cancel"); | ^~~~~~~~ config.cpp:343:47: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 343 | buttons[2] = new MWgtButton(0, 0, 80, "Left"); | ^~~~~~ config.cpp:344:47: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 344 | buttons[3] = new MWgtButton(0, 0, 80, "Right"); | ^~~~~~~ config.cpp:345:47: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 345 | buttons[4] = new MWgtButton(0, 0, 80, "Up"); | ^~~~ config.cpp:346:47: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 346 | buttons[5] = new MWgtButton(0, 0, 80, "Down"); | ^~~~~~ config.cpp:352:51: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 352 | MWgtButton* ok = new MWgtButton(0, 0, 40, "OK"); | ^~~~ config.cpp:353:54: 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:60: 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:59: 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:60: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 486 | MWgtCheckbox* battleSpeed = new MWgtCheckbox(0, 0, "Fast Battles"); | ^~~~~~~~~~~~~~ config.cpp:493:54: 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:55: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 494 | MWgtButton* cancel = new MWgtButton(0, 0, 50, "Cancel"); | ^~~~~~~~ config.cpp:529:59: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 529 | MWgtCheckbox* fullscreen = new MWgtCheckbox(0, 0, "Fullscreen"); | ^~~~~~~~~~~~ config.cpp:540:54: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 540 | MWgtCheckbox* vSync = new MWgtCheckbox(0, 0, "Vsync"); | ^~~~~~~ config.cpp:542:62: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 542 | MWgtCheckbox* smoothScaling = new MWgtCheckbox(0, 0, "Smooth Scaling"); | ^~~~~~~~~~~~~~~~ config.cpp:544:64: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 544 | MWgtCheckbox* dirtyRectangles = new MWgtCheckbox(0, 0, "Dirty Rectangles"); | ^~~~~~~~~~~~~~~~~~ config.cpp:674:48: 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:80: 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:117: 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:64: 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:104: 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:136: 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:56: 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:83: 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:110: 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:56: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 734 | notify("", "Error calibrating gamepad!", ""); | ^~ config.cpp:734:60: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 734 | notify("", "Error calibrating gamepad!", ""); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.cpp:734:90: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 734 | notify("", "Error calibrating gamepad!", ""); | ^~ config.cpp:738:48: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 738 | notify("The gamepad does not", "need calibration", ""); | ^~~~~~~~~~~~~~~~~~~~~~ config.cpp:738:72: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 738 | notify("The gamepad does not", "need calibration", ""); | ^~~~~~~~~~~~~~~~~~ config.cpp:738:92: 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:48: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1026 | sprintf(userDir, "%s", getUserResource("")); | ^~ config.cpp:1034:37: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1034 | if (!exists(getUserResource("config"))) { | ^~~~~~~~ config.cpp:1041:52: 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:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1107 | XMLData* monster = new XMLData("monster", ""); | ^~~~~~~~~ config.cpp:1107:51: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1107 | XMLData* monster = new XMLData("monster", ""); | ^~ config.cpp:1109:37: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1109 | XMLData* game = new XMLData("game", ""); | ^~~~~~ config.cpp:1109:45: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1109 | XMLData* game = new XMLData("game", ""); | ^~ config.cpp:1110:38: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1110 | XMLData* input = new XMLData("input", itoa(getInputType())); | ^~~~~~~ config.cpp:1111:45: 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:38: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1112 | XMLData* joyb1 = new XMLData("joyb1", itoa(getJoyButton1())); | ^~~~~~~ config.cpp:1113:38: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1113 | XMLData* joyb2 = new XMLData("joyb2", itoa(getJoyButton2())); | ^~~~~~~ config.cpp:1114:38: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1114 | XMLData* joyb3 = new XMLData("joyb3", itoa(getJoyButton3())); | ^~~~~~~ config.cpp:1115:35: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1115 | XMLData* k1 = new XMLData("keyb1", itoa(getKey1())); | ^~~~~~~ config.cpp:1116:35: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1116 | XMLData* k2 = new XMLData("keyb2", itoa(getKey2())); | ^~~~~~~ config.cpp:1117:35: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1117 | XMLData* kl = new XMLData("keyLeft", itoa(getKeyLeft())); | ^~~~~~~~~ config.cpp:1118:35: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1118 | XMLData* kr = new XMLData("keyRight", itoa(getKeyRight())); | ^~~~~~~~~~ config.cpp:1119:35: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1119 | XMLData* ku = new XMLData("keyUp", itoa(getKeyUp())); | ^~~~~~~ config.cpp:1120:35: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1120 | XMLData* kd = new XMLData("keyDown", itoa(getKeyDown())); | ^~~~~~~~~ config.cpp:1133:36: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1133 | XMLData* gfx = new XMLData("gfx", ""); | ^~~~~ config.cpp:1133:43: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1133 | XMLData* gfx = new XMLData("gfx", ""); | ^~ config.cpp:1135:38: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1135 | XMLData* width = new XMLData("width", itoa(sd->width)); | ^~~~~~~ config.cpp:1136:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1136 | XMLData* height = new XMLData("height", itoa(sd->height)); | ^~~~~~~~ config.cpp:1137:38: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1137 | XMLData* depth = new XMLData("depth", itoa(sd->depth)); | ^~~~~~~ config.cpp:1138:43: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1138 | XMLData* fullscreen = new XMLData("fullscreen", itoa(sd->fullscreen)); | ^~~~~~~~~~~~ config.cpp:1139:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1139 | XMLData* frameskip = new XMLData("frameskip", itoa(getFrameSkip())); | ^~~~~~~~~~~ config.cpp:1140:38: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1140 | XMLData* vsync = new XMLData("vsync", itoa(getWaitForVsync())); | ^~~~~~~ config.cpp:1141:47: 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:49: 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:38: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1152 | XMLData* sound = new XMLData("sound", ""); | ^~~~~~~ config.cpp:1152:47: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1152 | XMLData* sound = new XMLData("sound", ""); | ^~ config.cpp:1153:45: 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:43: 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:44: 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/pterjan/rpmbuild/BUILD/monster-1.24/src' make: Entering directory '/home/pterjan/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 -std=c++14 -g -O2 -I/usr/include/lua-5.1 -I../tgui-0.9 -c script.cpp In file included from monster.h:7, from script.cpp:6: animation.h:19:61: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 19 | void saveFrame(BITMAP* bmp, int delay, PACKFILE* f) throw (WriteError); | ^~~~~ animation.h:20:32: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 20 | void save(PACKFILE* f) throw (WriteError); | ^~~~~ animation.h:22:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 22 | throw (ReadError); | ^~~~~ animation.h:23:32: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 23 | void load(PACKFILE* f) throw (std::bad_alloc, ReadError); | ^~~~~ animation.h:24:36: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 24 | void load(char *filename) throw (std::bad_alloc, ReadError); | ^~~~~ animation.h:31:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 31 | throw (std::bad_alloc); | ^~~~~ animation.h:55:44: 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: area.h:49:47: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 49 | void writeTile(int tile, PACKFILE* f) throw (WriteError); | ^~~~~ area.h:51:35: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 51 | void save(char* filename) throw (WriteError); | ^~~~~ area.h:54:37: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 54 | void addObject(Object* obj) throw (std::bad_alloc); | ^~~~~ area.h:58:24: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 58 | void initLua() throw (std::bad_alloc, ReadError, ScriptError); | ^~~~~ area.h:65:36: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 65 | Area(const char* filename) throw (std::bad_alloc, ReadError); | ^~~~~ area.h:71:21: 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: 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: graphics.h:76:46: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 76 | Screen(ScreenDescriptor* wantedMode) throw (std::bad_alloc, NoMode); | ^~~~~ config.h:52:21: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 52 | void read() throw (ReadError); | ^~~~~ config.h:53:22: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 53 | void write() throw (WriteError); | ^~~~~ In file included from monster.h:17: 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: 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: 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: xml.h:16:33: 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:31: 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:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 193 | debug_message("Loading global script...\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ script.cpp:194:49: 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:23: 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:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 232 | debug_message("Loading global script...\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ script.cpp:233:49: 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:23: 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:31: 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:23: 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:50: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 388 | a = new AnimationSet(getResource("objects/%s.anims", name)); | ^~~~~~~~~~~~~~~~~~ script.cpp:391:31: 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:27: 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:73: 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:69: 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:70: 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:76: 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:65: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1037 | playOgg("error.ogg"); | ^~~~~~~~~~~ script.cpp:1041:65: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1041 | playOgg("error.ogg"); | ^~~~~~~~~~~ script.cpp:1047:65: 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:67: 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:68: 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:39: 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:17: 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:33: 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:58: 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/pterjan/rpmbuild/BUILD/monster-1.24/src' make: Entering directory '/home/pterjan/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 -std=c++14 -g -O2 -I/usr/include/lua-5.1 -I../tgui-0.9 -c graphics.cpp In file included from monster.h:7, from graphics.cpp:7: animation.h:19:61: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 19 | void saveFrame(BITMAP* bmp, int delay, PACKFILE* f) throw (WriteError); | ^~~~~ animation.h:20:32: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 20 | void save(PACKFILE* f) throw (WriteError); | ^~~~~ animation.h:22:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 22 | throw (ReadError); | ^~~~~ animation.h:23:32: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 23 | void load(PACKFILE* f) throw (std::bad_alloc, ReadError); | ^~~~~ animation.h:24:36: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 24 | void load(char *filename) throw (std::bad_alloc, ReadError); | ^~~~~ animation.h:31:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 31 | throw (std::bad_alloc); | ^~~~~ animation.h:55:44: 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: area.h:49:47: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 49 | void writeTile(int tile, PACKFILE* f) throw (WriteError); | ^~~~~ area.h:51:35: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 51 | void save(char* filename) throw (WriteError); | ^~~~~ area.h:54:37: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 54 | void addObject(Object* obj) throw (std::bad_alloc); | ^~~~~ area.h:58:24: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 58 | void initLua() throw (std::bad_alloc, ReadError, ScriptError); | ^~~~~ area.h:65:36: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 65 | Area(const char* filename) throw (std::bad_alloc, ReadError); | ^~~~~ area.h:71:21: 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: 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: graphics.h:76:46: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 76 | Screen(ScreenDescriptor* wantedMode) throw (std::bad_alloc, NoMode); | ^~~~~ config.h:52:21: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 52 | void read() throw (ReadError); | ^~~~~ config.h:53:22: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 53 | void write() throw (WriteError); | ^~~~~ In file included from monster.h:17: 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: 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: 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: xml.h:16:33: 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:31: 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/pterjan/rpmbuild/BUILD/monster-1.24/src' make: Entering directory '/home/pterjan/rpmbuild/BUILD/monster-1.24/src' g++ -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -o monster animation.o area.o battle.o battle_affects.o combatant.o config.o debug.o enemy_combatant.o graphics.o input.o io.o menu.o mode7.o mwidgets.o object.o player.o player_combatant.o script.o sound.o spell.o timer.o util.o xml.o monster.o -lfudgefont -lfreetype -lz -L../tgui-0.9 -ltgui -llua-5.1 -llogg -lvorbisfile -lvorbis -logg `allegro-config --libs` make: Leaving directory '/home/pterjan/rpmbuild/BUILD/monster-1.24/src' + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.Vr5IAC + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' /home/pterjan/rpmbuild/BUILDROOT/monster-1.24-10.mga9.x86_64 '!=' / ']' + rm -rf /home/pterjan/rpmbuild/BUILDROOT/monster-1.24-10.mga9.x86_64 ++ dirname /home/pterjan/rpmbuild/BUILDROOT/monster-1.24-10.mga9.x86_64 + mkdir -p /home/pterjan/rpmbuild/BUILDROOT + mkdir /home/pterjan/rpmbuild/BUILDROOT/monster-1.24-10.mga9.x86_64 + cd monster-1.24 + '[' 1 -eq 1 ']' + install -D -m755 src/monster /home/pterjan/rpmbuild/BUILDROOT/monster-1.24-10.mga9.x86_64/usr/games/monster + install -d /home/pterjan/rpmbuild/BUILDROOT/monster-1.24-10.mga9.x86_64/usr/share/games/monster + cp -a data/area_scripts data/areas data/battle_bgs data/battle_gfx data/battle_scripts data/bmpfont.pcx data/enemy_animations data/enemy_scripts data/font.ttf data/gui.dat data/logos.dat data/menu.dat data/monster.dat data/music data/objects data/scripts data/sounds data/spell_gfx data/the_end.dat data/tilemap.dat /home/pterjan/rpmbuild/BUILDROOT/monster-1.24-10.mga9.x86_64/usr/share/games/monster + install -d /home/pterjan/rpmbuild/BUILDROOT/monster-1.24-10.mga9.x86_64/usr/share/applications + cat + install -D -m644 icon.png /home/pterjan/rpmbuild/BUILDROOT/monster-1.24-10.mga9.x86_64/usr/share/icons/hicolor/48x48/apps/monster.png + install -D -m644 icon512.png /home/pterjan/rpmbuild/BUILDROOT/monster-1.24-10.mga9.x86_64/usr/share/icons/hicolor/512x512/apps/monster.png + /usr/bin/find-debuginfo -j16 --strict-build-id -m -i --build-id-seed 1.24-10.mga9 --unique-debug-suffix -1.24-10.mga9.x86_64 --unique-debug-src-base monster-1.24-10.mga9.x86_64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 110000000 -S debugsourcefiles.list /home/pterjan/rpmbuild/BUILD/monster-1.24 extracting debug info from /home/pterjan/rpmbuild/BUILDROOT/monster-1.24-10.mga9.x86_64/usr/games/monster original debug info size: 2944kB, size after compression: 2404kB /usr/bin/sepdebugcrcfix: Updated 1 CRC32s, 0 CRC32s did match. 871 blocks + /usr/lib/rpm/check-buildroot + '[' -n '' ']' + /usr/share/spec-helper/clean_files + '[' -n '' ']' + /usr/share/spec-helper/compress_files .xz + '[' -n '' ']' + /usr/share/spec-helper/relink_symlinks + '[' -n '' ']' + /usr/share/spec-helper/clean_perl + '[' -n '' ']' + /usr/share/spec-helper/lib_symlinks + '[' -n '' ']' + /usr/share/spec-helper/gprintify + '[' -n '' ']' + /usr/share/spec-helper/fix_mo + '[' -n '' ']' + /usr/share/spec-helper/fix_pamd + '[' -n '' ']' + /usr/share/spec-helper/remove_info_dir + '[' -n '' ']' + /usr/share/spec-helper/fix_eol + '[' -n '' ']' + /usr/share/spec-helper/check_desktop_files + '[' -n '' ']' + /usr/share/spec-helper/check_elf_files + /usr/lib/rpm/check-rpaths + /usr/lib/rpm/brp-remove-la-files + /usr/lib/rpm/redhat/brp-mangle-shebangs + /usr/lib/rpm/redhat/brp-python-bytecompile '' 1 0 + /usr/lib/rpm/redhat/brp-python-hardlink Processing files: monster-1.24-10.mga9.x86_64 Executing(%doc): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.Uafxmj + umask 022 + cd /home/pterjan/rpmbuild/BUILD + cd monster-1.24 + DOCDIR=/home/pterjan/rpmbuild/BUILDROOT/monster-1.24-10.mga9.x86_64/usr/share/doc/monster + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILDROOT/monster-1.24-10.mga9.x86_64/usr/share/doc/monster + cp -pr README.md /home/pterjan/rpmbuild/BUILDROOT/monster-1.24-10.mga9.x86_64/usr/share/doc/monster + RPM_EC=0 ++ jobs -p + exit 0 Provides: application() application(monster.desktop) monster = 1.24-10.mga9 monster(x86-64) = 1.24-10.mga9 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: liballeg.so.4.4()(64bit) libc.so.6()(64bit) libc.so.6(GLIBC_2.14)(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libc.so.6(GLIBC_2.3.4)(64bit) libc.so.6(GLIBC_2.34)(64bit) libc.so.6(GLIBC_2.4)(64bit) libfudgefont.so.1()(64bit) libgcc_s.so.1()(64bit) libgcc_s.so.1(GCC_3.0)(64bit) liblogg.so.4.4()(64bit) liblua.so.5.1()(64bit) libm.so.6()(64bit) libm.so.6(GLIBC_2.2.5)(64bit) libstdc++.so.6()(64bit) libstdc++.so.6(CXXABI_1.3)(64bit) libstdc++.so.6(CXXABI_1.3.8)(64bit) libstdc++.so.6(CXXABI_1.3.9)(64bit) libstdc++.so.6(GLIBCXX_3.4)(64bit) libstdc++.so.6(GLIBCXX_3.4.11)(64bit) libstdc++.so.6(GLIBCXX_3.4.15)(64bit) libstdc++.so.6(GLIBCXX_3.4.21)(64bit) libstdc++.so.6(GLIBCXX_3.4.29)(64bit) libstdc++.so.6(GLIBCXX_3.4.9)(64bit) Processing files: monster-debugsource-1.24-10.mga9.x86_64 Provides: monster-debugsource = 1.24-10.mga9 monster-debugsource(x86-64) = 1.24-10.mga9 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Processing files: monster-debuginfo-1.24-10.mga9.x86_64 Provides: debuginfo(build-id) = b2bfb9b9b772dbf598aec71444430fdbd6ba4891 monster-debuginfo = 1.24-10.mga9 monster-debuginfo(x86-64) = 1.24-10.mga9 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Recommends: monster-debugsource(x86-64) = 1.24-10.mga9 Checking for unpackaged file(s): /usr/lib/rpm/check-files /home/pterjan/rpmbuild/BUILDROOT/monster-1.24-10.mga9.x86_64 Wrote: /home/pterjan/rpmbuild/RPMS/x86_64/monster-debugsource-1.24-10.mga9.x86_64.rpm Wrote: /home/pterjan/rpmbuild/RPMS/x86_64/monster-debuginfo-1.24-10.mga9.x86_64.rpm Wrote: /home/pterjan/rpmbuild/RPMS/x86_64/monster-1.24-10.mga9.x86_64.rpm Executing(%clean): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.DH5I31 + umask 022 + cd /home/pterjan/rpmbuild/BUILD + cd monster-1.24 + /usr/bin/rm -rf /home/pterjan/rpmbuild/BUILDROOT/monster-1.24-10.mga9.x86_64 + RPM_EC=0 ++ jobs -p + exit 0 Executing(rmbuild): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.cTVkEZ + umask 022 + cd /home/pterjan/rpmbuild/BUILD + rm -rf monster-1.24 monster-1.24.gemspec + RPM_EC=0 ++ jobs -p + exit 0 RPM build warnings: Macro expanded in comment on line 12: %{version}/%{name}-%{version}.tar.gz D: [iurt_root_command] Success!