Skip to content

Instantly share code, notes, and snippets.

@clayg
Created April 3, 2020 14:14
Show Gist options
  • Select an option

  • Save clayg/e9a95974a1242012bf90f766deea5c43 to your computer and use it in GitHub Desktop.

Select an option

Save clayg/e9a95974a1242012bf90f766deea5c43 to your computer and use it in GitHub Desktop.
diff --git a/meson.build b/meson.build
index 215b81c..aeab0db 100644
--- a/meson.build
+++ b/meson.build
@@ -1,4 +1,5 @@
-project('ktx', 'c')
+project('ktx', 'c', default_options : ['c_std=c89'])
+
ktx_sources = [
'src/admin.c',
(ktx) clayg@banana:~/quake/ktx$ ./rebuild.sh
+ TARGET=linux-amd64
+ rm -rf build_linux-amd64
+ meson build_linux-amd64 --cross-file tools/cross-compilation/linux-amd64.txt
The Meson build system
Version: 0.53.2
Source dir: /home/clayg/quake/ktx
Build dir: /home/clayg/quake/ktx/build_linux-amd64
Build type: cross build
Project name: ktx
Project version: undefined
C compiler for the build machine: cc (gcc 7.5.0 "cc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0")
C linker for the build machine: cc ld.bfd 2.30
C compiler for the host machine: gcc (gcc 7.5.0 "gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0")
C linker for the host machine: gcc ld.bfd 2.30
Build machine cpu family: x86_64
Build machine cpu: x86_64
Host machine cpu family: x86_64
Host machine cpu: x86_64
Target machine cpu family: x86_64
Target machine cpu: x86_64
Library m found: YES
Build targets in project: 1
Found ninja-1.9.0.git.kitware.dyndep-1.jobserver-1 at /home/clayg/.local/share/virtualenvs/ktx-rMKKHujn/bin/ninja
+ ninja -C build_linux-amd64
ninja: Entering directory `build_linux-amd64'
[1/100] Compiling C object 'qwprogs@sha/src_arena.c.o'.
FAILED: qwprogs@sha/src_arena.c.o
gcc -Iqwprogs@sha -I. -I.. -I../include -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c89 -g -fPIC -DBOT_SUPPORT=1 -MD -MQ 'qwprogs@sha/src_arena.c.o' -MF 'qwprogs@sha/src_arena.c.o.d' -o 'qwprogs@sha/src_arena.c.o' -c ../src/arena.c
../src/arena.c:7:1: error: C++ style comments are not allowed in ISO C90
// arena.c - rocket arena stuff
^
../src/arena.c:7:1: error: (this will be reported only once per input file)
In file included from ../src/arena.c:9:0:
../include/g_local.h:26:1: error: C++ style comments are not allowed in ISO C90
// g_local.h -- local definitions for game module
^
../include/g_local.h:26:1: error: (this will be reported only once per input file)
In file included from ../include/g_local.h:32:0,
from ../src/arena.c:9:
../include/q_shared.h:29:1: error: C++ style comments are not allowed in ISO C90
// q_shared.h -- included first by ALL program modules.
^
../include/q_shared.h:29:1: error: (this will be reported only once per input file)
In file included from ../include/g_local.h:32:0,
from ../src/arena.c:9:
../include/q_shared.h:99:9: warning: extra tokens at end of #endif directive [-Wendif-labels]
#endif // defined( _WIN32 )
^
../include/q_shared.h:218:8: warning: extra tokens at end of #endif directive [-Wendif-labels]
#endif // __Q_SHARED_H
^
In file included from ../include/g_local.h:33:0,
from ../src/arena.c:9:
../include/mathlib.h:26:1: error: C++ style comments are not allowed in ISO C90
// mathlib.h
^
../include/mathlib.h:26:1: error: (this will be reported only once per input file)
In file included from ../include/progs.h:26:0,
from ../include/g_local.h:34,
from ../src/arena.c:9:
../include/progdefs.h:128:1: error: C++ style comments are not allowed in ISO C90
//hack
^
../include/progdefs.h:128:1: error: (this will be reported only once per input file)
In file included from ../include/g_local.h:34:0,
from ../src/arena.c:9:
../include/progs.h:36:15: error: C++ style comments are not allowed in ISO C90
void *ptr; // this points to sv_edict_t but mod should NOT bother about that...
^
../include/progs.h:36:15: error: (this will be reported only once per input file)
../include/progs.h:28:30: error: expected expression before ‘/’ token
#define MAX_ROUTE_NODES 20 // max race checkpoints per race (including start and finish checkpoints)
^
../include/progs.h:1202:25: note: in expansion of macro ‘MAX_ROUTE_NODES’
raceRouteNode_t node[MAX_ROUTE_NODES]; // nodes of this route, fixed array, yeah I'm lazy
^~~~~~~~~~~~~~~
In file included from ../include/g_local.h:34:0,
from ../src/arena.c:9:
../include/progs.h:1203:1: warning: no semicolon at end of struct or union
} raceRoute_t;
^
In file included from ../include/g_local.h:34:0,
from ../src/arena.c:9:
../include/progs.h:29:26: error: expected expression before ‘/’ token
#define MAX_ROUTES 20 // max race route per map
^
../include/progs.h:1238:23: note: in expansion of macro ‘MAX_ROUTES’
raceRoute_t route[MAX_ROUTES]; // fixed array of routes
^~~~~~~~~~
In file included from ../include/g_local.h:35:0,
from ../src/arena.c:9:
../include/g_public.h:30:1: error: C++ style comments are not allowed in ISO C90
// Copyright (C) 1999-2000 Id Software, Inc.
^
../include/g_public.h:30:1: error: (this will be reported only once per input file)
In file included from ../include/g_local.h:36:0,
from ../src/arena.c:9:
../include/g_consts.h:26:1: error: C++ style comments are not allowed in ISO C90
//
^
../include/g_consts.h:26:1: error: (this will be reported only once per input file)
../include/g_consts.h:266:39: warning: missing terminating ' character
#define KF_ON_ENTER ( 32) // don't call on_enter event (every map change)
^
In file included from ../include/g_local.h:37:0,
from ../src/arena.c:9:
../include/g_syscalls.h:37:1: error: C++ style comments are not allowed in ISO C90
// trap_SPrint() flags
^
../include/g_syscalls.h:37:1: error: (this will be reported only once per input file)
In file included from ../include/g_local.h:141:0,
from ../src/arena.c:9:
../include/deathtype.h:10:32: error: C++ style comments are not allowed in ISO C90
DEATHTYPE( dtLG_DIS, lg_dis ) // discharge
^
../include/deathtype.h:10:32: error: (this will be reported only once per input file)
In file included from ../src/arena.c:9:0:
../include/g_local.h:247:30: error: expected expression before ‘/’ token
#define MAX_TEAM_NAME (32) // qqshka: 32 - is max len of team name?
^
../include/g_local.h:250:40: note: in expansion of macro ‘MAX_TEAM_NAME’
int getteams(char teams[MAX_CLIENTS][MAX_TEAM_NAME]);
^~~~~~~~~~~~~
../include/g_local.h:575:57: warning: missing terminating ' character
#define DO_CMD_DISALLOWED_MATCHLESS (-5) // if cmd does't allowed in matchLess mode
^
In file included from ../include/g_local.h:36:0,
from ../src/arena.c:9:
../src/arena.c: In function ‘ra_in_que’:
../include/g_consts.h:187:26: error: expected expression before ‘/’ token
#define PRINT_HIGH 2 // critical messages
^
../src/arena.c:46:17: note: in expansion of macro ‘PRINT_HIGH’
G_sprint(p, PRINT_HIGH, "You are %s in line\n", (!i ? "next": "last"));
^~~~~~~~~~
../src/arena.c:46:5: error: too few arguments to function ‘G_sprint’
G_sprint(p, PRINT_HIGH, "You are %s in line\n", (!i ? "next": "last"));
^~~~~~~~
In file included from ../src/arena.c:9:0:
../include/g_local.h:182:17: note: declared here
void G_sprint( gedict_t * ed, int level, const char *fmt, ... );
^~~~~~~~
In file included from ../include/g_local.h:36:0,
from ../src/arena.c:9:
../src/arena.c: In function ‘ra_ClientDisconnect’:
../include/g_consts.h:187:26: error: expected expression before ‘/’ token
#define PRINT_HIGH 2 // critical messages
^
../src/arena.c:168:13: note: in expansion of macro ‘PRINT_HIGH’
G_bprint (PRINT_HIGH, "The %s has left\n", redtext("winner"));
^~~~~~~~~~
../src/arena.c:168:3: error: too few arguments to function ‘G_bprint’
G_bprint (PRINT_HIGH, "The %s has left\n", redtext("winner"));
^~~~~~~~
In file included from ../src/arena.c:9:0:
../include/g_local.h:184:17: note: declared here
void G_bprint( int level, const char *fmt, ... );
^~~~~~~~
In file included from ../include/g_local.h:36:0,
from ../src/arena.c:9:
../include/g_consts.h:187:26: error: expected expression before ‘/’ token
#define PRINT_HIGH 2 // critical messages
^
../src/arena.c:176:13: note: in expansion of macro ‘PRINT_HIGH’
G_bprint (PRINT_HIGH, "The %s has left\n", redtext("challenger"));
^~~~~~~~~~
../src/arena.c:176:3: error: too few arguments to function ‘G_bprint’
G_bprint (PRINT_HIGH, "The %s has left\n", redtext("challenger"));
^~~~~~~~
In file included from ../src/arena.c:9:0:
../include/g_local.h:184:17: note: declared here
void G_bprint( int level, const char *fmt, ... );
^~~~~~~~
In file included from ../include/g_local.h:36:0,
from ../src/arena.c:9:
../include/g_consts.h:187:26: error: expected expression before ‘/’ token
#define PRINT_HIGH 2 // critical messages
^
../src/arena.c:183:13: note: in expansion of macro ‘PRINT_HIGH’
G_bprint (PRINT_HIGH, "The %s has left\n", redtext("line leader"));
^~~~~~~~~~
../src/arena.c:183:3: error: too few arguments to function ‘G_bprint’
G_bprint (PRINT_HIGH, "The %s has left\n", redtext("line leader"));
^~~~~~~~
In file included from ../src/arena.c:9:0:
../include/g_local.h:184:17: note: declared here
void G_bprint( int level, const char *fmt, ... );
^~~~~~~~
In file included from ../include/g_local.h:36:0,
from ../src/arena.c:9:
../src/arena.c: In function ‘ra_ClientObituary’:
../include/g_consts.h:187:26: error: expected expression before ‘/’ token
#define PRINT_HIGH 2 // critical messages
^
../src/arena.c:222:14: note: in expansion of macro ‘PRINT_HIGH’
G_bprint (PRINT_HIGH, "BUG: ra_ClientObituary without loser\n");
^~~~~~~~~~
../src/arena.c:222:4: error: too few arguments to function ‘G_bprint’
G_bprint (PRINT_HIGH, "BUG: ra_ClientObituary without loser\n");
^~~~~~~~
In file included from ../src/arena.c:9:0:
../include/g_local.h:184:17: note: declared here
void G_bprint( int level, const char *fmt, ... );
^~~~~~~~
In file included from ../include/g_local.h:36:0,
from ../src/arena.c:9:
../include/g_consts.h:187:26: error: expected expression before ‘/’ token
#define PRINT_HIGH 2 // critical messages
^
../src/arena.c:224:14: note: in expansion of macro ‘PRINT_HIGH’
G_bprint (PRINT_HIGH, "BUG: ra_ClientObituary without winner\n");
^~~~~~~~~~
../src/arena.c:224:4: error: too few arguments to function ‘G_bprint’
G_bprint (PRINT_HIGH, "BUG: ra_ClientObituary without winner\n");
^~~~~~~~
In file included from ../src/arena.c:9:0:
../include/g_local.h:184:17: note: declared here
void G_bprint( int level, const char *fmt, ... );
^~~~~~~~
In file included from ../include/g_local.h:36:0,
from ../src/arena.c:9:
../include/g_consts.h:187:26: error: expected expression before ‘/’ token
#define PRINT_HIGH 2 // critical messages
^
../src/arena.c:237:13: note: in expansion of macro ‘PRINT_HIGH’
G_bprint (PRINT_HIGH, "The %s %s has been defeated\n", redtext("winner"), getname(winner));
^~~~~~~~~~
../src/arena.c:237:3: error: too few arguments to function ‘G_bprint’
G_bprint (PRINT_HIGH, "The %s %s has been defeated\n", redtext("winner"), getname(winner));
^~~~~~~~
In file included from ../src/arena.c:9:0:
../include/g_local.h:184:17: note: declared here
void G_bprint( int level, const char *fmt, ... );
^~~~~~~~
In file included from ../include/g_local.h:36:0,
from ../src/arena.c:9:
../include/g_consts.h:187:26: error: expected expression before ‘/’ token
#define PRINT_HIGH 2 // critical messages
^
../src/arena.c:241:14: note: in expansion of macro ‘PRINT_HIGH’
G_bprint (PRINT_HIGH, "by %s!\n", g_himself(winner));
^~~~~~~~~~
../src/arena.c:241:4: error: too few arguments to function ‘G_bprint’
G_bprint (PRINT_HIGH, "by %s!\n", g_himself(winner));
^~~~~~~~
In file included from ../src/arena.c:9:0:
../include/g_local.h:184:17: note: declared here
void G_bprint( int level, const char *fmt, ... );
^~~~~~~~
In file included from ../include/g_local.h:36:0,
from ../src/arena.c:9:
../include/g_consts.h:187:26: error: expected expression before ‘/’ token
#define PRINT_HIGH 2 // critical messages
^
../src/arena.c:254:13: note: in expansion of macro ‘PRINT_HIGH’
G_bprint (PRINT_HIGH, "The %s %s has failed\n", redtext("challenger"), getname(loser));
^~~~~~~~~~
../src/arena.c:254:3: error: too few arguments to function ‘G_bprint’
G_bprint (PRINT_HIGH, "The %s %s has failed\n", redtext("challenger"), getname(loser));
^~~~~~~~
In file included from ../src/arena.c:9:0:
../include/g_local.h:184:17: note: declared here
void G_bprint( int level, const char *fmt, ... );
^~~~~~~~
In file included from ../include/g_local.h:36:0,
from ../src/arena.c:9:
../include/g_consts.h:187:26: error: expected expression before ‘/’ token
#define PRINT_HIGH 2 // critical messages
^
../src/arena.c:258:14: note: in expansion of macro ‘PRINT_HIGH’
G_bprint (PRINT_HIGH, "because %s became bored with life!\n", g_he(loser));
^~~~~~~~~~
../src/arena.c:258:4: error: too few arguments to function ‘G_bprint’
G_bprint (PRINT_HIGH, "because %s became bored with life!\n", g_he(loser));
^~~~~~~~
In file included from ../src/arena.c:9:0:
../include/g_local.h:184:17: note: declared here
void G_bprint( int level, const char *fmt, ... );
^~~~~~~~
In file included from ../include/g_local.h:36:0,
from ../src/arena.c:9:
../include/g_consts.h:187:26: error: expected expression before ‘/’ token
#define PRINT_HIGH 2 // critical messages
^
../src/arena.c:268:13: note: in expansion of macro ‘PRINT_HIGH’
G_bprint (PRINT_HIGH, "BUG: ra_ClientObituary unknown targ\n");
^~~~~~~~~~
../src/arena.c:268:3: error: too few arguments to function ‘G_bprint’
G_bprint (PRINT_HIGH, "BUG: ra_ClientObituary unknown targ\n");
^~~~~~~~
In file included from ../src/arena.c:9:0:
../include/g_local.h:184:17: note: declared here
void G_bprint( int level, const char *fmt, ... );
^~~~~~~~
In file included from ../include/g_local.h:36:0,
from ../src/arena.c:9:
../include/g_consts.h:187:26: error: expected expression before ‘/’ token
#define PRINT_HIGH 2 // critical messages
^
../src/arena.c:277:15: note: in expansion of macro ‘PRINT_HIGH’
G_bprint (PRINT_HIGH, "%s\n", redtext("FLAWLESS Victory!"));
^~~~~~~~~~
../src/arena.c:277:5: error: too few arguments to function ‘G_bprint’
G_bprint (PRINT_HIGH, "%s\n", redtext("FLAWLESS Victory!"));
^~~~~~~~
In file included from ../src/arena.c:9:0:
../include/g_local.h:184:17: note: declared here
void G_bprint( int level, const char *fmt, ... );
^~~~~~~~
In file included from ../include/g_local.h:36:0,
from ../src/arena.c:9:
../include/g_consts.h:187:26: error: expected expression before ‘/’ token
#define PRINT_HIGH 2 // critical messages
^
../src/arena.c:283:15: note: in expansion of macro ‘PRINT_HIGH’
G_bprint (PRINT_HIGH, "%s %s \x90%s\x91 %s \x90%s\x91 %s\n",
^~~~~~~~~~
../src/arena.c:283:5: error: too few arguments to function ‘G_bprint’
G_bprint (PRINT_HIGH, "%s %s \x90%s\x91 %s \x90%s\x91 %s\n",
^~~~~~~~
In file included from ../src/arena.c:9:0:
../include/g_local.h:184:17: note: declared here
void G_bprint( int level, const char *fmt, ... );
^~~~~~~~
In file included from ../include/g_local.h:36:0,
from ../src/arena.c:9:
../src/arena.c: In function ‘ra_PutClientInServer’:
../include/g_consts.h:61:24: error: expected expression before ‘/’ token
#define SOLID_NOT 0 // no interaction with other objects
^
../src/arena.c:315:23: note: in expansion of macro ‘SOLID_NOT’
self->s.v.solid = SOLID_NOT;
^~~~~~~~~
../src/arena.c: In function ‘ra_Frame’:
../include/g_consts.h:187:26: error: expected expression before ‘/’ token
#define PRINT_HIGH 2 // critical messages
^
../src/arena.c:470:14: note: in expansion of macro ‘PRINT_HIGH’
G_bprint (PRINT_HIGH, "The new %s is %s\n", redtext("winner"), getname(winner));
^~~~~~~~~~
../src/arena.c:470:4: error: too few arguments to function ‘G_bprint’
G_bprint (PRINT_HIGH, "The new %s is %s\n", redtext("winner"), getname(winner));
^~~~~~~~
In file included from ../src/arena.c:9:0:
../include/g_local.h:184:17: note: declared here
void G_bprint( int level, const char *fmt, ... );
^~~~~~~~
In file included from ../include/g_local.h:36:0,
from ../src/arena.c:9:
../include/g_consts.h:187:26: error: expected expression before ‘/’ token
#define PRINT_HIGH 2 // critical messages
^
../src/arena.c:476:14: note: in expansion of macro ‘PRINT_HIGH’
G_bprint (PRINT_HIGH, "The new %s is %s\n", redtext("winner"), getname(winner));
^~~~~~~~~~
../src/arena.c:476:4: error: too few arguments to function ‘G_bprint’
G_bprint (PRINT_HIGH, "The new %s is %s\n", redtext("winner"), getname(winner));
^~~~~~~~
In file included from ../src/arena.c:9:0:
../include/g_local.h:184:17: note: declared here
void G_bprint( int level, const char *fmt, ... );
^~~~~~~~
In file included from ../include/g_local.h:36:0,
from ../src/arena.c:9:
../include/g_consts.h:187:26: error: expected expression before ‘/’ token
#define PRINT_HIGH 2 // critical messages
^
../src/arena.c:483:14: note: in expansion of macro ‘PRINT_HIGH’
G_bprint (PRINT_HIGH, "The new %s is %s\n", redtext("challenger"), getname(loser));
^~~~~~~~~~
../src/arena.c:483:4: error: too few arguments to function ‘G_bprint’
G_bprint (PRINT_HIGH, "The new %s is %s\n", redtext("challenger"), getname(loser));
^~~~~~~~
In file included from ../src/arena.c:9:0:
../include/g_local.h:184:17: note: declared here
void G_bprint( int level, const char *fmt, ... );
^~~~~~~~
In file included from ../include/g_local.h:36:0,
from ../src/arena.c:9:
../include/g_consts.h:187:26: error: expected expression before ‘/’ token
#define PRINT_HIGH 2 // critical messages
^
../src/arena.c:510:13: note: in expansion of macro ‘PRINT_HIGH’
G_bprint (PRINT_HIGH, "%s vs. %s\n", getname(winner), getname(loser));
^~~~~~~~~~
../src/arena.c:510:3: error: too few arguments to function ‘G_bprint’
G_bprint (PRINT_HIGH, "%s vs. %s\n", getname(winner), getname(loser));
^~~~~~~~
In file included from ../src/arena.c:9:0:
../include/g_local.h:184:17: note: declared here
void G_bprint( int level, const char *fmt, ... );
^~~~~~~~
In file included from ../include/g_local.h:36:0,
from ../src/arena.c:9:
../include/g_consts.h:187:26: error: expected expression before ‘/’ token
#define PRINT_HIGH 2 // critical messages
^
../src/arena.c:513:14: note: in expansion of macro ‘PRINT_HIGH’
G_bprint (PRINT_HIGH, "%s is next in line\n", getname(first));
^~~~~~~~~~
../src/arena.c:513:4: error: too few arguments to function ‘G_bprint’
G_bprint (PRINT_HIGH, "%s is next in line\n", getname(first));
^~~~~~~~
In file included from ../src/arena.c:9:0:
../include/g_local.h:184:17: note: declared here
void G_bprint( int level, const char *fmt, ... );
^~~~~~~~
In file included from ../include/g_local.h:36:0,
from ../src/arena.c:9:
../src/arena.c: In function ‘RocketArenaPre’:
../include/g_consts.h:187:26: error: expected expression before ‘/’ token
#define PRINT_HIGH 2 // critical messages
^
../src/arena.c:559:21: note: in expansion of macro ‘PRINT_HIGH’
G_sprint (self, PRINT_HIGH,"You have 1 minute left\n"
^~~~~~~~~~
../src/arena.c:559:5: error: too few arguments to function ‘G_sprint’
G_sprint (self, PRINT_HIGH,"You have 1 minute left\n"
^~~~~~~~
In file included from ../src/arena.c:9:0:
../include/g_local.h:182:17: note: declared here
void G_sprint( gedict_t * ed, int level, const char *fmt, ... );
^~~~~~~~
In file included from ../include/g_local.h:36:0,
from ../src/arena.c:9:
../include/g_consts.h:187:26: error: expected expression before ‘/’ token
#define PRINT_HIGH 2 // critical messages
^
../src/arena.c:565:21: note: in expansion of macro ‘PRINT_HIGH’
G_sprint (self, PRINT_HIGH,"You have 30 seconds left\n"
^~~~~~~~~~
../src/arena.c:565:5: error: too few arguments to function ‘G_sprint’
G_sprint (self, PRINT_HIGH,"You have 30 seconds left\n"
^~~~~~~~
In file included from ../src/arena.c:9:0:
../include/g_local.h:182:17: note: declared here
void G_sprint( gedict_t * ed, int level, const char *fmt, ... );
^~~~~~~~
In file included from ../include/g_local.h:36:0,
from ../src/arena.c:9:
../include/g_consts.h:187:26: error: expected expression before ‘/’ token
#define PRINT_HIGH 2 // critical messages
^
../src/arena.c:571:21: note: in expansion of macro ‘PRINT_HIGH’
G_sprint (self, PRINT_HIGH,"You have %d second%s left to get in line\n", r, count_s( r ));
^~~~~~~~~~
../src/arena.c:571:5: error: too few arguments to function ‘G_sprint’
G_sprint (self, PRINT_HIGH,"You have %d second%s left to get in line\n", r, count_s( r ));
^~~~~~~~
In file included from ../src/arena.c:9:0:
../include/g_local.h:182:17: note: declared here
void G_sprint( gedict_t * ed, int level, const char *fmt, ... );
^~~~~~~~
In file included from ../include/g_local.h:36:0,
from ../src/arena.c:9:
../include/g_consts.h:187:26: error: expected expression before ‘/’ token
#define PRINT_HIGH 2 // critical messages
^
../src/arena.c:577:21: note: in expansion of macro ‘PRINT_HIGH’
G_sprint (self, PRINT_HIGH,"Sorry, your wait time has expired!\n");
^~~~~~~~~~
../src/arena.c:577:5: error: too few arguments to function ‘G_sprint’
G_sprint (self, PRINT_HIGH,"Sorry, your wait time has expired!\n");
^~~~~~~~
In file included from ../src/arena.c:9:0:
../include/g_local.h:182:17: note: declared here
void G_sprint( gedict_t * ed, int level, const char *fmt, ... );
^~~~~~~~
In file included from ../include/g_local.h:36:0,
from ../src/arena.c:9:
../include/g_consts.h:187:26: error: expected expression before ‘/’ token
#define PRINT_HIGH 2 // critical messages
^
../src/arena.c:578:15: note: in expansion of macro ‘PRINT_HIGH’
G_bprint (PRINT_HIGH, "%s stood around too long\n", getname(self));
^~~~~~~~~~
../src/arena.c:578:5: error: too few arguments to function ‘G_bprint’
G_bprint (PRINT_HIGH, "%s stood around too long\n", getname(self));
^~~~~~~~
In file included from ../src/arena.c:9:0:
../include/g_local.h:184:17: note: declared here
void G_bprint( int level, const char *fmt, ... );
^~~~~~~~
In file included from ../include/g_local.h:36:0,
from ../src/arena.c:9:
../src/arena.c: In function ‘ra_PrintPos’:
../include/g_consts.h:187:26: error: expected expression before ‘/’ token
#define PRINT_HIGH 2 // critical messages
^
../src/arena.c:648:19: note: in expansion of macro ‘PRINT_HIGH’
G_sprint (self, PRINT_HIGH,"You are out of line\n"
^~~~~~~~~~
../src/arena.c:648:3: error: too few arguments to function ‘G_sprint’
G_sprint (self, PRINT_HIGH,"You are out of line\n"
^~~~~~~~
In file included from ../src/arena.c:9:0:
../include/g_local.h:182:17: note: declared here
void G_sprint( gedict_t * ed, int level, const char *fmt, ... );
^~~~~~~~
In file included from ../include/g_local.h:36:0,
from ../src/arena.c:9:
../include/g_consts.h:187:26: error: expected expression before ‘/’ token
#define PRINT_HIGH 2 // critical messages
^
../src/arena.c:654:19: note: in expansion of macro ‘PRINT_HIGH’
G_sprint (self, PRINT_HIGH,"You are next\n");
^~~~~~~~~~
../src/arena.c:654:3: error: too few arguments to function ‘G_sprint’
G_sprint (self, PRINT_HIGH,"You are next\n");
^~~~~~~~
In file included from ../src/arena.c:9:0:
../include/g_local.h:182:17: note: declared here
void G_sprint( gedict_t * ed, int level, const char *fmt, ... );
^~~~~~~~
In file included from ../include/g_local.h:36:0,
from ../src/arena.c:9:
../include/g_consts.h:187:26: error: expected expression before ‘/’ token
#define PRINT_HIGH 2 // critical messages
^
../src/arena.c:659:19: note: in expansion of macro ‘PRINT_HIGH’
G_sprint (self, PRINT_HIGH,"There is 1 person ahead of you\n");
^~~~~~~~~~
../src/arena.c:659:3: error: too few arguments to function ‘G_sprint’
G_sprint (self, PRINT_HIGH,"There is 1 person ahead of you\n");
^~~~~~~~
In file included from ../src/arena.c:9:0:
../include/g_local.h:182:17: note: declared here
void G_sprint( gedict_t * ed, int level, const char *fmt, ... );
^~~~~~~~
In file included from ../include/g_local.h:36:0,
from ../src/arena.c:9:
../include/g_consts.h:187:26: error: expected expression before ‘/’ token
#define PRINT_HIGH 2 // critical messages
^
../src/arena.c:664:19: note: in expansion of macro ‘PRINT_HIGH’
G_sprint (self, PRINT_HIGH,"There are %d people ahead of you\n", pos);
^~~~~~~~~~
../src/arena.c:664:3: error: too few arguments to function ‘G_sprint’
G_sprint (self, PRINT_HIGH,"There are %d people ahead of you\n", pos);
^~~~~~~~
In file included from ../src/arena.c:9:0:
../include/g_local.h:182:17: note: declared here
void G_sprint( gedict_t * ed, int level, const char *fmt, ... );
^~~~~~~~
In file included from ../include/g_local.h:36:0,
from ../src/arena.c:9:
../src/arena.c: In function ‘ra_break’:
../include/g_consts.h:187:26: error: expected expression before ‘/’ token
#define PRINT_HIGH 2 // critical messages
^
../src/arena.c:676:19: note: in expansion of macro ‘PRINT_HIGH’
G_sprint (self, PRINT_HIGH,"You can have up to a 5 minute break\n"
^~~~~~~~~~
../src/arena.c:676:3: error: too few arguments to function ‘G_sprint’
G_sprint (self, PRINT_HIGH,"You can have up to a 5 minute break\n"
^~~~~~~~
In file included from ../src/arena.c:9:0:
../include/g_local.h:182:17: note: declared here
void G_sprint( gedict_t * ed, int level, const char *fmt, ... );
^~~~~~~~
In file included from ../include/g_local.h:36:0,
from ../src/arena.c:9:
../include/g_consts.h:318:29: error: expected expression before ‘/’ token
#define MAXIDLETIME (300) //5 minutes
^
../src/arena.c:679:40: note: in expansion of macro ‘MAXIDLETIME’
self->idletime = g_globalvars.time + MAXIDLETIME;
^~~~~~~~~~~
[2/100] Compiling C object 'qwprogs@sha/src_bot_blocked.c.o'.
FAILED: qwprogs@sha/src_bot_blocked.c.o
gcc -Iqwprogs@sha -I. -I.. -I../include -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c89 -g -fPIC -DBOT_SUPPORT=1 -MD -MQ 'qwprogs@sha/src_bot_blocked.c.o' -MF 'qwprogs@sha/src_bot_blocked.c.o.d' -o 'qwprogs@sha/src_bot_blocked.c.o' -c ../src/bot_blocked.c
In file included from ../src/bot_blocked.c:4:0:
../include/g_local.h:26:1: error: C++ style comments are not allowed in ISO C90
// g_local.h -- local definitions for game module
^
../include/g_local.h:26:1: error: (this will be reported only once per input file)
In file included from ../include/g_local.h:32:0,
from ../src/bot_blocked.c:4:
../include/q_shared.h:29:1: error: C++ style comments are not allowed in ISO C90
// q_shared.h -- included first by ALL program modules.
^
../include/q_shared.h:29:1: error: (this will be reported only once per input file)
In file included from ../include/g_local.h:32:0,
from ../src/bot_blocked.c:4:
../include/q_shared.h:99:9: warning: extra tokens at end of #endif directive [-Wendif-labels]
#endif // defined( _WIN32 )
^
../include/q_shared.h:218:8: warning: extra tokens at end of #endif directive [-Wendif-labels]
#endif // __Q_SHARED_H
^
In file included from ../include/g_local.h:33:0,
from ../src/bot_blocked.c:4:
../include/mathlib.h:26:1: error: C++ style comments are not allowed in ISO C90
// mathlib.h
^
../include/mathlib.h:26:1: error: (this will be reported only once per input file)
In file included from ../include/progs.h:26:0,
from ../include/g_local.h:34,
from ../src/bot_blocked.c:4:
../include/progdefs.h:128:1: error: C++ style comments are not allowed in ISO C90
//hack
^
../include/progdefs.h:128:1: error: (this will be reported only once per input file)
In file included from ../include/g_local.h:34:0,
from ../src/bot_blocked.c:4:
../include/progs.h:36:15: error: C++ style comments are not allowed in ISO C90
void *ptr; // this points to sv_edict_t but mod should NOT bother about that...
^
../include/progs.h:36:15: error: (this will be reported only once per input file)
../include/progs.h:28:30: error: expected expression before ‘/’ token
#define MAX_ROUTE_NODES 20 // max race checkpoints per race (including start and finish checkpoints)
^
../include/progs.h:1202:25: note: in expansion of macro ‘MAX_ROUTE_NODES’
raceRouteNode_t node[MAX_ROUTE_NODES]; // nodes of this route, fixed array, yeah I'm lazy
^~~~~~~~~~~~~~~
In file included from ../include/g_local.h:34:0,
from ../src/bot_blocked.c:4:
../include/progs.h:1203:1: warning: no semicolon at end of struct or union
} raceRoute_t;
^
In file included from ../include/g_local.h:34:0,
from ../src/bot_blocked.c:4:
../include/progs.h:29:26: error: expected expression before ‘/’ token
#define MAX_ROUTES 20 // max race route per map
^
../include/progs.h:1238:23: note: in expansion of macro ‘MAX_ROUTES’
raceRoute_t route[MAX_ROUTES]; // fixed array of routes
^~~~~~~~~~
In file included from ../include/g_local.h:35:0,
from ../src/bot_blocked.c:4:
../include/g_public.h:30:1: error: C++ style comments are not allowed in ISO C90
// Copyright (C) 1999-2000 Id Software, Inc.
^
../include/g_public.h:30:1: error: (this will be reported only once per input file)
In file included from ../include/g_local.h:36:0,
from ../src/bot_blocked.c:4:
../include/g_consts.h:26:1: error: C++ style comments are not allowed in ISO C90
//
^
../include/g_consts.h:26:1: error: (this will be reported only once per input file)
../include/g_consts.h:266:39: warning: missing terminating ' character
#define KF_ON_ENTER ( 32) // don't call on_enter event (every map change)
^
In file included from ../include/g_local.h:37:0,
from ../src/bot_blocked.c:4:
../include/g_syscalls.h:37:1: error: C++ style comments are not allowed in ISO C90
// trap_SPrint() flags
^
../include/g_syscalls.h:37:1: error: (this will be reported only once per input file)
In file included from ../include/g_local.h:141:0,
from ../src/bot_blocked.c:4:
../include/deathtype.h:10:32: error: C++ style comments are not allowed in ISO C90
DEATHTYPE( dtLG_DIS, lg_dis ) // discharge
^
../include/deathtype.h:10:32: error: (this will be reported only once per input file)
In file included from ../src/bot_blocked.c:4:0:
../include/g_local.h:247:30: error: expected expression before ‘/’ token
#define MAX_TEAM_NAME (32) // qqshka: 32 - is max len of team name?
^
../include/g_local.h:250:40: note: in expansion of macro ‘MAX_TEAM_NAME’
int getteams(char teams[MAX_CLIENTS][MAX_TEAM_NAME]);
^~~~~~~~~~~~~
../include/g_local.h:575:57: warning: missing terminating ' character
#define DO_CMD_DISALLOWED_MATCHLESS (-5) // if cmd does't allowed in matchLess mode
^
In file included from ../src/bot_blocked.c:5:0:
../src/fb_globals.h:1:1: error: C++ style comments are not allowed in ISO C90
// Converted from .qc on 05/02/2016
^
../src/fb_globals.h:1:1: error: (this will be reported only once per input file)
In file included from ../src/bot_blocked.c:5:0:
../src/fb_globals.h:145:119: warning: missing terminating ' character
#define MARKER_DOOR_TOUCHABLE 64 // If set, door will spawn a touchable marker. If not set, door shouldn't be in bot path definitions
^
../src/fb_globals.h:420:8: warning: extra tokens at end of #endif directive [-Wendif-labels]
#endif // ifdef(FB_GLOBALS_H)
^
../src/bot_blocked.c:31:1: error: C++ style comments are not allowed in ISO C90
// Gives us a chance to replace bot's command with another.
^
../src/bot_blocked.c:31:1: error: (this will be reported only once per input file)
In file included from ../include/g_local.h:36:0,
from ../src/bot_blocked.c:4:
../src/bot_blocked.c: In function ‘BotBlocked’:
../include/g_consts.h:38:27: error: expected expression before ‘/’ token
#define FL_ONGROUND 512 // standing on something
^
../src/fb_globals.h:64:36: note: in expansion of macro ‘FL_ONGROUND’
#define FL_ONGROUND_PARTIALGROUND (FL_ONGROUND | FL_PARTIALGROUND)
^~~~~~~~~~~
../src/bot_blocked.c:63:24: note: in expansion of macro ‘FL_ONGROUND_PARTIALGROUND’
dropper->s.v.flags = FL_ONGROUND_PARTIALGROUND;
^~~~~~~~~~~~~~~~~~~~~~~~~
../src/bot_blocked.c: In function ‘obstruction’:
../include/g_consts.h:38:27: error: expected expression before ‘/’ token
#define FL_ONGROUND 512 // standing on something
^
../src/bot_blocked.c:87:31: note: in expansion of macro ‘FL_ONGROUND’
qbool onGround = (newFlags & FL_ONGROUND);
^~~~~~~~~~~
../include/g_consts.h:40:28: error: expected expression before ‘/’ token
#define FL_WATERJUMP 2048 // player jumping out of water
^
../src/bot_blocked.c:88:32: note: in expansion of macro ‘FL_WATERJUMP’
qbool waterJump = (newFlags & FL_WATERJUMP);
^~~~~~~~~~~~
[3/100] Compiling C object 'qwprogs@sha/src_bot_aim.c.o'.
FAILED: qwprogs@sha/src_bot_aim.c.o
gcc -Iqwprogs@sha -I. -I.. -I../include -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c89 -g -fPIC -DBOT_SUPPORT=1 -MD -MQ 'qwprogs@sha/src_bot_aim.c.o' -MF 'qwprogs@sha/src_bot_aim.c.o.d' -o 'qwprogs@sha/src_bot_aim.c.o' -c ../src/bot_aim.c
../src/bot_aim.c:2:1: error: C++ style comments are not allowed in ISO C90
// bot_aim.c
^
../src/bot_aim.c:2:1: error: (this will be reported only once per input file)
In file included from ../src/bot_aim.c:5:0:
../include/g_local.h:26:1: error: C++ style comments are not allowed in ISO C90
// g_local.h -- local definitions for game module
^
../include/g_local.h:26:1: error: (this will be reported only once per input file)
In file included from ../include/g_local.h:32:0,
from ../src/bot_aim.c:5:
../include/q_shared.h:29:1: error: C++ style comments are not allowed in ISO C90
// q_shared.h -- included first by ALL program modules.
^
../include/q_shared.h:29:1: error: (this will be reported only once per input file)
In file included from ../include/g_local.h:32:0,
from ../src/bot_aim.c:5:
../include/q_shared.h:99:9: warning: extra tokens at end of #endif directive [-Wendif-labels]
#endif // defined( _WIN32 )
^
../include/q_shared.h:218:8: warning: extra tokens at end of #endif directive [-Wendif-labels]
#endif // __Q_SHARED_H
^
In file included from ../include/g_local.h:33:0,
from ../src/bot_aim.c:5:
../include/mathlib.h:26:1: error: C++ style comments are not allowed in ISO C90
// mathlib.h
^
../include/mathlib.h:26:1: error: (this will be reported only once per input file)
In file included from ../include/progs.h:26:0,
from ../include/g_local.h:34,
from ../src/bot_aim.c:5:
../include/progdefs.h:128:1: error: C++ style comments are not allowed in ISO C90
//hack
^
../include/progdefs.h:128:1: error: (this will be reported only once per input file)
In file included from ../include/g_local.h:34:0,
from ../src/bot_aim.c:5:
../include/progs.h:36:15: error: C++ style comments are not allowed in ISO C90
void *ptr; // this points to sv_edict_t but mod should NOT bother about that...
^
../include/progs.h:36:15: error: (this will be reported only once per input file)
../include/progs.h:28:30: error: expected expression before ‘/’ token
#define MAX_ROUTE_NODES 20 // max race checkpoints per race (including start and finish checkpoints)
^
../include/progs.h:1202:25: note: in expansion of macro ‘MAX_ROUTE_NODES’
raceRouteNode_t node[MAX_ROUTE_NODES]; // nodes of this route, fixed array, yeah I'm lazy
^~~~~~~~~~~~~~~
In file included from ../include/g_local.h:34:0,
from ../src/bot_aim.c:5:
../include/progs.h:1203:1: warning: no semicolon at end of struct or union
} raceRoute_t;
^
In file included from ../include/g_local.h:34:0,
from ../src/bot_aim.c:5:
../include/progs.h:29:26: error: expected expression before ‘/’ token
#define MAX_ROUTES 20 // max race route per map
^
../include/progs.h:1238:23: note: in expansion of macro ‘MAX_ROUTES’
raceRoute_t route[MAX_ROUTES]; // fixed array of routes
^~~~~~~~~~
In file included from ../include/g_local.h:35:0,
from ../src/bot_aim.c:5:
../include/g_public.h:30:1: error: C++ style comments are not allowed in ISO C90
// Copyright (C) 1999-2000 Id Software, Inc.
^
../include/g_public.h:30:1: error: (this will be reported only once per input file)
In file included from ../include/g_local.h:36:0,
from ../src/bot_aim.c:5:
../include/g_consts.h:26:1: error: C++ style comments are not allowed in ISO C90
//
^
../include/g_consts.h:26:1: error: (this will be reported only once per input file)
../include/g_consts.h:266:39: warning: missing terminating ' character
#define KF_ON_ENTER ( 32) // don't call on_enter event (every map change)
^
In file included from ../include/g_local.h:37:0,
from ../src/bot_aim.c:5:
../include/g_syscalls.h:37:1: error: C++ style comments are not allowed in ISO C90
// trap_SPrint() flags
^
../include/g_syscalls.h:37:1: error: (this will be reported only once per input file)
In file included from ../include/g_local.h:141:0,
from ../src/bot_aim.c:5:
../include/deathtype.h:10:32: error: C++ style comments are not allowed in ISO C90
DEATHTYPE( dtLG_DIS, lg_dis ) // discharge
^
../include/deathtype.h:10:32: error: (this will be reported only once per input file)
In file included from ../src/bot_aim.c:5:0:
../include/g_local.h:247:30: error: expected expression before ‘/’ token
#define MAX_TEAM_NAME (32) // qqshka: 32 - is max len of team name?
^
../include/g_local.h:250:40: note: in expansion of macro ‘MAX_TEAM_NAME’
int getteams(char teams[MAX_CLIENTS][MAX_TEAM_NAME]);
^~~~~~~~~~~~~
../include/g_local.h:575:57: warning: missing terminating ' character
#define DO_CMD_DISALLOWED_MATCHLESS (-5) // if cmd does't allowed in matchLess mode
^
In file included from ../src/bot_aim.c:6:0:
../src/fb_globals.h:1:1: error: C++ style comments are not allowed in ISO C90
// Converted from .qc on 05/02/2016
^
../src/fb_globals.h:1:1: error: (this will be reported only once per input file)
In file included from ../src/bot_aim.c:6:0:
../src/fb_globals.h:145:119: warning: missing terminating ' character
#define MARKER_DOOR_TOUCHABLE 64 // If set, door will spawn a touchable marker. If not set, door shouldn't be in bot path definitions
^
../src/fb_globals.h:420:8: warning: extra tokens at end of #endif directive [-Wendif-labels]
#endif // ifdef(FB_GLOBALS_H)
^
In file included from ../include/g_local.h:37:0,
from ../src/bot_aim.c:5:
../src/bot_aim.c: In function ‘BotSetDesiredAngles’:
../include/g_syscalls.h:59:42: error: expected expression before ‘/’ token
#define STUFFCMD_DEMOONLY ( 1<<1) // put in mvd demo only
^
../src/bot_aim.c:32:24: note: in expansion of macro ‘STUFFCMD_DEMOONLY’
stuffcmd_flags(self, STUFFCMD_DEMOONLY, "//botcmd-desired %f %f %f %f\n", g_globalvars.time, PASSVEC3(self->fb.desired_angle));
^~~~~~~~~~~~~~~~~
../src/bot_aim.c:32:3: error: too few arguments to function ‘stuffcmd_flags’
stuffcmd_flags(self, STUFFCMD_DEMOONLY, "//botcmd-desired %f %f %f %f\n", g_globalvars.time, PASSVEC3(self->fb.desired_angle));
^~~~~~~~~~~~~~
In file included from ../src/bot_aim.c:5:0:
../include/g_local.h:219:7: note: declared here
void stuffcmd_flags( gedict_t * ed, int flags, const char *fmt, ... );
^~~~~~~~~~~~~~
In file included from ../include/g_local.h:37:0,
from ../src/bot_aim.c:5:
../include/g_syscalls.h:59:42: error: expected expression before ‘/’ token
#define STUFFCMD_DEMOONLY ( 1<<1) // put in mvd demo only
^
../src/bot_aim.c:39:25: note: in expansion of macro ‘STUFFCMD_DEMOONLY’
stuffcmd_flags(self, STUFFCMD_DEMOONLY, "//botcmd-modified %f %f %f %f\n", g_globalvars.time, PASSVEC3(self->fb.desired_angle));
^~~~~~~~~~~~~~~~~
../src/bot_aim.c:39:4: error: too few arguments to function ‘stuffcmd_flags’
stuffcmd_flags(self, STUFFCMD_DEMOONLY, "//botcmd-modified %f %f %f %f\n", g_globalvars.time, PASSVEC3(self->fb.desired_angle));
^~~~~~~~~~~~~~
In file included from ../src/bot_aim.c:5:0:
../include/g_local.h:219:7: note: declared here
void stuffcmd_flags( gedict_t * ed, int flags, const char *fmt, ... );
^~~~~~~~~~~~~~
In file included from ../include/g_local.h:36:0,
from ../src/bot_aim.c:5:
../src/bot_aim.c: In function ‘PredictSpot’:
../include/g_consts.h:38:27: error: expected expression before ‘/’ token
#define FL_ONGROUND 512 // standing on something
^
../src/fb_globals.h:64:36: note: in expansion of macro ‘FL_ONGROUND’
#define FL_ONGROUND_PARTIALGROUND (FL_ONGROUND | FL_PARTIALGROUND)
^~~~~~~~~~~
../src/bot_aim.c:60:23: note: in expansion of macro ‘FL_ONGROUND_PARTIALGROUND’
dropper->s.v.flags = FL_ONGROUND_PARTIALGROUND;
^~~~~~~~~~~~~~~~~~~~~~~~~
../src/bot_aim.c: In function ‘PredictEnemyLocationInFuture’:
../include/g_consts.h:61:24: error: expected expression before ‘/’ token
#define SOLID_NOT 0 // no interaction with other objects
^
../src/bot_aim.c:93:21: note: in expansion of macro ‘SOLID_NOT’
enemy->s.v.solid = SOLID_NOT;
^~~~~~~~~
../src/bot_aim.c: In function ‘BotsAimAtPlayerLogic’:
../include/g_consts.h:288:30: error: expected expression before ‘/’ token
#define CTF_RUNE_HST 4 // IT_SIGIL3
^
../src/bot_aim.c:162:71: note: in expansion of macro ‘CTF_RUNE_HST’
if (IsNailgun(self->fb.desired_weapon_impulse) && (self->ctf_flag & CTF_RUNE_HST)) {
^~~~~~~~~~~~
../src/bot_aim.c: In function ‘CalculateVolatility’:
../include/g_consts.h:38:27: error: expected expression before ‘/’ token
#define FL_ONGROUND 512 // standing on something
^
../src/fb_globals.h:64:36: note: in expansion of macro ‘FL_ONGROUND’
#define FL_ONGROUND_PARTIALGROUND (FL_ONGROUND | FL_PARTIALGROUND)
^~~~~~~~~~~
../src/bot_aim.c:248:32: note: in expansion of macro ‘FL_ONGROUND_PARTIALGROUND’
if (!((int)self->s.v.flags & FL_ONGROUND_PARTIALGROUND)) {
^~~~~~~~~~~~~~~~~~~~~~~~~
../include/g_consts.h:38:27: error: expected expression before ‘/’ token
#define FL_ONGROUND 512 // standing on something
^
../src/fb_globals.h:64:36: note: in expansion of macro ‘FL_ONGROUND’
#define FL_ONGROUND_PARTIALGROUND (FL_ONGROUND | FL_PARTIALGROUND)
^~~~~~~~~~~
../src/bot_aim.c:251:36: note: in expansion of macro ‘FL_ONGROUND_PARTIALGROUND’
if (!((int)opponent->s.v.flags & FL_ONGROUND_PARTIALGROUND)) {
^~~~~~~~~~~~~~~~~~~~~~~~~
../src/bot_aim.c: In function ‘BotsAimAtFloor’:
../include/g_consts.h:38:27: error: expected expression before ‘/’ token
#define FL_ONGROUND 512 // standing on something
^
../src/bot_aim.c:333:46: note: in expansion of macro ‘FL_ONGROUND’
if ((int)self->fb.look_object->s.v.flags & FL_ONGROUND) {
^~~~~~~~~~~
../src/bot_aim.c: At top level:
../src/bot_aim.c:425:8: warning: extra tokens at end of #endif directive [-Wendif-labels]
#endif // BOT_SUPPORT
^
[4/100] Compiling C object 'qwprogs@sha/src_admin.c.o'.
FAILED: qwprogs@sha/src_admin.c.o
gcc -Iqwprogs@sha -I. -I.. -I../include -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c89 -g -fPIC -DBOT_SUPPORT=1 -MD -MQ 'qwprogs@sha/src_admin.c.o' -MF 'qwprogs@sha/src_admin.c.o.d' -o 'qwprogs@sha/src_admin.c.o' -c ../src/admin.c
../src/admin.c:5:1: error: C++ style comments are not allowed in ISO C90
// admin.c
^
../src/admin.c:5:1: error: (this will be reported only once per input file)
In file included from ../src/admin.c:7:0:
../include/g_local.h:26:1: error: C++ style comments are not allowed in ISO C90
// g_local.h -- local definitions for game module
^
../include/g_local.h:26:1: error: (this will be reported only once per input file)
In file included from ../include/g_local.h:32:0,
from ../src/admin.c:7:
../include/q_shared.h:29:1: error: C++ style comments are not allowed in ISO C90
// q_shared.h -- included first by ALL program modules.
^
../include/q_shared.h:29:1: error: (this will be reported only once per input file)
In file included from ../include/g_local.h:32:0,
from ../src/admin.c:7:
../include/q_shared.h:99:9: warning: extra tokens at end of #endif directive [-Wendif-labels]
#endif // defined( _WIN32 )
^
../include/q_shared.h:218:8: warning: extra tokens at end of #endif directive [-Wendif-labels]
#endif // __Q_SHARED_H
^
In file included from ../include/g_local.h:33:0,
from ../src/admin.c:7:
../include/mathlib.h:26:1: error: C++ style comments are not allowed in ISO C90
// mathlib.h
^
../include/mathlib.h:26:1: error: (this will be reported only once per input file)
In file included from ../include/progs.h:26:0,
from ../include/g_local.h:34,
from ../src/admin.c:7:
../include/progdefs.h:128:1: error: C++ style comments are not allowed in ISO C90
//hack
^
../include/progdefs.h:128:1: error: (this will be reported only once per input file)
In file included from ../include/g_local.h:34:0,
from ../src/admin.c:7:
../include/progs.h:36:15: error: C++ style comments are not allowed in ISO C90
void *ptr; // this points to sv_edict_t but mod should NOT bother about that...
^
../include/progs.h:36:15: error: (this will be reported only once per input file)
../include/progs.h:28:30: error: expected expression before ‘/’ token
#define MAX_ROUTE_NODES 20 // max race checkpoints per race (including start and finish checkpoints)
^
../include/progs.h:1202:25: note: in expansion of macro ‘MAX_ROUTE_NODES’
raceRouteNode_t node[MAX_ROUTE_NODES]; // nodes of this route, fixed array, yeah I'm lazy
^~~~~~~~~~~~~~~
In file included from ../include/g_local.h:34:0,
from ../src/admin.c:7:
../include/progs.h:1203:1: warning: no semicolon at end of struct or union
} raceRoute_t;
^
In file included from ../include/g_local.h:34:0,
from ../src/admin.c:7:
../include/progs.h:29:26: error: expected expression before ‘/’ token
#define MAX_ROUTES 20 // max race route per map
^
../include/progs.h:1238:23: note: in expansion of macro ‘MAX_ROUTES’
raceRoute_t route[MAX_ROUTES]; // fixed array of routes
^~~~~~~~~~
In file included from ../include/g_local.h:35:0,
from ../src/admin.c:7:
../include/g_public.h:30:1: error: C++ style comments are not allowed in ISO C90
// Copyright (C) 1999-2000 Id Software, Inc.
^
../include/g_public.h:30:1: error: (this will be reported only once per input file)
In file included from ../include/g_local.h:36:0,
from ../src/admin.c:7:
../include/g_consts.h:26:1: error: C++ style comments are not allowed in ISO C90
//
^
../include/g_consts.h:26:1: error: (this will be reported only once per input file)
../include/g_consts.h:266:39: warning: missing terminating ' character
#define KF_ON_ENTER ( 32) // don't call on_enter event (every map change)
^
In file included from ../include/g_local.h:37:0,
from ../src/admin.c:7:
../include/g_syscalls.h:37:1: error: C++ style comments are not allowed in ISO C90
// trap_SPrint() flags
^
../include/g_syscalls.h:37:1: error: (this will be reported only once per input file)
In file included from ../include/g_local.h:141:0,
from ../src/admin.c:7:
../include/deathtype.h:10:32: error: C++ style comments are not allowed in ISO C90
DEATHTYPE( dtLG_DIS, lg_dis ) // discharge
^
../include/deathtype.h:10:32: error: (this will be reported only once per input file)
In file included from ../src/admin.c:7:0:
../include/g_local.h:247:30: error: expected expression before ‘/’ token
#define MAX_TEAM_NAME (32) // qqshka: 32 - is max len of team name?
^
../include/g_local.h:250:40: note: in expansion of macro ‘MAX_TEAM_NAME’
int getteams(char teams[MAX_CLIENTS][MAX_TEAM_NAME]);
^~~~~~~~~~~~~
../include/g_local.h:575:57: warning: missing terminating ' character
#define DO_CMD_DISALLOWED_MATCHLESS (-5) // if cmd does't allowed in matchLess mode
^
../src/admin.c: In function ‘is_real_adm’:
../include/g_local.h:709:32: error: expected expression before ‘/’ token
#define AF_REAL_ADMIN (1<<1) // pass/vip granted admin (real admin in terms of ktpro)
^
../src/admin.c:17:23: note: in expansion of macro ‘AF_REAL_ADMIN’
return (p->k_admin & AF_REAL_ADMIN);
^~~~~~~~~~~~~
../src/admin.c: In function ‘is_adm’:
../include/g_local.h:708:32: error: expected expression before ‘/’ token
#define AF_ADMIN (1<<0) // elected admin
^
../src/admin.c:23:45: note: in expansion of macro ‘AF_ADMIN’
return ( is_real_adm( p ) || (p->k_admin & AF_ADMIN) );
^~~~~~~~
../src/admin.c: In function ‘is_can_kick’:
../include/g_local.h:645:31: error: expected expression before ‘/’ token
#define VIP_NOTKICKABLE ( 2) // not kickable VIP by elected admins
^
../src/admin.c:58:27: note: in expansion of macro ‘VIP_NOTKICKABLE’
if ( VIP_IsFlags(victim, VIP_NOTKICKABLE) && !is_real_adm(kicker) ) {
^~~~~~~~~~~~~~~
../src/admin.c: In function ‘ReqAdmin’:
../include/g_local.h:646:31: error: expected expression before ‘/’ token
#define VIP_ADMIN ( 4) // VIP with admin rights
^
../src/admin.c:292:26: note: in expansion of macro ‘VIP_ADMIN’
if ( VIP_IsFlags( self, VIP_ADMIN ) ) // this VIP does't required pass
^~~~~~~~~
../include/g_local.h:709:32: error: expected expression before ‘/’ token
#define AF_REAL_ADMIN (1<<1) // pass/vip granted admin (real admin in terms of ktpro)
^
../src/admin.c:294:21: note: in expansion of macro ‘AF_REAL_ADMIN’
BecomeAdmin(self, AF_REAL_ADMIN);
^~~~~~~~~~~~~
../include/g_local.h:709:32: error: expected expression before ‘/’ token
#define AF_REAL_ADMIN (1<<1) // pass/vip granted admin (real admin in terms of ktpro)
^
../src/admin.c:312:22: note: in expansion of macro ‘AF_REAL_ADMIN’
BecomeAdmin(self, AF_REAL_ADMIN);
^~~~~~~~~~~~~
../src/admin.c: In function ‘AdminImpBot’:
../include/g_local.h:709:32: error: expected expression before ‘/’ token
#define AF_REAL_ADMIN (1<<1) // pass/vip granted admin (real admin in terms of ktpro)
^
../src/admin.c:363:22: note: in expansion of macro ‘AF_REAL_ADMIN’
BecomeAdmin(self, AF_REAL_ADMIN);
^~~~~~~~~~~~~
In file included from ../include/g_local.h:37:0,
from ../src/admin.c:7:
../src/admin.c: In function ‘PlayerStopFire’:
../include/g_syscalls.h:58:42: error: expected expression before ‘/’ token
#define STUFFCMD_IGNOREINDEMO ( 1<<0) // do not put in mvd demo
^
../src/admin.c:631:20: note: in expansion of macro ‘STUFFCMD_IGNOREINDEMO’
stuffcmd_flags(p, STUFFCMD_IGNOREINDEMO, "-attack\n");
^~~~~~~~~~~~~~~~~~~~~
../src/admin.c:631:2: error: too few arguments to function ‘stuffcmd_flags’
stuffcmd_flags(p, STUFFCMD_IGNOREINDEMO, "-attack\n");
^~~~~~~~~~~~~~
In file included from ../src/admin.c:7:0:
../include/g_local.h:219:7: note: declared here
void stuffcmd_flags( gedict_t * ed, int flags, const char *fmt, ... );
^~~~~~~~~~~~~~
In file included from ../include/g_local.h:37:0,
from ../src/admin.c:7:
../src/admin.c: In function ‘AdminSwapAll’:
../include/g_syscalls.h:58:42: error: expected expression before ‘/’ token
#define STUFFCMD_IGNOREINDEMO ( 1<<0) // do not put in mvd demo
^
../src/admin.c:765:28: note: in expansion of macro ‘STUFFCMD_IGNOREINDEMO’
stuffcmd_flags(p, STUFFCMD_IGNOREINDEMO, "team \"red\"\ncolor 4\n");
^~~~~~~~~~~~~~~~~~~~~
../src/admin.c:765:10: error: too few arguments to function ‘stuffcmd_flags’
stuffcmd_flags(p, STUFFCMD_IGNOREINDEMO, "team \"red\"\ncolor 4\n");
^~~~~~~~~~~~~~
In file included from ../src/admin.c:7:0:
../include/g_local.h:219:7: note: declared here
void stuffcmd_flags( gedict_t * ed, int flags, const char *fmt, ... );
^~~~~~~~~~~~~~
In file included from ../include/g_local.h:37:0,
from ../src/admin.c:7:
../include/g_syscalls.h:58:42: error: expected expression before ‘/’ token
#define STUFFCMD_IGNOREINDEMO ( 1<<0) // do not put in mvd demo
^
../src/admin.c:767:22: note: in expansion of macro ‘STUFFCMD_IGNOREINDEMO’
stuffcmd_flags(p, STUFFCMD_IGNOREINDEMO, "team \"blue\"\ncolor 13\n");
^~~~~~~~~~~~~~~~~~~~~
../src/admin.c:767:4: error: too few arguments to function ‘stuffcmd_flags’
stuffcmd_flags(p, STUFFCMD_IGNOREINDEMO, "team \"blue\"\ncolor 13\n");
^~~~~~~~~~~~~~
In file included from ../src/admin.c:7:0:
../include/g_local.h:219:7: note: declared here
void stuffcmd_flags( gedict_t * ed, int flags, const char *fmt, ... );
^~~~~~~~~~~~~~
../src/admin.c: In function ‘is_can_forcespec’:
../include/g_local.h:645:31: error: expected expression before ‘/’ token
#define VIP_NOTKICKABLE ( 2) // not kickable VIP by elected admins
^
../src/admin.c:776:27: note: in expansion of macro ‘VIP_NOTKICKABLE’
if ( VIP_IsFlags(victim, VIP_NOTKICKABLE) && !is_real_adm(kicker) ) {
^~~~~~~~~~~~~~~
In file included from ../include/g_local.h:37:0,
from ../src/admin.c:7:
../src/admin.c: In function ‘do_force_spec’:
../include/g_syscalls.h:58:42: error: expected expression before ‘/’ token
#define STUFFCMD_IGNOREINDEMO ( 1<<0) // do not put in mvd demo
^
../src/admin.c:796:20: note: in expansion of macro ‘STUFFCMD_IGNOREINDEMO’
stuffcmd_flags(p, STUFFCMD_IGNOREINDEMO, spec ? "spectator 1\n" : "spectator \"\"\n");
^~~~~~~~~~~~~~~~~~~~~
../src/admin.c:796:2: error: too few arguments to function ‘stuffcmd_flags’
stuffcmd_flags(p, STUFFCMD_IGNOREINDEMO, spec ? "spectator 1\n" : "spectator \"\"\n");
^~~~~~~~~~~~~~
In file included from ../src/admin.c:7:0:
../include/g_local.h:219:7: note: declared here
void stuffcmd_flags( gedict_t * ed, int flags, const char *fmt, ... );
^~~~~~~~~~~~~~
In file included from ../include/g_local.h:37:0,
from ../src/admin.c:7:
../include/g_syscalls.h:58:42: error: expected expression before ‘/’ token
#define STUFFCMD_IGNOREINDEMO ( 1<<0) // do not put in mvd demo
^
../src/admin.c:799:21: note: in expansion of macro ‘STUFFCMD_IGNOREINDEMO’
stuffcmd_flags(p, STUFFCMD_IGNOREINDEMO, "say ,:dis\nwait;wait;wait; say ,:reconnect\n");
^~~~~~~~~~~~~~~~~~~~~
../src/admin.c:799:3: error: too few arguments to function ‘stuffcmd_flags’
stuffcmd_flags(p, STUFFCMD_IGNOREINDEMO, "say ,:dis\nwait;wait;wait; say ,:reconnect\n");
^~~~~~~~~~~~~~
In file included from ../src/admin.c:7:0:
../include/g_local.h:219:7: note: declared here
void stuffcmd_flags( gedict_t * ed, int flags, const char *fmt, ... );
^~~~~~~~~~~~~~
In file included from ../include/g_local.h:37:0,
from ../src/admin.c:7:
../include/g_syscalls.h:58:42: error: expected expression before ‘/’ token
#define STUFFCMD_IGNOREINDEMO ( 1<<0) // do not put in mvd demo
^
../src/admin.c:801:21: note: in expansion of macro ‘STUFFCMD_IGNOREINDEMO’
stuffcmd_flags(p, STUFFCMD_IGNOREINDEMO, "disconnect\nwait;wait;reconnect\n");
^~~~~~~~~~~~~~~~~~~~~
../src/admin.c:801:3: error: too few arguments to function ‘stuffcmd_flags’
stuffcmd_flags(p, STUFFCMD_IGNOREINDEMO, "disconnect\nwait;wait;reconnect\n");
^~~~~~~~~~~~~~
In file included from ../src/admin.c:7:0:
../include/g_local.h:219:7: note: declared here
void stuffcmd_flags( gedict_t * ed, int flags, const char *fmt, ... );
^~~~~~~~~~~~~~
../src/admin.c: In function ‘is_real_adm’:
../src/admin.c:18:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
../src/admin.c: In function ‘is_adm’:
../src/admin.c:24:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
[5/100] Compiling C object 'qwprogs@sha/src_bot_botenemy.c.o'.
FAILED: qwprogs@sha/src_bot_botenemy.c.o
gcc -Iqwprogs@sha -I. -I.. -I../include -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c89 -g -fPIC -DBOT_SUPPORT=1 -MD -MQ 'qwprogs@sha/src_bot_botenemy.c.o' -MF 'qwprogs@sha/src_bot_botenemy.c.o.d' -o 'qwprogs@sha/src_bot_botenemy.c.o' -c ../src/bot_botenemy.c
../src/bot_botenemy.c:6:1: error: C++ style comments are not allowed in ISO C90
// Converted from .qc on 05/02/2016
^
../src/bot_botenemy.c:6:1: error: (this will be reported only once per input file)
In file included from ../src/bot_botenemy.c:10:0:
../include/g_local.h:26:1: error: C++ style comments are not allowed in ISO C90
// g_local.h -- local definitions for game module
^
../include/g_local.h:26:1: error: (this will be reported only once per input file)
In file included from ../include/g_local.h:32:0,
from ../src/bot_botenemy.c:10:
../include/q_shared.h:29:1: error: C++ style comments are not allowed in ISO C90
// q_shared.h -- included first by ALL program modules.
^
../include/q_shared.h:29:1: error: (this will be reported only once per input file)
In file included from ../include/g_local.h:32:0,
from ../src/bot_botenemy.c:10:
../include/q_shared.h:99:9: warning: extra tokens at end of #endif directive [-Wendif-labels]
#endif // defined( _WIN32 )
^
../include/q_shared.h:218:8: warning: extra tokens at end of #endif directive [-Wendif-labels]
#endif // __Q_SHARED_H
^
In file included from ../include/g_local.h:33:0,
from ../src/bot_botenemy.c:10:
../include/mathlib.h:26:1: error: C++ style comments are not allowed in ISO C90
// mathlib.h
^
../include/mathlib.h:26:1: error: (this will be reported only once per input file)
In file included from ../include/progs.h:26:0,
from ../include/g_local.h:34,
from ../src/bot_botenemy.c:10:
../include/progdefs.h:128:1: error: C++ style comments are not allowed in ISO C90
//hack
^
../include/progdefs.h:128:1: error: (this will be reported only once per input file)
In file included from ../include/g_local.h:34:0,
from ../src/bot_botenemy.c:10:
../include/progs.h:36:15: error: C++ style comments are not allowed in ISO C90
void *ptr; // this points to sv_edict_t but mod should NOT bother about that...
^
../include/progs.h:36:15: error: (this will be reported only once per input file)
../include/progs.h:28:30: error: expected expression before ‘/’ token
#define MAX_ROUTE_NODES 20 // max race checkpoints per race (including start and finish checkpoints)
^
../include/progs.h:1202:25: note: in expansion of macro ‘MAX_ROUTE_NODES’
raceRouteNode_t node[MAX_ROUTE_NODES]; // nodes of this route, fixed array, yeah I'm lazy
^~~~~~~~~~~~~~~
In file included from ../include/g_local.h:34:0,
from ../src/bot_botenemy.c:10:
../include/progs.h:1203:1: warning: no semicolon at end of struct or union
} raceRoute_t;
^
In file included from ../include/g_local.h:34:0,
from ../src/bot_botenemy.c:10:
../include/progs.h:29:26: error: expected expression before ‘/’ token
#define MAX_ROUTES 20 // max race route per map
^
../include/progs.h:1238:23: note: in expansion of macro ‘MAX_ROUTES’
raceRoute_t route[MAX_ROUTES]; // fixed array of routes
^~~~~~~~~~
In file included from ../include/g_local.h:35:0,
from ../src/bot_botenemy.c:10:
../include/g_public.h:30:1: error: C++ style comments are not allowed in ISO C90
// Copyright (C) 1999-2000 Id Software, Inc.
^
../include/g_public.h:30:1: error: (this will be reported only once per input file)
In file included from ../include/g_local.h:36:0,
from ../src/bot_botenemy.c:10:
../include/g_consts.h:26:1: error: C++ style comments are not allowed in ISO C90
//
^
../include/g_consts.h:26:1: error: (this will be reported only once per input file)
../include/g_consts.h:266:39: warning: missing terminating ' character
#define KF_ON_ENTER ( 32) // don't call on_enter event (every map change)
^
In file included from ../include/g_local.h:37:0,
from ../src/bot_botenemy.c:10:
../include/g_syscalls.h:37:1: error: C++ style comments are not allowed in ISO C90
// trap_SPrint() flags
^
../include/g_syscalls.h:37:1: error: (this will be reported only once per input file)
In file included from ../include/g_local.h:141:0,
from ../src/bot_botenemy.c:10:
../include/deathtype.h:10:32: error: C++ style comments are not allowed in ISO C90
DEATHTYPE( dtLG_DIS, lg_dis ) // discharge
^
../include/deathtype.h:10:32: error: (this will be reported only once per input file)
In file included from ../src/bot_botenemy.c:10:0:
../include/g_local.h:247:30: error: expected expression before ‘/’ token
#define MAX_TEAM_NAME (32) // qqshka: 32 - is max len of team name?
^
../include/g_local.h:250:40: note: in expansion of macro ‘MAX_TEAM_NAME’
int getteams(char teams[MAX_CLIENTS][MAX_TEAM_NAME]);
^~~~~~~~~~~~~
../include/g_local.h:575:57: warning: missing terminating ' character
#define DO_CMD_DISALLOWED_MATCHLESS (-5) // if cmd does't allowed in matchLess mode
^
In file included from ../src/bot_botenemy.c:11:0:
../src/fb_globals.h:1:1: error: C++ style comments are not allowed in ISO C90
// Converted from .qc on 05/02/2016
^
../src/fb_globals.h:1:1: error: (this will be reported only once per input file)
In file included from ../src/bot_botenemy.c:11:0:
../src/fb_globals.h:145:119: warning: missing terminating ' character
#define MARKER_DOOR_TOUCHABLE 64 // If set, door will spawn a touchable marker. If not set, door shouldn't be in bot path definitions
^
../src/fb_globals.h:420:8: warning: extra tokens at end of #endif directive [-Wendif-labels]
#endif // ifdef(FB_GLOBALS_H)
^
[6/100] Compiling C object 'qwprogs@sha/src_weapons.c.o'.
FAILED: qwprogs@sha/src_weapons.c.o
gcc -Iqwprogs@sha -I. -I.. -I../include -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c89 -g -fPIC -DBOT_SUPPORT=1 -MD -MQ 'qwprogs@sha/src_weapons.c.o' -MF 'qwprogs@sha/src_weapons.c.o.d' -o 'qwprogs@sha/src_weapons.c.o' -c ../src/weapons.c
In file included from ../src/weapons.c:26:0:
../include/g_local.h:26:1: error: C++ style comments are not allowed in ISO C90
// g_local.h -- local definitions for game module
^
../include/g_local.h:26:1: error: (this will be reported only once per input file)
In file included from ../include/g_local.h:32:0,
from ../src/weapons.c:26:
../include/q_shared.h:29:1: error: C++ style comments are not allowed in ISO C90
// q_shared.h -- included first by ALL program modules.
^
../include/q_shared.h:29:1: error: (this will be reported only once per input file)
In file included from ../include/g_local.h:32:0,
from ../src/weapons.c:26:
../include/q_shared.h:99:9: warning: extra tokens at end of #endif directive [-Wendif-labels]
#endif // defined( _WIN32 )
^
../include/q_shared.h:218:8: warning: extra tokens at end of #endif directive [-Wendif-labels]
#endif // __Q_SHARED_H
^
In file included from ../include/g_local.h:33:0,
from ../src/weapons.c:26:
../include/mathlib.h:26:1: error: C++ style comments are not allowed in ISO C90
// mathlib.h
^
../include/mathlib.h:26:1: error: (this will be reported only once per input file)
In file included from ../include/progs.h:26:0,
from ../include/g_local.h:34,
from ../src/weapons.c:26:
../include/progdefs.h:128:1: error: C++ style comments are not allowed in ISO C90
//hack
^
../include/progdefs.h:128:1: error: (this will be reported only once per input file)
In file included from ../include/g_local.h:34:0,
from ../src/weapons.c:26:
../include/progs.h:36:15: error: C++ style comments are not allowed in ISO C90
void *ptr; // this points to sv_edict_t but mod should NOT bother about that...
^
../include/progs.h:36:15: error: (this will be reported only once per input file)
../include/progs.h:28:30: error: expected expression before ‘/’ token
#define MAX_ROUTE_NODES 20 // max race checkpoints per race (including start and finish checkpoints)
^
../include/progs.h:1202:25: note: in expansion of macro ‘MAX_ROUTE_NODES’
raceRouteNode_t node[MAX_ROUTE_NODES]; // nodes of this route, fixed array, yeah I'm lazy
^~~~~~~~~~~~~~~
In file included from ../include/g_local.h:34:0,
from ../src/weapons.c:26:
../include/progs.h:1203:1: warning: no semicolon at end of struct or union
} raceRoute_t;
^
In file included from ../include/g_local.h:34:0,
from ../src/weapons.c:26:
../include/progs.h:29:26: error: expected expression before ‘/’ token
#define MAX_ROUTES 20 // max race route per map
^
../include/progs.h:1238:23: note: in expansion of macro ‘MAX_ROUTES’
raceRoute_t route[MAX_ROUTES]; // fixed array of routes
^~~~~~~~~~
In file included from ../include/g_local.h:35:0,
from ../src/weapons.c:26:
../include/g_public.h:30:1: error: C++ style comments are not allowed in ISO C90
// Copyright (C) 1999-2000 Id Software, Inc.
^
../include/g_public.h:30:1: error: (this will be reported only once per input file)
In file included from ../include/g_local.h:36:0,
from ../src/weapons.c:26:
../include/g_consts.h:26:1: error: C++ style comments are not allowed in ISO C90
//
^
../include/g_consts.h:26:1: error: (this will be reported only once per input file)
../include/g_consts.h:266:39: warning: missing terminating ' character
#define KF_ON_ENTER ( 32) // don't call on_enter event (every map change)
^
In file included from ../include/g_local.h:37:0,
from ../src/weapons.c:26:
../include/g_syscalls.h:37:1: error: C++ style comments are not allowed in ISO C90
// trap_SPrint() flags
^
../include/g_syscalls.h:37:1: error: (this will be reported only once per input file)
In file included from ../include/g_local.h:141:0,
from ../src/weapons.c:26:
../include/deathtype.h:10:32: error: C++ style comments are not allowed in ISO C90
DEATHTYPE( dtLG_DIS, lg_dis ) // discharge
^
../include/deathtype.h:10:32: error: (this will be reported only once per input file)
In file included from ../src/weapons.c:26:0:
../include/g_local.h:247:30: error: expected expression before ‘/’ token
#define MAX_TEAM_NAME (32) // qqshka: 32 - is max len of team name?
^
../include/g_local.h:250:40: note: in expansion of macro ‘MAX_TEAM_NAME’
int getteams(char teams[MAX_CLIENTS][MAX_TEAM_NAME]);
^~~~~~~~~~~~~
../include/g_local.h:575:57: warning: missing terminating ' character
#define DO_CMD_DISALLOWED_MATCHLESS (-5) // if cmd does't allowed in matchLess mode
^
../src/weapons.c:33:1: error: C++ style comments are not allowed in ISO C90
// Bots support
^
../src/weapons.c:33:1: error: (this will be reported only once per input file)
In file included from ../include/g_local.h:36:0,
from ../src/weapons.c:26:
../src/weapons.c: In function ‘W_FireAxe’:
../include/g_consts.h:251:29: error: expected expression before ‘/’ token
#define MULTICAST_PVS 2 // within sight
^
../src/weapons.c:141:36: note: in expansion of macro ‘MULTICAST_PVS’
trap_multicast( PASSVEC3( org ), MULTICAST_PVS );
^~~~~~~~~~~~~
../src/weapons.c: In function ‘SpawnMeatSpray’:
../include/g_consts.h:61:24: error: expected expression before ‘/’ token
#define SOLID_NOT 0 // no interaction with other objects
^
../src/weapons.c:193:23: note: in expansion of macro ‘SOLID_NOT’
missile->s.v.solid = SOLID_NOT;
^~~~~~~~~
../src/weapons.c: In function ‘SpawnBlood’:
../include/g_consts.h:251:29: error: expected expression before ‘/’ token
#define MULTICAST_PVS 2 // within sight
^
../src/weapons.c:229:35: note: in expansion of macro ‘MULTICAST_PVS’
trap_multicast( PASSVEC3( org ), MULTICAST_PVS );
^~~~~~~~~~~~~
../src/weapons.c: In function ‘Multi_Finish’:
../include/g_consts.h:251:29: error: expected expression before ‘/’ token
#define MULTICAST_PVS 2 // within sight
^
../src/weapons.c:307:41: note: in expansion of macro ‘MULTICAST_PVS’
trap_multicast( PASSVEC3( puff_org ), MULTICAST_PVS );
^~~~~~~~~~~~~
../src/weapons.c: In function ‘CoilgunTrail’:
../include/g_consts.h:250:29: error: expected expression before ‘/’ token
#define MULTICAST_PHS 1 // within hearing
^
../src/weapons.c:331:35: note: in expansion of macro ‘MULTICAST_PHS’
trap_multicast( PASSVEC3( org ), MULTICAST_PHS );
^~~~~~~~~~~~~
../src/weapons.c: In function ‘TraceAttack’:
../include/g_consts.h:251:29: error: expected expression before ‘/’ token
#define MULTICAST_PVS 2 // within sight
^
../src/weapons.c:390:42: note: in expansion of macro ‘MULTICAST_PVS’
trap_multicast( PASSVEC3( puff_org ), MULTICAST_PVS );
^~~~~~~~~~~~~
../src/weapons.c: In function ‘FireInstaBullet’:
../include/g_consts.h:54:33: error: expected expression before ‘/’ token
#define MOVETYPE_FLYMISSILE 9 // fly with extra size against monsters
^
../src/weapons.c:416:32: note: in expansion of macro ‘MOVETYPE_FLYMISSILE’
newmis->s.v.movetype = MOVETYPE_FLYMISSILE;
^~~~~~~~~~~~~~~~~~~
../include/g_consts.h:63:25: error: expected expression before ‘/’ token
#define SOLID_BBOX 2 // touch on edge, block
^
../src/weapons.c:418:29: note: in expansion of macro ‘SOLID_BBOX’
newmis->s.v.solid = SOLID_BBOX;
^~~~~~~~~~
../include/g_consts.h:64:27: error: expected expression before ‘/’ token
#define SOLID_SLIDEBOX 3 // touch on edge, but not an onground
^
../src/weapons.c:486:17: note: in expansion of macro ‘SOLID_SLIDEBOX’
if ( solid != SOLID_SLIDEBOX )
^~~~~~~~~~~~~~
../src/weapons.c: In function ‘W_FireShotgun’:
../include/g_consts.h:179:23: error: expected expression before ‘/’ token
#define MSG_ONE 1 // reliable to one (msg_entity)
^
../src/weapons.c:761:13: note: in expansion of macro ‘MSG_ONE’
WriteByte( MSG_ONE, SVC_SMALLKICK );
^~~~~~~
../src/weapons.c:761:2: error: too few arguments to function ‘WriteByte’
WriteByte( MSG_ONE, SVC_SMALLKICK );
^~~~~~~~~
In file included from ../src/weapons.c:26:0:
../include/g_local.h:235:7: note: declared here
void WriteByte( int to, int data );
^~~~~~~~~
In file included from ../include/g_local.h:36:0,
from ../src/weapons.c:26:
../src/weapons.c: In function ‘W_FireSuperShotgun’:
../include/g_consts.h:179:23: error: expected expression before ‘/’ token
#define MSG_ONE 1 // reliable to one (msg_entity)
^
../src/weapons.c:801:13: note: in expansion of macro ‘MSG_ONE’
WriteByte( MSG_ONE, SVC_BIGKICK );
^~~~~~~
../src/weapons.c:801:2: error: too few arguments to function ‘WriteByte’
WriteByte( MSG_ONE, SVC_BIGKICK );
^~~~~~~~~
In file included from ../src/weapons.c:26:0:
../include/g_local.h:235:7: note: declared here
void WriteByte( int to, int data );
^~~~~~~~~
In file included from ../include/g_local.h:36:0,
from ../src/weapons.c:26:
../src/weapons.c: In function ‘T_MissileTouch’:
../include/g_consts.h:65:24: error: expected expression before ‘/’ token
#define SOLID_BSP 4 // bsp clip, touch on edge, block
^
../src/weapons.c:874:39: note: in expansion of macro ‘SOLID_BSP’
if ( isRACE() && other->s.v.solid != SOLID_BSP)
^~~~~~~~~
../include/g_consts.h:250:29: error: expected expression before ‘/’ token
#define MULTICAST_PHS 1 // within hearing
^
../src/weapons.c:925:48: note: in expansion of macro ‘MULTICAST_PHS’
trap_multicast( PASSVEC3( self->s.v.origin ), MULTICAST_PHS );
^~~~~~~~~~~~~
../src/weapons.c: In function ‘W_FireRocket’:
../include/g_consts.h:179:23: error: expected expression before ‘/’ token
#define MSG_ONE 1 // reliable to one (msg_entity)
^
../src/weapons.c:952:13: note: in expansion of macro ‘MSG_ONE’
WriteByte( MSG_ONE, SVC_SMALLKICK );
^~~~~~~
../src/weapons.c:952:2: error: too few arguments to function ‘WriteByte’
WriteByte( MSG_ONE, SVC_SMALLKICK );
^~~~~~~~~
In file included from ../src/weapons.c:26:0:
../include/g_local.h:235:7: note: declared here
void WriteByte( int to, int data );
^~~~~~~~~
In file included from ../include/g_local.h:36:0,
from ../src/weapons.c:26:
../include/g_consts.h:54:33: error: expected expression before ‘/’ token
#define MOVETYPE_FLYMISSILE 9 // fly with extra size against monsters
^
../src/weapons.c:957:25: note: in expansion of macro ‘MOVETYPE_FLYMISSILE’
newmis->s.v.movetype = MOVETYPE_FLYMISSILE;
^~~~~~~~~~~~~~~~~~~
../include/g_consts.h:62:27: error: expected expression before ‘/’ token
#define SOLID_TRIGGER 1 // touch on edge, but not blocking
^
../src/weapons.c:959:34: note: in expansion of macro ‘SOLID_TRIGGER’
newmis->s.v.solid = (isRACE() ? SOLID_TRIGGER : SOLID_BBOX);
^~~~~~~~~~~~~
../src/weapons.c: In function ‘LightningHit’:
../include/g_consts.h:251:29: error: expected expression before ‘/’ token
#define MULTICAST_PVS 2 // within sight
^
../src/weapons.c:1017:57: note: in expansion of macro ‘MULTICAST_PVS’
trap_multicast( PASSVEC3( g_globalvars.trace_endpos ), MULTICAST_PVS );
^~~~~~~~~~~~~
../src/weapons.c: In function ‘W_FireLightning’:
../include/g_consts.h:179:23: error: expected expression before ‘/’ token
#define MSG_ONE 1 // reliable to one (msg_entity)
^
../src/weapons.c:1130:13: note: in expansion of macro ‘MSG_ONE’
WriteByte( MSG_ONE, SVC_SMALLKICK );
^~~~~~~
../src/weapons.c:1130:2: error: too few arguments to function ‘WriteByte’
WriteByte( MSG_ONE, SVC_SMALLKICK );
^~~~~~~~~
In file included from ../src/weapons.c:26:0:
../include/g_local.h:235:7: note: declared here
void WriteByte( int to, int data );
^~~~~~~~~
In file included from ../include/g_local.h:36:0,
from ../src/weapons.c:26:
../include/g_consts.h:250:29: error: expected expression before ‘/’ token
#define MULTICAST_PHS 1 // within hearing
^
../src/weapons.c:1156:35: note: in expansion of macro ‘MULTICAST_PHS’
trap_multicast( PASSVEC3( org ), MULTICAST_PHS );
^~~~~~~~~~~~~
../src/weapons.c: In function ‘GrenadeExplode’:
../include/g_consts.h:250:29: error: expected expression before ‘/’ token
#define MULTICAST_PHS 1 // within hearing
^
../src/weapons.c:1188:48: note: in expansion of macro ‘MULTICAST_PHS’
trap_multicast( PASSVEC3( self->s.v.origin ), MULTICAST_PHS );
^~~~~~~~~~~~~
../src/weapons.c: In function ‘W_FireGrenade’:
../include/g_consts.h:179:23: error: expected expression before ‘/’ token
#define MSG_ONE 1 // reliable to one (msg_entity)
^
../src/weapons.c:1247:13: note: in expansion of macro ‘MSG_ONE’
WriteByte( MSG_ONE, SVC_SMALLKICK );
^~~~~~~
../src/weapons.c:1247:2: error: too few arguments to function ‘WriteByte’
WriteByte( MSG_ONE, SVC_SMALLKICK );
^~~~~~~~~
In file included from ../src/weapons.c:26:0:
../include/g_local.h:235:7: note: declared here
void WriteByte( int to, int data );
^~~~~~~~~
In file included from ../include/g_local.h:36:0,
from ../src/weapons.c:26:
../include/g_consts.h:63:25: error: expected expression before ‘/’ token
#define SOLID_BBOX 2 // touch on edge, block
^
../src/weapons.c:1255:22: note: in expansion of macro ‘SOLID_BBOX’
newmis->s.v.solid = SOLID_BBOX;
^~~~~~~~~~
../src/weapons.c: In function ‘launch_spike’:
../include/g_consts.h:54:33: error: expected expression before ‘/’ token
#define MOVETYPE_FLYMISSILE 9 // fly with extra size against monsters
^
../src/weapons.c:1326:25: note: in expansion of macro ‘MOVETYPE_FLYMISSILE’
newmis->s.v.movetype = MOVETYPE_FLYMISSILE;
^~~~~~~~~~~~~~~~~~~
../include/g_consts.h:62:27: error: expected expression before ‘/’ token
#define SOLID_TRIGGER 1 // touch on edge, but not blocking
^
../src/weapons.c:1328:34: note: in expansion of macro ‘SOLID_TRIGGER’
newmis->s.v.solid = (isRACE() ? SOLID_TRIGGER : SOLID_BBOX);
^~~~~~~~~~~~~
../src/weapons.c: In function ‘spike_touch’:
../include/g_consts.h:62:27: error: expected expression before ‘/’ token
#define SOLID_TRIGGER 1 // touch on edge, but not blocking
^
../src/weapons.c:1381:26: note: in expansion of macro ‘SOLID_TRIGGER’
if (other->s.v.solid == SOLID_TRIGGER) {
^~~~~~~~~~~~~
../include/g_consts.h:250:29: error: expected expression before ‘/’ token
#define MULTICAST_PHS 1 // within hearing
^
../src/weapons.c:1419:49: note: in expansion of macro ‘MULTICAST_PHS’
trap_multicast( PASSVEC3( self->s.v.origin ), MULTICAST_PHS );
^~~~~~~~~~~~~
../src/weapons.c: In function ‘superspike_touch’:
../include/g_consts.h:62:27: error: expected expression before ‘/’ token
#define SOLID_TRIGGER 1 // touch on edge, but not blocking
^
../src/weapons.c:1441:27: note: in expansion of macro ‘SOLID_TRIGGER’
if ( other->s.v.solid == SOLID_TRIGGER )
^~~~~~~~~~~~~
../include/g_consts.h:250:29: error: expected expression before ‘/’ token
#define MULTICAST_PHS 1 // within hearing
^
../src/weapons.c:1472:49: note: in expansion of macro ‘MULTICAST_PHS’
trap_multicast( PASSVEC3( self->s.v.origin ), MULTICAST_PHS );
^~~~~~~~~~~~~
../src/weapons.c: In function ‘W_FireSuperSpikes’:
../include/g_consts.h:179:23: error: expected expression before ‘/’ token
#define MSG_ONE 1 // reliable to one (msg_entity)
^
../src/weapons.c:1504:13: note: in expansion of macro ‘MSG_ONE’
WriteByte( MSG_ONE, SVC_SMALLKICK );
^~~~~~~
../src/weapons.c:1504:2: error: too few arguments to function ‘WriteByte’
WriteByte( MSG_ONE, SVC_SMALLKICK );
^~~~~~~~~
In file included from ../src/weapons.c:26:0:
../include/g_local.h:235:7: note: declared here
void WriteByte( int to, int data );
^~~~~~~~~
In file included from ../include/g_local.h:36:0,
from ../src/weapons.c:26:
../src/weapons.c: In function ‘W_FireSpikes’:
../include/g_consts.h:179:23: error: expected expression before ‘/’ token
#define MSG_ONE 1 // reliable to one (msg_entity)
^
../src/weapons.c:1555:13: note: in expansion of macro ‘MSG_ONE’
WriteByte( MSG_ONE, SVC_SMALLKICK );
^~~~~~~
../src/weapons.c:1555:2: error: too few arguments to function ‘WriteByte’
WriteByte( MSG_ONE, SVC_SMALLKICK );
^~~~~~~~~
In file included from ../src/weapons.c:26:0:
../include/g_local.h:235:7: note: declared here
void WriteByte( int to, int data );
^~~~~~~~~
In file included from ../include/g_local.h:36:0,
from ../src/weapons.c:26:
../src/weapons.c: In function ‘W_Attack’:
../include/g_consts.h:288:30: error: expected expression before ‘/’ token
#define CTF_RUNE_HST 4 // IT_SIGIL3
^
../src/weapons.c:1829:31: note: in expansion of macro ‘CTF_RUNE_HST’
if ( self->ctf_flag & CTF_RUNE_HST )
^~~~~~~~~~~~
../include/g_consts.h:288:30: error: expected expression before ‘/’ token
#define CTF_RUNE_HST 4 // IT_SIGIL3
^
../src/weapons.c:1855:25: note: in expansion of macro ‘CTF_RUNE_HST’
if ( self->ctf_flag & CTF_RUNE_HST )
^~~~~~~~~~~~
../include/g_consts.h:288:30: error: expected expression before ‘/’ token
#define CTF_RUNE_HST 4 // IT_SIGIL3
^
../src/weapons.c:1876:27: note: in expansion of macro ‘CTF_RUNE_HST’
if ( self->ctf_flag & CTF_RUNE_HST )
^~~~~~~~~~~~
../include/g_consts.h:288:30: error: expected expression before ‘/’ token
#define CTF_RUNE_HST 4 // IT_SIGIL3
^
../src/weapons.c:1902:25: note: in expansion of macro ‘CTF_RUNE_HST’
if ( self->ctf_flag & CTF_RUNE_HST )
^~~~~~~~~~~~
../include/g_consts.h:288:30: error: expected expression before ‘/’ token
#define CTF_RUNE_HST 4 // IT_SIGIL3
^
../src/weapons.c:1916:25: note: in expansion of macro ‘CTF_RUNE_HST’
if ( self->ctf_flag & CTF_RUNE_HST )
^~~~~~~~~~~~
../src/weapons.c: In function ‘W_CanSwitch’:
../include/g_consts.h:187:26: error: expected expression before ‘/’ token
#define PRINT_HIGH 2 // critical messages
^
../src/weapons.c:2004:20: note: in expansion of macro ‘PRINT_HIGH’
G_sprint( self, PRINT_HIGH, "no weapon\n" );
^~~~~~~~~~
../src/weapons.c:2004:4: error: too few arguments to function ‘G_sprint’
G_sprint( self, PRINT_HIGH, "no weapon\n" );
^~~~~~~~
In file included from ../src/weapons.c:26:0:
../include/g_local.h:182:17: note: declared here
void G_sprint( gedict_t * ed, int level, const char *fmt, ... );
^~~~~~~~
In file included from ../include/g_local.h:36:0,
from ../src/weapons.c:26:
../include/g_consts.h:187:26: error: expected expression before ‘/’ token
#define PRINT_HIGH 2 // critical messages
^
../src/weapons.c:2011:20: note: in expansion of macro ‘PRINT_HIGH’
G_sprint( self, PRINT_HIGH, "not enough ammo\n" );
^~~~~~~~~~
../src/weapons.c:2011:4: error: too few arguments to function ‘G_sprint’
G_sprint( self, PRINT_HIGH, "not enough ammo\n" );
^~~~~~~~
In file included from ../src/weapons.c:26:0:
../include/g_local.h:182:17: note: declared here
void G_sprint( gedict_t * ed, int level, const char *fmt, ... );
^~~~~~~~
In file included from ../include/g_local.h:36:0,
from ../src/weapons.c:26:
../src/weapons.c: In function ‘W_ChangeWeapon’:
../include/g_consts.h:187:26: error: expected expression before ‘/’ token
#define PRINT_HIGH 2 // critical messages
^
../src/weapons.c:2095:19: note: in expansion of macro ‘PRINT_HIGH’
G_sprint( self, PRINT_HIGH, "no weapon\n" );
^~~~~~~~~~
../src/weapons.c:2095:3: error: too few arguments to function ‘G_sprint’
G_sprint( self, PRINT_HIGH, "no weapon\n" );
^~~~~~~~
In file included from ../src/weapons.c:26:0:
../include/g_local.h:182:17: note: declared here
void G_sprint( gedict_t * ed, int level, const char *fmt, ... );
^~~~~~~~
In file included from ../include/g_local.h:36:0,
from ../src/weapons.c:26:
../include/g_consts.h:187:26: error: expected expression before ‘/’ token
#define PRINT_HIGH 2 // critical messages
^
../src/weapons.c:2097:19: note: in expansion of macro ‘PRINT_HIGH’
G_sprint( self, PRINT_HIGH, "not enough ammo\n" );
^~~~~~~~~~
../src/weapons.c:2097:3: error: too few arguments to function ‘G_sprint’
G_sprint( self, PRINT_HIGH, "not enough ammo\n" );
^~~~~~~~
In file included from ../src/weapons.c:26:0:
../include/g_local.h:182:17: note: declared here
void G_sprint( gedict_t * ed, int level, const char *fmt, ... );
^~~~~~~~
In file included from ../include/g_local.h:36:0,
from ../src/weapons.c:26:
../src/weapons.c: In function ‘W_WeaponFrame’:
../include/g_consts.h:42:33: error: expected expression before ‘/’ token
#define FL_ATTACKRELEASED 8192 // for attack debouncing
^
../src/weapons.c:2421:57: note: in expansion of macro ‘FL_ATTACKRELEASED’
self->s.v.flags = ( ( int ) ( self->s.v.flags ) ) | FL_ATTACKRELEASED;
^~~~~~~~~~~~~~~~~
../src/weapons.c: In function ‘SuperDamageSound’:
../include/g_consts.h:287:30: error: expected expression before ‘/’ token
#define CTF_RUNE_STR 2 // IT_SIGIL2
^
../src/weapons.c:2468:35: note: in expansion of macro ‘CTF_RUNE_STR’
if ( self->ctf_flag & CTF_RUNE_STR )
^~~~~~~~~~~~
../include/g_consts.h:287:30: error: expected expression before ‘/’ token
#define CTF_RUNE_STR 2 // IT_SIGIL2
^
../src/weapons.c:2474:29: note: in expansion of macro ‘CTF_RUNE_STR’
else if ( self->ctf_flag & CTF_RUNE_STR )
^~~~~~~~~~~~
ninja: build stopped: subcommand failed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment