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