>>> Building on exopi-1 under games/amph BDEPENDS = [devel/sdl;archivers/bzip2;devel/gmake] DIST = [games/amph:amphetamine-0.8.10.tar.bz2;games/amph:amphetamine-data-0.8.6.tar.bz2] FULLPKGNAME = amph-0.8.10p8 RDEPENDS = [devel/sdl] (Junk lock obtained for exopi-1 at 1732128089.11) >>> Running depends in games/amph at 1732128089.14 last junk was in textproc/hyphen-i18n/ru_RU /usr/sbin/pkg_add -aI -Drepair bzip2-1.0.8p0 sdl-1.2.15p12 was: /usr/sbin/pkg_add -aI -Drepair bzip2-1.0.8p0 gmake-4.4.1 sdl-1.2.15p12 /usr/sbin/pkg_add -aI -Drepair bzip2-1.0.8p0 sdl-1.2.15p12 >>> Running show-prepare-results in games/amph at 1732128091.53 ===> games/amph ===> Building from scratch amph-0.8.10p8 ===> amph-0.8.10p8 depends on: gmake-* -> gmake-4.4.1 ===> amph-0.8.10p8 depends on: bzip2-* -> bzip2-1.0.8p0 ===> amph-0.8.10p8 depends on: sdl-* -> sdl-1.2.15p12 ===> Verifying specs: c++ c++abi pthread SDL Xpm Xt c m ===> found c++.10.0 c++abi.7.0 pthread.27.1 SDL.8.0 Xpm.10.0 Xt.11.1 c.100.3 m.10.1 bzip2-1.0.8p0 gmake-4.4.1 sdl-1.2.15p12 (Junk lock released for exopi-1 at 1732128092.51) distfiles size=1001099 >>> Running build in games/amph at 1732128092.54 ===> games/amph ===> Checking files for amph-0.8.10p8 `/exopi-cvs/ports/distfiles/amphetamine-data-0.8.6.tar.bz2' is up to date. `/exopi-cvs/ports/distfiles/amphetamine-0.8.10.tar.bz2' is up to date. >> (SHA256) all files: OK ===> Extracting for amph-0.8.10p8 ===> Patching for amph-0.8.10p8 ===> Applying OpenBSD patch patch-Makefile Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- Makefile.orig Mon Mar 25 11:11:27 2002 |+++ Makefile Thu Jan 22 02:39:13 2009 -------------------------- Patching file Makefile using Plan A... Hunk #1 succeeded at 3. Hunk #2 succeeded at 25. Hunk #3 succeeded at 46. Hunk #4 succeeded at 193. done ===> Applying OpenBSD patch patch-src_Element_cpp Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |Index: src/Element.cpp |--- src/Element.cpp.orig |+++ src/Element.cpp -------------------------- Patching file src/Element.cpp using Plan A... Hunk #1 succeeded at 279. done ===> Applying OpenBSD patch patch-src_SndSys_cpp Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- src/SndSys.cpp.orig Sun Mar 24 00:49:09 2002 |+++ src/SndSys.cpp Sat Jan 24 04:52:38 2009 -------------------------- Patching file src/SndSys.cpp using Plan A... Hunk #1 succeeded at 16. Hunk #2 succeeded at 28. done ===> Compiler link: clang -> /usr/bin/clang ===> Compiler link: clang++ -> /usr/bin/clang++ ===> Compiler link: cc -> /usr/bin/cc ===> Compiler link: c++ -> /usr/bin/c++ ===> Generating configure for amph-0.8.10p8 ===> Configuring for amph-0.8.10p8 ===> Building for amph-0.8.10p8 c++ -DINSTALL_DIR="\"/usr/local/share/amph\"" -D_USE_LIB_XPM -c src/Element.cpp -O2 -pipe -g -I./src -I/usr/local/include -I/usr/local/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/X11R6/include -DXTHREADS -I/usr/local/include -I/usr/X11R6/include -funroll-loops -fomit-frame-pointer -ffast-math -Wcast-align -o src/Element.o c++ -DINSTALL_DIR="\"/usr/local/share/amph\"" -D_USE_LIB_XPM -c src/File.cpp -O2 -pipe -g -I./src -I/usr/local/include -I/usr/local/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/X11R6/include -DXTHREADS -I/usr/local/include -I/usr/X11R6/include -funroll-loops -fomit-frame-pointer -ffast-math -Wcast-align -o src/File.o c++ -DINSTALL_DIR="\"/usr/local/share/amph\"" -D_USE_LIB_XPM -c src/Gifload.cpp -O2 -pipe -g -I./src -I/usr/local/include -I/usr/local/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/X11R6/include -DXTHREADS -I/usr/local/include -I/usr/X11R6/include -funroll-loops -fomit-frame-pointer -ffast-math -Wcast-align -o src/Gifload.o src/Gifload.cpp:57:18: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gSystem->Error("could not allocate %x bytes", size); ^ src/Gifload.cpp:69:18: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gSystem->Error("could not reallocate %x bytes", size); ^ src/Gifload.cpp:78:18: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gSystem->Error("wtfree(NULL)", 0); ^ src/Gifload.cpp:140:14: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] char *id87 = "GIF87a"; ^ src/Gifload.cpp:141:14: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] char *id89 = "GIF89a"; ^ src/Gifload.cpp:152:2: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] register unsigned char ch, ch1; ^~~~~~~~~ src/Gifload.cpp:152:2: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] register unsigned char ch, ch1; ^~~~~~~~~ src/Gifload.cpp:153:2: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] register byte *ptr, *ptr1; ^~~~~~~~~ src/Gifload.cpp:153:2: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] register byte *ptr, *ptr1; ^~~~~~~~~ src/Gifload.cpp:154:2: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] register int i; ^~~~~~~~~ src/Gifload.cpp:168:20: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gSystem->Error("not enough memory to read gif file",0); ^ src/Gifload.cpp:172:20: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gSystem->Error("not enough memory to read gif file",0); ^ src/Gifload.cpp:176:20: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gSystem->Error("GIF data read failed",0); ^ src/Gifload.cpp:180:24: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gSystem->Error("not a GIF file",0); ^ src/Gifload.cpp:204:20: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gSystem->Error("corrupt GIF file (bad screen descriptor)",0); ^ src/Gifload.cpp:229:20: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gSystem->Error("corrupt GIF89a file",0); ^ src/Gifload.cpp:248:20: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gSystem->Error("invalid GIF89 extension",0); ^ src/Gifload.cpp:320:21: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gSystem->Error("corrupt GIF file (unblock)",0); ^ src/Gifload.cpp:376:19: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gSystem->Error("Corrupt GIF file (OutCount)!", 0); ^ 19 warnings generated. c++ -DINSTALL_DIR="\"/usr/local/share/amph\"" -D_USE_LIB_XPM -c src/Graphfil.cpp -O2 -pipe -g -I./src -I/usr/local/include -I/usr/local/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/X11R6/include -DXTHREADS -I/usr/local/include -I/usr/X11R6/include -funroll-loops -fomit-frame-pointer -ffast-math -Wcast-align -o src/Graphfil.o src/Graphfil.cpp:119:18: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gSystem->Error("Could not open texture", 0); ^ src/Graphfil.cpp:132:19: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gSystem->Error("Unknown graphic file format.", 0); ^ src/Graphfil.cpp:136:19: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gSystem->Error("The graphic file reading code is really broken.", 0); ^ src/Graphfil.cpp:141:18: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gSystem->Error("gApplication->system->Error reading texture", 0); ^ src/Graphfil.cpp:159:18: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gSystem->Error("gApplication->system->Error reading texture", 0); ^ 5 warnings generated. c++ -DINSTALL_DIR="\"/usr/local/share/amph\"" -D_USE_LIB_XPM -c src/Gui.cpp -O2 -pipe -g -I./src -I/usr/local/include -I/usr/local/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/X11R6/include -DXTHREADS -I/usr/local/include -I/usr/X11R6/include -funroll-loops -fomit-frame-pointer -ffast-math -Wcast-align -o src/Gui.o src/Gui.cpp:42:28: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] if (!guis) gSystem->Error("Error while reading the file kFileGUIs", 0); ^ src/Gui.cpp:49:86: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] if (!(healthPanel && oxygenPanel && weaponPanel && backgroundPanel)) gSystem->Error("Cannot allocate panels", 0); ^ src/Gui.cpp:697:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] GetStringConstant(f, "msgPickedUpHealth", messages->msgHealth); ^ src/Gui.cpp:698:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] GetStringConstant(f, "msgPickedUpOxygen", messages->msgOxygen); ^ src/Gui.cpp:700:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] GetStringConstant(f, "msgPickedUpPhiol", messages->msgPhiol); ^ src/Gui.cpp:701:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] GetStringConstant(f, "msgPickedUpBM", messages->msgBM); ^ src/Gui.cpp:702:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] GetStringConstant(f, "msgPickedUpBow", messages->msgBow); ^ src/Gui.cpp:703:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] GetStringConstant(f, "msgPickedUpScie", messages->msgScie); ^ src/Gui.cpp:704:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] GetStringConstant(f, "msgPickedUpHands", messages->msgHands); ^ src/Gui.cpp:705:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] GetStringConstant(f, "msgPickedUpBombs", messages->msgBombs); ^ src/Gui.cpp:706:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] GetStringConstant(f, "msgPickedUpStaff", messages->msgStaff); ^ src/Gui.cpp:708:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] GetStringConstant(f, "msgPickedUpPhiolMun", messages->msgPhiolMun); ^ src/Gui.cpp:709:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] GetStringConstant(f, "msgPickedUpBMMun", messages->msgBMMun); ^ src/Gui.cpp:710:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] GetStringConstant(f, "msgPickedUpBowMun", messages->msgBowMun); ^ src/Gui.cpp:711:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] GetStringConstant(f, "msgPickedUpHandMun", messages->msgHandsMun); ^ src/Gui.cpp:712:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] GetStringConstant(f, "msgPickedUpBombMun", messages->msgBombsMun); ^ src/Gui.cpp:713:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] GetStringConstant(f, "msgPickedUpStaffMun", messages->msgStaffMun); ^ src/Gui.cpp:731:53: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gGUIConst->kHealthPanelHeight = GetLongConstant(f, "kHealthPanelHeight"); ^ src/Gui.cpp:732:51: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gGUIConst->kHealthPanelPosX = GetLongConstant(f, "kHealthPanelPosX"); ^ src/Gui.cpp:733:51: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gGUIConst->kHealthPanelPosY = GetLongConstant(f, "kHealthPanelPosY"); ^ src/Gui.cpp:734:58: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gGUIConst->kHealthPanelRefreshRate = GetLongConstant(f, "kHealthPanelRefreshRate"); ^ src/Gui.cpp:735:52: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gGUIConst->kHealthPanelWidth = GetLongConstant(f, "kHealthPanelWidth"); ^ src/Gui.cpp:736:53: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gGUIConst->kOxygenPanelHeight = GetLongConstant(f, "kOxygenPanelHeight"); ^ src/Gui.cpp:737:51: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gGUIConst->kOxygenPanelPosX = GetLongConstant(f, "kOxygenPanelPosX"); ^ src/Gui.cpp:738:51: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gGUIConst->kOxygenPanelPosY = GetLongConstant(f, "kOxygenPanelPosY"); ^ src/Gui.cpp:739:58: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gGUIConst->kOxygenPanelRefreshRate = GetLongConstant(f, "kOxygenPanelRefreshRate"); ^ src/Gui.cpp:740:52: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gGUIConst->kOxygenPanelWidth = GetLongConstant(f, "kOxygenPanelWidth"); ^ src/Gui.cpp:741:53: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gGUIConst->kWeaponPanelHeight = GetLongConstant(f, "kWeaponPanelHeight"); ^ src/Gui.cpp:742:51: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gGUIConst->kWeaponPanelPosX = GetLongConstant(f, "kWeaponPanelPosX"); ^ src/Gui.cpp:743:51: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gGUIConst->kWeaponPanelPosY = GetLongConstant(f, "kWeaponPanelPosY"); ^ src/Gui.cpp:744:52: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gGUIConst->kWeaponPanelWidth = GetLongConstant(f, "kWeaponPanelWidth"); ^ src/Gui.cpp:745:53: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gGUIConst->kWeaponStatusWidth = GetLongConstant(f, "kWeaponStatusWidth"); ^ src/Gui.cpp:747:51: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gGUIConst->kUserMenuEntryDY = GetLongConstant(f, "kUserMenuEntryDY"); ^ src/Gui.cpp:748:53: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gGUIConst->kUserMenuEntryPosX = GetLongConstant(f, "kUserMenuEntryPosX"); ^ src/Gui.cpp:749:53: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gGUIConst->kUserMenuEntryPosY = GetLongConstant(f, "kUserMenuEntryPosY"); ^ src/Gui.cpp:750:50: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gGUIConst->kUserMenuHeight = GetLongConstant(f, "kUserMenuHeight"); ^ src/Gui.cpp:751:48: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gGUIConst->kUserMenuPosX = GetLongConstant(f, "kUserMenuPosX"); ^ src/Gui.cpp:752:48: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gGUIConst->kUserMenuPosY = GetLongConstant(f, "kUserMenuPosY"); ^ src/Gui.cpp:753:49: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gGUIConst->kUserMenuWidth = GetLongConstant(f, "kUserMenuWidth"); ^ src/Gui.cpp:754:51: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gGUIConst->kHelpMenuEntryDY = GetLongConstant(f, "kHelpMenuEntryDY"); ^ src/Gui.cpp:756:48: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gGUIConst->kInfoTextLeft = GetLongConstant(f, "kInfoTextLeft"); ^ src/Gui.cpp:757:47: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gGUIConst->kInfoTextTop = GetLongConstant(f, "kInfoTextTop"); ^ src/Gui.cpp:758:48: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gGUIConst->kInfoTextTime = GetLongConstant(f, "kInfoTextTime"); ^ src/Gui.cpp:760:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] GetStringConstant(f, "kUserMainPageTitle", gGUIConst->kUserMainPageTitle); ^ src/Gui.cpp:761:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] GetStringConstant(f, "kUserMenuEntry1", gGUIConst->kUserMenuEntry1); ^ src/Gui.cpp:762:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] GetStringConstant(f, "kUserMenuEntry2", gGUIConst->kUserMenuEntry2); ^ src/Gui.cpp:763:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] GetStringConstant(f, "kUserMenuEntry3", gGUIConst->kUserMenuEntry3); ^ src/Gui.cpp:764:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] GetStringConstant(f, "kUserMenuEntry4", gGUIConst->kUserMenuEntry4); ^ src/Gui.cpp:765:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] GetStringConstant(f, "kUserMenuEntry5", gGUIConst->kUserMenuEntry5); ^ src/Gui.cpp:767:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] GetStringConstant(f, "kNewGamePageTitle", gGUIConst->kNewGamePageTitle); ^ src/Gui.cpp:768:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] GetStringConstant(f, "kNewGameEntry1", gGUIConst->kNewGameEntry1); ^ src/Gui.cpp:769:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] GetStringConstant(f, "kNewGameEntry2", gGUIConst->kNewGameEntry2); ^ src/Gui.cpp:770:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] GetStringConstant(f, "kNewGameEntry3", gGUIConst->kNewGameEntry3); ^ src/Gui.cpp:771:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] GetStringConstant(f, "kNewGameEntry4", gGUIConst->kNewGameEntry4); ^ src/Gui.cpp:773:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] GetStringConstant(f, "kNoSavedGame", gGUIConst->kNoSavedGame); ^ src/Gui.cpp:774:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] GetStringConstant(f, "kSavePageTitle", gGUIConst->kSavePageTitle); ^ src/Gui.cpp:775:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] GetStringConstant(f, "kLoadPageTitle", gGUIConst->kLoadPageTitle); ^ src/Gui.cpp:776:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] GetStringConstant(f, "kHelpPageTitle", gGUIConst->kHelpPageTitle); ^ src/Gui.cpp:778:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] GetStringConstant(f, "kSavedGame0", gGUIConst->kSavedGames[0]); ^ src/Gui.cpp:779:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] GetStringConstant(f, "kSavedGame1", gGUIConst->kSavedGames[1]); ^ src/Gui.cpp:780:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] GetStringConstant(f, "kSavedGame2", gGUIConst->kSavedGames[2]); ^ src/Gui.cpp:781:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] GetStringConstant(f, "kSavedGame3", gGUIConst->kSavedGames[3]); ^ src/Gui.cpp:782:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] GetStringConstant(f, "kSavedGame4", gGUIConst->kSavedGames[4]); ^ src/Gui.cpp:783:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] GetStringConstant(f, "kSavedGame5", gGUIConst->kSavedGames[5]); ^ src/Gui.cpp:785:47: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gGUIConst->kKeyHitDelay = GetLongConstant(f, "kKeyHitDelay"); ^ src/Gui.cpp:787:50: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gGUIConst->kCreditsEntryDY = GetLongConstant(f, "kCreditsEntryDY"); ^ src/Gui.cpp:788:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] GetStringConstant(f, "kCreditsPageTitle", gGUIConst->kCreditsPageTitle); ^ src/Gui.cpp:789:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] GetStringConstant(f, "kCreditsEntry1", gGUIConst->kCreditsEntry1); ^ src/Gui.cpp:790:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] GetStringConstant(f, "kCreditsEntry2", gGUIConst->kCreditsEntry2); ^ src/Gui.cpp:791:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] GetStringConstant(f, "kCreditsEntry3", gGUIConst->kCreditsEntry3); ^ src/Gui.cpp:792:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] GetStringConstant(f, "kCreditsEntry4", gGUIConst->kCreditsEntry4); ^ src/Gui.cpp:793:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] GetStringConstant(f, "kCreditsEntry5", gGUIConst->kCreditsEntry5); ^ 72 warnings generated. c++ -DINSTALL_DIR="\"/usr/local/share/amph\"" -D_USE_LIB_XPM -c src/Appl.cpp -O2 -pipe -g -I./src -I/usr/local/include -I/usr/local/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/X11R6/include -DXTHREADS -I/usr/local/include -I/usr/X11R6/include -funroll-loops -fomit-frame-pointer -ffast-math -Wcast-align -o src/Appl.o src/Appl.cpp:29:24: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gSystem = new CSystem("Amphetamine"); ^ src/Appl.cpp:247:25: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] sprintf(fps, "%02d", saveFrameCount); ~~~~ ^~~~~~~~~~~~~~ %02ld src/Appl.cpp:250:25: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] sprintf(fps, "%02d", frameCount); ~~~~ ^~~~~~~~~~ %02ld 3 warnings generated. c++ -DINSTALL_DIR="\"/usr/local/share/amph\"" -D_USE_LIB_XPM -c src/Bullet.cpp -O2 -pipe -g -I./src -I/usr/local/include -I/usr/local/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/X11R6/include -DXTHREADS -I/usr/local/include -I/usr/X11R6/include -funroll-loops -fomit-frame-pointer -ffast-math -Wcast-align -o src/Bullet.o c++ -DINSTALL_DIR="\"/usr/local/share/amph\"" -D_USE_LIB_XPM -c src/Clut.cpp -O2 -pipe -g -I./src -I/usr/local/include -I/usr/local/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/X11R6/include -DXTHREADS -I/usr/local/include -I/usr/X11R6/include -funroll-loops -fomit-frame-pointer -ffast-math -Wcast-align -o src/Clut.o src/Clut.cpp:159:48: warning: format string is not a string literal (potentially insecure) [-Wformat-security] if (!fClut) MSG("!!! File not found: "); MSG(gConst->kFileCluts); MSG("\n"); ^~~~~~~~~~~~~~~~~~ ./src/AmpHead.hpp:186:52: note: expanded from macro 'MSG' #define MSG(message) if (logFile) fprintf(logFile, message); fflush(logFile) ^~~~~~~ src/Clut.cpp:159:48: note: treat the string as an argument to avoid this if (!fClut) MSG("!!! File not found: "); MSG(gConst->kFileCluts); MSG("\n"); ^ "%s", ./src/AmpHead.hpp:186:52: note: expanded from macro 'MSG' #define MSG(message) if (logFile) fprintf(logFile, message); fflush(logFile) ^ 1 warning generated. c++ -DINSTALL_DIR="\"/usr/local/share/amph\"" -D_USE_LIB_XPM -c src/ConstVal.cpp -O2 -pipe -g -I./src -I/usr/local/include -I/usr/local/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/X11R6/include -DXTHREADS -I/usr/local/include -I/usr/X11R6/include -funroll-loops -fomit-frame-pointer -ffast-math -Wcast-align -o src/ConstVal.o src/ConstVal.cpp:26:55: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gConst->kVelocityUnit = GetDoubleConstant(paramFile, "kVelocityUnit"); ^ src/ConstVal.cpp:27:61: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gConst->kPlayerAcceleration = GetDoubleConstant(paramFile, "kPlayerAcceleration"); ^ src/ConstVal.cpp:28:60: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gConst->kPlayerLiquidAccel = GetDoubleConstant(paramFile, "kPlayerLiquidAccel"); ^ src/ConstVal.cpp:29:57: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gConst->kRunScaleFactor = GetDoubleConstant(paramFile, "kRunScaleFactor"); ^ src/ConstVal.cpp:30:55: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gConst->kJumpVelocity = GetDoubleConstant(paramFile, "kJumpVelocity"); ^ src/ConstVal.cpp:31:61: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gConst->kJumpAccelerationTime = GetLongConstant(paramFile, "kJumpAccelerationTime"); ^ src/ConstVal.cpp:32:53: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gConst->kTeleportTime = GetLongConstant(paramFile, "kTeleportTime"); ^ src/ConstVal.cpp:33:52: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gConst->kPlayerWidth = GetLongConstant(paramFile, "kPlayerWidth"); ^ src/ConstVal.cpp:34:52: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gConst->kBulletWidth = GetLongConstant(paramFile, "kBulletWidth"); ^ src/ConstVal.cpp:35:61: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gConst->kFirehandNumOfBullets = GetLongConstant(paramFile, "kFirehandNumOfBullets"); ^ src/ConstVal.cpp:36:62: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gConst->kFirehandAngle = (double)GetLongConstant(paramFile, "kFirehandAngle") * 3.141 / 180; ^ src/ConstVal.cpp:37:54: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gConst->kStaffLoadTime = GetLongConstant(paramFile, "kStaffLoadTime"); ^ src/ConstVal.cpp:38:54: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gConst->kInitialOxygen = GetLongConstant(paramFile, "kInitialOxygen"); ^ src/ConstVal.cpp:39:57: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gConst->kOxygenDecrease = GetDoubleConstant(paramFile, "kOxygenDecrease"); ^ src/ConstVal.cpp:40:51: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gConst->kLavaDamage = GetLongConstant(paramFile, "kLavaDamage"); ^ src/ConstVal.cpp:41:64: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gConst->kPlayersFirstWeaponShape = GetLongConstant(paramFile, "kPlayersFirstWeaponShape"); ^ src/ConstVal.cpp:42:51: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gConst->kPickupTime = GetLongConstant(paramFile, "kPickupTime"); ^ src/ConstVal.cpp:44:57: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gConst->kBulletTailLength = GetLongConstant(paramFile, "kBulletTailLength"); ^ src/ConstVal.cpp:45:59: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gConst->kBulletTailDistance = GetLongConstant(paramFile, "kBulletTailDistance"); ^ src/ConstVal.cpp:46:62: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gConst->kDetonationFrameTime = GetDoubleConstant(paramFile, "kDetonationFrameTime"); ^ src/ConstVal.cpp:47:54: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gConst->kWalkFrameTime = GetLongConstant(paramFile, "kWalkFrameTime"); ^ src/ConstVal.cpp:48:55: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gConst->kShootFrameTime = GetLongConstant(paramFile, "kShootFrameTime"); ^ src/ConstVal.cpp:49:57: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gConst->kWeaponChangeTime = GetLongConstant(paramFile, "kWeaponChangeTime"); ^ src/ConstVal.cpp:50:56: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gConst->kActionDelayTime = GetLongConstant(paramFile, "kActionDelayTime"); ^ src/ConstVal.cpp:51:53: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gConst->kDieFrameTime = GetLongConstant(paramFile, "kDieFrameTime"); ^ src/ConstVal.cpp:52:51: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gConst->kDriftSpeed = GetLongConstant(paramFile, "kDriftSpeed"); ^ src/ConstVal.cpp:53:58: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gConst->kWeaponCarryHeight = GetLongConstant(paramFile, "kWeaponCarryHeight"); ^ src/ConstVal.cpp:55:58: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gConst->kTeleportBlinkTime = GetLongConstant(paramFile, "kTeleportBlinkTime"); ^ src/ConstVal.cpp:56:58: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gConst->kSavePortBlinkTime = GetLongConstant(paramFile, "kSavePortBlinkTime"); ^ src/ConstVal.cpp:57:58: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gConst->kExitPortBlinkTime = GetLongConstant(paramFile, "kExitPortBlinkTime"); ^ src/ConstVal.cpp:59:54: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gConst->kGravitation = GetDoubleConstant(paramFile, "kGravitation"); ^ src/ConstVal.cpp:60:57: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gConst->kNormalFriction = GetDoubleConstant(paramFile, "kNormalFriction"); ^ src/ConstVal.cpp:61:57: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gConst->kLiquidFriction = GetDoubleConstant(paramFile, "kLiquidFriction"); ^ src/ConstVal.cpp:62:58: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gConst->kMaxFallingSpeed = GetDoubleConstant(paramFile, "kMaxFallingSpeed"); ^ src/ConstVal.cpp:64:65: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gConst->kJumperJumpAcceleration = GetDoubleConstant(paramFile, "kJumperJumpAcceleration"); ^ src/ConstVal.cpp:66:53: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gConst->kNumOfBounces = GetLongConstant(paramFile, "kNumOfBounces"); ^ src/ConstVal.cpp:67:54: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gConst->kSineWeaponRad = GetLongConstant(paramFile, "kSineWeaponRad"); ^ src/ConstVal.cpp:68:61: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gConst->kMaxTurnAngle = (double)GetLongConstant(paramFile, "kMaxTurnAngle") * 3.141 / 180.0; ^ src/ConstVal.cpp:69:64: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gConst->kWargFastSpeedup = (double)GetLongConstant(paramFile, "kWargFastSpeedup"); ^ src/ConstVal.cpp:70:60: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gConst->kWargNearWeaponRadix = GetLongConstant(paramFile, "kWargNearWeaponRadix"); ^ src/ConstVal.cpp:71:63: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gConst->kWargJumpAcceleration = GetDoubleConstant(paramFile, "kWargJumpAcceleration"); ^ src/ConstVal.cpp:72:60: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gConst->kDelayAfterWargDeath = GetLongConstant(paramFile, "kDelayAfterWargDeath"); ^ src/ConstVal.cpp:74:57: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gConst->kActivateDistance = GetLongConstant(paramFile, "kActivateDistance"); ^ src/ConstVal.cpp:75:54: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gConst->kTreatDistance = GetLongConstant(paramFile, "kTreatDistance"); ^ src/ConstVal.cpp:76:60: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gConst->kBrightnessLevels[0] = GetLongConstant(paramFile, "kLight"); ^ src/ConstVal.cpp:77:60: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gConst->kBrightnessLevels[1] = GetLongConstant(paramFile, "kMedium"); ^ src/ConstVal.cpp:78:60: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gConst->kBrightnessLevels[2] = GetLongConstant(paramFile, "kDark"); ^ src/ConstVal.cpp:79:60: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gConst->kBrightnessLevels[3] = GetLongConstant(paramFile, "kVeryDark"); ^ src/ConstVal.cpp:81:54: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gConst->kWeaponSF[0] = GetDoubleConstant(paramFile, "kWeaponSF1"); ^ src/ConstVal.cpp:82:54: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gConst->kWeaponSF[1] = GetDoubleConstant(paramFile, "kWeaponSF2"); ^ src/ConstVal.cpp:83:54: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gConst->kWeaponSF[2] = GetDoubleConstant(paramFile, "kWeaponSF3"); ^ src/ConstVal.cpp:84:54: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gConst->kWeaponSF[3] = GetDoubleConstant(paramFile, "kWeaponSF4"); ^ src/ConstVal.cpp:85:54: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gConst->kHealthSF[0] = GetDoubleConstant(paramFile, "kHealthSF1"); ^ src/ConstVal.cpp:86:54: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gConst->kHealthSF[1] = GetDoubleConstant(paramFile, "kHealthSF2"); ^ src/ConstVal.cpp:87:54: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gConst->kHealthSF[2] = GetDoubleConstant(paramFile, "kHealthSF3"); ^ src/ConstVal.cpp:88:54: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gConst->kHealthSF[3] = GetDoubleConstant(paramFile, "kHealthSF4"); ^ src/ConstVal.cpp:89:53: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gConst->kSpeedSF[0] = GetDoubleConstant(paramFile, "kSpeedSF1"); ^ src/ConstVal.cpp:90:53: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gConst->kSpeedSF[1] = GetDoubleConstant(paramFile, "kSpeedSF2"); ^ src/ConstVal.cpp:91:53: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gConst->kSpeedSF[2] = GetDoubleConstant(paramFile, "kSpeedSF3"); ^ src/ConstVal.cpp:92:53: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gConst->kSpeedSF[3] = GetDoubleConstant(paramFile, "kSpeedSF4"); ^ src/ConstVal.cpp:94:57: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gConst->kFlickeringPeriod = GetLongConstant(paramFile, "kFlickeringPeriod"); ^ src/ConstVal.cpp:95:57: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gConst->kLightningRadiant = GetLongConstant(paramFile, "kLightningRadiant"); ^ src/ConstVal.cpp:96:60: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gConst->kBkgndScrollFactor = GetDoubleConstant(paramFile, "kBkgndScrollFactor"); ^ src/ConstVal.cpp:97:58: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gConst->kCoronaFadeSpeed = GetDoubleConstant(paramFile, "kCoronaFadeSpeed"); ^ src/ConstVal.cpp:99:68: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gConst->kBlessureInvulnerabilityTime = GetLongConstant(paramFile, "kBlessureInvulnerabilityTime"); ^ src/ConstVal.cpp:100:61: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gConst->kMonsterTouchBlessure = GetLongConstant(paramFile, "kMonsterTouchBlessure"); ^ src/ConstVal.cpp:101:57: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gConst->kItemExplosionRad = GetLongConstant(paramFile, "kItemExplosionRad"); ^ src/ConstVal.cpp:102:64: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gConst->kItemExplosionStartShape = GetLongConstant(paramFile, "kItemExplosionStartShape"); ^ src/ConstVal.cpp:104:57: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gConst->kHealthPanelColor = GetLongConstant(paramFile, "kHealthPanelColor"); ^ src/ConstVal.cpp:105:57: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gConst->kOxygenPanelColor = GetLongConstant(paramFile, "kOxygenPanelColor"); ^ src/ConstVal.cpp:106:60: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gConst->kShadowmodeDarkening = GetLongConstant(paramFile, "kShadowmodeDarkening"); ^ src/ConstVal.cpp:107:49: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gConst->kFadeTime = GetLongConstant(paramFile, "kFadeTime"); ^ src/ConstVal.cpp:108:52: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gConst->kStartupTime = GetLongConstant(paramFile, "kStartupTime"); ^ src/ConstVal.cpp:110:54: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gConst->kTextYDistance = GetLongConstant(paramFile, "kTextYDistance"); ^ src/ConstVal.cpp:111:52: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gConst->kCameraSpeed = GetLongConstant(paramFile, "kCameraSpeed"); ^ src/ConstVal.cpp:113:57: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gConst->kSoundMaxDistance = GetLongConstant(paramFile, "kSoundMaxDistance"); ^ src/ConstVal.cpp:114:57: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gConst->kSoundMinDistance = GetLongConstant(paramFile, "kSoundMinDistance"); ^ src/ConstVal.cpp:116:31: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] GetStringConstant(paramFile, "kFilePalette", gConst->kFilePalette); ^ src/ConstVal.cpp:117:31: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] GetStringConstant(paramFile, "kFileLevel", gConst->kFileLevel); ^ src/ConstVal.cpp:118:31: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] GetStringConstant(paramFile, "kFileMonster", gConst->kFileMonster); ^ src/ConstVal.cpp:119:31: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] GetStringConstant(paramFile, "kFileWeapon", gConst->kFileWeapon); ^ src/ConstVal.cpp:120:31: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] GetStringConstant(paramFile, "kFileInfo", gConst->kFileInfo); ^ src/ConstVal.cpp:121:31: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] GetStringConstant(paramFile, "kFilePlatform", gConst->kFilePlatform); ^ src/ConstVal.cpp:122:31: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] GetStringConstant(paramFile, "kFileObjects", gConst->kFileObjects); ^ src/ConstVal.cpp:123:31: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] GetStringConstant(paramFile, "kFileShapes", gConst->kFileShapes); ^ src/ConstVal.cpp:124:31: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] GetStringConstant(paramFile, "kFileBackground1", gConst->kFileBackground1); ^ src/ConstVal.cpp:125:31: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] GetStringConstant(paramFile, "kFileBackground2", gConst->kFileBackground2); ^ src/ConstVal.cpp:126:31: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] GetStringConstant(paramFile, "kFileCluts", gConst->kFileCluts); ^ src/ConstVal.cpp:127:31: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] GetStringConstant(paramFile, "kFileGUIs", gConst->kFileGUIs); ^ src/ConstVal.cpp:128:31: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] GetStringConstant(paramFile, "kFileConfig", gConst->kFileConfig); ^ src/ConstVal.cpp:129:31: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] GetStringConstant(paramFile, "kFileStartup", gConst->kFileStartup); ^ src/ConstVal.cpp:132:31: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] GetStringConstant(paramFile, "kMonsterName1", gConst->kMonsterNames[0]); ^ src/ConstVal.cpp:133:31: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] GetStringConstant(paramFile, "kMonsterName2", gConst->kMonsterNames[1]); ^ src/ConstVal.cpp:134:31: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] GetStringConstant(paramFile, "kMonsterName3", gConst->kMonsterNames[2]); ^ src/ConstVal.cpp:135:31: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] GetStringConstant(paramFile, "kMonsterName4", gConst->kMonsterNames[3]); ^ src/ConstVal.cpp:136:31: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] GetStringConstant(paramFile, "kMonsterName5", gConst->kMonsterNames[4]); ^ src/ConstVal.cpp:137:31: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] GetStringConstant(paramFile, "kMonsterName6", gConst->kMonsterNames[5]); ^ src/ConstVal.cpp:138:31: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] GetStringConstant(paramFile, "kMonsterName7", gConst->kMonsterNames[6]); ^ src/ConstVal.cpp:139:31: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] GetStringConstant(paramFile, "kMonsterName8", gConst->kMonsterNames[7]); ^ src/ConstVal.cpp:140:31: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] GetStringConstant(paramFile, "kMonsterName9", gConst->kMonsterNames[8]); ^ src/ConstVal.cpp:141:31: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] GetStringConstant(paramFile, "kMonsterName10", gConst->kMonsterNames[9]); ^ src/ConstVal.cpp:142:31: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] GetStringConstant(paramFile, "kMonsterName11", gConst->kMonsterNames[10]); ^ src/ConstVal.cpp:144:57: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gConst->kMonsterNameSpeed = GetLongConstant(paramFile, "kMonsterNameSpeed"); ^ src/ConstVal.cpp:145:53: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gConst->kMonsterNameX = GetLongConstant(paramFile, "kMonsterNameX"); ^ src/ConstVal.cpp:148:48: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gConst->kShowFPS = GetLongConstant(paramFile, "kShowFPS"); ^ src/ConstVal.cpp:164:52: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gConfigData->leftKey = GetLongConstant(paramFile, "LeftKey"); ^ src/ConstVal.cpp:165:31: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] GetStringConstant(paramFile, "LeftKeyText", gConfigData->leftKeyText); ^ src/ConstVal.cpp:166:53: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gConfigData->rightKey = GetLongConstant(paramFile, "RightKey"); ^ src/ConstVal.cpp:167:31: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] GetStringConstant(paramFile, "RightKeyText", gConfigData->rightKeyText); ^ src/ConstVal.cpp:168:52: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gConfigData->jumpKey = GetLongConstant(paramFile, "JumpKey"); ^ src/ConstVal.cpp:169:31: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] GetStringConstant(paramFile, "JumpKeyText", gConfigData->jumpKeyText); ^ src/ConstVal.cpp:170:51: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gConfigData->runKey = GetLongConstant(paramFile, "RunKey"); ^ src/ConstVal.cpp:171:31: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] GetStringConstant(paramFile, "RunKeyText", gConfigData->runKeyText); ^ src/ConstVal.cpp:172:53: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gConfigData->shootKey = GetLongConstant(paramFile, "ShootKey"); ^ src/ConstVal.cpp:173:31: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] GetStringConstant(paramFile, "ShootKeyText", gConfigData->shootKeyText); ^ src/ConstVal.cpp:174:58: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gConfigData->nextWeaponKey = GetLongConstant(paramFile, "NextWeaponKey"); ^ src/ConstVal.cpp:175:31: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] GetStringConstant(paramFile, "NextWeaponKeyText", gConfigData->nextWeaponKeyText); ^ src/ConstVal.cpp:176:58: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gConfigData->prevWeaponKey = GetLongConstant(paramFile, "PrevWeaponKey"); ^ src/ConstVal.cpp:177:31: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] GetStringConstant(paramFile, "PrevWeaponKeyText", gConfigData->prevWeaponKeyText); ^ src/ConstVal.cpp:178:56: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gConfigData->activateKey = GetLongConstant(paramFile, "ActivateKey"); ^ src/ConstVal.cpp:179:31: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] GetStringConstant(paramFile, "ActivateKeyText", gConfigData->activateKeyText); ^ src/ConstVal.cpp:181:55: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gConfigData->weapon1Key = GetLongConstant(paramFile, "Weapon1Key"); ^ src/ConstVal.cpp:182:55: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gConfigData->weapon2Key = GetLongConstant(paramFile, "Weapon2Key"); ^ src/ConstVal.cpp:183:55: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gConfigData->weapon3Key = GetLongConstant(paramFile, "Weapon3Key"); ^ src/ConstVal.cpp:184:55: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gConfigData->weapon4Key = GetLongConstant(paramFile, "Weapon4Key"); ^ src/ConstVal.cpp:185:55: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gConfigData->weapon5Key = GetLongConstant(paramFile, "Weapon5Key"); ^ src/ConstVal.cpp:186:55: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gConfigData->weapon6Key = GetLongConstant(paramFile, "Weapon6Key"); ^ src/ConstVal.cpp:187:55: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gConfigData->weapon7Key = GetLongConstant(paramFile, "Weapon7Key"); ^ src/ConstVal.cpp:188:55: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gConfigData->weapon8Key = GetLongConstant(paramFile, "Weapon8Key"); ^ src/ConstVal.cpp:190:56: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gConfigData->soundVolume = GetLongConstant(paramFile, "SoundVolume"); ^ src/ConstVal.cpp:192:56: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gConfigData->screenWidth = GetLongConstant(paramFile, "ScreenWidth"); ^ src/ConstVal.cpp:193:57: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gConfigData->screenHeight = GetLongConstant(paramFile, "ScreenHeight"); ^ src/ConstVal.cpp:195:59: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gConfigData->disableCoronas = GetLongConstant(paramFile, "DisableCoronas"); ^ src/ConstVal.cpp:196:61: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gConfigData->disableLightning = GetLongConstant(paramFile, "DisableLightning"); ^ src/ConstVal.cpp:197:62: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gConfigData->disableShapeModes = GetLongConstant(paramFile, "DisableShapeModes"); ^ 135 warnings generated. c++ -DINSTALL_DIR="\"/usr/local/share/amph\"" -D_USE_LIB_XPM -c src/Creeper.cpp -O2 -pipe -g -I./src -I/usr/local/include -I/usr/local/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/X11R6/include -DXTHREADS -I/usr/local/include -I/usr/X11R6/include -funroll-loops -fomit-frame-pointer -ffast-math -Wcast-align -o src/Creeper.o c++ -DINSTALL_DIR="\"/usr/local/share/amph\"" -D_USE_LIB_XPM -c src/Item.cpp -O2 -pipe -g -I./src -I/usr/local/include -I/usr/local/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/X11R6/include -DXTHREADS -I/usr/local/include -I/usr/X11R6/include -funroll-loops -fomit-frame-pointer -ffast-math -Wcast-align -o src/Item.o c++ -DINSTALL_DIR="\"/usr/local/share/amph\"" -D_USE_LIB_XPM -c src/Level.cpp -O2 -pipe -g -I./src -I/usr/local/include -I/usr/local/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/X11R6/include -DXTHREADS -I/usr/local/include -I/usr/X11R6/include -funroll-loops -fomit-frame-pointer -ffast-math -Wcast-align -o src/Level.o src/Level.cpp:42:82: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] if (!OpenDataFile(gSystem->QualifyDataDir(gConst->kFileLevel))) gSystem->Error("File kFileLevel not found or not able to open it", 0); // by LL ^ src/Level.cpp:222:18: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] gSystem->Error("Cannot open the saving file", 0); ^ src/Level.cpp:299:25: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] if (!f) gSystem->Error("Cannot open the saving file", 0); ^ 3 warnings generated. c++ -DINSTALL_DIR="\"/usr/local/share/amph\"" -D_USE_LIB_XPM -c src/Main.cpp -O2 -pipe -g -I./src -I/usr/local/include -I/usr/local/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/X11R6/include -DXTHREADS -I/usr/local/include -I/usr/X11R6/include -funroll-loops -fomit-frame-pointer -ffast-math -Wcast-align -o src/Main.o c++ -DINSTALL_DIR="\"/usr/local/share/amph\"" -D_USE_LIB_XPM -c src/Monster.cpp -O2 -pipe -g -I./src -I/usr/local/include -I/usr/local/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/X11R6/include -DXTHREADS -I/usr/local/include -I/usr/X11R6/include -funroll-loops -fomit-frame-pointer -ffast-math -Wcast-align -o src/Monster.o c++ -DINSTALL_DIR="\"/usr/local/share/amph\"" -D_USE_LIB_XPM -c src/Monstrxx.cpp -O2 -pipe -g -I./src -I/usr/local/include -I/usr/local/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/X11R6/include -DXTHREADS -I/usr/local/include -I/usr/X11R6/include -funroll-loops -fomit-frame-pointer -ffast-math -Wcast-align -o src/Monstrxx.o c++ -DINSTALL_DIR="\"/usr/local/share/amph\"" -D_USE_LIB_XPM -c src/Object.cpp -O2 -pipe -g -I./src -I/usr/local/include -I/usr/local/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/X11R6/include -DXTHREADS -I/usr/local/include -I/usr/X11R6/include -funroll-loops -fomit-frame-pointer -ffast-math -Wcast-align -o src/Object.o c++ -DINSTALL_DIR="\"/usr/local/share/amph\"" -D_USE_LIB_XPM -c src/ObjInfo.cpp -O2 -pipe -g -I./src -I/usr/local/include -I/usr/local/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/X11R6/include -DXTHREADS -I/usr/local/include -I/usr/X11R6/include -funroll-loops -fomit-frame-pointer -ffast-math -Wcast-align -o src/ObjInfo.o src/ObjInfo.cpp:45:83: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] if (!OpenDataFile(gSystem->QualifyDataDir(gConst->kFileMonster))) gSystem->Error("Cannot find file kFileMonster or unable to open it", 0); // by LL ^ src/ObjInfo.cpp:78:83: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] if (!OpenDataFile(gSystem->QualifyDataDir(gConst->kFileObjects))) gSystem->Error("Cannot find file kFileObjects or uable to open it", 0); // by LL ^ src/ObjInfo.cpp:95:82: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] if (!OpenDataFile(gSystem->QualifyDataDir(gConst->kFileWeapon))) gSystem->Error("Cannot find file kFileWeapon or unable to open it", 0); // by LL ^ src/ObjInfo.cpp:123:84: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] if (!OpenDataFile(gSystem->QualifyDataDir(gConst->kFilePlatform))) gSystem->Error("Cannot find file kFilePlatform or unable to open it", 0); // by LL ^ src/ObjInfo.cpp:129:35: warning: expression result unused [-Wunused-value] TRANS_PUT_NUM2(platformInfo[n]->ID); ~~~~~~~~~~~~~~~ ^~ ./src/File.hpp:38:29: note: expanded from macro 'TRANS_PUT_NUM2' #define TRANS_PUT_NUM2(x) x ^ src/ObjInfo.cpp:130:35: warning: expression result unused [-Wunused-value] TRANS_PUT_NUM2(platformInfo[n]->startx); ~~~~~~~~~~~~~~~ ^~~~~~ ./src/File.hpp:38:29: note: expanded from macro 'TRANS_PUT_NUM2' #define TRANS_PUT_NUM2(x) x ^ src/ObjInfo.cpp:131:35: warning: expression result unused [-Wunused-value] TRANS_PUT_NUM2(platformInfo[n]->starty); ~~~~~~~~~~~~~~~ ^~~~~~ ./src/File.hpp:38:29: note: expanded from macro 'TRANS_PUT_NUM2' #define TRANS_PUT_NUM2(x) x ^ src/ObjInfo.cpp:132:35: warning: expression result unused [-Wunused-value] TRANS_PUT_NUM2(platformInfo[n]->endx); ~~~~~~~~~~~~~~~ ^~~~ ./src/File.hpp:38:29: note: expanded from macro 'TRANS_PUT_NUM2' #define TRANS_PUT_NUM2(x) x ^ src/ObjInfo.cpp:133:35: warning: expression result unused [-Wunused-value] TRANS_PUT_NUM2(platformInfo[n]->endy); ~~~~~~~~~~~~~~~ ^~~~ ./src/File.hpp:38:29: note: expanded from macro 'TRANS_PUT_NUM2' #define TRANS_PUT_NUM2(x) x ^ src/ObjInfo.cpp:134:35: warning: expression result unused [-Wunused-value] TRANS_PUT_NUM2(platformInfo[n]->speed); ~~~~~~~~~~~~~~~ ^~~~~ ./src/File.hpp:38:29: note: expanded from macro 'TRANS_PUT_NUM2' #define TRANS_PUT_NUM2(x) x ^ src/ObjInfo.cpp:135:35: warning: expression result unused [-Wunused-value] TRANS_PUT_NUM2(platformInfo[n]->delay); ~~~~~~~~~~~~~~~ ^~~~~ ./src/File.hpp:38:29: note: expanded from macro 'TRANS_PUT_NUM2' #define TRANS_PUT_NUM2(x) x ^ src/ObjInfo.cpp:136:35: warning: expression result unused [-Wunused-value] TRANS_PUT_NUM2(platformInfo[n]->iconID); ~~~~~~~~~~~~~~~ ^~~~~~ ./src/File.hpp:38:29: note: expanded from macro 'TRANS_PUT_NUM2' #define TRANS_PUT_NUM2(x) x ^ src/ObjInfo.cpp:137:35: warning: expression result unused [-Wunused-value] TRANS_PUT_NUM2(platformInfo[n]->refNum); ~~~~~~~~~~~~~~~ ^~~~~~ ./src/File.hpp:38:29: note: expanded from macro 'TRANS_PUT_NUM2' #define TRANS_PUT_NUM2(x) x ^ 13 warnings generated. c++ -DINSTALL_DIR="\"/usr/local/share/amph\"" -D_USE_LIB_XPM -c src/Player.cpp -O2 -pipe -g -I./src -I/usr/local/include -I/usr/local/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/X11R6/include -DXTHREADS -I/usr/local/include -I/usr/X11R6/include -funroll-loops -fomit-frame-pointer -ffast-math -Wcast-align -o src/Player.o c++ -DINSTALL_DIR="\"/usr/local/share/amph\"" -D_USE_LIB_XPM -c src/Pltform.cpp -O2 -pipe -g -I./src -I/usr/local/include -I/usr/local/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/X11R6/include -DXTHREADS -I/usr/local/include -I/usr/X11R6/include -funroll-loops -fomit-frame-pointer -ffast-math -Wcast-align -o src/Pltform.o c++ -DINSTALL_DIR="\"/usr/local/share/amph\"" -D_USE_LIB_XPM -c src/Shape.cpp -O2 -pipe -g -I./src -I/usr/local/include -I/usr/local/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/X11R6/include -DXTHREADS -I/usr/local/include -I/usr/X11R6/include -funroll-loops -fomit-frame-pointer -ffast-math -Wcast-align -o src/Shape.o src/Shape.cpp:103:3: warning: cast from 'unsigned char *' to 'short *' increases required alignment from 1 to 2 [-Wcast-align] ((short *)destPtr)[0] = 0; ^~~~~~~~~~~~~~~~ src/Shape.cpp:104:3: warning: cast from 'unsigned char *' to 'short *' increases required alignment from 1 to 2 [-Wcast-align] ((short *)destPtr)[1] = 0; ^~~~~~~~~~~~~~~~ src/Shape.cpp:105:3: warning: cast from 'unsigned char *' to 'short *' increases required alignment from 1 to 2 [-Wcast-align] ((short *)destPtr)[2] = dx; ^~~~~~~~~~~~~~~~ src/Shape.cpp:106:3: warning: cast from 'unsigned char *' to 'short *' increases required alignment from 1 to 2 [-Wcast-align] ((short *)destPtr)[3] = dy; ^~~~~~~~~~~~~~~~ src/Shape.cpp:281:14: warning: operator '>>' has lower precedence than '+'; '+' will be evaluated first [-Wshift-op-parentheses] tokenOp = GET_LONG(srcPtr ) >> 24; ^~~~~~~~~~~~~~~~~ ~~ src/Shape.cpp:64:152: note: expanded from macro 'GET_LONG' #define GET_LONG(adr) ((long)((unsigned char *)(adr))[0] << 24) + ((long)((unsigned char *)(adr))[1] << 16) + ((long)((unsigned char *)(adr))[2] << 8) + ((long)((unsigned char *)(adr))[3]) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/Shape.cpp:281:14: note: place parentheses around the '+' expression to silence this warning tokenOp = GET_LONG(srcPtr ) >> 24; ^~~~~~~~~~~~~~~~~ src/Shape.cpp:64:152: note: expanded from macro 'GET_LONG' #define GET_LONG(adr) ((long)((unsigned char *)(adr))[0] << 24) + ((long)((unsigned char *)(adr))[1] << 16) + ((long)((unsigned char *)(adr))[2] << 8) + ((long)((unsigned char *)(adr))[3]) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/Shape.cpp:436:14: warning: operator '>>' has lower precedence than '+'; '+' will be evaluated first [-Wshift-op-parentheses] tokenOp = GET_LONG(srcPtr) >> 24; ^~~~~~~~~~~~~~~~ ~~ src/Shape.cpp:64:152: note: expanded from macro 'GET_LONG' #define GET_LONG(adr) ((long)((unsigned char *)(adr))[0] << 24) + ((long)((unsigned char *)(adr))[1] << 16) + ((long)((unsigned char *)(adr))[2] << 8) + ((long)((unsigned char *)(adr))[3]) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/Shape.cpp:436:14: note: place parentheses around the '+' expression to silence this warning tokenOp = GET_LONG(srcPtr) >> 24; ^~~~~~~~~~~~~~~~ src/Shape.cpp:64:152: note: expanded from macro 'GET_LONG' #define GET_LONG(adr) ((long)((unsigned char *)(adr))[0] << 24) + ((long)((unsigned char *)(adr))[1] << 16) + ((long)((unsigned char *)(adr))[2] << 8) + ((long)((unsigned char *)(adr))[3]) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 6 warnings generated. c++ -DINSTALL_DIR="\"/usr/local/share/amph\"" -D_USE_LIB_XPM -c src/ShapeLd.cpp -O2 -pipe -g -I./src -I/usr/local/include -I/usr/local/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/X11R6/include -DXTHREADS -I/usr/local/include -I/usr/X11R6/include -funroll-loops -fomit-frame-pointer -ffast-math -Wcast-align -o src/ShapeLd.o src/ShapeLd.cpp:31:29: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] if (!plane) gSystem->Error("Cannot find kFileShapes or cannot open it. Perhaps lack of memory?", 0); ^ src/ShapeLd.cpp:66:41: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] if (!backgroundPicture) gSystem->Error("Cannot open background file. Lack of memory?", 0); ^ 2 warnings generated. c++ -DINSTALL_DIR="\"/usr/local/share/amph\"" -D_USE_LIB_XPM -c src/Surface.cpp -O2 -pipe -g -I./src -I/usr/local/include -I/usr/local/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/X11R6/include -DXTHREADS -I/usr/local/include -I/usr/X11R6/include -funroll-loops -fomit-frame-pointer -ffast-math -Wcast-align -o src/Surface.o c++ -DINSTALL_DIR="\"/usr/local/share/amph\"" -D_USE_LIB_XPM -c src/Thing.cpp -O2 -pipe -g -I./src -I/usr/local/include -I/usr/local/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/X11R6/include -DXTHREADS -I/usr/local/include -I/usr/X11R6/include -funroll-loops -fomit-frame-pointer -ffast-math -Wcast-align -o src/Thing.o c++ -DINSTALL_DIR="\"/usr/local/share/amph\"" -D_USE_LIB_XPM -c src/Weapon.cpp -O2 -pipe -g -I./src -I/usr/local/include -I/usr/local/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/X11R6/include -DXTHREADS -I/usr/local/include -I/usr/X11R6/include -funroll-loops -fomit-frame-pointer -ffast-math -Wcast-align -o src/Weapon.o c++ -DINSTALL_DIR="\"/usr/local/share/amph\"" -D_USE_LIB_XPM -c src/System.cpp -O2 -pipe -g -I./src -I/usr/local/include -I/usr/local/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/X11R6/include -DXTHREADS -I/usr/local/include -I/usr/X11R6/include -funroll-loops -fomit-frame-pointer -ffast-math -Wcast-align -o src/System.o src/System.cpp:151:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (tmp = getenv("HOME")) { ~~~~^~~~~~~~~~~~~~~~ src/System.cpp:151:10: note: place parentheses around the assignment to silence this warning if (tmp = getenv("HOME")) { ^ ( ) src/System.cpp:151:10: note: use '==' to turn this assignment into an equality comparison if (tmp = getenv("HOME")) { ^ == src/System.cpp:182:12: warning: format string is not a string literal (potentially insecure) [-Wformat-security] MSG(SDL_GetError()); ^~~~~~~~~~~~~~ ./src/AmpHead.hpp:186:52: note: expanded from macro 'MSG' #define MSG(message) if (logFile) fprintf(logFile, message); fflush(logFile) ^~~~~~~ src/System.cpp:182:12: note: treat the string as an argument to avoid this MSG(SDL_GetError()); ^ "%s", ./src/AmpHead.hpp:186:52: note: expanded from macro 'MSG' #define MSG(message) if (logFile) fprintf(logFile, message); fflush(logFile) ^ src/System.cpp:303:26: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] if (port == NULL) Error("Error while creating an SDL Surface", 0); ^ src/System.cpp:344:17: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] if (!gf) Error("Cannot find or open the palette file (*.pal)", 0); ^ src/System.cpp:485:6: warning: format string is not a string literal (potentially insecure) [-Wformat-security] MSG(message); fprintf(logFile, " %d\n", errorNo); fflush(logFile); ^~~~~~~ ./src/AmpHead.hpp:186:52: note: expanded from macro 'MSG' #define MSG(message) if (logFile) fprintf(logFile, message); fflush(logFile) ^~~~~~~ src/System.cpp:485:6: note: treat the string as an argument to avoid this MSG(message); fprintf(logFile, " %d\n", errorNo); fflush(logFile); ^ "%s", ./src/AmpHead.hpp:186:52: note: expanded from macro 'MSG' #define MSG(message) if (logFile) fprintf(logFile, message); fflush(logFile) ^ src/System.cpp:546:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (tmp=fopen(gSystem->QualifyHomeDir(fname), "r")) ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/System.cpp:546:9: note: place parentheses around the assignment to silence this warning if (tmp=fopen(gSystem->QualifyHomeDir(fname), "r")) ^ ( ) src/System.cpp:546:9: note: use '==' to turn this assignment into an equality comparison if (tmp=fopen(gSystem->QualifyHomeDir(fname), "r")) ^ == src/System.cpp:551:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (tmp=fopen(gSystem->QualifyDataDir(fname), "r")) ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/System.cpp:551:9: note: place parentheses around the assignment to silence this warning if (tmp=fopen(gSystem->QualifyDataDir(fname), "r")) ^ ( ) src/System.cpp:551:9: note: use '==' to turn this assignment into an equality comparison if (tmp=fopen(gSystem->QualifyDataDir(fname), "r")) ^ == 7 warnings generated. c++ -DINSTALL_DIR="\"/usr/local/share/amph\"" -D_USE_LIB_XPM -c src/SndSys.cpp -O2 -pipe -g -I./src -I/usr/local/include -I/usr/local/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/X11R6/include -DXTHREADS -I/usr/local/include -I/usr/X11R6/include -funroll-loops -fomit-frame-pointer -ffast-math -Wcast-align -o src/SndSys.o src/SndSys.cpp:126:25: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (theSound = playList->GetNext()) { ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ src/SndSys.cpp:126:25: note: place parentheses around the assignment to silence this warning while (theSound = playList->GetNext()) { ^ ( ) src/SndSys.cpp:126:25: note: use '==' to turn this assignment into an equality comparison while (theSound = playList->GetNext()) { ^ == 1 warning generated. c++ -DINSTALL_DIR="\"/usr/local/share/amph\"" -D_USE_LIB_XPM -c src/SoundList.cpp -O2 -pipe -g -I./src -I/usr/local/include -I/usr/local/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/X11R6/include -DXTHREADS -I/usr/local/include -I/usr/X11R6/include -funroll-loops -fomit-frame-pointer -ffast-math -Wcast-align -o src/SoundList.o c++ -L/usr/lib -L/usr/local/lib -L/usr/X11R6/lib -o amph src/Element.o src/File.o src/Gifload.o src/Graphfil.o src/Gui.o src/Appl.o src/Bullet.o src/Clut.o src/ConstVal.o src/Creeper.o src/Item.o src/Level.o src/Main.o src/Monster.o src/Monstrxx.o src/Object.o src/ObjInfo.o src/Player.o src/Pltform.o src/Shape.o src/ShapeLd.o src/Surface.o src/Thing.o src/Weapon.o src/System.o src/SndSys.o src/SoundList.o -lm -L/usr/local/lib -lSDL -pthread -L/usr/X11R6/lib -lXpm -lXt ld: warning: Appl.cpp:247 (src/Appl.cpp:247)(src/Appl.o:(CApplication::RunLevel())): warning: sprintf() is often misused, please use snprintf() ld: warning: Clut.cpp:121 (src/Clut.cpp:121)(src/Clut.o:(CClutManager::CClutManager())): warning: rand() may return deterministic values, is that what you want? ld: warning: System.cpp:177 (src/System.cpp:177)(src/System.o:(CSystem::CSystem(char*))): warning: strcpy() is almost always misused, please use strlcpy() >>> Running package in games/amph at 1732128104.82 ===> games/amph ===> Faking installation for amph-0.8.10p8 /exopi-obj/pobj/amph-0.8.10/bin/install -c -s -m 755 /exopi-obj/pobj/amph-0.8.10/amphetamine-0.8.10/amph /exopi-obj/pobj/amph-0.8.10/fake-amd64/usr/local/bin /exopi-obj/pobj/amph-0.8.10/bin/install -d -m 755 /exopi-obj/pobj/amph-0.8.10/fake-amd64/usr/local/share/doc/amph /exopi-obj/pobj/amph-0.8.10/bin/install -d -m 755 /exopi-obj/pobj/amph-0.8.10/fake-amd64/usr/local/share/amph /exopi-obj/pobj/amph-0.8.10/bin/install -c -m 644 /exopi-obj/pobj/amph-0.8.10/amphetamine-0.8.10/README /exopi-obj/pobj/amph-0.8.10/fake-amd64/usr/local/share/doc/amph ===> Building package for amph-0.8.10p8 Create /exopi-cvs/ports/packages/amd64/all/amph-0.8.10p8.tgz Creating package amph-0.8.10p8 reading plist| checking dependencies| checking dependencies|devel/sdl checksumming| checksumming| | 0% checksumming|* | 1% checksumming|** | 2% checksumming|** | 4% checksumming|*** | 5% checksumming|**** | 6% checksumming|***** | 7% checksumming|***** | 9% checksumming|****** | 10% checksumming|******* | 11% checksumming|******** | 12% checksumming|******** | 14% checksumming|********* | 15% checksumming|********** | 16% checksumming|*********** | 17% checksumming|*********** | 19% checksumming|************ | 20% checksumming|************* | 21% checksumming|************** | 22% checksumming|************** | 23% checksumming|*************** | 25% checksumming|**************** | 26% checksumming|***************** | 27% checksumming|***************** | 28% checksumming|****************** | 30% checksumming|******************* | 31% checksumming|******************** | 32% checksumming|******************** | 33% checksumming|********************* | 35% checksumming|********************** | 36% checksumming|*********************** | 37% checksumming|*********************** | 38% checksumming|************************ | 40% checksumming|************************* | 41% checksumming|************************** | 42% checksumming|************************** | 43% checksumming|*************************** | 44% checksumming|**************************** | 46% checksumming|***************************** | 47% checksumming|***************************** | 48% checksumming|****************************** | 49% checksumming|******************************* | 51% checksumming|******************************** | 52% checksumming|******************************** | 53% checksumming|********************************* | 54% checksumming|********************************** | 56% checksumming|*********************************** | 57% checksumming|*********************************** | 58% checksumming|************************************ | 59% checksumming|************************************* | 60% checksumming|************************************** | 62% checksumming|************************************** | 63% checksumming|*************************************** | 64% checksumming|**************************************** | 65% checksumming|***************************************** | 67% checksumming|***************************************** | 68% checksumming|****************************************** | 69% checksumming|******************************************* | 70% checksumming|******************************************** | 72% checksumming|******************************************** | 73% checksumming|********************************************* | 74% checksumming|********************************************** | 75% checksumming|*********************************************** | 77% checksumming|*********************************************** | 78% checksumming|************************************************ | 79% checksumming|************************************************* | 80% checksumming|************************************************** | 81% checksumming|************************************************** | 83% checksumming|*************************************************** | 84% checksumming|**************************************************** | 85% checksumming|***************************************************** | 86% checksumming|***************************************************** | 88% checksumming|****************************************************** | 89% checksumming|******************************************************* | 90% checksumming|******************************************************** | 91% checksumming|******************************************************** | 93% checksumming|********************************************************* | 94% checksumming|********************************************************** | 95% checksumming|*********************************************************** | 96% checksumming|*********************************************************** | 98% checksumming|************************************************************ | 99% checksumming|*************************************************************|100% archiving| archiving| | 0% archiving|****** | 10% archiving|******* | 11% archiving|********************** | 35% archiving|*********************** | 35% archiving|*********************** | 36% archiving|*************************** | 42% archiving|****************************** | 47% archiving|********************************* | 51% archiving|************************************ | 56% archiving|************************************** | 59% archiving|********************************************** | 72% archiving|*********************************************** | 73% archiving|************************************************ | 75% archiving|************************************************* | 76% archiving|************************************************** | 78% archiving|*************************************************** | 80% archiving|**************************************************** | 81% archiving|***************************************************** | 82% archiving|***************************************************** | 83% archiving|****************************************************** | 85% archiving|******************************************************* | 86% archiving|******************************************************* | 87% archiving|******************************************************** | 87% archiving|******************************************************** | 88% archiving|********************************************************* | 88% archiving|********************************************************* | 89% archiving|********************************************************** | 90% archiving|********************************************************** | 91% archiving|*********************************************************** | 92% archiving|*********************************************************** | 93% archiving|************************************************************ | 93% archiving|************************************************************ | 95% archiving|************************************************************* | 96% archiving|************************************************************** | 96% archiving|************************************************************** | 97% archiving|************************************************************** | 98% archiving|*************************************************************** | 98% archiving|*************************************************************** | 99% archiving|****************************************************************|100% Link to /exopi-cvs/ports/packages/amd64/ftp/amph-0.8.10p8.tgz >>> Running clean in games/amph at 1732128107.25 ===> games/amph ===> Cleaning for amph-0.8.10p8 >>> Ended at 1732128107.48 max_stuck=2.25/depends=2.38/show-prepare-results=1.02/build=12.28/package=2.42/clean=0.26