=>> Building games/spellcast build started at Mon Apr 1 23:37:04 BST 2024 port directory: /usr/ports/games/spellcast package name: spellcast-1.2_3 building for: FreeBSD pkg-builder.dan.net.uk 13.2-RELEASE-p10 FreeBSD 13.2-RELEASE-p10 amd64 maintained by: bofh@FreeBSD.org Makefile datestamp: -rw-r--r-- 1 root wheel 976 Feb 1 08:45 /usr/ports/games/spellcast/Makefile Ports top last git commit: c2c35d895e Ports top unclean checkout: yes Port dir last git commit: bf303ee7f4 Port dir unclean checkout: no Poudriere version: poudriere-git-3.4.99.20240122_1 Host OSVERSION: 1400097 Jail OSVERSION: 1302001 Job Id: 18 ---Begin Environment--- SHELL=/bin/csh OSVERSION=1302001 UNAME_v=FreeBSD 13.2-RELEASE-p10 UNAME_r=13.2-RELEASE-p10 BLOCKSIZE=K MAIL=/var/mail/root MM_CHARSET=UTF-8 LANG=C.UTF-8 STATUS=1 HOME=/root PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin MAKE_OBJDIR_CHECK_WRITABLE=0 LOCALBASE=/usr/local USER=root POUDRIERE_NAME=poudriere-git LIBEXECPREFIX=/usr/local/libexec/poudriere POUDRIERE_VERSION=3.4.99.20240122_1 MASTERMNT=/usr/local/poudriere/data/.m/13-amd64-default-dan/ref LC_COLLATE=C POUDRIERE_BUILD_TYPE=bulk PACKAGE_BUILDING=yes SAVED_TERM=screen OUTPUT_REDIRECTED_STDERR=4 OUTPUT_REDIRECTED=1 PWD=/usr/local/poudriere/data/.m/13-amd64-default-dan/18/.p OUTPUT_REDIRECTED_STDOUT=3 P_PORTS_FEATURES=FLAVORS SUBPACKAGES SELECTED_OPTIONS MASTERNAME=13-amd64-default-dan SCRIPTPREFIX=/usr/local/share/poudriere SCRIPTNAME=bulk.sh OLDPWD=/usr/local/poudriere/data/.m/13-amd64-default-dan/ref/.p/pool POUDRIERE_PKGNAME=poudriere-git-3.4.99.20240122_1 SCRIPTPATH=/usr/local/share/poudriere/bulk.sh POUDRIEREPATH=/usr/local/bin/poudriere ---End Environment--- ---Begin Poudriere Port Flags/Env--- PORT_FLAGS= PKGENV= FLAVOR= MAKE_ARGS= ---End Poudriere Port Flags/Env--- ---Begin OPTIONS List--- ===> The following configuration options are available for spellcast-1.2_3: DOCS=on: Build and/or install documentation ===> Use 'make config' to modify these settings ---End OPTIONS List--- --MAINTAINER-- bofh@FreeBSD.org --End MAINTAINER-- --CONFIGURE_ARGS-- --End CONFIGURE_ARGS-- --CONFIGURE_ENV-- XDG_DATA_HOME=/wrkdirs/usr/ports/games/spellcast/work XDG_CONFIG_HOME=/wrkdirs/usr/ports/games/spellcast/work XDG_CACHE_HOME=/wrkdirs/usr/ports/games/spellcast/work/.cache HOME=/wrkdirs/usr/ports/games/spellcast/work TMPDIR="/tmp" PATH=/ccache/libexec/ccache:/wrkdirs/usr/ports/games/spellcast/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/games/spellcast/work/.pkgconfig:/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig SHELL=/bin/sh CONFIG_SHELL=/bin/sh CCACHE_DIR="/root/.ccache" --End CONFIGURE_ENV-- --MAKE_ENV-- XDG_DATA_HOME=/wrkdirs/usr/ports/games/spellcast/work XDG_CONFIG_HOME=/wrkdirs/usr/ports/games/spellcast/work XDG_CACHE_HOME=/wrkdirs/usr/ports/games/spellcast/work/.cache HOME=/wrkdirs/usr/ports/games/spellcast/work TMPDIR="/tmp" PATH=/ccache/libexec/ccache:/wrkdirs/usr/ports/games/spellcast/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/games/spellcast/work/.pkgconfig:/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig MK_DEBUG_FILES=no MK_KERNEL_SYMBOLS=no SHELL=/bin/sh NO_LINT=YES PREFIX=/usr/local LOCALBASE=/usr/local CC="cc" CFLAGS="-O2 -pipe -Wno-return-type -fstack-protector-strong -fno-strict-aliasing " CPP="cpp" CPPFLAGS="" LDFLAGS=" -fstack-protector-strong " LIBS="" CXX="c++" CXXFLAGS="-O2 -pipe -Wno-return-type -fstack-protector-strong -fno-strict-aliasing " CCACHE_DIR="/root/.ccache" BSD_INSTALL_PROGRAM="install -s -m 555" BSD_INSTALL_LIB="install -s -m 0644" BSD_INSTALL_SCRIPT="install -m 555" BSD_INSTALL_DATA="install -m 0644" BSD_INSTALL_MAN="install -m 444" --End MAKE_ENV-- --PLIST_SUB-- PORTDOCS="" OSREL=13.2 PREFIX=%D LOCALBASE=/usr/local RESETPREFIX=/usr/local LIB32DIR=lib DOCSDIR="share/doc/spellcast" EXAMPLESDIR="share/examples/spellcast" DATADIR="share/spellcast" WWWDIR="www/spellcast" ETCDIR="etc/spellcast" --End PLIST_SUB-- --SUB_LIST-- PREFIX=/usr/local LOCALBASE=/usr/local DATADIR=/usr/local/share/spellcast DOCSDIR=/usr/local/share/doc/spellcast EXAMPLESDIR=/usr/local/share/examples/spellcast WWWDIR=/usr/local/www/spellcast ETCDIR=/usr/local/etc/spellcast --End SUB_LIST-- ---Begin make.conf--- USE_PACKAGE_DEPENDS=yes BATCH=yes WRKDIRPREFIX=/wrkdirs PORTSDIR=/usr/ports PACKAGES=/packages DISTDIR=/distfiles FORCE_PACKAGE=yes PACKAGE_BUILDING=yes PACKAGE_BUILDING_FLAVORS=yes #### #### CCACHE_CPP2=1 WITH_SSP_PORTS=yes WITH_SSP=yes #WITH_LTO=yes DISABLE_LICENSES=yes LICENSES_ACCEPTED=AGPLv3 APACHE10 APACHE11 APACHE20 ART10 ARTPERL10 ART20 BSD BSD2CLAUSE BSD3CLAUSE BSD4CLAUSE BSL CC0-1.0 CDDL ClArtistic EPL GFDL GMGPL GPLv1 GPLv2 GPLv3 GPLv3RLE ISCL LGPL20 LGPL21 LGPL3 LPPL10 LPPL11 LPPL12 LPPL13 LPPL13a LPPL13b LPPL13c MIT MPL OpenSSL OFL10 OFL11 OWL PostgreSQL PHP202 PHP30 PHP301 PSFL RUBY ZLIB ZPL21 SVM-Light EULA ALASIR Microsoft-exFAT SIMIAN UDEVGAME unknown MTA COMMERCIAL teamspeak NO_LICENSES_DIALOGS=yes #### #### NO_IGNORE=yes DEFAULT_VERSIONS+=ssl=openssl mysql=8.0 imagemagick=7 samba=4.13 java=18 WITH_SETID_MODE=force PHP_ZTS=enabled OPTIONS_UNSET+=OPENJPEG OPTIONS_UNSET+=GSSAPI_BASE OPTIONS_SET+=ZTS OPTIONS_SET+=GSSAPI_NONE WITH_CCACHE_BUILD=yes CCACHE_DIR=/root/.ccache NO_CCACHE_DEPEND=1 CCACHE_WRAPPER_PATH= /ccache/libexec/ccache #### Misc Poudriere #### .include "/etc/make.conf.ports_env" GID=0 UID=0 DISABLE_MAKE_JOBS=poudriere ---End make.conf--- --Resource limits-- cpu time (seconds, -t) unlimited file size (512-blocks, -f) unlimited data seg size (kbytes, -d) 33554432 stack size (kbytes, -s) 524288 core file size (512-blocks, -c) unlimited max memory size (kbytes, -m) unlimited locked memory (kbytes, -l) unlimited max user processes (-u) 89999 open files (-n) 8192 virtual mem size (kbytes, -v) unlimited swap limit (kbytes, -w) unlimited socket buffer size (bytes, -b) unlimited pseudo-terminals (-p) unlimited kqueues (-k) unlimited umtx shared locks (-o) unlimited --End resource limits-- =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 ===> spellcast-1.2_3 depends on file: /usr/local/sbin/pkg - not found ===> Installing existing package /packages/All/pkg-1.20.9_1.pkg [pkg-builder.dan.net.uk] Installing pkg-1.20.9_1... [pkg-builder.dan.net.uk] Extracting pkg-1.20.9_1: .......... done ===> spellcast-1.2_3 depends on file: /usr/local/sbin/pkg - found ===> Returning to build of spellcast-1.2_3 =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Fetching all distfiles required by spellcast-1.2_3 for building =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Fetching all distfiles required by spellcast-1.2_3 for building => SHA256 Checksum OK for spellcast.tar.Z. =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Fetching all distfiles required by spellcast-1.2_3 for building ===> Extracting for spellcast-1.2_3 => SHA256 Checksum OK for spellcast.tar.Z. =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Patching for spellcast-1.2_3 ===> Applying FreeBSD patches for spellcast-1.2_3 from /usr/ports/games/spellcast/files =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 ===> spellcast-1.2_3 depends on file: /usr/local/libdata/pkgconfig/x11.pc - not found ===> Installing existing package /packages/All/libX11-1.8.7_1,1.pkg [pkg-builder.dan.net.uk] Installing libX11-1.8.7_1,1... [pkg-builder.dan.net.uk] `-- Installing libxcb-1.16.1... [pkg-builder.dan.net.uk] | `-- Installing libXau-1.0.9_1... [pkg-builder.dan.net.uk] | `-- Extracting libXau-1.0.9_1: .......... done [pkg-builder.dan.net.uk] | `-- Installing libXdmcp-1.1.5... [pkg-builder.dan.net.uk] | | `-- Installing xorgproto-2023.2... [pkg-builder.dan.net.uk] | | `-- Extracting xorgproto-2023.2: .......... done [pkg-builder.dan.net.uk] | `-- Extracting libXdmcp-1.1.5: ...... done [pkg-builder.dan.net.uk] `-- Extracting libxcb-1.16.1: .......... done [pkg-builder.dan.net.uk] Extracting libX11-1.8.7_1,1: .......... done ===> spellcast-1.2_3 depends on file: /usr/local/libdata/pkgconfig/x11.pc - found ===> Returning to build of spellcast-1.2_3 =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Configuring for spellcast-1.2_3 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Building for spellcast-1.2_3 cc -O2 -pipe -Wno-return-type -fstack-protector-strong -fno-strict-aliasing -I/usr/local/include -I./bitmaps -DBODYFONT=\"-*-times-medium-r-*--14-*\" -DBODYFONT_ALT=\"-*-helvetica-medium-r-*--12-*\" -DBODYFONT_ALT2=\"fixed\" -DTRANSCRIPTDIR=\"/tmp\" -c engine.c -o engine.o engine.c:37:36: warning: implicitly declaring library function 'realloc' with type 'void *(void *, unsigned long)' [-Wimplicit-function-declaration] self->querylist = (struct query *)realloc(self->querylist, sizeof(struct query) * self->querylist_size); ^ engine.c:37:36: note: include the header or explicitly provide a declaration for 'realloc' engine.c:107:5: warning: implicit declaration of function 'clear_round' is invalid in C99 [-Wimplicit-function-declaration] clear_round(fred); ^ engine.c:189:48: warning: implicitly declaring library function 'malloc' with type 'void *(unsigned long)' [-Wimplicit-function-declaration] struct realgame *self = (struct realgame *)malloc(sizeof(struct realgame)); ^ engine.c:189:48: note: include the header or explicitly provide a declaration for 'malloc' engine.c:192:5: warning: implicit declaration of function 'srandom' is invalid in C99 [-Wimplicit-function-declaration] srandom(getpid() + rock + numplayers); ^ engine.c:192:13: warning: implicit declaration of function 'getpid' is invalid in C99 [-Wimplicit-function-declaration] srandom(getpid() + rock + numplayers); ^ engine.c:203:5: warning: implicit declaration of function 'init_transcript' is invalid in C99 [-Wimplicit-function-declaration] init_transcript(self); ^ engine.c:206:2: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg("Too many players requested.\n"); ^ ./internal.h:3:26: note: expanded from macro 'PrintMsg' #define PrintMsg(msg) (log_text(self, msg),\ ^ engine.c:213:12: warning: incompatible pointer types passing 'struct wizard *' to parameter of type 'union being *' [-Wincompatible-pointer-types] InitBeing(self->wiz[ix]); ^~~~~~~~~~~~~ engine.c:232:2: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(ix, "You advance confidently into the arena. The referee casts the formal Dispel Magic and Anti-Spell on you....\n", bigbuf); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ engine.c:309:7: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg(bigbuf); ^ ./internal.h:3:26: note: expanded from macro 'PrintMsg' #define PrintMsg(msg) (log_text(self, msg),\ ^ engine.c:317:9: warning: implicit declaration of function 'random' is invalid in C99 [-Wimplicit-function-declaration] jx = random() % 2; ^ engine.c:345:41: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast] add_query(self, kx, Qu_CharmGesture, (char *)val); ^~~~~~~~~~~ engine.c:426:3: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(ix, "You cannot stab with both hands!\n", NULL); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ engine.c:431:5: warning: implicit declaration of function 'log_round_header' is invalid in C99 [-Wimplicit-function-declaration] log_round_header(self); ^ engine.c:446:3: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(ix, "Oh, dear. You seem to have surrendered.\n", bigbuf); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ engine.c:507:3: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(ix, "Everything around you stops dead. The world is silent and motionless.\n", bigbuf); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ engine.c:511:3: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(ix, "Everything begins moving again.\n", bigbuf); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ engine.c:521:3: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg(bigbuf); ^ ./internal.h:3:26: note: expanded from macro 'PrintMsg' #define PrintMsg(msg) (log_text(self, msg),\ ^ engine.c:525:3: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg(bigbuf); ^ ./internal.h:3:26: note: expanded from macro 'PrintMsg' #define PrintMsg(msg) (log_text(self, msg),\ ^ engine.c:542:7: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(ix, "Everyone else begins moving very slowly.\n", bigbuf); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ engine.c:547:7: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(ix, "Everyone else is still moving slowly.\n", bigbuf); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ engine.c:551:7: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(ix, "Everyone comes back up to normal speed.\n", bigbuf); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ engine.c:562:7: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg(bigbuf); ^ ./internal.h:3:26: note: expanded from macro 'PrintMsg' #define PrintMsg(msg) (log_text(self, msg),\ ^ engine.c:567:7: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg(bigbuf); ^ ./internal.h:3:26: note: expanded from macro 'PrintMsg' #define PrintMsg(msg) (log_text(self, msg),\ ^ engine.c:571:7: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg(bigbuf); ^ ./internal.h:3:26: note: expanded from macro 'PrintMsg' #define PrintMsg(msg) (log_text(self, msg),\ ^ engine.c:615:2: warning: implicitly declaring library function 'free' with type 'void (void *)' [-Wimplicit-function-declaration] free((char *)self->wiz[ix]); ^ engine.c:615:2: note: include the header or explicitly provide a declaration for 'free' engine.c:944:6: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg("ERROR: Unknown turn type\n"); ^ ./internal.h:3:26: note: expanded from macro 'PrintMsg' #define PrintMsg(msg) (log_text(self, msg),\ ^ engine.c:993:7: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg("ERROR in restrict_gestures\n"); ^ ./internal.h:3:26: note: expanded from macro 'PrintMsg' #define PrintMsg(msg) (log_text(self, msg),\ ^ engine.c:1009:42: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast] add_query(self, wiznum, Qu_SetOffDelay, (char *)self->wiz[wiznum]->delay_bank); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ engine.c:1155:48: warning: incompatible pointer types passing 'int[11]' to parameter of type 'char *' [-Wincompatible-pointer-types] add_query(self, wiznum, Qu_WhichToDelay, delnum); ^~~~~~ engine.c:1166:4: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg("ERROR: Unable to find Delayed spell.\n"); ^ ./internal.h:3:26: note: expanded from macro 'PrintMsg' #define PrintMsg(msg) (log_text(self, msg),\ ^ engine.c:1173:4: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(wiznum, bigbuf, bigbuf2); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ engine.c:1210:47: warning: incompatible pointer types passing 'int[11]' to parameter of type 'char *' [-Wincompatible-pointer-types] add_query(self, wiznum, Qu_WhichToPerm, delnum); ^~~~~~ engine.c:1218:7: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(wiznum, bigbuf, NULL); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ engine.c:1238:63: warning: incompatible integer to pointer conversion passing 'int' to parameter of type 'char *' [-Wint-conversion] add_query(self, tmp->caster, spelltargetlist[tmp->spellnum], tmp->spellnum | orval); ^~~~~~~~~~~~~~~~~~~~~ engine.c:1279:7: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(cnum, "You begin to feel somewhat feverish.\n", bigbuf); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ engine.c:1324:7: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(cnum, "Your toes suddenly feel slightly numb.\n", bigbuf); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ engine.c:1350:85: warning: data argument not used by format string [-Wformat-extra-args] sprintf(bigbuf, "%s collapses in a heap, twitching slightly.\n", fred->both.name, pro_his(fred->both.gender)); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ engine.c:1370:6: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(ix, "You have died!\n", bigbuf); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ engine.c:1372:23: warning: incompatible pointer types passing 'struct wizard *' to parameter of type 'union being *' [-Wincompatible-pointer-types] clear_out_spells(self->wiz[ix], 1); ^~~~~~~~~~~~~ engine.c:1377:26: warning: incompatible pointer types passing 'struct wizard *' to parameter of type 'union being *' [-Wincompatible-pointer-types] exec_unhealth(self, self->wiz[ix], ix, 1); ^~~~~~~~~~~~~ engine.c:1384:7: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(ix, "The Delayed Effect spell hovering around you dies away.\n", bigbuf); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ engine.c:1393:7: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(ix, "The Permanency spell hovering around you dies away.\n", bigbuf); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ engine.c:1401:6: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg(bigbuf); ^ ./internal.h:3:26: note: expanded from macro 'PrintMsg' #define PrintMsg(msg) (log_text(self, msg),\ ^ engine.c:1403:23: warning: incompatible pointer types passing 'struct creature *' to parameter of type 'union being *' [-Wincompatible-pointer-types] clear_out_spells(&(self->cre[ix]), 0); ^~~~~~~~~~~~~~~~ engine.c:1407:26: warning: incompatible pointer types passing 'struct creature *' to parameter of type 'union being *' [-Wincompatible-pointer-types] exec_unhealth(self, &self->cre[ix], ix, 0); ^~~~~~~~~~~~~~ engine.c:1425:6: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg(bigbuf); ^ ./internal.h:3:26: note: expanded from macro 'PrintMsg' #define PrintMsg(msg) (log_text(self, msg),\ ^ engine.c:1432:6: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg(bigbuf); ^ ./internal.h:3:26: note: expanded from macro 'PrintMsg' #define PrintMsg(msg) (log_text(self, msg),\ ^ engine.c:1436:6: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg(bigbuf); ^ ./internal.h:3:26: note: expanded from macro 'PrintMsg' #define PrintMsg(msg) (log_text(self, msg),\ ^ engine.c:1444:6: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg("Everyone is dead!\n"); ^ ./internal.h:3:26: note: expanded from macro 'PrintMsg' #define PrintMsg(msg) (log_text(self, msg),\ ^ engine.c:1453:6: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg(bigbuf); ^ ./internal.h:3:26: note: expanded from macro 'PrintMsg' #define PrintMsg(msg) (log_text(self, msg),\ ^ engine.c:1458:6: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg("The survivors have all surrendered to each other!\n"); ^ ./internal.h:3:26: note: expanded from macro 'PrintMsg' #define PrintMsg(msg) (log_text(self, msg),\ ^ 52 warnings generated. cc -O2 -pipe -Wno-return-type -fstack-protector-strong -fno-strict-aliasing -I/usr/local/include -I./bitmaps -DBODYFONT=\"-*-times-medium-r-*--14-*\" -DBODYFONT_ALT=\"-*-helvetica-medium-r-*--12-*\" -DBODYFONT_ALT2=\"fixed\" -DTRANSCRIPTDIR=\"/tmp\" -c espells.c -o espells.o cc -O2 -pipe -Wno-return-type -fstack-protector-strong -fno-strict-aliasing -I/usr/local/include -I./bitmaps -DBODYFONT=\"-*-times-medium-r-*--14-*\" -DBODYFONT_ALT=\"-*-helvetica-medium-r-*--12-*\" -DBODYFONT_ALT2=\"fixed\" -DTRANSCRIPTDIR=\"/tmp\" -c execute.c -o execute.o execute.c:222:5: warning: implicitly declaring library function 'strcpy' with type 'char *(char *, const char *)' [-Wimplicit-function-declaration] strcpy(buf, ""); ^ execute.c:222:5: note: include the header or explicitly provide a declaration for 'strcpy' execute.c:228:3: warning: implicitly declaring library function 'strcat' with type 'char *(char *, const char *)' [-Wimplicit-function-declaration] strcat(buf, ", "); ^ execute.c:228:3: note: include the header or explicitly provide a declaration for 'strcat' execute.c:256:6: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg3(ctmp->caster, ctmp->target, exbuf, exbuf2, exbuf3); ^ ./internal.h:9:61: note: expanded from macro 'PrintMsg3' #define PrintMsg3(person1, person2, msg1, msg2, msgelse) (log_text(self, msgelse),\ ^ execute.c:327:2: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg(exbuf); ^ ./internal.h:3:26: note: expanded from macro 'PrintMsg' #define PrintMsg(msg) (log_text(self, msg),\ ^ execute.c:335:14: warning: incompatible pointer types passing 'struct wizard *' to parameter of type 'union being *' [-Wincompatible-pointer-types] clear_round(self->wiz[ix]); ^~~~~~~~~~~~~ execute.c:337:14: warning: incompatible pointer types passing 'struct creature *' to parameter of type 'union being *' [-Wincompatible-pointer-types] clear_round(&self->cre[ix]); ^~~~~~~~~~~~~~ execute.c:378:2: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg("The magical energies in the arena fade away.\n"); ^ ./internal.h:3:26: note: expanded from macro 'PrintMsg' #define PrintMsg(msg) (log_text(self, msg),\ ^ execute.c:622:5: warning: implicit declaration of function 'erase_queries' is invalid in C99 [-Wimplicit-function-declaration] erase_queries(self); ^ execute.c:626:3: warning: implicit declaration of function 'add_query' is invalid in C99 [-Wimplicit-function-declaration] add_query(self, ix, Qu_ElementalType, 0); ^ execute.c:716:3: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(cnum, "The Counter-Spell on you is dispelled.\n", exbuf); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ execute.c:724:3: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(cnum, "The Magic Mirror on you is dispelled.\n", exbuf); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ execute.c:733:3: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg(exbuf); ^ ./internal.h:3:26: note: expanded from macro 'PrintMsg' #define PrintMsg(msg) (log_text(self, msg),\ ^ execute.c:739:3: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg(exbuf); ^ ./internal.h:3:26: note: expanded from macro 'PrintMsg' #define PrintMsg(msg) (log_text(self, msg),\ ^ execute.c:751:3: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(cnum, "Your magical senses go numb as a Counter-Spell surrounds you.\n", exbuf); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ execute.c:771:3: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(cnum, "The bright haze of a Magic Mirror surrounds you.\n", exbuf); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ execute.c:799:7: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(cnum, exbuf, exbuf2); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ execute.c:807:7: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(cnum, exbuf, exbuf2); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ execute.c:812:3: warning: implicit declaration of function 'create_creature' is invalid in C99 [-Wimplicit-function-declaration] create_creature(self, ix+1, cnum); ^ execute.c:828:6: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(cnum, exbuf, exbuf2); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ execute.c:831:2: warning: implicit declaration of function 'create_creature' is invalid in C99 [-Wimplicit-function-declaration] create_creature(self, 6-ix, cnum); ^ execute.c:873:2: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg(exbuf); ^ ./internal.h:3:26: note: expanded from macro 'PrintMsg' #define PrintMsg(msg) (log_text(self, msg),\ ^ execute.c:877:2: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg(exbuf); ^ ./internal.h:3:26: note: expanded from macro 'PrintMsg' #define PrintMsg(msg) (log_text(self, msg),\ ^ execute.c:887:6: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg("The Fire Elemental is dispersed into the Fire Storm.\n"); ^ ./internal.h:3:26: note: expanded from macro 'PrintMsg' #define PrintMsg(msg) (log_text(self, msg),\ ^ execute.c:969:7: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg(exbuf); ^ ./internal.h:3:26: note: expanded from macro 'PrintMsg' #define PrintMsg(msg) (log_text(self, msg),\ ^ execute.c:976:7: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg(exbuf); ^ ./internal.h:3:26: note: expanded from macro 'PrintMsg' #define PrintMsg(msg) (log_text(self, msg),\ ^ execute.c:981:7: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg(exbuf); ^ ./internal.h:3:26: note: expanded from macro 'PrintMsg' #define PrintMsg(msg) (log_text(self, msg),\ ^ execute.c:987:3: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg(exbuf); ^ ./internal.h:3:26: note: expanded from macro 'PrintMsg' #define PrintMsg(msg) (log_text(self, msg),\ ^ execute.c:992:3: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg(exbuf); ^ ./internal.h:3:26: note: expanded from macro 'PrintMsg' #define PrintMsg(msg) (log_text(self, msg),\ ^ execute.c:1004:3: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg(exbuf); ^ ./internal.h:3:26: note: expanded from macro 'PrintMsg' #define PrintMsg(msg) (log_text(self, msg),\ ^ execute.c:1025:6: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(cnum, "For a moment, you feel a sudden pressure in your chest, as if an iron band was squeezing your heart. Then it fades, as the Raise Dead spell burns through you.\n", exbuf2); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ execute.c:1035:6: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(cnum, "The Fireball hurtling towards you is snuffed by the Ice Storm, leaving you enveloped in warm steam.\n", exbuf2); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ execute.c:1059:6: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(cnum, exbuf, exbuf2); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ execute.c:1090:3: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(cnum, "The Resist Heat wraps you in a pleasant blue coolness.\n", exbuf2); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ execute.c:1098:3: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(cnum, "Your veil of Resist Heat continues to glow coolly.\n", exbuf2); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ execute.c:1109:3: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(cnum, "The Resist Cold wraps you in a pleasant pink warmth.\n", exbuf2); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ execute.c:1117:3: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(cnum, "Your veil of Resist Cold continues to glow warmly.\n", exbuf2); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ execute.c:1128:3: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(cnum, exbuf, exbuf2); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ execute.c:1136:3: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(cnum, exbuf, exbuf2); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ execute.c:1171:7: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(cnum, exbuf, exbuf2); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ execute.c:1172:3: warning: add explicit braces to avoid dangling else [-Wdangling-else] else ^ 40 warnings generated. cc -O2 -pipe -Wno-return-type -fstack-protector-strong -fno-strict-aliasing -I/usr/local/include -I./bitmaps -DBODYFONT=\"-*-times-medium-r-*--14-*\" -DBODYFONT_ALT=\"-*-helvetica-medium-r-*--12-*\" -DBODYFONT_ALT2=\"fixed\" -DTRANSCRIPTDIR=\"/tmp\" -c execute2.c -o execute2.o execute2.c:28:6: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(cnum, "The Amnesia spell curls around your mind.\n", exbuf2); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ execute2.c:43:6: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(cnum, "The Confusion spell curls around your mind.\n", exbuf2); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ execute2.c:55:6: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(cnum, "The Fear spell curls around your mind.\n", exbuf2); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ execute2.c:65:3: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(cnum, "Not knowing which of your hands to strike, the Paralysis spell fizzles.\n", exbuf2); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ execute2.c:71:7: warning: implicit declaration of function 'erase_queries' is invalid in C99 [-Wimplicit-function-declaration] erase_queries(self); ^ execute2.c:72:7: warning: implicit declaration of function 'add_query' is invalid in C99 [-Wimplicit-function-declaration] add_query(self, fred->both.enchant_caster, Qu_ParalysisHand, cnum); ^ execute2.c:87:3: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(cnum, exbuf, exbuf2); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ execute2.c:97:6: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg(exbuf2); ^ ./internal.h:3:26: note: expanded from macro 'PrintMsg' #define PrintMsg(msg) (log_text(self, msg),\ ^ execute2.c:105:6: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(cnum, "The Charm Monster spell swirls around your mind, but cannot sink in.\n", exbuf2); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ execute2.c:111:3: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg(exbuf); ^ ./internal.h:3:26: note: expanded from macro 'PrintMsg' #define PrintMsg(msg) (log_text(self, msg),\ ^ execute2.c:121:110: warning: implicit declaration of function 'pro_he' is invalid in C99 [-Wimplicit-function-declaration] sprintf(exbuf2, "The Charm Monster spell curls around %s, and %s smiles dopily at %s.\n", fred->both.name, pro_he(fred->both.gender), self->wiz[fred->cre.owner]->name); ^ execute2.c:121:110: warning: format specifies type 'char *' but the argument has type 'int' [-Wformat] sprintf(exbuf2, "The Charm Monster spell curls around %s, and %s smiles dopily at %s.\n", fred->both.name, pro_he(fred->both.gender), self->wiz[fred->cre.owner]->name); ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~ %d execute2.c:122:3: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg(exbuf2); ^ ./internal.h:3:26: note: expanded from macro 'PrintMsg' #define PrintMsg(msg) (log_text(self, msg),\ ^ execute2.c:132:3: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(cnum, "Not knowing which of your hands to strike, the Charm Person spell fizzles.\n", exbuf2); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ execute2.c:137:3: warning: implicit declaration of function 'erase_queries' is invalid in C99 [-Wimplicit-function-declaration] erase_queries(self); ^ execute2.c:138:3: warning: implicit declaration of function 'add_query' is invalid in C99 [-Wimplicit-function-declaration] add_query(self, fred->both.enchant_caster, Qu_CharmHand, cnum); ^ execute2.c:151:3: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(cnum, exbuf, exbuf2); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ execute2.c:157:6: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg(exbuf2); ^ ./internal.h:3:26: note: expanded from macro 'PrintMsg' #define PrintMsg(msg) (log_text(self, msg),\ ^ execute2.c:168:7: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(cnum, "You are still afflicted with Amnesia.\n", exbuf2); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ execute2.c:234:3: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(cnum, "You sneeze loudly.\n", exbuf2); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ execute2.c:246:3: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(cnum, "A flash of pain lances along your bones, and then fades away.\n", exbuf2); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ execute2.c:257:3: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(cnum, "The Anti-Spell fizzes away into nothing as it approaches you.\n", exbuf2); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ execute2.c:264:3: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg(exbuf); ^ ./internal.h:3:26: note: expanded from macro 'PrintMsg' #define PrintMsg(msg) (log_text(self, msg),\ ^ execute2.c:268:117: warning: implicit declaration of function 'pro_his' is invalid in C99 [-Wimplicit-function-declaration] sprintf(exbuf2, "The Anti-Spell jolts %s, causing the magical energies around %s hands to flicker.\n", wiz->name, pro_his(wiz->gender)); ^ execute2.c:268:117: warning: format specifies type 'char *' but the argument has type 'int' [-Wformat] sprintf(exbuf2, "The Anti-Spell jolts %s, causing the magical energies around %s hands to flicker.\n", wiz->name, pro_his(wiz->gender)); ~~ ^~~~~~~~~~~~~~~~~~~~ %d execute2.c:269:3: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(cnum, "The Anti-Spell jolts you, interrupting the flow of magical energy in your hands.\n", exbuf2); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ execute2.c:271:3: warning: implicit declaration of function 'write_gestures' is invalid in C99 [-Wimplicit-function-declaration] write_gestures(self, wiz, Gesture_ANTISPELL, Gesture_ANTISPELL); ^ execute2.c:281:3: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(cnum, "The Delayed Effect fizzes away into nothing as it approaches you.\n", exbuf2); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ execute2.c:288:3: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg(exbuf); ^ ./internal.h:3:26: note: expanded from macro 'PrintMsg' #define PrintMsg(msg) (log_text(self, msg),\ ^ execute2.c:293:3: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(cnum, "The Delayed Effect spreads out in a cloud around you, waiting for you to complete a spell.\n", exbuf2); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ execute2.c:304:3: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(cnum, "The Permanency fizzes away into nothing as it approaches you.\n", exbuf2); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ execute2.c:311:3: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg(exbuf); ^ ./internal.h:3:26: note: expanded from macro 'PrintMsg' #define PrintMsg(msg) (log_text(self, msg),\ ^ execute2.c:316:3: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(cnum, "The Permanency spreads out in a cloud around you, waiting for you to complete a spell.\n", exbuf2); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ execute2.c:325:101: warning: implicit declaration of function 'pro_his' is invalid in C99 [-Wimplicit-function-declaration] sprintf(exbuf2, "%s blinks, then stumbles slightly as %s eyes turn milky.\n", fred->both.name, pro_his(fred->both.gender)); ^ execute2.c:325:101: warning: format specifies type 'char *' but the argument has type 'int' [-Wformat] sprintf(exbuf2, "%s blinks, then stumbles slightly as %s eyes turn milky.\n", fred->both.name, pro_his(fred->both.gender)); ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~ %d execute2.c:327:3: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(cnum, "A haze suddenly appears before your eyes. The world dims rapidly, and you are shortly enveloped in total darkness.\n", exbuf2); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ execute2.c:335:3: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(cnum, "You are still blind.\n", exbuf2); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ execute2.c:347:3: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(cnum, "The dark veil falls away from your eyes.\n", exbuf2); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ execute2.c:358:3: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(cnum, "The world becomes strangely misted in front of your eyes. Looking down, you see that your hands are no longer visible.\n", exbuf2); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ execute2.c:366:3: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(cnum, "You are still invisible.\n", exbuf2); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ execute2.c:376:110: warning: implicit declaration of function 'pro_he' is invalid in C99 [-Wimplicit-function-declaration] sprintf(exbuf2, "A %s-shaped shadow appears, and %s rapidly becomes fully visible.\n", fred->both.name, pro_he(fred->both.gender)); ^ execute2.c:376:110: warning: format specifies type 'char *' but the argument has type 'int' [-Wformat] sprintf(exbuf2, "A %s-shaped shadow appears, and %s rapidly becomes fully visible.\n", fred->both.name, pro_he(fred->both.gender)); ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~ %d execute2.c:378:3: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(cnum, "Your limbs have become visible again.\n", exbuf2); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ execute2.c:405:3: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(cnum, "The Remove Enchantment whirls its dissipative energies around you.\n", exbuf2); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ execute2.c:414:3: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(cnum, exbuf, exbuf2); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ execute2.c:423:3: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg(exbuf2); ^ ./internal.h:3:26: note: expanded from macro 'PrintMsg' #define PrintMsg(msg) (log_text(self, msg),\ ^ execute2.c:432:3: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(cnum, exbuf, exbuf2); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ execute2.c:443:3: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(cnum, exbuf, exbuf2); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ execute2.c:451:123: warning: implicit declaration of function 'pro_his' is invalid in C99 [-Wimplicit-function-declaration] sprintf(exbuf2, "%s seems to have stopped shivering, and %s skin is no longer flushed and damp.\n", fred->both.name, pro_his(fred->both.gender)); ^ execute2.c:451:123: warning: format specifies type 'char *' but the argument has type 'int' [-Wformat] sprintf(exbuf2, "%s seems to have stopped shivering, and %s skin is no longer flushed and damp.\n", fred->both.name, pro_his(fred->both.gender)); ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~ %d execute2.c:453:3: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(cnum, "Your fever suddenly abates. You feel much better.\n", exbuf2); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ execute2.c:462:3: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(cnum, "The numbness and heaviness falls from your limbs. You feel much better.\n", exbuf2); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ execute2.c:472:7: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(cnum, "The Delayed Effect spell hovering around you disintegrates.\n", exbuf2); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ execute2.c:481:3: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(cnum, exbuf, exbuf2); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ execute2.c:490:7: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(cnum, "The Permanency spell hovering around you disintegrates.\n", exbuf2); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ execute2.c:500:3: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(cnum, "Your circle of Protection flickers out.\n", exbuf2); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ execute2.c:514:7: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(cnum, "Everyone comes back up to normal speed.\n", exbuf); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ execute2.c:521:7: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(cnum, "The Haste on you is nulled.\n", exbuf); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ execute2.c:531:3: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(cnum, "The Time Stop on you is nulled.\n", exbuf); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ execute2.c:540:3: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(cnum, "Your body tingles and becomes visible again.\n", exbuf2); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ execute2.c:549:3: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(cnum, "Sight bursts in upon you again.\n", exbuf2); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ execute2.c:555:2: warning: implicit declaration of function 'clear_permstats' is invalid in C99 [-Wimplicit-function-declaration] clear_permstats(&(fred->both.perm)); ^ execute2.c:575:7: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(cnum, "The knife slides off of your Shield.\n", exbuf2); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ execute2.c:582:7: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(cnum, "The knives slide off of your Shield.\n", exbuf2); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ execute2.c:592:7: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(cnum, "The knife strikes you.\n", exbuf2); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ execute2.c:600:7: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(cnum, exbuf, exbuf2); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ execute2.c:614:7: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(cnum, "The Missile shatters on your Shield.\n", exbuf2); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ execute2.c:621:7: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(cnum, "The Missiles shatter on your Shield.\n", exbuf2); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ execute2.c:631:7: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(cnum, "The Missile strikes you.\n", exbuf2); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ execute2.c:639:7: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(cnum, exbuf, exbuf2); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ execute2.c:652:3: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(cnum, "The Cause Light Wounds spell tears into you.\n", exbuf2); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ execute2.c:660:3: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(cnum, exbuf, exbuf2); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ execute2.c:672:3: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(cnum, "The Cause Heavy Wounds spell tears painfully into you.\n", exbuf2); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ execute2.c:680:3: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(cnum, exbuf, exbuf2); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ execute2.c:692:3: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(cnum, "The Lightning Bolt strikes you, staggering and nearly deafening you.\n", exbuf2); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ execute2.c:698:132: warning: implicit declaration of function 'pro_him' is invalid in C99 [-Wimplicit-function-declaration] sprintf(exbuf2, "The %s Lightning Bolts strike %s, staggering %s.\n", number_name(zapl[SP__LIGHTNING_BOLT]), fred->both.name, pro_him(fred->both.gender)); ^ execute2.c:698:132: warning: format specifies type 'char *' but the argument has type 'int' [-Wformat] sprintf(exbuf2, "The %s Lightning Bolts strike %s, staggering %s.\n", number_name(zapl[SP__LIGHTNING_BOLT]), fred->both.name, pro_him(fred->both.gender)); ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~ %d execute2.c:700:3: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(cnum, exbuf, exbuf2); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ execute2.c:711:112: warning: implicit declaration of function 'pro_his' is invalid in C99 [-Wimplicit-function-declaration] sprintf(exbuf2, "The Fireball strikes %s, but the flames slide off %s Resist Heat aura.\n", fred->both.name, pro_his(fred->both.gender)); ^ execute2.c:711:112: warning: format specifies type 'char *' but the argument has type 'int' [-Wformat] sprintf(exbuf2, "The Fireball strikes %s, but the flames slide off %s Resist Heat aura.\n", fred->both.name, pro_his(fred->both.gender)); ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~ %d execute2.c:713:7: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(cnum, "The Fireball strikes you, but you feel only a slight warmth.\n", exbuf2); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ execute2.c:718:112: warning: implicit declaration of function 'pro_his' is invalid in C99 [-Wimplicit-function-declaration] sprintf(exbuf2, "The Fireballs strike %s, but the flames slide off %s Resist Heat aura.\n", fred->both.name, pro_his(fred->both.gender)); ^ execute2.c:718:112: warning: format specifies type 'char *' but the argument has type 'int' [-Wformat] sprintf(exbuf2, "The Fireballs strike %s, but the flames slide off %s Resist Heat aura.\n", fred->both.name, pro_his(fred->both.gender)); ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~ %d execute2.c:720:7: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(cnum, "The Fireballs strike you, but you feel only a slight warmth.\n", exbuf2); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ execute2.c:730:7: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(cnum, "The Fireball strikes you with a roar of flame.\n", exbuf2); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ execute2.c:738:7: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(cnum, exbuf, exbuf2); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ execute2.c:749:104: warning: implicit declaration of function 'pro_him' is invalid in C99 [-Wimplicit-function-declaration] sprintf(exbuf2, "The Counter-Spell around %s cancels the Fire Storm near %s.\n", fred->both.name, pro_him(fred->both.gender)); ^ execute2.c:749:104: warning: format specifies type 'char *' but the argument has type 'int' [-Wformat] sprintf(exbuf2, "The Counter-Spell around %s cancels the Fire Storm near %s.\n", fred->both.name, pro_him(fred->both.gender)); ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~ %d execute2.c:751:3: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(cnum, "The Counter-Spell cancels the Fire Storm in your vicinity.\n", exbuf2); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ execute2.c:757:117: warning: implicit declaration of function 'pro_his' is invalid in C99 [-Wimplicit-function-declaration] sprintf(exbuf2, "The Fire Storm washes over %s, who remains unharmed inside %s blue aura.\n", fred->both.name, pro_his(fred->both.gender)); ^ execute2.c:757:117: warning: format specifies type 'char *' but the argument has type 'int' [-Wformat] sprintf(exbuf2, "The Fire Storm washes over %s, who remains unharmed inside %s blue aura.\n", fred->both.name, pro_his(fred->both.gender)); ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~ %d execute2.c:759:3: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(cnum, "The Fire Storm washes over you, but you feel only a gentle warmth.\n", exbuf2); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ execute2.c:767:3: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(cnum, "The Fire Storm washes over you.\n", exbuf2); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ execute2.c:777:103: warning: implicit declaration of function 'pro_him' is invalid in C99 [-Wimplicit-function-declaration] sprintf(exbuf2, "The Counter-Spell around %s cancels the Ice Storm near %s.\n", fred->both.name, pro_him(fred->both.gender)); ^ execute2.c:777:103: warning: format specifies type 'char *' but the argument has type 'int' [-Wformat] sprintf(exbuf2, "The Counter-Spell around %s cancels the Ice Storm near %s.\n", fred->both.name, pro_him(fred->both.gender)); ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~ %d execute2.c:779:3: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(cnum, "The Counter-Spell cancels the Ice Storm in your vicinity.\n", exbuf2); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ execute2.c:788:116: warning: implicit declaration of function 'pro_his' is invalid in C99 [-Wimplicit-function-declaration] sprintf(exbuf2, "The Ice Storm washes over %s, who remains unharmed inside %s pink aura.\n", fred->both.name, pro_his(fred->both.gender)); ^ execute2.c:788:116: warning: format specifies type 'char *' but the argument has type 'int' [-Wformat] sprintf(exbuf2, "The Ice Storm washes over %s, who remains unharmed inside %s pink aura.\n", fred->both.name, pro_his(fred->both.gender)); ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~ %d execute2.c:790:3: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(cnum, "The Ice Storm washes over you, but you feel only a gentle coolness.\n", exbuf2); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ execute2.c:798:3: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(cnum, "The Ice Storm lashes at you.\n", exbuf2); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ execute2.c:807:108: warning: implicit declaration of function 'pro_his' is invalid in C99 [-Wimplicit-function-declaration] sprintf(exbuf2, "%s turns very pale and drops to %s knees, clutching at %s chest....\n", fred->both.name, pro_his(fred->both.gender), pro_his(fred->both.gender)); ^ execute2.c:807:108: warning: format specifies type 'char *' but the argument has type 'int' [-Wformat] sprintf(exbuf2, "%s turns very pale and drops to %s knees, clutching at %s chest....\n", fred->both.name, pro_his(fred->both.gender), pro_his(fred->both.gender)); ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~ %d execute2.c:807:136: warning: format specifies type 'char *' but the argument has type 'int' [-Wformat] sprintf(exbuf2, "%s turns very pale and drops to %s knees, clutching at %s chest....\n", fred->both.name, pro_his(fred->both.gender), pro_his(fred->both.gender)); ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~ %d execute2.c:809:6: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(cnum, "You feel a sudden pressure in your chest, as if an iron band was squeezing your heart. You fall to your knees as the world dims....\n", exbuf2); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ execute2.c:833:107: warning: implicit declaration of function 'pro_his' is invalid in C99 [-Wimplicit-function-declaration] sprintf(exbuf2, "The Cure Light Wounds spell weaves around %s, and %s wounds fade.\n", fred->both.name, pro_his(fred->both.gender)); ^ execute2.c:833:107: warning: format specifies type 'char *' but the argument has type 'int' [-Wformat] sprintf(exbuf2, "The Cure Light Wounds spell weaves around %s, and %s wounds fade.\n", fred->both.name, pro_his(fred->both.gender)); ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~ %d execute2.c:835:7: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(cnum, "The Cure Light Wounds spell weaves around you, and the pain of your wounds lessens.\n", exbuf2); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ execute2.c:841:152: warning: implicit declaration of function 'pro_his' is invalid in C99 [-Wimplicit-function-declaration] sprintf(exbuf2, "The %s Cure Light Wounds spells weave around %s, and %s wounds fade.\n", number_name(zapl[SP__CURE_LIGHT_WOUNDS]), fred->both.name, pro_his(fred->both.gender)); ^ execute2.c:841:152: warning: format specifies type 'char *' but the argument has type 'int' [-Wformat] sprintf(exbuf2, "The %s Cure Light Wounds spells weave around %s, and %s wounds fade.\n", number_name(zapl[SP__CURE_LIGHT_WOUNDS]), fred->both.name, pro_his(fred->both.gender)); ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~ %d execute2.c:843:7: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(cnum, exbuf, exbuf2); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ execute2.c:853:107: warning: implicit declaration of function 'pro_his' is invalid in C99 [-Wimplicit-function-declaration] sprintf(exbuf2, "The Cure Heavy Wounds spell weaves around %s, and %s wounds heal.\n", fred->both.name, pro_his(fred->both.gender)); ^ execute2.c:853:107: warning: format specifies type 'char *' but the argument has type 'int' [-Wformat] sprintf(exbuf2, "The Cure Heavy Wounds spell weaves around %s, and %s wounds heal.\n", fred->both.name, pro_his(fred->both.gender)); ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~ %d execute2.c:855:7: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(cnum, "The Cure Heavy Wounds spell weaves around you, and your wounds heal considerably.\n", exbuf2); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ execute2.c:861:152: warning: implicit declaration of function 'pro_his' is invalid in C99 [-Wimplicit-function-declaration] sprintf(exbuf2, "The %s Cure Heavy Wounds spells weave around %s, and %s wounds heal.\n", number_name(zapl[SP__CURE_HEAVY_WOUNDS]), fred->both.name, pro_his(fred->both.gender)); ^ execute2.c:861:152: warning: format specifies type 'char *' but the argument has type 'int' [-Wformat] sprintf(exbuf2, "The %s Cure Heavy Wounds spells weave around %s, and %s wounds heal.\n", number_name(zapl[SP__CURE_HEAVY_WOUNDS]), fred->both.name, pro_his(fred->both.gender)); ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~ %d execute2.c:863:7: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(cnum, exbuf, exbuf2); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ execute2.c:871:120: warning: implicit declaration of function 'pro_his' is invalid in C99 [-Wimplicit-function-declaration] sprintf(exbuf2, "%s seems to have stopped shivering, and %s skin is no longer flushed and damp.\n", fred->both.name, pro_his(fred->both.gender)); ^ execute2.c:871:120: warning: format specifies type 'char *' but the argument has type 'int' [-Wformat] sprintf(exbuf2, "%s seems to have stopped shivering, and %s skin is no longer flushed and damp.\n", fred->both.name, pro_his(fred->both.gender)); ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~ %d execute2.c:873:7: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(cnum, "Your fever suddenly abates. You feel much better.\n", exbuf2); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ execute2.c:882:146: warning: implicit declaration of function 'pro_he' is invalid in C99 [-Wimplicit-function-declaration] sprintf(exbuf2, "The Raise Dead spell burns through %s. Although %s is not dead, the spell has a powerful healing effect.\n", fred->both.name, pro_he(fred->both.gender)); ^ execute2.c:882:146: warning: format specifies type 'char *' but the argument has type 'int' [-Wformat] sprintf(exbuf2, "The Raise Dead spell burns through %s. Although %s is not dead, the spell has a powerful healing effect.\n", fred->both.name, pro_he(fred->both.gender)); ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~ %d execute2.c:884:7: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(cnum, "The Raise Dead spell burns through you. Although you aren't dead, the spell has a powerful healing influence.\n", exbuf2); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ execute2.c:890:186: warning: implicit declaration of function 'pro_he' is invalid in C99 [-Wimplicit-function-declaration] sprintf(exbuf2, "The %s Raise Dead spells burn through %s. Although %s is not dead, the spells have a powerful healing effect.\n", number_name(zapl[SP__RAISE_DEAD]), fred->both.name, pro_he(fred->both.gender)); ^ execute2.c:890:186: warning: format specifies type 'char *' but the argument has type 'int' [-Wformat] sprintf(exbuf2, "The %s Raise Dead spells burn through %s. Although %s is not dead, the spells have a powerful healing effect.\n", number_name(zapl[SP__RAISE_DEAD]), fred->both.name, pro_he(fred->both.gender)); ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~ %d execute2.c:892:7: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(cnum, exbuf, exbuf2); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ execute2.c:905:3: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(cnum, "You are in perfect health again.\n", exbuf2); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ execute2.c:913:158: warning: implicit declaration of function 'pro_his' is invalid in C99 [-Wimplicit-function-declaration] sprintf(exbuf2, "%s twitches, glows, and then jumps to %s feet! Except for a bit of incipient mold, %s is in perfect health again.\n", fred->both.name, pro_his(fred->both.gender), pro_he(fred->both.gender)); ^ execute2.c:913:186: warning: implicit declaration of function 'pro_he' is invalid in C99 [-Wimplicit-function-declaration] sprintf(exbuf2, "%s twitches, glows, and then jumps to %s feet! Except for a bit of incipient mold, %s is in perfect health again.\n", fred->both.name, pro_his(fred->both.gender), pro_he(fred->both.gender)); ^ execute2.c:913:158: warning: format specifies type 'char *' but the argument has type 'int' [-Wformat] sprintf(exbuf2, "%s twitches, glows, and then jumps to %s feet! Except for a bit of incipient mold, %s is in perfect health again.\n", fred->both.name, pro_his(fred->both.gender), pro_he(fred->both.gender)); ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~ %d execute2.c:913:186: warning: format specifies type 'char *' but the argument has type 'int' [-Wformat] sprintf(exbuf2, "%s twitches, glows, and then jumps to %s feet! Except for a bit of incipient mold, %s is in perfect health again.\n", fred->both.name, pro_his(fred->both.gender), pro_he(fred->both.gender)); ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~ %d execute2.c:915:3: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(cnum, "You are suddenly aware of a blast of energy running down every nerve! This is something of a shock, since you had just gotten used to being dead. Oh, well -- you'll be back eventually.\n", exbuf2); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ execute2.c:920:6: warning: implicit declaration of function 'clear_out_spells' is invalid in C99 [-Wimplicit-function-declaration] clear_out_spells(fred, wizflag); ^ 132 warnings generated. cc -O2 -pipe -Wno-return-type -fstack-protector-strong -fno-strict-aliasing -I/usr/local/include -I./bitmaps -DBODYFONT=\"-*-times-medium-r-*--14-*\" -DBODYFONT_ALT=\"-*-helvetica-medium-r-*--12-*\" -DBODYFONT_ALT2=\"fixed\" -DTRANSCRIPTDIR=\"/tmp\" -c emonster.c -o emonster.o emonster.c:23:18: warning: implicit declaration of function 'random' is invalid in C99 [-Wimplicit-function-declaration] int numsyl = random()%3+2; ^ emonster.c:25:5: warning: implicitly declaring library function 'strcpy' with type 'char *(char *, const char *)' [-Wimplicit-function-declaration] strcpy(bigbuf, ""); ^ emonster.c:25:5: note: include the header or explicitly provide a declaration for 'strcpy' emonster.c:31:2: warning: implicitly declaring library function 'strcat' with type 'char *(char *, const char *)' [-Wimplicit-function-declaration] strcat(bigbuf, kuruk_syl[new]); ^ emonster.c:31:2: note: include the header or explicitly provide a declaration for 'strcat' emonster.c:48:38: warning: implicitly declaring library function 'islower' with type 'int (int)' [-Wimplicit-function-declaration] if ((ix==0 || bigbuf[ix-1]==' ') && islower(bigbuf[ix])) ^ emonster.c:48:38: note: include the header or explicitly provide a declaration for 'islower' emonster.c:49:19: warning: implicitly declaring library function 'toupper' with type 'int (int)' [-Wimplicit-function-declaration] bigbuf[ix] = toupper(bigbuf[ix]); ^ emonster.c:49:19: note: include the header or explicitly provide a declaration for 'toupper' emonster.c:61:18: warning: implicit declaration of function 'random' is invalid in C99 [-Wimplicit-function-declaration] int numsyl = random()%3+1; ^ emonster.c:99:33: warning: implicitly declaring library function 'realloc' with type 'void *(void *, unsigned long)' [-Wimplicit-function-declaration] self->cre = (struct creature *)realloc(self->cre, sizeof(struct creature) * self->cre_size); ^ emonster.c:99:33: note: include the header or explicitly provide a declaration for 'realloc' emonster.c:149:26: warning: implicitly declaring library function 'malloc' with type 'void *(unsigned long)' [-Wimplicit-function-declaration] thud->name = (char *)malloc(strlen(bigbuf)+1); ^ emonster.c:149:26: note: include the header or explicitly provide a declaration for 'malloc' emonster.c:149:33: warning: implicitly declaring library function 'strlen' with type 'unsigned long (const char *)' [-Wimplicit-function-declaration] thud->name = (char *)malloc(strlen(bigbuf)+1); ^ emonster.c:149:33: note: include the header or explicitly provide a declaration for 'strlen' emonster.c:160:5: warning: implicit declaration of function 'erase_queries' is invalid in C99 [-Wimplicit-function-declaration] erase_queries(self); ^ emonster.c:181:7: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg("ERROR: wrong type of turn in execute_monsters()\n"); ^ ./internal.h:3:26: note: expanded from macro 'PrintMsg' #define PrintMsg(msg) (log_text(self, msg),\ ^ emonster.c:195:8: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg(bigbuf); ^ ./internal.h:3:26: note: expanded from macro 'PrintMsg' #define PrintMsg(msg) (log_text(self, msg),\ ^ emonster.c:202:8: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg(bigbuf); ^ ./internal.h:3:26: note: expanded from macro 'PrintMsg' #define PrintMsg(msg) (log_text(self, msg),\ ^ emonster.c:209:8: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg(bigbuf); ^ ./internal.h:3:26: note: expanded from macro 'PrintMsg' #define PrintMsg(msg) (log_text(self, msg),\ ^ emonster.c:220:3: warning: implicit declaration of function 'add_query' is invalid in C99 [-Wimplicit-function-declaration] add_query(self, thud->owner, qtype, ix + 256*(jx+numattacks)); ^ emonster.c:228:7: warning: cast to smaller integer type 'int' from 'char *' [-Wpointer-to-int-cast] jx = (int)(self->querylist[qnum].rock); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ emonster.c:262:12: warning: implicit declaration of function 'random' is invalid in C99 [-Wimplicit-function-declaration] kx = random() % (numtwiz + numtcre); ^ emonster.c:265:13: warning: implicit declaration of function 'IndexOfTarget' is invalid in C99 [-Wimplicit-function-declaration] target = IndexOfTarget((game *)self, targettype, kx) & ^ emonster.c:271:13: warning: implicit declaration of function 'IndexOfTarget' is invalid in C99 [-Wimplicit-function-declaration] target = IndexOfTarget((game *)self, targettype, kx) & ^ emonster.c:294:14: warning: implicit declaration of function 'IndexOfTarget' is invalid in C99 [-Wimplicit-function-declaration] ival = IndexOfTarget((game *)self, tart, kx); ^ emonster.c:353:4: warning: implicit declaration of function 'pro_himself' is invalid in C99 [-Wimplicit-function-declaration] pro_himself(fred->both.gender)); ^ emonster.c:353:4: warning: format specifies type 'char *' but the argument has type 'int' [-Wformat] pro_himself(fred->both.gender)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ emonster.c:354:6: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg(bigbuf); ^ ./internal.h:3:26: note: expanded from macro 'PrintMsg' #define PrintMsg(msg) (log_text(self, msg),\ ^ emonster.c:363:21: warning: implicit declaration of function 'pro_him' is invalid in C99 [-Wimplicit-function-declaration] fred->both.name, pro_him(fred->both.gender)); ^ emonster.c:363:21: warning: format specifies type 'char *' but the argument has type 'int' [-Wformat] fred->both.name, pro_him(fred->both.gender)); ^~~~~~~~~~~~~~~~~~~~~~~~~~ emonster.c:365:6: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(cnum, bigbuf, bigbuf2); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ emonster.c:376:6: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(cnum, bigbuf, bigbuf2); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ emonster.c:387:33: warning: implicit declaration of function 'pro_his' is invalid in C99 [-Wimplicit-function-declaration] thud->name, fred->both.name, pro_his(fred->both.gender)); ^ emonster.c:387:33: warning: format specifies type 'char *' but the argument has type 'int' [-Wformat] thud->name, fred->both.name, pro_his(fred->both.gender)); ^~~~~~~~~~~~~~~~~~~~~~~~~~ emonster.c:389:3: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(cnum, bigbuf, bigbuf2); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ emonster.c:397:3: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(cnum, bigbuf, bigbuf2); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ emonster.c:408:33: warning: implicit declaration of function 'pro_his' is invalid in C99 [-Wimplicit-function-declaration] thud->name, fred->both.name, pro_his(fred->both.gender)); ^ emonster.c:408:33: warning: format specifies type 'char *' but the argument has type 'int' [-Wformat] thud->name, fred->both.name, pro_his(fred->both.gender)); ^~~~~~~~~~~~~~~~~~~~~~~~~~ emonster.c:410:3: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(cnum, bigbuf, bigbuf2); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ emonster.c:418:3: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(cnum, bigbuf, bigbuf2); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ emonster.c:428:4: warning: implicit declaration of function 'pro_himself' is invalid in C99 [-Wimplicit-function-declaration] pro_himself(fred->both.gender)); ^ emonster.c:428:4: warning: format specifies type 'char *' but the argument has type 'int' [-Wformat] pro_himself(fred->both.gender)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ emonster.c:429:6: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg(bigbuf); ^ ./internal.h:3:26: note: expanded from macro 'PrintMsg' #define PrintMsg(msg) (log_text(self, msg),\ ^ emonster.c:435:3: warning: implicit declaration of function 'log_text' is invalid in C99 [-Wimplicit-function-declaration] PrintMsg2(cnum, bigbuf, bigbuf2); ^ ./internal.h:6:45: note: expanded from macro 'PrintMsg2' #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ ^ 39 warnings generated. cc -O2 -pipe -Wno-return-type -fstack-protector-strong -fno-strict-aliasing -I/usr/local/include -I./bitmaps -DBODYFONT=\"-*-times-medium-r-*--14-*\" -DBODYFONT_ALT=\"-*-helvetica-medium-r-*--12-*\" -DBODYFONT_ALT2=\"fixed\" -DTRANSCRIPTDIR=\"/tmp\" -c etran.c -o etran.o etran.c:15:29: warning: implicitly declaring library function 'malloc' with type 'void *(unsigned long)' [-Wimplicit-function-declaration] self->gamelog = (char *)malloc(sizeof(char) * self->gamelog_size); ^ etran.c:15:29: note: include the header or explicitly provide a declaration for 'malloc' etran.c:16:5: warning: implicitly declaring library function 'strcpy' with type 'char *(char *, const char *)' [-Wimplicit-function-declaration] strcpy(self->gamelog, ""); ^ etran.c:16:5: note: include the header or explicitly provide a declaration for 'strcpy' etran.c:30:11: warning: implicitly declaring library function 'strlen' with type 'unsigned long (const char *)' [-Wimplicit-function-declaration] len = strlen(str); ^ etran.c:30:11: note: include the header or explicitly provide a declaration for 'strlen' etran.c:35:26: warning: implicitly declaring library function 'realloc' with type 'void *(void *, unsigned long)' [-Wimplicit-function-declaration] self->gamelog = (char *)realloc(self->gamelog, sizeof(char) * self->gamelog_size); ^ etran.c:35:26: note: include the header or explicitly provide a declaration for 'realloc' 4 warnings generated. cc -O2 -pipe -Wno-return-type -fstack-protector-strong -fno-strict-aliasing -I/usr/local/include -I./bitmaps -DBODYFONT=\"-*-times-medium-r-*--14-*\" -DBODYFONT_ALT=\"-*-helvetica-medium-r-*--12-*\" -DBODYFONT_ALT2=\"fixed\" -DTRANSCRIPTDIR=\"/tmp\" -c main.c -o main.o main.c:45:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] main(argc, argv) ^ main.c:64:2: warning: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Wimplicit-function-declaration] exit(12); ^ main.c:64:2: note: include the header or explicitly provide a declaration for 'exit' main.c:74:34: warning: implicitly declaring library function 'malloc' with type 'void *(unsigned long)' [-Wimplicit-function-declaration] displist[numplayers] = (char *)malloc(strlen(argv[ix])+6); ^ main.c:74:34: note: include the header or explicitly provide a declaration for 'malloc' main.c:103:8: warning: implicit declaration of function 'win_init' is invalid in C99 [-Wimplicit-function-declaration] val = win_init(ix); ^ main.c:124:6: warning: implicit declaration of function 'clear_answers' is invalid in C99 [-Wimplicit-function-declaration] clear_answers(py); ^ main.c:128:4: warning: implicit declaration of function 'add_answer' is invalid in C99 [-Wimplicit-function-declaration] add_answer(py, "Enter your gestures for your Hastened move.", ^ main.c:144:4: warning: implicit declaration of function 'add_answer' is invalid in C99 [-Wimplicit-function-declaration] add_answer(py, "Other people are Hastened this turn.", ^ main.c:154:6: warning: implicit declaration of function 'redraw_column' is invalid in C99 [-Wimplicit-function-declaration] redraw_column(py); ^ main.c:155:6: warning: implicit declaration of function 'draw_button' is invalid in C99 [-Wimplicit-function-declaration] draw_button(py, 0, 1); /* redraw turn-end button */ ^ main.c:156:6: warning: implicit declaration of function 'redraw_queries_only' is invalid in C99 [-Wimplicit-function-declaration] redraw_queries_only(py, 0); ^ main.c:159:2: warning: implicit declaration of function 'mainloop' is invalid in C99 [-Wimplicit-function-declaration] mainloop(); ^ main.c:186:2: warning: implicit declaration of function 'clear_answers' is invalid in C99 [-Wimplicit-function-declaration] clear_answers(py); ^ main.c:188:6: warning: implicit declaration of function 'add_answer' is invalid in C99 [-Wimplicit-function-declaration] add_answer(py, "Do you want to save a transcript of this game?", ^ main.c:190:2: warning: implicit declaration of function 'redraw_column' is invalid in C99 [-Wimplicit-function-declaration] redraw_column(py); ^ main.c:191:2: warning: implicit declaration of function 'draw_button' is invalid in C99 [-Wimplicit-function-declaration] draw_button(py, 0, 1); /* redraw turn-end button */ ^ main.c:192:2: warning: implicit declaration of function 'redraw_queries_only' is invalid in C99 [-Wimplicit-function-declaration] redraw_queries_only(py, 0); ^ main.c:195:5: warning: implicit declaration of function 'mainloop' is invalid in C99 [-Wimplicit-function-declaration] mainloop(); ^ main.c:202:51: warning: implicit declaration of function 'getpid' is invalid in C99 [-Wimplicit-function-declaration] sprintf(fname, "%s/spellcast-%d", TRANSCRIPTDIR, getpid()); ^ main.c:360:5: warning: implicit declaration of function 'init_bitmaps' is invalid in C99 [-Wimplicit-function-declaration] init_bitmaps(py); ^ main.c:361:5: warning: implicit declaration of function 'init_xtext' is invalid in C99 [-Wimplicit-function-declaration] init_xtext(pnum); ^ main.c:362:5: warning: implicit declaration of function 'init_query' is invalid in C99 [-Wimplicit-function-declaration] init_query(py); ^ main.c:363:5: warning: implicit declaration of function 'init_stats' is invalid in C99 [-Wimplicit-function-declaration] init_stats(py); ^ main.c:364:5: warning: implicit declaration of function 'init_talk' is invalid in C99 [-Wimplicit-function-declaration] init_talk(py); ^ main.c:426:6: warning: implicit declaration of function 'dump_text' is invalid in C99 [-Wimplicit-function-declaration] dump_text(ix, msg); ^ main.c:441:3: warning: implicit declaration of function 'dump_text' is invalid in C99 [-Wimplicit-function-declaration] dump_text(ix, msg1); ^ main.c:445:3: warning: implicit declaration of function 'dump_text' is invalid in C99 [-Wimplicit-function-declaration] dump_text(ix, msgelse); ^ main.c:461:3: warning: implicit declaration of function 'dump_text' is invalid in C99 [-Wimplicit-function-declaration] dump_text(ix, msg1); ^ main.c:465:3: warning: implicit declaration of function 'dump_text' is invalid in C99 [-Wimplicit-function-declaration] dump_text(ix, msg2); ^ main.c:469:3: warning: implicit declaration of function 'dump_text' is invalid in C99 [-Wimplicit-function-declaration] dump_text(ix, msgelse); ^ 29 warnings generated. cc -O2 -pipe -Wno-return-type -fstack-protector-strong -fno-strict-aliasing -I/usr/local/include -I./bitmaps -DBODYFONT=\"-*-times-medium-r-*--14-*\" -DBODYFONT_ALT=\"-*-helvetica-medium-r-*--12-*\" -DBODYFONT_ALT2=\"fixed\" -DTRANSCRIPTDIR=\"/tmp\" -c xtext.c -o xtext.o xtext.c:45:36: warning: implicitly declaring library function 'malloc' with type 'void *(unsigned long)' [-Wimplicit-function-declaration] py->lineindex = (struct line *)malloc(sizeof(struct line)*py->lineindex_size); ^ xtext.c:45:36: note: include the header or explicitly provide a declaration for 'malloc' xtext.c:104:33: warning: implicitly declaring library function 'realloc' with type 'void *(void *, unsigned long)' [-Wimplicit-function-declaration] py->lineindex = (struct line *)realloc(py->lineindex, ^ xtext.c:104:33: note: include the header or explicitly provide a declaration for 'realloc' 2 warnings generated. cc -O2 -pipe -Wno-return-type -fstack-protector-strong -fno-strict-aliasing -I/usr/local/include -I./bitmaps -DBODYFONT=\"-*-times-medium-r-*--14-*\" -DBODYFONT_ALT=\"-*-helvetica-medium-r-*--12-*\" -DBODYFONT_ALT2=\"fixed\" -DTRANSCRIPTDIR=\"/tmp\" -c xquery.c -o xquery.o xquery.c:47:36: warning: implicitly declaring library function 'malloc' with type 'void *(unsigned long)' [-Wimplicit-function-declaration] py->answers = (struct answer *)malloc(sizeof(struct answer) * py->answers_size); ^ xquery.c:47:36: note: include the header or explicitly provide a declaration for 'malloc' xquery.c:72:2: warning: implicitly declaring library function 'free' with type 'void (void *)' [-Wimplicit-function-declaration] free(tempstringlist); ^ xquery.c:72:2: note: include the header or explicitly provide a declaration for 'free' xquery.c:107:33: warning: implicitly declaring library function 'realloc' with type 'void *(void *, unsigned long)' [-Wimplicit-function-declaration] py->answers = (struct answer *)realloc(py->answers, ^ xquery.c:107:33: note: include the header or explicitly provide a declaration for 'realloc' xquery.c:165:5: warning: implicit declaration of function 'redraw_scrollbar' is invalid in C99 [-Wimplicit-function-declaration] redraw_scrollbar(&(py->siquery)); ^ xquery.c:291:12: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] static qu_buf[MAXQUESTIONLENGTH], ans_buf[MAXANSWERLENGTH]; ~~~~~~ ^ xquery.c:291:39: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] static qu_buf[MAXQUESTIONLENGTH], ans_buf[MAXANSWERLENGTH]; ~~~~~~ ^ xquery.c:313:14: warning: incompatible pointer types passing 'int[256]' to parameter of type 'char *' [-Wincompatible-pointer-types] strcpy(qu_buf, "What spell do you want to cast with your left hand?"); ^~~~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ xquery.c:317:14: warning: incompatible pointer types passing 'int[256]' to parameter of type 'char *' [-Wincompatible-pointer-types] strcpy(qu_buf, "What spell do you want to cast with your right hand?"); ^~~~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ xquery.c:336:10: warning: incompatible pointer types passing 'int[64]' to parameter of type 'char *' [-Wincompatible-pointer-types] strcpy(ans_buf, ""); ^~~~~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ xquery.c:337:18: warning: incompatible pointer types passing 'int[256]' to parameter of type 'char *' [-Wincompatible-pointer-types] add_answer(py, qu_buf, ans_buf, 0, 0, &(qlist[ix]), (long)hlist); ^~~~~~ xquery.c:337:26: warning: incompatible pointer types passing 'int[64]' to parameter of type 'char *' [-Wincompatible-pointer-types] add_answer(py, qu_buf, ans_buf, 0, 0, &(qlist[ix]), (long)hlist); ^~~~~~~ xquery.c:341:8: warning: cast to smaller integer type 'int' from 'char *' [-Wpointer-to-int-cast] jx = (int)(qlist[ix].rock); ^~~~~~~~~~~~~~~~~~~~~ xquery.c:350:11: warning: incompatible pointer types passing 'int[256]' to parameter of type 'char *' [-Wincompatible-pointer-types] sprintf(qu_buf, "What gesture do you want %s's %s hand to make?", ^~~~~~ /usr/include/stdio.h:286:31: note: passing argument to parameter here int sprintf(char * __restrict, const char * __restrict, ...); ^ xquery.c:353:10: warning: incompatible pointer types passing 'int[64]' to parameter of type 'char *' [-Wincompatible-pointer-types] strcpy(ans_buf, ""); ^~~~~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ xquery.c:354:18: warning: incompatible pointer types passing 'int[256]' to parameter of type 'char *' [-Wincompatible-pointer-types] add_answer(py, qu_buf, ans_buf, 0, 0, &(qlist[ix]), 0); ^~~~~~ xquery.c:354:26: warning: incompatible pointer types passing 'int[64]' to parameter of type 'char *' [-Wincompatible-pointer-types] add_answer(py, qu_buf, ans_buf, 0, 0, &(qlist[ix]), 0); ^~~~~~~ xquery.c:363:15: warning: incompatible pointer types passing 'int[256]' to parameter of type 'char *' [-Wincompatible-pointer-types] sprintf(qu_buf, "Which spell do you want to delay?"); ^~~~~~ /usr/include/stdio.h:286:31: note: passing argument to parameter here int sprintf(char * __restrict, const char * __restrict, ...); ^ xquery.c:367:15: warning: incompatible pointer types passing 'int[256]' to parameter of type 'char *' [-Wincompatible-pointer-types] sprintf(qu_buf, "Which spell do you want to make permanent?"); ^~~~~~ /usr/include/stdio.h:286:31: note: passing argument to parameter here int sprintf(char * __restrict, const char * __restrict, ...); ^ xquery.c:374:10: warning: incompatible pointer types passing 'int[64]' to parameter of type 'char *' [-Wincompatible-pointer-types] strcpy(ans_buf, ""); ^~~~~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ xquery.c:375:18: warning: incompatible pointer types passing 'int[256]' to parameter of type 'char *' [-Wincompatible-pointer-types] add_answer(py, qu_buf, ans_buf, 0, 0, &(qlist[ix]), 0); ^~~~~~ xquery.c:375:26: warning: incompatible pointer types passing 'int[64]' to parameter of type 'char *' [-Wincompatible-pointer-types] add_answer(py, qu_buf, ans_buf, 0, 0, &(qlist[ix]), 0); ^~~~~~~ xquery.c:380:15: warning: cast to smaller integer type 'int' from 'char *' [-Wpointer-to-int-cast] spelllist[(int)qlist[ix].rock].name); ^~~~~~~~~~~~~~~~~~~ xquery.c:379:11: warning: incompatible pointer types passing 'int[256]' to parameter of type 'char *' [-Wincompatible-pointer-types] sprintf(qu_buf, "Do you want to release the %s from the Delayed Effect?", ^~~~~~ /usr/include/stdio.h:286:31: note: passing argument to parameter here int sprintf(char * __restrict, const char * __restrict, ...); ^ xquery.c:381:10: warning: incompatible pointer types passing 'int[64]' to parameter of type 'char *' [-Wincompatible-pointer-types] strcpy(ans_buf, "No"); ^~~~~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ xquery.c:382:18: warning: incompatible pointer types passing 'int[256]' to parameter of type 'char *' [-Wincompatible-pointer-types] add_answer(py, qu_buf, ans_buf, 1, 0, &(qlist[ix]), 0); ^~~~~~ xquery.c:382:26: warning: incompatible pointer types passing 'int[64]' to parameter of type 'char *' [-Wincompatible-pointer-types] add_answer(py, qu_buf, ans_buf, 1, 0, &(qlist[ix]), 0); ^~~~~~~ xquery.c:388:15: warning: incompatible pointer types passing 'int[256]' to parameter of type 'char *' [-Wincompatible-pointer-types] sprintf(qu_buf, "Which of %s's hands do you want to paralyze?", ^~~~~~ /usr/include/stdio.h:286:31: note: passing argument to parameter here int sprintf(char * __restrict, const char * __restrict, ...); ^ xquery.c:392:15: warning: incompatible pointer types passing 'int[256]' to parameter of type 'char *' [-Wincompatible-pointer-types] sprintf(qu_buf, "Which of %s's hands do you want to control?", ^~~~~~ /usr/include/stdio.h:286:31: note: passing argument to parameter here int sprintf(char * __restrict, const char * __restrict, ...); ^ xquery.c:395:10: warning: incompatible pointer types passing 'int[64]' to parameter of type 'char *' [-Wincompatible-pointer-types] strcpy(ans_buf, ""); ^~~~~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ xquery.c:396:18: warning: incompatible pointer types passing 'int[256]' to parameter of type 'char *' [-Wincompatible-pointer-types] add_answer(py, qu_buf, ans_buf, 0, 0, &(qlist[ix]), 0); ^~~~~~ xquery.c:396:26: warning: incompatible pointer types passing 'int[64]' to parameter of type 'char *' [-Wincompatible-pointer-types] add_answer(py, qu_buf, ans_buf, 0, 0, &(qlist[ix]), 0); ^~~~~~~ xquery.c:399:11: warning: incompatible pointer types passing 'int[256]' to parameter of type 'char *' [-Wincompatible-pointer-types] sprintf(qu_buf, "Which type of elemental do you want to summon?"); ^~~~~~ /usr/include/stdio.h:286:31: note: passing argument to parameter here int sprintf(char * __restrict, const char * __restrict, ...); ^ xquery.c:400:10: warning: incompatible pointer types passing 'int[64]' to parameter of type 'char *' [-Wincompatible-pointer-types] strcpy(ans_buf, ""); ^~~~~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ xquery.c:401:18: warning: incompatible pointer types passing 'int[256]' to parameter of type 'char *' [-Wincompatible-pointer-types] add_answer(py, qu_buf, ans_buf, 0, 0, &(qlist[ix]), 0); ^~~~~~ xquery.c:401:26: warning: incompatible pointer types passing 'int[64]' to parameter of type 'char *' [-Wincompatible-pointer-types] add_answer(py, qu_buf, ans_buf, 0, 0, &(qlist[ix]), 0); ^~~~~~~ xquery.c:404:8: warning: cast to smaller integer type 'int' from 'char *' [-Wpointer-to-int-cast] jx = (int)(qlist[ix].rock); ^~~~~~~~~~~~~~~~~~~~~ xquery.c:409:12: warning: incompatible pointer types passing 'int[256]' to parameter of type 'char *' [-Wincompatible-pointer-types] sprintf(qu_buf, "Whom do you want %s to attack?", ^~~~~~ /usr/include/stdio.h:286:31: note: passing argument to parameter here int sprintf(char * __restrict, const char * __restrict, ...); ^ xquery.c:414:12: warning: incompatible pointer types passing 'int[256]' to parameter of type 'char *' [-Wincompatible-pointer-types] sprintf(qu_buf, "Whom do you want %s's first attack to be at?", ^~~~~~ /usr/include/stdio.h:286:31: note: passing argument to parameter here int sprintf(char * __restrict, const char * __restrict, ...); ^ xquery.c:419:12: warning: incompatible pointer types passing 'int[256]' to parameter of type 'char *' [-Wincompatible-pointer-types] sprintf(qu_buf, "Whom do you want %s's second attack to be at?", ^~~~~~ /usr/include/stdio.h:286:31: note: passing argument to parameter here int sprintf(char * __restrict, const char * __restrict, ...); ^ xquery.c:424:12: warning: incompatible pointer types passing 'int[256]' to parameter of type 'char *' [-Wincompatible-pointer-types] sprintf(qu_buf, "ERROR: Query about %d (%d)", spellnum, attnum); ^~~~~~ /usr/include/stdio.h:286:31: note: passing argument to parameter here int sprintf(char * __restrict, const char * __restrict, ...); ^ xquery.c:429:14: warning: incompatible pointer types passing 'int[64]' to parameter of type 'char *' [-Wincompatible-pointer-types] strcpy(ans_buf, "nobody"); ^~~~~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ xquery.c:432:10: warning: implicit declaration of function 'IndexOfTarget' is invalid in C99 [-Wimplicit-function-declaration] kx = (IndexOfTarget(gameval, QuVal_Target_Wizard, jx) & ^ xquery.c:436:15: warning: incompatible pointer types passing 'int[64]' to parameter of type 'char *' [-Wincompatible-pointer-types] strcpy(ans_buf, NameOfTarget(gameval, ^~~~~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ xquery.c:442:18: warning: incompatible pointer types passing 'int[256]' to parameter of type 'char *' [-Wincompatible-pointer-types] add_answer(py, qu_buf, ans_buf, 1, answer_init, &(qlist[ix]), 0); ^~~~~~ xquery.c:442:26: warning: incompatible pointer types passing 'int[64]' to parameter of type 'char *' [-Wincompatible-pointer-types] add_answer(py, qu_buf, ans_buf, 1, answer_init, &(qlist[ix]), 0); ^~~~~~~ xquery.c:449:8: warning: cast to smaller integer type 'int' from 'char *' [-Wpointer-to-int-cast] jx = (int)(qlist[ix].rock); ^~~~~~~~~~~~~~~~~~~~~ xquery.c:460:15: warning: incompatible pointer types passing 'int[256]' to parameter of type 'char *' [-Wincompatible-pointer-types] sprintf(qu_buf, "Who do you want to stab at (%s)?", handage); ^~~~~~ /usr/include/stdio.h:286:31: note: passing argument to parameter here int sprintf(char * __restrict, const char * __restrict, ...); ^ xquery.c:462:15: warning: incompatible pointer types passing 'int[256]' to parameter of type 'char *' [-Wincompatible-pointer-types] sprintf(qu_buf, "Who do you want to cast %s at (%s)?", ^~~~~~ /usr/include/stdio.h:286:31: note: passing argument to parameter here int sprintf(char * __restrict, const char * __restrict, ...); ^ xquery.c:466:14: warning: incompatible pointer types passing 'int[64]' to parameter of type 'char *' [-Wincompatible-pointer-types] strcpy(ans_buf, "nobody"); ^~~~~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ xquery.c:469:10: warning: implicit declaration of function 'IndexOfTarget' is invalid in C99 [-Wimplicit-function-declaration] kx = (IndexOfTarget(gameval, QuVal_Target_Wizard, jx) & ^ xquery.c:473:15: warning: incompatible pointer types passing 'int[64]' to parameter of type 'char *' [-Wincompatible-pointer-types] strcpy(ans_buf, NameOfTarget(gameval, ^~~~~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ xquery.c:477:12: warning: incompatible pointer types passing 'int[64]' to parameter of type 'char *' [-Wincompatible-pointer-types] strcat(ans_buf, " [invisible]"); ^~~~~~~ /usr/include/string.h:80:31: note: passing argument to parameter here char *strcat(char * __restrict, const char * __restrict); ^ xquery.c:484:14: warning: incompatible pointer types passing 'int[64]' to parameter of type 'char *' [-Wincompatible-pointer-types] strcpy(ans_buf, "nobody"); ^~~~~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ xquery.c:487:10: warning: implicit declaration of function 'IndexOfTarget' is invalid in C99 [-Wimplicit-function-declaration] kx = (IndexOfTarget(gameval, QuVal_Target_Wizard, jx) & ^ xquery.c:491:15: warning: incompatible pointer types passing 'int[64]' to parameter of type 'char *' [-Wincompatible-pointer-types] strcpy(ans_buf, NameOfTarget(gameval, ^~~~~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ xquery.c:495:12: warning: incompatible pointer types passing 'int[64]' to parameter of type 'char *' [-Wincompatible-pointer-types] strcat(ans_buf, " [invisible]"); ^~~~~~~ /usr/include/string.h:80:31: note: passing argument to parameter here char *strcat(char * __restrict, const char * __restrict); ^ xquery.c:500:18: warning: incompatible pointer types passing 'int[256]' to parameter of type 'char *' [-Wincompatible-pointer-types] add_answer(py, qu_buf, ans_buf, 1, answer_init, &(qlist[ix]), 0); ^~~~~~ xquery.c:500:26: warning: incompatible pointer types passing 'int[64]' to parameter of type 'char *' [-Wincompatible-pointer-types] add_answer(py, qu_buf, ans_buf, 1, answer_init, &(qlist[ix]), 0); ^~~~~~~ xquery.c:519:2: warning: implicit declaration of function 'redraw_column' is invalid in C99 [-Wimplicit-function-declaration] redraw_column(py); ^ xquery.c:520:2: warning: implicit declaration of function 'draw_button' is invalid in C99 [-Wimplicit-function-declaration] draw_button(py, 0, 1); /* redraw turn-end button */ ^ xquery.c:524:5: warning: implicit declaration of function 'mainloop' is invalid in C99 [-Wimplicit-function-declaration] mainloop(); ^ xquery.c:539:5: warning: implicit declaration of function 'draw_frame' is invalid in C99 [-Wimplicit-function-declaration] draw_frame(py, &py->query_rect); ^ xquery.c:665:5: warning: implicit declaration of function 'adjust_rect' is invalid in C99 [-Wimplicit-function-declaration] adjust_rect(&py->query_rect); ^ xquery.c:666:5: warning: implicit declaration of function 'backing_store' is invalid in C99 [-Wimplicit-function-declaration] backing_store(py, &py->query_rect); ^ xquery.c:668:5: warning: implicit declaration of function 'query_motion' is invalid in C99 [-Wimplicit-function-declaration] query_motion(py, xpos, ypos, button); ^ xquery.c:764:5: warning: implicit declaration of function 'backing_restore' is invalid in C99 [-Wimplicit-function-declaration] backing_restore(py); ^ xquery.c:769:49: warning: implicit declaration of function 'gesture_name' is invalid in C99 [-Wimplicit-function-declaration] strcpy(py->answers[py->query_hit].ans_str, gesture_name(py->query_sel)); ^ xquery.c:769:49: warning: incompatible integer to pointer conversion passing 'int' to parameter of type 'const char *' [-Wint-conversion] strcpy(py->answers[py->query_hit].ans_str, gesture_name(py->query_sel)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:88:56: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ 68 warnings generated. cc -O2 -pipe -Wno-return-type -fstack-protector-strong -fno-strict-aliasing -I/usr/local/include -I./bitmaps -DBODYFONT=\"-*-times-medium-r-*--14-*\" -DBODYFONT_ALT=\"-*-helvetica-medium-r-*--12-*\" -DBODYFONT_ALT2=\"fixed\" -DTRANSCRIPTDIR=\"/tmp\" -c xloop.c -o xloop.o xloop.c:33:35: warning: implicit declaration of function 'random' is invalid in C99 [-Wimplicit-function-declaration] players[pnum].turn_blinklimit = (random() % 50) + 5; ^ xloop.c:58:27: warning: incompatible pointer types passing 'XEvent *' (aka 'union _XEvent *') to parameter of type 'XKeyEvent *' [-Wincompatible-pointer-types] if (1 == XLookupString(&event, &c, 1, NULL, NULL)) { ^~~~~~ /usr/local/include/X11/Xutil.h:535:35: note: passing argument to parameter here XKeyEvent* /* event_struct */, ^ xloop.c:64:9: warning: implicit declaration of function 'talk_handle_char' is invalid in C99 [-Wimplicit-function-declaration] talk_handle_char(py, c); ^ xloop.c:72:8: warning: implicit declaration of function 'in_gesture_box' is invalid in C99 [-Wimplicit-function-declaration] if (in_gesture_box(py, event.xbutton.x, event.xbutton.y)) { ^ xloop.c:77:13: warning: implicit declaration of function 'in_bbox_box' is invalid in C99 [-Wimplicit-function-declaration] else if (in_bbox_box(py, event.xbutton.x, event.xbutton.y)) { ^ xloop.c:78:25: warning: implicit declaration of function 'button_hit' is invalid in C99 [-Wimplicit-function-declaration] py->mousestate = button_hit(py, event.xbutton.x, ^ xloop.c:82:13: warning: implicit declaration of function 'in_scrollbar_box' is invalid in C99 [-Wimplicit-function-declaration] else if (in_scrollbar_box(&(py->sitext), event.xbutton.x, ^ xloop.c:84:25: warning: implicit declaration of function 'scrollbar_hit' is invalid in C99 [-Wimplicit-function-declaration] py->mousestate = scrollbar_hit(&(py->sitext), ^ xloop.c:91:25: warning: implicit declaration of function 'scrollbar_hit' is invalid in C99 [-Wimplicit-function-declaration] py->mousestate = scrollbar_hit(&(py->siquery), ^ xloop.c:98:25: warning: implicit declaration of function 'scrollbar_hit' is invalid in C99 [-Wimplicit-function-declaration] py->mousestate = scrollbar_hit(&(py->sistats), ^ xloop.c:103:13: warning: implicit declaration of function 'in_query_box' is invalid in C99 [-Wimplicit-function-declaration] else if (in_query_box(py, event.xbutton.x, ^ xloop.c:105:25: warning: implicit declaration of function 'query_hit' is invalid in C99 [-Wimplicit-function-declaration] py->mousestate = query_hit(py, event.xbutton.x, ^ xloop.c:116:5: warning: implicit declaration of function 'gesture_motion' is invalid in C99 [-Wimplicit-function-declaration] gesture_motion(py, event.xbutton.x, event.xbutton.y, ^ xloop.c:120:5: warning: implicit declaration of function 'scrollbar_motion' is invalid in C99 [-Wimplicit-function-declaration] scrollbar_motion(py->scroll_active, event.xbutton.x, ^ xloop.c:124:5: warning: implicit declaration of function 'query_motion' is invalid in C99 [-Wimplicit-function-declaration] query_motion(py, event.xbutton.x, event.xbutton.y, ^ xloop.c:129:5: warning: implicit declaration of function 'button_motion' is invalid in C99 [-Wimplicit-function-declaration] button_motion(py, event.xbutton.x, event.xbutton.y, ^ xloop.c:140:9: warning: implicit declaration of function 'gesture_release' is invalid in C99 [-Wimplicit-function-declaration] gesture_release(py, event.xbutton.x, ^ xloop.c:144:9: warning: implicit declaration of function 'scrollbar_release' is invalid in C99 [-Wimplicit-function-declaration] scrollbar_release(py->scroll_active, ^ xloop.c:149:9: warning: implicit declaration of function 'query_release' is invalid in C99 [-Wimplicit-function-declaration] query_release(py, event.xbutton.x, ^ xloop.c:154:9: warning: implicit declaration of function 'button_release' is invalid in C99 [-Wimplicit-function-declaration] button_release(py, event.xbutton.x, ^ xloop.c:218:5: warning: implicit declaration of function 'redraw_talk' is invalid in C99 [-Wimplicit-function-declaration] redraw_talk(py); ^ xloop.c:222:3: warning: implicit declaration of function 'draw_gesture_menu' is invalid in C99 [-Wimplicit-function-declaration] draw_gesture_menu(py); ^ xloop.c:225:3: warning: implicit declaration of function 'draw_spelllist' is invalid in C99 [-Wimplicit-function-declaration] draw_spelllist(py); ^ xloop.c:228:3: warning: implicit declaration of function 'draw_query_menu' is invalid in C99 [-Wimplicit-function-declaration] draw_query_menu(py); ^ xloop.c:245:40: warning: implicitly declaring library function 'malloc' with type 'void *(unsigned long)' [-Wimplicit-function-declaration] py->statlist = (struct statthing *)malloc(sizeof(struct statthing) * py->statlist_size); ^ xloop.c:245:40: note: include the header or explicitly provide a declaration for 'malloc' xloop.c:276:37: warning: implicitly declaring library function 'realloc' with type 'void *(void *, unsigned long)' [-Wimplicit-function-declaration] py->statlist = (struct statthing *)realloc(py->statlist, ^ xloop.c:276:37: note: include the header or explicitly provide a declaration for 'realloc' xloop.c:314:7: warning: implicit declaration of function 'DrawStringField' is invalid in C99 [-Wimplicit-function-declaration] DrawStringField(py, "*", STATS_X+4, ypos, 12); ^ xloop.c:317:7: warning: implicit declaration of function 'DrawStringField' is invalid in C99 [-Wimplicit-function-declaration] DrawStringField(py, " ", STATS_X+4, ypos, 12); ^ xloop.c:341:3: warning: implicit declaration of function 'DrawStringField' is invalid in C99 [-Wimplicit-function-declaration] DrawStringField(py, "", STATS_X+4, ypos, STATS_W-4); ^ xloop.c:348:4: warning: implicit declaration of function 'DrawStringField' is invalid in C99 [-Wimplicit-function-declaration] DrawStringField(py, "*", STATS_X+4, ypos, 12); ^ xloop.c:351:4: warning: implicit declaration of function 'DrawStringField' is invalid in C99 [-Wimplicit-function-declaration] DrawStringField(py, " ", STATS_X+4, ypos, 12); ^ xloop.c:353:7: warning: implicit declaration of function 'DrawStringField' is invalid in C99 [-Wimplicit-function-declaration] DrawStringField(py, NameOfBeing(gameval, st->type, st->index), ^ xloop.c:357:7: warning: implicit declaration of function 'DrawStringField' is invalid in C99 [-Wimplicit-function-declaration] DrawStringField(py, "", STATS_X+4, ypos, 20); ^ xloop.c:369:3: warning: implicit declaration of function 'DrawStringField' is invalid in C99 [-Wimplicit-function-declaration] DrawStringField(py, sbuf, STATS_X+STATS_HP, ypos, STATS_W-STATS_HP); ^ xloop.c:374:5: warning: implicit declaration of function 'redraw_scrollbar' is invalid in C99 [-Wimplicit-function-declaration] redraw_scrollbar(&(py->sistats)); ^ xloop.c:448:5: warning: implicit declaration of function 'qsort' is invalid in C99 [-Wimplicit-function-declaration] qsort(py->statlist, py->sistats.nlines, sizeof(struct statthing), statthing_compare); ^ 36 warnings generated. cc -O2 -pipe -Wno-return-type -fstack-protector-strong -fno-strict-aliasing -I/usr/local/include -I./bitmaps -DBODYFONT=\"-*-times-medium-r-*--14-*\" -DBODYFONT_ALT=\"-*-helvetica-medium-r-*--12-*\" -DBODYFONT_ALT2=\"fixed\" -DTRANSCRIPTDIR=\"/tmp\" -c xgest.c -o xgest.o xgest.c:137:2: warning: implicit declaration of function 'DrawStringCentered' is invalid in C99 [-Wimplicit-function-declaration] DrawStringCentered(py, NameOfBeing(gameval, QuVal_Target_Wizard, ix), ^ xgest.c:208:5: warning: implicitly declaring library function 'sprintf' with type 'int (char *, const char *, ...)' [-Wimplicit-function-declaration] sprintf(gesture_prompt[0], "What gesture do you want to"); ^ xgest.c:208:5: note: include the header or explicitly provide a declaration for 'sprintf' xgest.c:265:2: warning: implicit declaration of function 'adjust_rect' is invalid in C99 [-Wimplicit-function-declaration] adjust_rect(&py->gesture_rect); ^ xgest.c:266:2: warning: implicit declaration of function 'backing_store' is invalid in C99 [-Wimplicit-function-declaration] backing_store(py, &py->gesture_rect); ^ xgest.c:268:2: warning: implicit declaration of function 'gesture_motion' is invalid in C99 [-Wimplicit-function-declaration] gesture_motion(py, xpos+COLUMN_X, ypos+COLUMN_Y, button); ^ xgest.c:331:5: warning: implicit declaration of function 'backing_restore' is invalid in C99 [-Wimplicit-function-declaration] backing_restore(py); ^ 6 warnings generated. cc -O2 -pipe -Wno-return-type -fstack-protector-strong -fno-strict-aliasing -I/usr/local/include -I./bitmaps -DBODYFONT=\"-*-times-medium-r-*--14-*\" -DBODYFONT_ALT=\"-*-helvetica-medium-r-*--12-*\" -DBODYFONT_ALT2=\"fixed\" -DTRANSCRIPTDIR=\"/tmp\" -c xbutton.c -o xbutton.o xbutton.c:47:5: warning: implicit declaration of function 'draw_frame' is invalid in C99 [-Wimplicit-function-declaration] draw_frame(py, &py->spelllist_rect); ^ xbutton.c:240:6: warning: implicit declaration of function 'backing_store' is invalid in C99 [-Wimplicit-function-declaration] backing_store(py, &py->spelllist_rect); ^ xbutton.c:245:6: warning: implicitly declaring library function 'printf' with type 'int (const char *, ...)' [-Wimplicit-function-declaration] printf("ERROR: unknown button thing!\n"); ^ xbutton.c:245:6: note: include the header or explicitly provide a declaration for 'printf' xbutton.c:297:7: warning: implicit declaration of function 'redraw_done_markers' is invalid in C99 [-Wimplicit-function-declaration] redraw_done_markers(py); ^ xbutton.c:300:7: warning: implicit declaration of function 'redraw_queries_only' is invalid in C99 [-Wimplicit-function-declaration] redraw_queries_only(py, 0); ^ xbutton.c:306:6: warning: implicit declaration of function 'backing_restore' is invalid in C99 [-Wimplicit-function-declaration] backing_restore(py); ^ 6 warnings generated. cc -O2 -pipe -Wno-return-type -fstack-protector-strong -fno-strict-aliasing -I/usr/local/include -I./bitmaps -DBODYFONT=\"-*-times-medium-r-*--14-*\" -DBODYFONT_ALT=\"-*-helvetica-medium-r-*--12-*\" -DBODYFONT_ALT2=\"fixed\" -DTRANSCRIPTDIR=\"/tmp\" -c xtalk.c -o xtalk.o xtalk.c:21:28: warning: implicitly declaring library function 'malloc' with type 'void *(unsigned long)' [-Wimplicit-function-declaration] py->talk_buf = (char *)malloc(sizeof(char) * py->talk_size); ^ xtalk.c:21:28: note: include the header or explicitly provide a declaration for 'malloc' xtalk.c:54:13: warning: implicit declaration of function 'DrawStringField' is invalid in C99 [-Wimplicit-function-declaration] width = DrawStringField(py, py->talk_buf, TALK_X, TALK_Y+py->lineheight, TALK_W); ^ xtalk.c:82:28: warning: implicitly declaring library function 'realloc' with type 'void *(void *, unsigned long)' [-Wimplicit-function-declaration] py->talk_buf = (char *)realloc(py->talk_buf, sizeof(char) * py->talk_size); ^ xtalk.c:82:28: note: include the header or explicitly provide a declaration for 'realloc' xtalk.c:116:8: warning: implicit declaration of function 'dump_text' is invalid in C99 [-Wimplicit-function-declaration] dump_text(ix, bigbuf); ^ 4 warnings generated. cc -o spellcast engine.o espells.o execute.o execute2.o emonster.o etran.o main.o xtext.o xquery.o xloop.o xgest.o xbutton.o xtalk.o -L/usr/local/lib -lX11 =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 ===> spellcast-1.2_3 depends on file: /usr/local/libdata/pkgconfig/x11.pc - found =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Staging for spellcast-1.2_3 ===> Generating temporary packing list install -s -m 555 /wrkdirs/usr/ports/games/spellcast/work/spellcast/spellcast /wrkdirs/usr/ports/games/spellcast/work/stage/usr/local/bin install -m 444 /wrkdirs/usr/ports/games/spellcast/work/spellcast/spellcast.6 /wrkdirs/usr/ports/games/spellcast/work/stage/usr/local/share/man/man6 install -m 0644 /wrkdirs/usr/ports/games/spellcast/work/spellcast/README /wrkdirs/usr/ports/games/spellcast/work/spellcast/spelllist.ps /wrkdirs/usr/ports/games/spellcast/work/stage/usr/local/share/doc/spellcast ====> Compressing man pages (compress-man) =========================================================================== =================================================== ===== env: 'PKG_NOTES=build_timestamp ports_top_git_hash ports_top_checkout_unclean port_git_hash port_checkout_unclean built_by' 'PKG_NOTE_build_timestamp=2024-04-01T22:37:05+0000' 'PKG_NOTE_ports_top_git_hash=c2c35d895e' 'PKG_NOTE_ports_top_checkout_unclean=yes' 'PKG_NOTE_port_git_hash=bf303ee7f4' 'PKG_NOTE_port_checkout_unclean=no' 'PKG_NOTE_built_by=poudriere-git-3.4.99.20240122_1' NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Building packages for spellcast-1.2_3 ===> Building spellcast-1.2_3 =========================================================================== =>> Cleaning up wrkdir ===> Cleaning for spellcast-1.2_3 build of games/spellcast | spellcast-1.2_3 ended at Mon Apr 1 23:40:30 BST 2024 build time: 00:03:38