Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 821062 Details for
Bug 875431
games-action/maelstrom-3.0.6-r3 - Maelstrom-netd.c: error: return type defaults to int [-Werror=implicit-int]
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
games-action:maelstrom-3.0.6-r3:20221005-125834.log
games-action:maelstrom-3.0.6-r3:20221005-125834.log (text/plain), 99.59 KB, created by
Toralf Förster
on 2022-10-05 18:11:22 UTC
(
hide
)
Description:
games-action:maelstrom-3.0.6-r3:20221005-125834.log
Filename:
MIME Type:
Creator:
Toralf Förster
Created:
2022-10-05 18:11:22 UTC
Size:
99.59 KB
patch
obsolete
> * Package: games-action/maelstrom-3.0.6-r3:0 > * Repository: gentoo > * Maintainer: games@gentoo.org > * USE: abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU > * FEATURES: network-sandbox preserve-libs sandbox userpriv usersandbox > >>>> Unpacking source... >>>> Unpacking Maelstrom-3.0.6.tar.gz to /var/tmp/portage/games-action/maelstrom-3.0.6-r3/work >>>> Source unpacked in /var/tmp/portage/games-action/maelstrom-3.0.6-r3/work >>>> Preparing source in /var/tmp/portage/games-action/maelstrom-3.0.6-r3/work/Maelstrom-3.0.6 ... > * Applying maelstrom-3.0.6-security.patch ... > [ ok ] > * Applying maelstrom-3.0.6-64bits.patch ... > [ ok ] > * Applying maelstrom-3.0.6-gcc34.patch ... > [ ok ] > * Applying maelstrom-3.0.6-warnings.patch ... > [ ok ] > * Applying maelstrom-3.0.6-gcc53.patch ... > [ ok ] > * Applying maelstrom-3.0.6-autotools.patch ... > [ ok ] > * Running eautoreconf in '/var/tmp/portage/games-action/maelstrom-3.0.6-r3/work/Maelstrom-3.0.6' ... > * Running 'aclocal --system-acdir=/var/tmp/portage/games-action/maelstrom-3.0.6-r3/temp/aclocal' ... > [ ok ] > * Running 'autoconf --force' ... > [ ok ] > * Running 'automake --add-missing --copy --foreign --force-missing' ... > [ ok ] > * Running elibtoolize in: Maelstrom-3.0.6/ >>>> Source prepared. >>>> Configuring source in /var/tmp/portage/games-action/maelstrom-3.0.6-r3/work/Maelstrom-3.0.6 ... > * econf: updating Maelstrom-3.0.6/config.sub with /usr/share/gnuconfig/config.sub > * econf: updating Maelstrom-3.0.6/config.guess with /usr/share/gnuconfig/config.guess >./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-dependency-tracking --disable-silent-rules --docdir=/usr/share/doc/maelstrom-3.0.6-r3 --htmldir=/usr/share/doc/maelstrom-3.0.6-r3/html --libdir=/usr/lib64 >checking build system type... x86_64-pc-linux-gnu >checking host system type... x86_64-pc-linux-gnu >checking target system type... x86_64-pc-linux-gnu >checking for a BSD-compatible install... /usr/lib/portage/python3.10/ebuild-helpers/xattr/install -c >checking whether build environment is sane... yes >checking for a race-free mkdir -p... /bin/mkdir -p >checking for gawk... gawk >checking whether make sets $(MAKE)... yes >checking whether make supports nested variables... yes >checking whether make sets $(MAKE)... (cached) yes >checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc >checking whether the C compiler works... yes >checking for C compiler default output file name... a.out >checking for suffix of executables... >checking whether we are cross compiling... no >checking for suffix of object files... o >checking whether the compiler supports GNU C... yes >checking whether x86_64-pc-linux-gnu-gcc accepts -g... yes >checking for x86_64-pc-linux-gnu-gcc option to enable C11 features... none needed >checking whether x86_64-pc-linux-gnu-gcc understands -c and -o together... yes >checking whether make supports the include directive... yes (GNU style) >checking dependency style of x86_64-pc-linux-gnu-gcc... none >checking for x86_64-pc-linux-gnu-g++... x86_64-pc-linux-gnu-g++ >checking whether the compiler supports GNU C++... yes >checking whether x86_64-pc-linux-gnu-g++ accepts -g... yes >checking for x86_64-pc-linux-gnu-g++ option to enable C++11 features... none needed >checking dependency style of x86_64-pc-linux-gnu-g++... none >checking for x86_64-pc-linux-gnu-ar... x86_64-pc-linux-gnu-ar >checking the archiver (x86_64-pc-linux-gnu-ar) interface... ar >checking for x86_64-pc-linux-gnu-ranlib... x86_64-pc-linux-gnu-ranlib >checking for x86_64-pc-linux-gnu-pkg-config... /usr/bin/x86_64-pc-linux-gnu-pkg-config >checking pkg-config is at least version 0.9.0... yes >checking for SDL... yes >checking for SDLNet_Init in -lSDL_net... yes >checking for RSA checksum authentication... no >checking that generated files are newer than configure... done >configure: creating ./config.status >config.status: creating Makefile >config.status: creating netlogic/Makefile >config.status: creating screenlib/Makefile >config.status: creating maclib/Makefile >config.status: creating Images/Makefile >config.status: creating Docs/Makefile >config.status: creating Maelstrom.spec >config.status: executing depfiles commands >>>> Source configured. >>>> Compiling source in /var/tmp/portage/games-action/maelstrom-3.0.6-r3/work/Maelstrom-3.0.6 ... >make -j4 >Making all in netlogic >make[1]: Entering directory '/var/tmp/portage/games-action/maelstrom-3.0.6-r3/work/Maelstrom-3.0.6/netlogic' >x86_64-pc-linux-gnu-g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"Maelstrom\" -DVERSION=\"3.0.6\" -I. -pipe -march=native -fno-diagnostics-color -O2 -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I.. -I../netlogic -I../screenlib -I../maclib -DLIBDIR=\"/usr/share/Maelstrom\" -c -o about.o about.cpp >x86_64-pc-linux-gnu-g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"Maelstrom\" -DVERSION=\"3.0.6\" -I. -pipe -march=native -fno-diagnostics-color -O2 -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I.. -I../netlogic -I../screenlib -I../maclib -DLIBDIR=\"/usr/share/Maelstrom\" -c -o blit.o blit.cpp >x86_64-pc-linux-gnu-g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"Maelstrom\" -DVERSION=\"3.0.6\" -I. -pipe -march=native -fno-diagnostics-color -O2 -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I.. -I../netlogic -I../screenlib -I../maclib -DLIBDIR=\"/usr/share/Maelstrom\" -c -o game.o game.cpp >x86_64-pc-linux-gnu-g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"Maelstrom\" -DVERSION=\"3.0.6\" -I. -pipe -march=native -fno-diagnostics-color -O2 -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I.. -I../netlogic -I../screenlib -I../maclib -DLIBDIR=\"/usr/share/Maelstrom\" -c -o logic.o logic.cpp >cc1plus: warning: â-Werror=â argument â-Werror=implicit-function-declarationâ is not valid for C++ >cc1plus: warning: â-Werror=â argument â-Werror=implicit-intâ is not valid for C++ >cc1plus: warning: â-Werror=â argument â-Werror=implicit-function-declarationâ is not valid for C++ >cc1plus: warning: â-Werror=â argument â-Werror=implicit-intâ is not valid for C++ >cc1plus: warning: â-Werror=â argument â-Werror=implicit-function-declarationâ is not valid for C++ >cc1plus: warning: â-Werror=â argument â-Werror=implicit-intâ is not valid for C++ >cc1plus: warning: â-Werror=â argument â-Werror=implicit-function-declarationâ is not valid for C++ >cc1plus: warning: â-Werror=â argument â-Werror=implicit-intâ is not valid for C++ >In file included from about.cpp:4: >../load.h:109:39: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix] > 109 | sprintf(path, "%s"DIR_SEP"%s", directory, filename); > | ^ >In file included from game.cpp:7: >../load.h:109:39: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix] > 109 | sprintf(path, "%s"DIR_SEP"%s", directory, filename); > | ^ >blit.cpp: In function âint RunFrame()â: >blit.cpp:26:23: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 26 | error("Game aborted!\n"); > | ^~~~~~~~~~~~~~~~~ >logic.cpp: In function âvoid LogicUsage()â: >logic.cpp:12:1: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 12 | " -player N[@host][:port] # Designate player N (at host and/or port)\n" > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > 13 | " -server N@host[:port] # Play with N players using server at host\n" > | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > 14 | " -deathmatch [N] # Play deathmatch to N frags (default = 8)\n" > | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >logic.cpp: In function âint LogicParseArgs(char***, int*)â: >logic.cpp:39:25: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 39 | "The '-player' option requires an argument!\n"); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >logic.cpp:52:31: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 52 | error("The '-server' option requires an argument!\n"); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >../load.h: In member function âconst char* LibPath::Path(const char*)â: ><command-line>: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] >../load.h:95:37: note: in expansion of macro âLIBDIRâ > 95 | directory = LIBDIR; > | ^~~~~~ >about.cpp: In function âvoid DoAbout()â: >about.cpp:101:33: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 101 | "Can't load 'about' title! (ID=%d)\n", idOn); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >about.cpp:182:33: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 182 | "Can't use New York(18) font! -- Exiting.\n"); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >../load.h: In member function âconst char* LibPath::Path(const char*)â: ><command-line>: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] >../load.h:95:37: note: in expansion of macro âLIBDIRâ > 95 | directory = LIBDIR; > | ^~~~~~ >game.cpp: In function âvoid DrawStatus(Bool, Bool)â: >game.cpp:203:49: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 203 | i = DrawText(x, gStatusLine+11, "Score:", geneva, STYLE_BOLD, > | ^~~~~~~~ >game.cpp:206:49: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 206 | i = DrawText(x, gStatusLine+11, "Shield:", geneva, STYLE_BOLD, > | ^~~~~~~~~ >game.cpp:209:49: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 209 | i = DrawText(x, gStatusLine+11, "Wave:", geneva, STYLE_BOLD, > | ^~~~~~~ >game.cpp:212:49: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 212 | i = DrawText(x, gStatusLine+11, "Lives:", geneva, STYLE_BOLD, > | ^~~~~~~~ >game.cpp:215:45: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 215 | DrawText(x, gStatusLine+11, "Bonus:", geneva, STYLE_BOLD, > | ^~~~~~~~ >game.cpp:220:57: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 220 | i = DrawText(x, gStatusLine+11, "Frags:", geneva, > | ^~~~~~~~ >game.cpp: In function âvoid NewGame()â: >game.cpp:450:23: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 450 | error("Can't use Geneva font! -- Exiting.\n"); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >x86_64-pc-linux-gnu-g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"Maelstrom\" -DVERSION=\"3.0.6\" -I. -pipe -march=native -fno-diagnostics-color -O2 -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I.. -I../netlogic -I../screenlib -I../maclib -DLIBDIR=\"/usr/share/Maelstrom\" -c -o make.o make.cpp >game.cpp: In function âvoid DoGameOver()â: >game.cpp:733:23: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 733 | error("Can't load 'gameover' title!\n"); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >game.cpp:743:31: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 743 | error("Can't use New York font! -- Exiting.\n"); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >game.cpp:792:31: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 792 | error("Can't use New York font! -- Exiting.\n"); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >game.cpp:798:39: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 798 | x += DrawText(x, 300, "Enter your name: ", > | ^~~~~~~~~~~~~~~~~~~ >cc1plus: warning: â-Werror=â argument â-Werror=implicit-function-declarationâ is not valid for C++ >cc1plus: warning: â-Werror=â argument â-Werror=implicit-intâ is not valid for C++ >game.cpp: In function âvoid DoBonus()â: >game.cpp:910:26: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 910 | DrawText(x, 200, "Bonus Score: ", geneva, STYLE_BOLD, > | ^~~~~~~~~~~~~~~~~~~ >game.cpp:917:26: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 917 | DrawText(x, 220, "Score: ", geneva, STYLE_BOLD, > | ^~~~~~~~~~~~~ >x86_64-pc-linux-gnu-g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"Maelstrom\" -DVERSION=\"3.0.6\" -I. -pipe -march=native -fno-diagnostics-color -O2 -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I.. -I../netlogic -I../screenlib -I../maclib -DLIBDIR=\"/usr/share/Maelstrom\" -c -o netplay.o netplay.cpp >cc1plus: warning: â-Werror=â argument â-Werror=implicit-function-declarationâ is not valid for C++ >cc1plus: warning: â-Werror=â argument â-Werror=implicit-intâ is not valid for C++ >x86_64-pc-linux-gnu-g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"Maelstrom\" -DVERSION=\"3.0.6\" -I. -pipe -march=native -fno-diagnostics-color -O2 -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I.. -I../netlogic -I../screenlib -I../maclib -DLIBDIR=\"/usr/share/Maelstrom\" -c -o object.o object.cpp >netplay.cpp: In function âint InitNetData()â: >netplay.cpp:61:23: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 61 | error("NetLogic: Couldn't initialize networking!\n"); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >cc1plus: warning: â-Werror=â argument â-Werror=implicit-function-declarationâ is not valid for C++ >cc1plus: warning: â-Werror=â argument â-Werror=implicit-intâ is not valid for C++ >netplay.cpp:70:31: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 70 | error("Out of memory (creating network buffers)\n"); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >netplay.cpp: In function âint AddPlayer(char*)â: >netplay.cpp:118:1: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 118 | "Argument to '-player' must be in integer between 1 and %d inclusive.\r\n", > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >netplay.cpp:125:23: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 125 | error("Player %d specified multiple times!\r\n", playernum+1); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >netplay.cpp:137:31: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 137 | error("Couldn't resolve host name for %s\r\n", host); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >netplay.cpp:143:1: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 143 | "More than one local player! (players %d and %d specified as local players)\r\n", > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >netplay.cpp: In function âint SetServer(char*)â: >netplay.cpp:166:17: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 166 | "Server host must be specified in the -server option.\r\n"); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >netplay.cpp:177:1: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 177 | "The number of players must be an integer between 1 and %d inclusive.\r\n", > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >netplay.cpp:190:23: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 190 | error("Couldn't resolve host name for %s\r\n", host); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >netplay.cpp: In function âint CheckPlayers()â: >netplay.cpp:213:35: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 213 | AddPlayer("1"); > | ^~~ >netplay.cpp:220:1: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 220 | "Player %d not specified! Use the -player option for all players.\r\n", i+1); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >netplay.cpp:226:23: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 226 | error("Which player are you? (Use the -player N option)\r\n"); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >netplay.cpp:230:23: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 230 | error("You cannot be player %d in a %d player game.\r\n", > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >netplay.cpp:235:23: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 235 | error("Warning: No deathmatch in a single player game!\r\n"); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >netplay.cpp:243:23: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 243 | error("Couldn't create bound network socket"); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >netplay.cpp:248:23: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 248 | error("Couldn't create socket watch set"); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >netplay.cpp: In function âint SyncNetwork()â: >netplay.cpp:323:7: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 323 | error("Timed out waiting for frame %ld\r\n", NextFrame); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >netplay.cpp:337:31: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 337 | error("Network error: SDLNet_UDP_Recv()"); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >netplay.cpp:353:31: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 353 | error("Unknown packet: 0x%x\n", buf[0]); > | ^~~~~~~~~~~~~~~~~~~~~~~~ >netplay.cpp:357:31: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 357 | error("Packet from unknown source\n"); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >netplay.cpp:373:7: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 373 | error("Transmitting packet for old frame (%lu)\r\n", frame); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >netplay.cpp:376:7: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 376 | error("Received packet for next frame! (%lu, current = %lu)\r\n", > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >netplay.cpp:388:7: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 388 | error("Warning! Received packet for really old frame! (%lu, current = %lu)\r\n", > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >netplay.cpp:400:1: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 400 | "Warning!! \a Frame consistency error with player %d!! (corrected)\r\n", index+1); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >netplay.cpp: In function âint AlertServer(int*, int*, int*)â: >netplay.cpp:509:17: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 509 | Message("Connecting to Address Server"); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >netplay.cpp:512:30: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 512 | ErrorMessage("Connection failed"); > | ^~~~~~~~~~~~~~~~~~~ >netplay.cpp:518:27: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 518 | message = "Couldn't create socket set"; > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ >netplay.cpp:531:27: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 531 | message = "Socket write error"; > | ^~~~~~~~~~~~~~~~~~~~ >netplay.cpp:535:17: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 535 | Message("Waiting for other players"); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ >netplay.cpp:561:35: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 561 | message = "Error reading player addresses"; > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >netplay.cpp:573:35: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 573 | message = "Error: Short server packet!"; > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >netplay.cpp: In function âint Send_NewGame(int*, int*, int*)â: >netplay.cpp:704:38: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 704 | ErrorMessage("Network error receiving packets"); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >netplay.cpp: In function âint Await_NewGame(int*, int*, int*)â: >netplay.cpp:760:17: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 760 | Message("Awaiting Player 1 (server)"); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ >netplay.cpp:781:38: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 781 | ErrorMessage("Network error receiving packets"); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >x86_64-pc-linux-gnu-g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"Maelstrom\" -DVERSION=\"3.0.6\" -I. -pipe -march=native -fno-diagnostics-color -O2 -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I.. -I../netlogic -I../screenlib -I../maclib -DLIBDIR=\"/usr/share/Maelstrom\" -c -o objects.o objects.cpp >cc1plus: warning: â-Werror=â argument â-Werror=implicit-function-declarationâ is not valid for C++ >cc1plus: warning: â-Werror=â argument â-Werror=implicit-intâ is not valid for C++ >x86_64-pc-linux-gnu-g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"Maelstrom\" -DVERSION=\"3.0.6\" -I. -pipe -march=native -fno-diagnostics-color -O2 -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I.. -I../netlogic -I../screenlib -I../maclib -DLIBDIR=\"/usr/share/Maelstrom\" -c -o player.o player.cpp >cc1plus: warning: â-Werror=â argument â-Werror=implicit-function-declarationâ is not valid for C++ >cc1plus: warning: â-Werror=â argument â-Werror=implicit-intâ is not valid for C++ >rm -f liblogic.a >x86_64-pc-linux-gnu-ar cru liblogic.a about.o blit.o game.o logic.o make.o netplay.o object.o objects.o player.o >x86_64-pc-linux-gnu-ranlib liblogic.a >make[1]: Leaving directory '/var/tmp/portage/games-action/maelstrom-3.0.6-r3/work/Maelstrom-3.0.6/netlogic' >Making all in screenlib >make[1]: Entering directory '/var/tmp/portage/games-action/maelstrom-3.0.6-r3/work/Maelstrom-3.0.6/screenlib' >x86_64-pc-linux-gnu-g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"Maelstrom\" -DVERSION=\"3.0.6\" -I. -pipe -march=native -fno-diagnostics-color -O2 -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I.. -I../netlogic -I../screenlib -I../maclib -DLIBDIR=\"/usr/share/Maelstrom\" -c -o SDL_FrameBuf.o SDL_FrameBuf.cpp >x86_64-pc-linux-gnu-g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"Maelstrom\" -DVERSION=\"3.0.6\" -I. -pipe -march=native -fno-diagnostics-color -O2 -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I.. -I../netlogic -I../screenlib -I../maclib -DLIBDIR=\"/usr/share/Maelstrom\" -c -o pixel.o pixel.cpp >cc1plus: warning: â-Werror=â argument â-Werror=implicit-function-declarationâ is not valid for C++ >cc1plus: warning: â-Werror=â argument â-Werror=implicit-intâ is not valid for C++ >cc1plus: warning: â-Werror=â argument â-Werror=implicit-function-declarationâ is not valid for C++ >cc1plus: warning: â-Werror=â argument â-Werror=implicit-intâ is not valid for C++ >SDL_FrameBuf.cpp: In member function âint FrameBuf::Init(int, int, Uint32, SDL_Color*, SDL_Surface*)â: >SDL_FrameBuf.cpp:106:26: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 106 | SetError("Couldn't set %dx%d video mode: %s", > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >SDL_FrameBuf.cpp:111:22: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 111 | PrintSurface("Created foreground", screenfg); > | ^~~~~~~~~~~~~~~~~~~~ >SDL_FrameBuf.cpp:120:26: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 120 | SetError("Couldn't create background: %s", SDL_GetError()); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >SDL_FrameBuf.cpp:123:22: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 123 | PrintSurface("Created background", screenbg); > | ^~~~~~~~~~~~~~~~~~~~ >SDL_FrameBuf.cpp: In function âvoid memswap(Uint8*, Uint8*, Uint8)â: >SDL_FrameBuf.cpp:522:24: warning: ISO C++17 does not allow âregisterâ storage class specifier [-Wregister] > 522 | register Uint8 tmp; > | ^~~ >SDL_FrameBuf.cpp: In member function âint FrameBuf::ScreenDump(char*, Uint16, Uint16, Uint16, Uint16)â: >SDL_FrameBuf.cpp:642:34: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 642 | SetError("%s", SDL_GetError()); > | ^~~~ >SDL_FrameBuf.cpp: In member function âSDL_Surface* FrameBuf::LoadImage(Uint16, Uint16, Uint8*, Uint8*)â: >SDL_FrameBuf.cpp:665:26: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 665 | SetError("Couldn't create artwork: %s", SDL_GetError()); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >rm -f libSDLscreen.a >x86_64-pc-linux-gnu-ar cru libSDLscreen.a SDL_FrameBuf.o pixel.o >x86_64-pc-linux-gnu-ranlib libSDLscreen.a >make[1]: Leaving directory '/var/tmp/portage/games-action/maelstrom-3.0.6-r3/work/Maelstrom-3.0.6/screenlib' >Making all in maclib >make[1]: Entering directory '/var/tmp/portage/games-action/maelstrom-3.0.6-r3/work/Maelstrom-3.0.6/maclib' >x86_64-pc-linux-gnu-g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"Maelstrom\" -DVERSION=\"3.0.6\" -I. -pipe -march=native -fno-diagnostics-color -O2 -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I.. -I../netlogic -I../screenlib -I../maclib -DLIBDIR=\"/usr/share/Maelstrom\" -c -o macres.o macres.cpp >x86_64-pc-linux-gnu-g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"Maelstrom\" -DVERSION=\"3.0.6\" -I. -pipe -march=native -fno-diagnostics-color -O2 -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I.. -I../netlogic -I../screenlib -I../maclib -DLIBDIR=\"/usr/share/Maelstrom\" -c -o Mac_FontServ.o Mac_FontServ.cpp >x86_64-pc-linux-gnu-g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"Maelstrom\" -DVERSION=\"3.0.6\" -I. -pipe -march=native -fno-diagnostics-color -O2 -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I.. -I../netlogic -I../screenlib -I../maclib -DLIBDIR=\"/usr/share/Maelstrom\" -c -o Mac_Resource.o Mac_Resource.cpp >x86_64-pc-linux-gnu-g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"Maelstrom\" -DVERSION=\"3.0.6\" -I. -pipe -march=native -fno-diagnostics-color -O2 -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I.. -I../netlogic -I../screenlib -I../maclib -DLIBDIR=\"/usr/share/Maelstrom\" -c -o Mac_Sound.o Mac_Sound.cpp >cc1plus: warning: â-Werror=â argument â-Werror=implicit-function-declarationâ is not valid for C++ >cc1plus: warning: â-Werror=â argument â-Werror=implicit-function-declarationâ is not valid for C++ >cc1plus: warning: â-Werror=â argument â-Werror=implicit-intâ is not valid for C++ >cc1plus: warning: â-Werror=â argument â-Werror=implicit-intâ is not valid for C++ >cc1plus: warning: â-Werror=â argument â-Werror=implicit-function-declarationâ is not valid for C++ >cc1plus: warning: â-Werror=â argument â-Werror=implicit-intâ is not valid for C++ >cc1plus: warning: â-Werror=â argument â-Werror=implicit-function-declarationâ is not valid for C++ >cc1plus: warning: â-Werror=â argument â-Werror=implicit-intâ is not valid for C++ >Mac_FontServ.cpp: In constructor âFontServ::FontServ(const char*)â: >Mac_FontServ.cpp:80:26: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 80 | SetError("Couldn't load resources from %s", fontfile); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >Mac_FontServ.cpp:84:26: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 84 | SetError("FontServ: No 'FOND' resources in %s", fontfile); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >Mac_FontServ.cpp: In member function âMFont* FontServ::NewFont(const char*, int)â: >Mac_FontServ.cpp:116:26: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 116 | SetError("Warning: Font family '%s' not found", fontname); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >Mac_FontServ.cpp:147:17: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 147 | "Warning: Font family '%s' doesn't have %d pt fonts", > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >Mac_FontServ.cpp:158:1: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 158 | "Warning: Can't find NFNT resource for %d pt %s font", ptsize, fontname); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >Mac_FontServ.cpp:184:26: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 184 | SetError("Warning: Bad font Magic number: 0x%04x", > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >Mac_FontServ.cpp: In member function âSDL_Surface* FontServ::TextImage(const char*, MFont*, Uint8, SDL_Color, SDL_Color)â: >Mac_FontServ.cpp:288:41: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 288 | "FontServ: Italics not implemented!"); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >Mac_FontServ.cpp:291:41: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 291 | "FontServ: Unknown text style!"); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >Mac_FontServ.cpp:329:26: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 329 | SetError("No text to convert"); > | ^~~~~~~~~~~~~~~~~~~~ >Mac_FontServ.cpp:337:26: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 337 | SetError("Unable to allocate bitmap: %s", SDL_GetError()); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >Mac_FontServ.cpp: In member function âint FontServ::InvertText(SDL_Surface*)â: >Mac_FontServ.cpp:409:26: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 409 | SetError("Not a text bitmap"); > | ^~~~~~~~~~~~~~~~~~~ >Mac_Resource.cpp: In function âFILE* Open_MacRes(char**, Uint32*)â: >Mac_Resource.cpp:197:27: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 197 | dirname = ""; > | ^~ >Mac_Resource.cpp: In constructor âMac_Resource::Mac_Resource(const char*)â: >Mac_Resource.cpp:271:23: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 271 | error("Couldn't open resource file '%s'", filename); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >Mac_Resource.cpp:280:23: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 280 | error("Couldn't read resource info from '%s'", filename); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >Mac_Resource.cpp:291:23: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 291 | error("Couldn't read resource info from '%s'", filename); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >Mac_Resource.cpp:309:31: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 309 | error("Couldn't read resource info from '%s'", > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >Mac_Resource.cpp:335:39: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 335 | error("Couldn't read resource info from '%s'", > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >Mac_Resource.cpp: In member function âUint16* Mac_Resource::ResourceIDs(const char*)â: >Mac_Resource.cpp:437:15: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 437 | error("Couldn't find resources of type '%s'", res_type); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >Mac_Resource.cpp: In member function âchar* Mac_Resource::ResourceName(const char*, Uint16)â: >Mac_Resource.cpp:454:15: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 454 | error("Couldn't find resource of type '%s', id %hu", res_type, id); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >Mac_Resource.cpp: In member function âMac_ResData* Mac_Resource::Resource(const char*, Uint16)â: >Mac_Resource.cpp:481:55: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 481 | error("Couldn't read %d bytes", d->length); > | ^~~~~~~~~~~~~~~~~~~~~~~~ >Mac_Resource.cpp:491:15: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 491 | error("Couldn't find resource of type '%s', id %hu", res_type, id); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >Mac_Resource.cpp: In member function âMac_ResData* Mac_Resource::Resource(const char*, const char*)â: >Mac_Resource.cpp:518:55: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 518 | error("Couldn't read %d bytes", d->length); > | ^~~~~~~~~~~~~~~~~~~~~~~~ >Mac_Resource.cpp:528:15: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 528 | error("Couldn't find resource of type '%s', name %s", res_type, name); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >Mac_Resource.cpp: In constructor âMac_Resource::Mac_Resource(const char*)â: >Mac_Resource.cpp:357:38: warning: ignoring return value of âsize_t fread(void*, size_t, size_t, FILE*)â declared with attribute âwarn_unused_resultâ [-Wunused-result] > 357 | fread(&name_len, 1, 1, filep); > | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ >Mac_Resource.cpp:359:38: warning: ignoring return value of âsize_t fread(void*, size_t, size_t, FILE*)â declared with attribute âwarn_unused_resultâ [-Wunused-result] > 359 | fread(Resources[i].list[n].name, > | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ > 360 | 1, name_len, filep); > | ~~~~~~~~~~~~~~~~~~~ >Mac_Resource.cpp: In function âvoid CheckAppleFile(FILE*, Uint32*)â: >Mac_Resource.cpp:129:22: warning: ignoring return value of âsize_t fread(void*, size_t, size_t, FILE*)â declared with attribute âwarn_unused_resultâ [-Wunused-result] > 129 | fread(&header.versionNum, > | ~~~~~^~~~~~~~~~~~~~~~~~~~ > 130 | sizeof(header.versionNum), 1, resfile); > | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >Mac_Resource.cpp:132:22: warning: ignoring return value of âsize_t fread(void*, size_t, size_t, FILE*)â declared with attribute âwarn_unused_resultâ [-Wunused-result] > 132 | fread(&header.filler, > | ~~~~~^~~~~~~~~~~~~~~~ > 133 | sizeof(header.filler), 1, resfile); > | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >Mac_Resource.cpp:134:22: warning: ignoring return value of âsize_t fread(void*, size_t, size_t, FILE*)â declared with attribute âwarn_unused_resultâ [-Wunused-result] > 134 | fread(&header.numEntries, > | ~~~~~^~~~~~~~~~~~~~~~~~~~ > 135 | sizeof(header.numEntries), 1, resfile); > | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >Mac_Resource.cpp: In member function âMac_ResData* Mac_Resource::Resource(const char*, Uint16)â: >Mac_Resource.cpp:476:46: warning: ignoring return value of âsize_t fread(void*, size_t, size_t, FILE*)â declared with attribute âwarn_unused_resultâ [-Wunused-result] > 476 | fread(&d->length, 4, 1, filep); > | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ >Mac_Resource.cpp: In member function âMac_ResData* Mac_Resource::Resource(const char*, const char*)â: >Mac_Resource.cpp:513:46: warning: ignoring return value of âsize_t fread(void*, size_t, size_t, FILE*)â declared with attribute âwarn_unused_resultâ [-Wunused-result] > 513 | fread(&d->length, 4, 1, filep); > | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ >Mac_Sound.cpp: In constructor âSound::Sound(const char*, Uint8)â: >Mac_Sound.cpp:110:23: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 110 | error("%s", soundres->Error()); > | ^~~~ >Mac_Sound.cpp:114:23: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 114 | error("No sound resources in '%s'", soundfile); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ >Mac_Sound.cpp:122:31: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 122 | error("%s", soundres->Error()); > | ^~~~ >Mac_Sound.cpp:128:31: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 128 | error("%s", wave->Error()); > | ^~~~ >x86_64-pc-linux-gnu-g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"Maelstrom\" -DVERSION=\"3.0.6\" -I. -pipe -march=native -fno-diagnostics-color -O2 -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I.. -I../netlogic -I../screenlib -I../maclib -DLIBDIR=\"/usr/share/Maelstrom\" -c -o Mac_Wave.o Mac_Wave.cpp >cc1plus: warning: â-Werror=â argument â-Werror=implicit-function-declarationâ is not valid for C++ >cc1plus: warning: â-Werror=â argument â-Werror=implicit-intâ is not valid for C++ >x86_64-pc-linux-gnu-g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"Maelstrom\" -DVERSION=\"3.0.6\" -I. -pipe -march=native -fno-diagnostics-color -O2 -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I.. -I../netlogic -I../screenlib -I../maclib -DLIBDIR=\"/usr/share/Maelstrom\" -c -o playwave.o playwave.cpp >Mac_Wave.cpp: In member function âint Wave::Load(const char*, Uint16)â: >Mac_Wave.cpp:117:23: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 117 | error("%s", SDL_GetError()); > | ^~~~ >Mac_Wave.cpp: In member function âint Wave::Load(Mac_ResData*, Uint16)â: >Mac_Wave.cpp:182:31: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 182 | error("Multi-type sound not supported"); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >Mac_Wave.cpp:187:31: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 187 | error("Not a sampled sound resource"); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >Mac_Wave.cpp:196:23: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 196 | error("Unknown sound format: 0x%X", snd_version); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ >Mac_Wave.cpp:209:31: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 209 | error("Multi-command sound not supported"); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >Mac_Wave.cpp:214:31: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 214 | error("Unknown sound command: 0x%X\n", command); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >Mac_Wave.cpp:223:31: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 223 | error("Offset too large -- corrupt sound?"); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >Mac_Wave.cpp:241:31: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 241 | error("Sound samples don't immediately follow header"); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >Mac_Wave.cpp:251:31: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 251 | error("Non-standard sound encoding: 0x%X", encoding); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >Mac_Wave.cpp:259:31: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 259 | error("truncated sound resource"); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~ >cc1plus: warning: â-Werror=â argument â-Werror=implicit-function-declarationâ is not valid for C++ >cc1plus: warning: â-Werror=â argument â-Werror=implicit-intâ is not valid for C++ >Mac_Wave.cpp: In member function âint Wave::Save(char*)â: >Mac_Wave.cpp:531:23: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 531 | error("Couldn't open %s for writing", wavefile); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >Mac_Wave.cpp:566:23: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 566 | error("Couldn't write to %s", wavefile); > | ^~~~~~~~~~~~~~~~~~~~~~ >x86_64-pc-linux-gnu-g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"Maelstrom\" -DVERSION=\"3.0.6\" -I. -pipe -march=native -fno-diagnostics-color -O2 -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I.. -I../netlogic -I../screenlib -I../maclib -DLIBDIR=\"/usr/share/Maelstrom\" -c -o snd2wav.o snd2wav.cpp >cc1plus: warning: â-Werror=â argument â-Werror=implicit-function-declarationâ is not valid for C++ >cc1plus: warning: â-Werror=â argument â-Werror=implicit-intâ is not valid for C++ >playwave.cpp: In function âint main(int, char**)â: >playwave.cpp:159:56: warning: format â%luâ expects argument of type âlong unsigned intâ, but argument 5 has type âUint32â {aka âunsigned intâ} [-Wformat=] > 159 | printf("Playing %#.2f seconds (%d bit %s) at %lu Hz\n", > | ~~^ > | | > | long unsigned int > | %u >...... > 162 | wave->Stereo() ? "stereo" : "mono", wave->Frequency()); > | ~~~~~~~~~~~~~~~~~ > | | > | Uint32 {aka unsigned int} >rm -f libSDLmac.a >x86_64-pc-linux-gnu-ar cru libSDLmac.a Mac_FontServ.o Mac_Resource.o Mac_Sound.o Mac_Wave.o >x86_64-pc-linux-gnu-ranlib libSDLmac.a >x86_64-pc-linux-gnu-g++ -pipe -march=native -fno-diagnostics-color -O2 -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I.. -I../netlogic -I../screenlib -I../maclib -DLIBDIR=\"/usr/share/Maelstrom\" -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -o macres macres.o libSDLmac.a -lSDL -lpthread -lSDL_net >x86_64-pc-linux-gnu-g++ -pipe -march=native -fno-diagnostics-color -O2 -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I.. -I../netlogic -I../screenlib -I../maclib -DLIBDIR=\"/usr/share/Maelstrom\" -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -o playwave playwave.o libSDLmac.a -lSDL -lpthread -lSDL_net >x86_64-pc-linux-gnu-g++ -pipe -march=native -fno-diagnostics-color -O2 -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I.. -I../netlogic -I../screenlib -I../maclib -DLIBDIR=\"/usr/share/Maelstrom\" -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -o snd2wav snd2wav.o libSDLmac.a -lSDL -lpthread -lSDL_net >make[1]: Leaving directory '/var/tmp/portage/games-action/maelstrom-3.0.6-r3/work/Maelstrom-3.0.6/maclib' >make[1]: Entering directory '/var/tmp/portage/games-action/maelstrom-3.0.6-r3/work/Maelstrom-3.0.6' >x86_64-pc-linux-gnu-g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"Maelstrom\" -DVERSION=\"3.0.6\" -I. -pipe -march=native -fno-diagnostics-color -O2 -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I. -I./netlogic -I./screenlib -I./maclib -DLIBDIR=\"/usr/share/Maelstrom\" -c -o checksum.o checksum.cpp >x86_64-pc-linux-gnu-g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"Maelstrom\" -DVERSION=\"3.0.6\" -I. -pipe -march=native -fno-diagnostics-color -O2 -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I. -I./netlogic -I./screenlib -I./maclib -DLIBDIR=\"/usr/share/Maelstrom\" -c -o controls.o controls.cpp >x86_64-pc-linux-gnu-g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"Maelstrom\" -DVERSION=\"3.0.6\" -I. -pipe -march=native -fno-diagnostics-color -O2 -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I. -I./netlogic -I./screenlib -I./maclib -DLIBDIR=\"/usr/share/Maelstrom\" -c -o dialog.o dialog.cpp >x86_64-pc-linux-gnu-g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"Maelstrom\" -DVERSION=\"3.0.6\" -I. -pipe -march=native -fno-diagnostics-color -O2 -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I. -I./netlogic -I./screenlib -I./maclib -DLIBDIR=\"/usr/share/Maelstrom\" -c -o fastrand.o fastrand.cpp >cc1plus: warning: â-Werror=â argument â-Werror=implicit-function-declarationâ is not valid for C++ >cc1plus: warning: â-Werror=â argument â-Werror=implicit-function-declarationâ is not valid for C++ >cc1plus: warning: â-Werror=â argument â-Werror=implicit-function-declarationâ is not valid for C++ >cc1plus: warning: â-Werror=â argument â-Werror=implicit-intâ is not valid for C++ >cc1plus: warning: â-Werror=â argument â-Werror=implicit-intâ is not valid for C++ >cc1plus: warning: â-Werror=â argument â-Werror=implicit-intâ is not valid for C++ >cc1plus: warning: â-Werror=â argument â-Werror=implicit-function-declarationâ is not valid for C++ >cc1plus: warning: â-Werror=â argument â-Werror=implicit-intâ is not valid for C++ >checksum.cpp: In function âchar* get_checksum(unsigned char*, int)â: >checksum.cpp:264:28: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 264 | static char *foo = "Checksum Not Enabled"; > | ^~~~~~~~~~~~~~~~~~~~~~ >x86_64-pc-linux-gnu-g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"Maelstrom\" -DVERSION=\"3.0.6\" -I. -pipe -march=native -fno-diagnostics-color -O2 -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I. -I./netlogic -I./screenlib -I./maclib -DLIBDIR=\"/usr/share/Maelstrom\" -c -o init.o init.cpp >cc1plus: warning: â-Werror=â argument â-Werror=implicit-function-declarationâ is not valid for C++ >cc1plus: warning: â-Werror=â argument â-Werror=implicit-intâ is not valid for C++ >fastrand.cpp: In function âUint16 FastRandom(Uint16)â: >fastrand.cpp:33:25: warning: ISO C++17 does not allow âregisterâ storage class specifier [-Wregister] > 33 | register Uint32 calc; > | ^~~~ >fastrand.cpp:34:25: warning: ISO C++17 does not allow âregisterâ storage class specifier [-Wregister] > 34 | register Uint32 regD0; > | ^~~~~ >fastrand.cpp:35:25: warning: ISO C++17 does not allow âregisterâ storage class specifier [-Wregister] > 35 | register Uint32 regD1; > | ^~~~~ >fastrand.cpp:36:25: warning: ISO C++17 does not allow âregisterâ storage class specifier [-Wregister] > 36 | register Uint32 regD2; > | ^~~~~ >In file included from controls.cpp:9: >load.h:109:39: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix] > 109 | sprintf(path, "%s"DIR_SEP"%s", directory, filename); > | ^ >controls.cpp:86:46: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix] > 86 | snprintf(datafile, sizeof(datafile), "%s"DIR_SEP"%s", home, MAELSTROM_DATA); > | ^ >In file included from init.cpp:11: >load.h:109:39: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix] > 109 | sprintf(path, "%s"DIR_SEP"%s", directory, filename); > | ^ >x86_64-pc-linux-gnu-g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"Maelstrom\" -DVERSION=\"3.0.6\" -I. -pipe -march=native -fno-diagnostics-color -O2 -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I. -I./netlogic -I./screenlib -I./maclib -DLIBDIR=\"/usr/share/Maelstrom\" -c -o load.o load.cpp >dialog.cpp: In constructor âMac_Button::Mac_Button(int, int, int, int, char*, MFont*, FontServ*, int (*)())â: >dialog.cpp:32:26: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 32 | SetError("%s", SDL_GetError()); > | ^~~~ >cc1plus: warning: â-Werror=â argument â-Werror=implicit-function-declarationâ is not valid for C++ >cc1plus: warning: â-Werror=â argument â-Werror=implicit-intâ is not valid for C++ >In file included from load.cpp:7: >load.h:109:39: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix] > 109 | sprintf(path, "%s"DIR_SEP"%s", directory, filename); > | ^ >load.cpp:84:38: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix] > 84 | snprintf(file, sizeof(file), "Images"DIR_SEP"Maelstrom_Titles#%d.bmp", title_id); > | ^ >load.cpp:106:38: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix] > 106 | snprintf(file, sizeof(file), "Images"DIR_SEP"Maelstrom_Icon#%hd.cicn", cicn_id); > | ^ >load.h: In member function âconst char* LibPath::Path(const char*)â: ><command-line>: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] >load.h:95:37: note: in expansion of macro âLIBDIRâ > 95 | directory = LIBDIR; > | ^~~~~~ >load.h: In member function âconst char* LibPath::Path(const char*)â: ><command-line>: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] >load.h:95:37: note: in expansion of macro âLIBDIRâ > 95 | directory = LIBDIR; > | ^~~~~~ >init.cpp: In function âvoid DoSplash()â: >init.cpp:68:23: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 68 | error("Can't load Ambrosia splash title! (ID=%d)\n", 999); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >init.cpp: In function âvoid DoIntroScreen()â: >init.cpp:89:23: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 89 | error("Can't load intro title! (ID=%d)\n", 130); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >controls.cpp: In function âvoid KeyName(SDLKey, char*)â: >controls.cpp:43:24: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 43 | name = "up arrow"; > | ^~~~~~~~~~ >controls.cpp:46:24: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 46 | name = "down arrow"; > | ^~~~~~~~~~~~ >controls.cpp:49:24: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 49 | name = "right arrow"; > | ^~~~~~~~~~~~~ >controls.cpp:52:24: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 52 | name = "left arrow"; > | ^~~~~~~~~~~~ >init.cpp:117:23: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 117 | error("Warning: %s\n", fontserv->Error()); > | ^~~~~~~~~~~~~~~ >controls.cpp: In function âFILE* OpenData(char*, char**)â: >load.h:34:17: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 34 | #define CUR_DIR "." > | ^~~ >controls.cpp:78:32: note: in expansion of macro âCUR_DIRâ > 78 | home = CUR_DIR; > | ^~~~~~~ >controls.cpp:80:30: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 80 | home=""; > | ^~ >controls.cpp: In function âvoid LoadControls()â: >controls.cpp:98:25: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 98 | data = OpenData("r", &datafile); > | ^~~ >controls.cpp:106:17: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 106 | "Warning: Data file '%s' is corrupt! (will fix)\n", datafile); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >controls.cpp: In function âvoid SaveControls()â: >controls.cpp:122:29: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 122 | if ( (data=OpenData("r", NULL)) != NULL ) { > | ^~~ >controls.cpp:123:27: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 123 | newmode = "r+"; > | ^~~~ >controls.cpp:126:27: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 126 | newmode = "w"; > | ^~~ >controls.cpp:129:23: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 129 | error("Warning: Couldn't save controls to %s\n", datafile); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >controls.cpp: At global scope: >controls.cpp:160:11: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 160 | { "Fire", 0*BOX_HEIGHT+0*SP, &newcontrols.gFireControl }, > | ^~~~~~ >controls.cpp:161:11: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 161 | { "Thrust", 1*BOX_HEIGHT+1*SP, &newcontrols.gThrustControl }, > | ^~~~~~~~ >controls.cpp:162:11: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 162 | { "Shield", 2*BOX_HEIGHT+2*SP, &newcontrols.gShieldControl }, > | ^~~~~~~~ >controls.cpp:163:11: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 163 | { "Turn Clockwise", 3*BOX_HEIGHT+3*SP, &newcontrols.gTurnRControl }, > | ^~~~~~~~~~~~~~~~ >controls.cpp:164:11: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 164 | { "Turn Counter-Clockwise", > | ^~~~~~~~~~~~~~~~~~~~~~~~ >controls.cpp:166:11: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 166 | { "Pause", 5*BOX_HEIGHT+5*SP, &newcontrols.gPauseControl }, > | ^~~~~~~ >controls.cpp:167:11: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 167 | { "Abort Game", 6*BOX_HEIGHT+6*SP, &newcontrols.gQuitControl }, > | ^~~~~~~~~~~~ >controls.cpp: In function âvoid ConfigureControls()â: >controls.cpp:263:23: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 263 | error("Can't use Chicago font!\n"); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ >controls.cpp:267:23: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 267 | error("Can't load configuration splash!\n"); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >controls.cpp:284:33: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 284 | "Cancel", chicago, fontserv, Cancel_callback); > | ^~~~~~~~ >controls.cpp:288:33: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 288 | "OK", chicago, fontserv, OK_callback); > | ^~~~ >init.cpp: In function âint DoInitializations(Uint32)â: >init.cpp:732:31: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 732 | error("Couldn't initialize SDL: %s\n", SDL_GetError()); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >init.cpp:749:31: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 749 | error("Warning: Couldn't open joystick '%s' : %s\n", > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >init.cpp:758:23: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 758 | error("Fatal: %s\n", fontserv->Error()); > | ^~~~~~~~~~~~~ >init.cpp:765:23: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 765 | error("Fatal: %s\n", sound->Error()); > | ^~~~~~~~~~~~~ >init.cpp:772:23: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 772 | error("Fatal: Couldn't load icon: %s\n", SDL_GetError()); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >init.cpp:780:23: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 780 | error("Fatal: %s\n", screen->Error()); > | ^~~~~~~~~~~~~ >init.cpp:783:28: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 783 | screen->SetCaption("Maelstrom"); > | ^~~~~~~~~~~ >controls.cpp: In function âvoid HandleEvent(SDL_Event*)â: >controls.cpp:425:60: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 425 | screen->ScreenDump("ScreenShot", > | ^~~~~~~~~~~~ >init.cpp:826:31: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 826 | error("%s\n", spriteres.Error()); > | ^~~~~~ >controls.cpp: In function âvoid ShowDawn()â: >controls.cpp:499:17: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 499 | "No eternal reward will forgive us", > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >controls.cpp:500:17: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 500 | "now", > | ^~~~~ >controls.cpp:501:21: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 501 | "for", > | ^~~~~ >controls.cpp:502:25: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 502 | "wasting", > | ^~~~~~~~~ >controls.cpp:503:33: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 503 | "the", > | ^~~~~ >controls.cpp:504:37: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 504 | "dawn." > | ^~~~~~~ >init.cpp: In function âint LoadSprite(Mac_Resource*, Blit**, int, int)â: >init.cpp:1086:9: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 1086 | "LoadSprite(%d+%d): Couldn't load ICN# resource!\n", baseID, index); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >controls.cpp:521:23: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 521 | error("Can't use Chicago font!\n"); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ >init.cpp:1094:9: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 1094 | "LoadSprite(%d+%d): Couldn't load icl8 resource!\n", baseID, index); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >controls.cpp:525:23: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 525 | error("Can't load alien dawn splash!\n"); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >init.cpp:1128:9: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 1128 | "LoadSprite(%d+%d): Couldn't convert sprite image!\n", baseID, index); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >controls.cpp:544:49: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 544 | "OK", chicago, fontserv, NULL); > | ^~~~ >init.cpp: In function âint LoadSmallSprite(Mac_Resource*, Blit**, int, int)â: >init.cpp:1206:9: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 1206 | "LoadSmallSprite(%d+%d): Couldn't load ics# resource!\n", baseID,index); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >init.cpp:1214:9: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 1214 | "LoadSmallSprite(%d+%d): Couldn't load ics8 resource!\n", baseID,index); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >init.cpp:1248:9: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 1248 | "LoadSprite(%d+%d): Couldn't convert sprite image!\n", baseID, index); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >controls.cpp: In function âvoid LoadControls()â: >controls.cpp:110:14: warning: ignoring return value of âsize_t fread(void*, size_t, size_t, FILE*)â declared with attribute âwarn_unused_resultâ [-Wunused-result] > 110 | fread(&gSoundLevel, sizeof(gSoundLevel), 1, data); > | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >controls.cpp:111:14: warning: ignoring return value of âsize_t fread(void*, size_t, size_t, FILE*)â declared with attribute âwarn_unused_resultâ [-Wunused-result] > 111 | fread(&controls, sizeof(controls), 1, data); > | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >controls.cpp:112:14: warning: ignoring return value of âsize_t fread(void*, size_t, size_t, FILE*)â declared with attribute âwarn_unused_resultâ [-Wunused-result] > 112 | fread(&gGammaCorrect, sizeof(gGammaCorrect), 1, data); > | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >load.h: In member function âconst char* LibPath::Path(const char*)â: ><command-line>: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] >load.h:95:37: note: in expansion of macro âLIBDIRâ > 95 | directory = LIBDIR; > | ^~~~~~ >load.cpp: In function âSDL_Surface* GetCIcon(FrameBuf*, short int)â: >load.cpp:108:23: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 108 | error("GetCIcon(%hd): Can't open CICN %s: ", > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >load.cpp:117:23: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 117 | error("GetCIcon(%hd): Corrupt CICN!\n", cicn_id); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >load.cpp:124:23: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 124 | error("GetCIcon(%hd): Corrupt CICN!\n", cicn_id); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >load.cpp:136:23: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 136 | error("GetCIcon(%hd): Couldn't convert CICN!\n", cicn_id); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >x86_64-pc-linux-gnu-g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"Maelstrom\" -DVERSION=\"3.0.6\" -I. -pipe -march=native -fno-diagnostics-color -O2 -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I. -I./netlogic -I./screenlib -I./maclib -DLIBDIR=\"/usr/share/Maelstrom\" -c -o main.o main.cpp >cc1plus: warning: â-Werror=â argument â-Werror=implicit-function-declarationâ is not valid for C++ >cc1plus: warning: â-Werror=â argument â-Werror=implicit-intâ is not valid for C++ >In file included from main.cpp:15: >load.h:109:39: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix] > 109 | sprintf(path, "%s"DIR_SEP"%s", directory, filename); > | ^ >load.h: In member function âconst char* LibPath::Path(const char*)â: ><command-line>: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] >load.h:95:37: note: in expansion of macro âLIBDIRâ > 95 | directory = LIBDIR; > | ^~~~~~ >main.cpp: At global scope: >main.cpp:23:1: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 23 | "Maelstrom v1.4.3 (GPL version 3.0.6) -- 10/19/2002 by Sam Lantinga\n"; > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >main.cpp: In function âvoid RunSpeedTest()â: >main.cpp:141:14: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 141 | mesg("Graphics speed test took %d microseconds per cycle.\r\n", > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >main.cpp: In function âvoid PrintUsage()â: >main.cpp:152:15: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 152 | error("\nUsage: %s [-netscores] -printscores\n", progname); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >main.cpp:153:15: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 153 | error("or\n"); > | ^~~~~~ >main.cpp:154:15: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 154 | error("Usage: %s <options>\n\n", progname); > | ^~~~~~~~~~~~~~~~~~~~~~~~~ >main.cpp:155:15: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 155 | error("Where <options> can be any of:\n\n" > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > 156 | " -fullscreen # Run Maelstrom in full-screen mode\n" > | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > 157 | " -gamma [0-8] # Set the gamma correction\n" > | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > 158 | " -volume [0-8] # Set the sound volume\n" > | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > 159 | " -netscores # Use the world-wide network score server\n" > | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >main.cpp:162:15: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 162 | error("\n"); > | ^~~~ >main.cpp: In function âint main(int, char**)â: >main.cpp:203:38: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 203 | mesg("Current Gamma correction level: %d\n", > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >main.cpp:210:9: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 210 | "Gamma correction value must be between 0 and 8. -- Exiting.\n"); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >main.cpp:224:38: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 224 | mesg("Current volume level: %d\n", > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ >main.cpp:230:9: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 230 | "Volume must be a number between 0 and 8. -- Exiting.\n"); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >main.cpp:243:30: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 243 | mesg("Checksum = %s\n", get_checksum(NULL, 0)); > | ^~~~~~~~~~~~~~~~~ >main.cpp:256:31: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 256 | error("%s", Version); > | ^~~~ >main.cpp:373:60: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 373 | screen->ScreenDump("ScoreDump", > | ^~~~~~~~~~~ >main.cpp: In function âvoid DrawSoundLevel()â: >main.cpp:438:31: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 438 | error("Can't use Geneva font! -- Exiting.\n"); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >main.cpp: In function âvoid DrawMainScreen()â: >main.cpp:480:23: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 480 | error("Can't load 'title' title! (ID=%d)\n", 129); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >main.cpp:515:23: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 515 | error("Can't use New York (18) font! -- Exiting.\n"); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >main.cpp:518:37: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 518 | DrawText(xOff+5, botDiv+22, "Name", bigfont, STYLE_ULINE, > | ^~~~~~ >main.cpp:521:34: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 521 | DrawText(sRt, botDiv+22, "Score", bigfont, STYLE_ULINE, > | ^~~~~~~ >main.cpp:525:34: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 525 | DrawText(wRt, botDiv+22, "Wave", bigfont, STYLE_ULINE, > | ^~~~~~ >main.cpp:532:23: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 532 | error("Can't use New York (14) font! -- Exiting.\n"); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >main.cpp:561:47: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 561 | DrawText(xOff+5, botDiv+46+(10*18)+3, "Last Score: ", > | ^~~~~~~~~~~~~~ >main.cpp:574:22: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 574 | DrawKey(&pt, "P", " Start playing Maelstrom", RunPlayGame); > | ^~~ >main.cpp:574:27: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 574 | DrawKey(&pt, "P", " Start playing Maelstrom", RunPlayGame); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~ >main.cpp:578:22: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 578 | DrawKey(&pt, "C", " Configure the game controls", RunConfigureControls); > | ^~~ >main.cpp:578:27: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 578 | DrawKey(&pt, "C", " Configure the game controls", RunConfigureControls); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >main.cpp:582:22: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 582 | DrawKey(&pt, "Z", " Zap the high scores", RunZapScores); > | ^~~ >main.cpp:582:27: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 582 | DrawKey(&pt, "Z", " Zap the high scores", RunZapScores); > | ^~~~~~~~~~~~~~~~~~~~~~ >main.cpp:586:22: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 586 | DrawKey(&pt, "A", " About Maelstrom...", RunDoAbout); > | ^~~ >main.cpp:586:27: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 586 | DrawKey(&pt, "A", " About Maelstrom...", RunDoAbout); > | ^~~~~~~~~~~~~~~~~~~~~ >main.cpp:592:22: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 592 | DrawKey(&pt, "Q", " Quit Maelstrom", RunQuitGame); > | ^~~ >main.cpp:592:27: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 592 | DrawKey(&pt, "Q", " Quit Maelstrom", RunQuitGame); > | ^~~~~~~~~~~~~~~~~ >main.cpp:596:22: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 596 | DrawKey(&pt, "0", " ", DecrementSound); > | ^~~ >main.cpp:596:27: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 596 | DrawKey(&pt, "0", " ", DecrementSound); > | ^~~ >main.cpp:599:23: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 599 | error("Can't use Geneva font! -- Exiting.\n"); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >main.cpp:602:47: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 602 | DrawText(pt.h+gKeyIcon->w+3, pt.v+19, "-", > | ^~~ >main.cpp:606:22: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 606 | DrawKey(&pt, "8", " Set Sound Volume", IncrementSound); > | ^~~ >main.cpp:606:27: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 606 | DrawKey(&pt, "8", " Set Sound Volume", IncrementSound); > | ^~~~~~~~~~~~~~~~~~~ >main.cpp:610:41: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 610 | DrawText(xOff+5+68, yOff+5+127, "Port to Linux by Sam Lantinga", > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >main.cpp:612:41: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 612 | DrawText(rightDiv+10, yOff+259, "©1992-4 Ambrosia Software, Inc.", > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ><command-line>: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] >./netlogic/netlogic.h:6:33: note: in expansion of macro âVERSIONâ > 6 | #define VERSION_STRING VERSION ".N" > | ^~~~~~~ >main.cpp:617:37: note: in expansion of macro âVERSION_STRINGâ > 617 | DrawText(xOff+20, yOff+151, VERSION_STRING, > | ^~~~~~~~~~~~~~ >main.cpp: In function âvoid DrawKey(MPoint*, char*, char*, void (*)())â: >main.cpp:638:23: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 638 | error("Can't use Geneva font! -- Exiting.\n"); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >main.cpp: In function âvoid Message(char*)â: >main.cpp:665:31: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 665 | error("Can't use New York(14) font! -- Exiting.\n"); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >x86_64-pc-linux-gnu-g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"Maelstrom\" -DVERSION=\"3.0.6\" -I. -pipe -march=native -fno-diagnostics-color -O2 -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I. -I./netlogic -I./screenlib -I./maclib -DLIBDIR=\"/usr/share/Maelstrom\" -c -o myerror.o myerror.cpp >cc1plus: warning: â-Werror=â argument â-Werror=implicit-function-declarationâ is not valid for C++ >cc1plus: warning: â-Werror=â argument â-Werror=implicit-intâ is not valid for C++ >x86_64-pc-linux-gnu-g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"Maelstrom\" -DVERSION=\"3.0.6\" -I. -pipe -march=native -fno-diagnostics-color -O2 -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I. -I./netlogic -I./screenlib -I./maclib -DLIBDIR=\"/usr/share/Maelstrom\" -c -o netscore.o netscore.cpp >cc1plus: warning: â-Werror=â argument â-Werror=implicit-function-declarationâ is not valid for C++ >cc1plus: warning: â-Werror=â argument â-Werror=implicit-intâ is not valid for C++ >x86_64-pc-linux-gnu-g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"Maelstrom\" -DVERSION=\"3.0.6\" -I. -pipe -march=native -fno-diagnostics-color -O2 -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I. -I./netlogic -I./screenlib -I./maclib -DLIBDIR=\"/usr/share/Maelstrom\" -c -o rect.o rect.cpp >In file included from netscore.cpp:10: >netscore.cpp: In function âvoid RegisterHighScore(Scores)â: >netscore.h:4:25: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 4 | #define SCORE_HOST "devolution.com" > | ^~~~~~~~~~~~~~~~ >netscore.cpp:27:35: note: in expansion of macro âSCORE_HOSTâ > 27 | remote = Goto_ScoreServer(SCORE_HOST, SCORE_PORT); > | ^~~~~~~~~~ >netscore.cpp:30:17: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 30 | "Warning: Couldn't connect to Maelstrom Score Server.\r\n"); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >netscore.cpp:31:23: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 31 | error("-- High Score not registered.\r\n"); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >netscore.cpp:42:23: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 42 | error("Warning: Score Server protocol error.\r\n"); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >netscore.cpp:43:23: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 43 | error("-- High Score not registered.\r\n"); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >netscore.cpp:54:23: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 54 | error("Warning: short authentication key.\n"); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >netscore.cpp:68:31: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 68 | error("New high score was rejected: %s", netbuf); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >netscore.cpp: In function âint NetLoadScores()â: >netscore.h:4:25: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 4 | #define SCORE_HOST "devolution.com" > | ^~~~~~~~~~~~~~~~ >netscore.cpp:124:35: note: in expansion of macro âSCORE_HOSTâ > 124 | remote = Goto_ScoreServer(SCORE_HOST, SCORE_PORT); > | ^~~~~~~~~~ >netscore.cpp:127:17: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 127 | "Warning: Couldn't connect to Maelstrom Score Server.\r\n"); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >cc1plus: warning: â-Werror=â argument â-Werror=implicit-function-declarationâ is not valid for C++ >cc1plus: warning: â-Werror=â argument â-Werror=implicit-intâ is not valid for C++ >netscore.cpp:171:25: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 171 | "Warning: Couldn't read complete score list!\r\n"); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >netscore.cpp:172:31: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 172 | error("Line was: %s", netbuf); > | ^~~~~~~~~~~~~~ >x86_64-pc-linux-gnu-g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"Maelstrom\" -DVERSION=\"3.0.6\" -I. -pipe -march=native -fno-diagnostics-color -O2 -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I. -I./netlogic -I./screenlib -I./maclib -DLIBDIR=\"/usr/share/Maelstrom\" -c -o scores.o scores.cpp >cc1plus: warning: â-Werror=â argument â-Werror=implicit-function-declarationâ is not valid for C++ >cc1plus: warning: â-Werror=â argument â-Werror=implicit-intâ is not valid for C++ >x86_64-pc-linux-gnu-gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"Maelstrom\" -DVERSION=\"3.0.6\" -I. -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I. -I./netlogic -I./screenlib -I./maclib -DLIBDIR=\"/usr/share/Maelstrom\" -c -o Maelstrom-netd.o Maelstrom-netd.c >In file included from scores.cpp:15: >load.h:109:39: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix] > 109 | sprintf(path, "%s"DIR_SEP"%s", directory, filename); > | ^ >scores.cpp:47:37: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix] > 47 | scores_src = SDL_RWFromFile("/var/games/"MAELSTROM_SCORES, "rb"); > | ^ >scores.cpp:75:37: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix] > 75 | scores_src = SDL_RWFromFile("/var/games/"MAELSTROM_SCORES, "wb"); > | ^ >scores.cpp:86:49: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix] > 86 | "/var/games/"MAELSTROM_SCORES); > | ^ >Maelstrom-netd.c:187:1: error: return type defaults to âintâ [-Werror=implicit-int] > 187 | main(int argc, char *argv[]) > | ^~~~ >Maelstrom-netd.c: In function âmainâ: >Maelstrom-netd.c:370:38: warning: format â%luâ expects argument of type âlong unsigned intâ, but argument 3 has type âintâ [-Wformat=] > 370 | printf(" the remote address is %s:%lu\n", > | ~~^ > | | > | long unsigned int > | %u >Maelstrom-netd.c: In function âSendErrorâ: >Maelstrom-netd.c:71:16: warning: ignoring return value of âwriteâ declared with attribute âwarn_unused_resultâ [-Wunused-result] > 71 | (void) write(players[which].sockfd, mesgbuf, mesglen); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >Maelstrom-netd.c: In function âCheckNewGameâ: >Maelstrom-netd.c:172:32: warning: ignoring return value of âwriteâ declared with attribute âwarn_unused_resultâ [-Wunused-result] > 172 | (void) write(players[positions[i]].sockfd, buffer, len); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >load.h: In member function âconst char* LibPath::Path(const char*)â: ><command-line>: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] >load.h:95:37: note: in expansion of macro âLIBDIRâ > 95 | directory = LIBDIR; > | ^~~~~~ >scores.cpp: In function âvoid LoadScores()â: >scores.cpp:41:30: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 41 | mesg("Using local score file\n\n"); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ >scores.cpp: In function âvoid SaveScores()â: >scores.cpp:85:23: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 85 | error("Warning: Couldn't save scores to %s\n", > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >scores.cpp: In function âint ZapHighScores()â: >scores.cpp:136:23: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 136 | error("Can't use Chicago font!\n"); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ >scores.cpp:140:23: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 140 | error("Can't load score zapping splash!\n"); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >scores.cpp:149:33: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 149 | "Clear", chicago, fontserv, Clear_callback); > | ^~~~~~~ >scores.cpp:153:33: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 153 | "Cancel", chicago, fontserv, Cancel_callback); > | ^~~~~~~~ >scores.cpp: In function âint GetStartLevel()â: >scores.cpp:189:25: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 189 | "Enter the level to start from (1-40). This"; > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >scores.cpp:191:25: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 191 | "disqualifies you from a high score..."; > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >scores.cpp:192:34: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 192 | static char *Ltext3 = "Level:"; > | ^~~~~~~~ >scores.cpp:193:34: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 193 | static char *Ltext4 = "Lives:"; > | ^~~~~~~~ >scores.cpp:198:34: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 198 | static char *turbotext = "Turbofunk On"; > | ^~~~~~~~~~~~~~ >scores.cpp:208:23: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 208 | error("Can't use Chicago font!\n"); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ >scores.cpp:212:23: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 212 | error("Can't load alien level splash!\n"); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >scores.cpp:231:33: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 231 | "Cancel", chicago, fontserv, Cancel2_callback); > | ^~~~~~~~ >scores.cpp:234:33: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings] > 234 | "Do it!", chicago, fontserv, Level_callback); > | ^~~~~~~~ >cc1: some warnings being treated as errors >make[1]: *** [Makefile:552: Maelstrom-netd.o] Error 1 >make[1]: *** Waiting for unfinished jobs.... >make[1]: Leaving directory '/var/tmp/portage/games-action/maelstrom-3.0.6-r3/work/Maelstrom-3.0.6' >make: *** [Makefile:582: all-recursive] Error 1 > * ERROR: games-action/maelstrom-3.0.6-r3::gentoo failed (compile phase): > * emake failed > * > * If you need support, post the output of `emerge --info '=games-action/maelstrom-3.0.6-r3::gentoo'`, > * the complete build log and the output of `emerge -pqv '=games-action/maelstrom-3.0.6-r3::gentoo'`. > * The complete build log is located at '/var/log/portage/games-action:maelstrom-3.0.6-r3:20221005-125834.log'. > * For convenience, a symlink to the build log is located at '/var/tmp/portage/games-action/maelstrom-3.0.6-r3/temp/build.log'. > * The ebuild environment file is located at '/var/tmp/portage/games-action/maelstrom-3.0.6-r3/temp/environment'. > * Working directory: '/var/tmp/portage/games-action/maelstrom-3.0.6-r3/work/Maelstrom-3.0.6' > * S: '/var/tmp/portage/games-action/maelstrom-3.0.6-r3/work/Maelstrom-3.0.6' >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 875431
:
821050
|
821053
|
821056
|
821059
| 821062 |
821065
|
821068
|
903170