gcc -Wl,-z,relro -Wl,-z,now client.o network.o gui.o callbacks.o utils.o dice.o cards.o game.o colormap.o help.o riskgame.o debug.o clientMain.o colorEdit.o registerPlayers.o addPlayer.o viewStats.o viewCards.o viewLog.o viewChat.o viewFeedback.oxgethostname.o -I/usr/X11R6/include -L/usr/X11R6/lib -lXaw3d -lXext -lXmu -lXt -lSM -lICE -lX11 -o xfrisk
aiStubs.c: In function ‘UTIL_ExitProgram’:
aiStubs.c:88:45: error: implicit declaration of function ‘exit’ [-Werror=implicit-function-declaration]
88 | void UTIL_ExitProgram(Int32 iExitValue) { exit(iExitValue); }
| ^~~~
aiStubs.c:28:1: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
27 | #include "utils.h"
+++ |+#include <stdlib.h>
28 |
aiStubs.c:88:45: warning: incompatible implicit declaration of built-in function ‘exit’ [-Wbuiltin-declaration-mismatch]
88 | void UTIL_ExitProgram(Int32 iExitValue) { exit(iExitValue); }
| ^~~~
aiStubs.c:88:45: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
aiClientMain.c: In function ‘AI_Start’:
aiClientMain.c:353:37: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
353 | __AI_Callback(NULL, AI_INIT_ONCE, (void *)iSpeciesID);
| ^
aiClientMain.c: In function ‘CBK_IncomingMessage’:
aiClientMain.c:500:47: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
500 | __AI_Callback(NULL, AI_INIT_GAME, (void *)iSpeciesID);
| ^
aiConway.c: In function ‘CNT_WorstDefended’:
aiConway.c:334:25: warning: cast between incompatible function types from ‘void (*)(COUNTRY *)’ {aka ‘void (*)(struct country *)’} to ‘int (*)(COUNTRY *)’ {aka ‘int (*)(struct country *)’} [-Wcast-function-type]
334 | CLIST_Evaluate (have, (EvalFunc)CNT_Vulnerability);
| ^
aiConway.c: In function ‘CNT_BestDefended’:
aiConway.c:343:25: warning: cast between incompatible function types from ‘void (*)(COUNTRY *)’ {aka ‘void (*)(struct country *)’} to ‘int (*)(COUNTRY *)’ {aka ‘int (*)(struct country *)’} [-Wcast-function-type]
343 | CLIST_Evaluate (have, (EvalFunc)CNT_Vulnerability);
| ^
aiConway.c: In function ‘find_nearest’:
aiConway.c:485:34: warning: cast between incompatible function types from ‘void (*)(COUNTRY *)’ {aka ‘void (*)(struct country *)’} to ‘int (*)(COUNTRY *)’ {aka ‘int (*)(struct country *)’} [-Wcast-function-type]
485 | CLIST_Evaluate (pAllCountries, (EvalFunc)CNT_SetZeroFlag);
| ^
aiConway.c:502:23: warning: cast between incompatible function types from ‘void (*)(COUNTRY *)’ {aka ‘void (*)(struct country *)’} to ‘int (*)(COUNTRY *)’ {aka ‘int (*)(struct country *)’} [-Wcast-function-type]
502 | (EvalFunc)CNT_AddIfConquerable);
| ^
aiConway.c: In function ‘find_destination’:
aiConway.c:552:38: warning: cast between incompatible function types from ‘void (*)(COUNTRY *)’ {aka ‘void (*)(struct country *)’} to ‘int (*)(COUNTRY *)’ {aka ‘int (*)(struct country *)’} [-Wcast-function-type]
552 | CLIST_Evaluate (pDesiredCountries, (EvalFunc)CNT_IsNearest);
| ^
cc1: some warnings being treated as errors
buildmap.c: In function ‘main’:
buildmap.c:332:23: warning: too many arguments for format [-Wformat-extra-args]
332 | fprintf(stdout, ".", i);
| ^~~
aiConway.c: In function ‘CLIST_CalculateUsefulness’:
aiConway.c:700:34: warning: cast between incompatible function types from ‘void (*)(COUNTRY *)’ {aka ‘void (*)(struct country *)’} to ‘int (*)(COUNTRY *)’ {aka ‘int (*)(struct country *)’} [-Wcast-function-type]
700 | CLIST_Evaluate (pAllCountries, (EvalFunc)CNT_SetZeroNearness);
| ^
aiConway.c:701:38: warning: cast between incompatible function types from ‘void (*)(COUNTRY *)’ {aka ‘void (*)(struct country *)’} to ‘int (*)(COUNTRY *)’ {aka ‘int (*)(struct country *)’} [-Wcast-function-type]
701 | CLIST_Evaluate (pDesiredCountries, (EvalFunc)do_nearness);
| ^
aiConway.c:702:34: warning: cast between incompatible function types from ‘void (*)(COUNTRY *)’ {aka ‘void (*)(struct country *)’} to ‘int (*)(COUNTRY *)’ {aka ‘int (*)(struct country *)’} [-Wcast-function-type]
702 | CLIST_Evaluate (pAllCountries, (EvalFunc)CNT_CalculateUsefulness);
| ^
aiConway.c: In function ‘make_wholelist’:
make[1]: *** [<builtin>: aiStubs.o] Error 1
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 297 |
Nodes: | 16 (2 / 14) |
Uptime: | 10:09:24 |
Calls: | 6,666 |
Files: | 12,213 |
Messages: | 5,336,333 |