Cook: xbattle 5.4.1 ================================================================================ QA: checking package receipt... Checking build dependencies... Installing (pkg/local): xorg-cf-files-1.0.6-any Installing (pkg/local): imake-1.0.7-i486 Installing (pkg/local): libxdmcp-1.1.2-i486 Installing (pkg/local): xorgproto-2018.4-any Installing (pkg/local): libxdmcp-dev-1.1.2-any Installing (pkg/local): libxau-1.0.8-i486 Installing (pkg/local): libxau-dev-1.0.8-any Installing (pkg/local): libxcb-1.13.1-i486 Installing (pkg/local): libx11-1.6.7-i486 Installing (pkg/local): libxcb-dev-1.13.1-any Installing (pkg/local): libx11-dev-1.6.7-any Installing (pkg/local): libxext-1.3.3-i486 Installing (pkg/local): libxext-dev-1.3.3-any Installing (pkg/local): libxrender-0.9.10-i486 Installing (pkg/local): libxrender-dev-0.9.10-any Installing (pkg/local): libxrandr-1.5.1-i486 Installing (pkg/local): libxrandr-dev-1.5.1-any Installing (pkg/local): libxfixes-5.0.3-i486 Installing (pkg/local): libxfixes-dev-5.0.3-any Installing (pkg/local): libfontenc-1.1.3-i486 Installing (pkg/local): libfontenc-dev-1.1.3-any Installing (pkg/local): libpcre-8.42-i486 Installing (pkg/local): util-linux-smartcols-2.33.1-i486 Installing (pkg/local): util-linux-uuid-2.33.1-i486 Installing (pkg/local): util-linux-blkid-2.33.1-i486 Installing (pkg/local): util-linux-mount-2.33.1-i486 Installing (pkg/local): glib-2.64.3-i486 Installing (pkg/local): libharfbuzz-1.8.4-i486 Installing (pkg/local): libpng-1.6.36-i486 Installing (pkg/local): freetype-2.10.2-i486 Installing (pkg/local): libxfont-1.5.4-i486 Installing (pkg/local): bzip2-dev-1.0.8-i486 Installing (pkg/local): libxml2-2.9.9-i486 Installing (pkg/local): fontconfig-2.13.1-i486 Installing (pkg/local): pixman-0.36.0-i486 Installing (pkg/local): libcairo-1.16.0-i486 Installing (pkg/local): harfbuzz-1.8.4-i486 Installing (pkg/local): libpcre16-8.42-i486 Installing (pkg/local): libpcre32-8.42-i486 Installing (pkg/local): libpcrecpp-8.42-i486 Installing (pkg/local): libpcreposix-8.42-i486 Installing (pkg/local): pcre-8.42-any Installing (pkg/local): pcre-apps-8.42-i486 Installing (pkg/local): pcre-dev-8.42-any Installing (pkg/local): libgdbm-1.18.1-i486 Installing (pkg/local): perl-core-5.28.1-i486 Installing (pkg/local): perl-5.28.1-i486 Installing (pkg/local): util-linux-uuid-dev-2.33.1-any Installing (pkg/local): util-linux-blkid-dev-2.33.1-any Installing (pkg/local): util-linux-mount-dev-2.33.1-any Installing (pkg/local): zlib-dev-1.2.11-any Installing (pkg/local): glib-dev-2.64.3-i486 Installing (pkg/local): harfbuzz-dev-1.8.4-i486 Installing (pkg/local): libpng-dev-1.6.36-i486 Installing (pkg/local): freetype-dev-2.10.2-i486 Installing (pkg/local): libxfont-dev-1.5.4-any Installing (pkg/local): libxft-2.3.2-i486 Installing (pkg/local): xz-tools-5.2.4-i486 Installing (pkg/local): xz-dev-5.2.4-any Installing (pkg/local): libxml2-tools-2.9.9-i486 Installing (pkg/local): libxml2-dev-2.9.9-any Installing (pkg/local): fontconfig-dev-2.13.1-any Installing (pkg/local): libxft-dev-2.3.2-any Installing (pkg/local): libxcomposite-0.4.4-i486 Installing (pkg/local): libxcomposite-dev-0.4.4-any Installing (pkg/local): libxkbfile-1.0.9-i486 Installing (pkg/local): libxkbfile-dev-1.0.9-any Installing (pkg/local): libice-1.0.9-i486 Installing (pkg/local): libice-dev-1.0.9-any Installing (pkg/local): libsm-1.2.3-i486 Installing (pkg/local): libsm-dev-1.2.3-any Installing (pkg/local): libxt-1.1.5-i486 Installing (pkg/local): libxt-dev-1.1.5-any Installing (pkg/local): libxinerama-1.1.4-i486 Installing (pkg/local): libxinerama-dev-1.1.4-any Installing (pkg/local): libxmu-1.1.2-i486 Installing (pkg/local): libxmu-dev-1.1.2-any Installing (pkg/local): libxpm-3.5.12-i486 Installing (pkg/local): libxpm-util-3.5.12-i486 Installing (pkg/local): libxpm-dev-3.5.12-any Installing (pkg/local): libxaw-1.0.13-i486 Installing (pkg/local): libxaw-dev-1.0.13-any Installing (pkg/local): libxtst-1.2.3-i486 Installing (pkg/local): libxi-1.7.9-i486 Installing (pkg/local): libxi-dev-1.7.9-any Installing (pkg/local): libxtst-dev-1.2.3-any Installing (pkg/local): libxcursor-1.1.15-i486 Installing (pkg/local): libxcursor-dev-1.1.15-any Installing (pkg/local): libxdamage-1.1.4-i486 Installing (pkg/local): libxdamage-dev-1.1.4-any Installing (pkg/local): xorg-dev-7.7-any Installing (pkg/local): xauth-1.0.10-i486 Installing (pkg/local): font-misc-misc-base-1.1.2-any Installing (pkg/local): libpciaccess-0.14-i486 Installing (pkg/local): libxscrnsaver-1.2.3-i486 Installing (pkg/local): libxxf86vm-1.1.4-i486 Installing (pkg/local): xkbcomp-1.4.2-i486 Installing (pkg/local): xkeyboard-config-2.25-any Installing (pkg/local): xorg-7.7-any Extracting source archive "xbattle_5.4.1.orig.tar.gz" Executing: compile_rules CFLAGS : -march=i486 -Os -pipe -mindirect-branch=thunk CXXLAGS : -march=i486 -Os -pipe -mindirect-branch=thunk CPPFLAGS : -D_GLIBCXX_USE_C99_MATH=1 LDFLAGS : -Wl,-Os,--as-needed Applying patch pseudo_color.u patching file window.c imake -DUseInstalled -I/usr/lib/X11/config gcc -m32 -O2 -fno-strength-reduce -fno-strict-aliasing -I/usr/include -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFUNCPROTO=15 -DNARROWPROTO -DDEFAULT_XBO_DIR=\"/export/home/lesher/xbos\" -DDEFAULT_XBT_DIR=\"/export/home/lesher/xbts\" -DDEFAULT_XBA_DIR=\"/export/home/lesher/xbas\" -D_GLIBCXX_USE_C99_MATH=1 -c -o command.o command.c gcc -m32 -O2 -fno-strength-reduce -fno-strict-aliasing -I/usr/include -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFUNCPROTO=15 -DNARROWPROTO -DDEFAULT_XBO_DIR=\"/export/home/lesher/xbos\" -DDEFAULT_XBT_DIR=\"/export/home/lesher/xbts\" -DDEFAULT_XBA_DIR=\"/export/home/lesher/xbas\" -D_GLIBCXX_USE_C99_MATH=1 -c -o draw.o draw.c gcc -m32 -O2 -fno-strength-reduce -fno-strict-aliasing -I/usr/include -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFUNCPROTO=15 -DNARROWPROTO -DDEFAULT_XBO_DIR=\"/export/home/lesher/xbos\" -DDEFAULT_XBT_DIR=\"/export/home/lesher/xbts\" -DDEFAULT_XBA_DIR=\"/export/home/lesher/xbas\" -D_GLIBCXX_USE_C99_MATH=1 -c -o edit.o edit.c gcc -m32 -O2 -fno-strength-reduce -fno-strict-aliasing -I/usr/include -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFUNCPROTO=15 -DNARROWPROTO -DDEFAULT_XBO_DIR=\"/export/home/lesher/xbos\" -DDEFAULT_XBT_DIR=\"/export/home/lesher/xbts\" -DDEFAULT_XBA_DIR=\"/export/home/lesher/xbas\" -D_GLIBCXX_USE_C99_MATH=1 -c -o error.o error.c gcc -m32 -O2 -fno-strength-reduce -fno-strict-aliasing -I/usr/include -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFUNCPROTO=15 -DNARROWPROTO -DDEFAULT_XBO_DIR=\"/export/home/lesher/xbos\" -DDEFAULT_XBT_DIR=\"/export/home/lesher/xbts\" -DDEFAULT_XBA_DIR=\"/export/home/lesher/xbas\" -D_GLIBCXX_USE_C99_MATH=1 -c -o init.o init.c gcc -m32 -O2 -fno-strength-reduce -fno-strict-aliasing -I/usr/include -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFUNCPROTO=15 -DNARROWPROTO -DDEFAULT_XBO_DIR=\"/export/home/lesher/xbos\" -DDEFAULT_XBT_DIR=\"/export/home/lesher/xbts\" -DDEFAULT_XBA_DIR=\"/export/home/lesher/xbas\" -D_GLIBCXX_USE_C99_MATH=1 -c -o load.o load.c In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from command.c:1: /usr/include/features.h:184:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" ^~~~~~~ In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from init.c:1: /usr/include/features.h:184:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" ^~~~~~~ In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from error.c:1: /usr/include/features.h:184:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" ^~~~~~~ In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from draw.c:1: /usr/include/features.h:184:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" ^~~~~~~ In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from edit.c:1: /usr/include/features.h:184:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" ^~~~~~~ In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from load.c:1: /usr/include/features.h:184:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" ^~~~~~~ command.c:25:1: warning: return type defaults to 'int' [-Wimplicit-int] run_march (cell, player, side, x, y, button, tdir) ^~~~~~~~~ command.c: In function 'run_march': command.c:43:5: warning: 'return' with no value, in function returning non-void return; ^~~~~~ command.c:25:1: note: declared here run_march (cell, player, side, x, y, button, tdir) ^~~~~~~~~ command.c: At top level: command.c:95:1: warning: return type defaults to 'int' [-Wimplicit-int] run_attack (cell, side) ^~~~~~~~~~ command.c: In function 'run_attack': command.c:110:5: warning: 'return' with no value, in function returning non-void return; ^~~~~~ command.c:95:1: note: declared here run_attack (cell, side) ^~~~~~~~~~ command.c:115:5: warning: 'return' with no value, in function returning non-void return; ^~~~~~ command.c:95:1: note: declared here run_attack (cell, side) ^~~~~~~~~~ command.c:153:9: warning: 'return' with no value, in function returning non-void return; ^~~~~~ command.c:95:1: note: declared here run_attack (cell, side) ^~~~~~~~~~ command.c:163:9: warning: implicit declaration of function 'set_move_force' [-Wimplicit-function-declaration] set_move_force (cell2, tdir, 0); ^~~~~~~~~~~~~~ command.c: At top level: command.c:180:1: warning: return type defaults to 'int' [-Wimplicit-int] run_zero (cell) ^~~~~~~~ command.c:199:1: warning: return type defaults to 'int' [-Wimplicit-int] run_dig (cell) ^~~~~~~ command.c: In function 'run_dig': command.c:224:5: warning: 'return' with no value, in function returning non-void return; ^~~~~~ command.c:199:1: note: declared here run_dig (cell) ^~~~~~~ command.c:231:5: warning: 'return' with no value, in function returning non-void return; ^~~~~~ command.c:199:1: note: declared here run_dig (cell) ^~~~~~~ command.c:263:7: warning: implicit declaration of function 'update_cell_horizon' [-Wimplicit-function-declaration] update_cell_horizon (cell, cell->side); ^~~~~~~~~~~~~~~~~~~ command.c:264:7: warning: implicit declaration of function 'update_cell_clean' [-Wimplicit-function-declaration] update_cell_clean (cell); ^~~~~~~~~~~~~~~~~ command.c: At top level: command.c:325:1: warning: return type defaults to 'int' [-Wimplicit-int] run_fill (cell) ^~~~~~~~ command.c: In function 'run_fill': command.c:354:5: warning: 'return' with no value, in function returning non-void return; ^~~~~~ command.c:325:1: note: declared here run_fill (cell) ^~~~~~~~ command.c:360:5: warning: 'return' with no value, in function returning non-void return; ^~~~~~ command.c:325:1: note: declared here run_fill (cell) ^~~~~~~~ command.c: At top level: command.c:424:1: warning: return type defaults to 'int' [-Wimplicit-int] run_scuttle (cell) ^~~~~~~~~~~ command.c: In function 'run_scuttle': command.c:435:5: warning: 'return' with no value, in function returning non-void return; ^~~~~~ command.c:424:1: note: declared here run_scuttle (cell) ^~~~~~~~~~~ command.c:440:5: warning: 'return' with no value, in function returning non-void return; ^~~~~~ command.c:424:1: note: declared here run_scuttle (cell) ^~~~~~~~~~~ command.c: At top level: command.c:530:1: warning: return type defaults to 'int' [-Wimplicit-int] run_build (cell, side) ^~~~~~~~~ command.c: In function 'run_build': command.c:544:7: warning: 'return' with no value, in function returning non-void return; ^~~~~~ command.c:530:1: note: declared here run_build (cell, side) ^~~~~~~~~ command.c: At top level: command.c:585:1: warning: return type defaults to 'int' [-Wimplicit-int] run_reserve (cell, player, side, text) ^~~~~~~~~~~ command.c: In function 'run_reserve': command.c:609:3: warning: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration] strcpy (line, XWindow[player]->letter[player]); ^~~~~~ command.c:609:3: warning: incompatible implicit declaration of built-in function 'strcpy' command.c:609:3: note: include '' or provide a declaration of 'strcpy' command.c:17:1: +#include command.c:609:3: strcpy (line, XWindow[player]->letter[player]); ^~~~~~ command.c:616:3: warning: implicit declaration of function 'draw_cell'; did you mean 'get_cell'? [-Wimplicit-function-declaration] draw_cell (cell, player, TRUE); ^~~~~~~~~ get_cell command.c: At top level: command.c:632:1: warning: return type defaults to 'int' [-Wimplicit-int] run_shoot (cell, current_player, xpos, ypos, calculate, is_artillery) ^~~~~~~~~ command.c: In function 'run_shoot': command.c:681:5: warning: 'return' with no value, in function returning non-void return; ^~~~~~ command.c:632:1: note: declared here run_shoot (cell, current_player, xpos, ypos, calculate, is_artillery) ^~~~~~~~~ command.c:722:7: warning: 'return' with no value, in function returning non-void return; ^~~~~~ command.c:632:1: note: declared here run_shoot (cell, current_player, xpos, ypos, calculate, is_artillery) ^~~~~~~~~ command.c:839:9: warning: implicit declaration of function 'is_visible' [-Wimplicit-function-declaration] if (is_visible (cell, side)) ^~~~~~~~~~ command.c:853:7: warning: implicit declaration of function 'store_draw_cell' [-Wimplicit-function-declaration] store_draw_cell (cell); ^~~~~~~~~~~~~~~ command.c:864:9: warning: implicit declaration of function 'draw_shell' [-Wimplicit-function-declaration] draw_shell (dest_cell, player, source_side); ^~~~~~~~~~ command.c:866:9: warning: implicit declaration of function 'draw_chute'; did you mean 'XK_wacute'? [-Wimplicit-function-declaration] draw_chute (dest_cell, player, source_side); ^~~~~~~~~~ XK_wacute draw.c:25:1: warning: return type defaults to 'int' [-Wimplicit-int] draw_board (current_player, justboard) ^~~~~~~~~~ edit.c:26:1: warning: return type defaults to 'int' [-Wimplicit-int] edit_board () ^~~~~~~~~~ draw.c: In function 'draw_board': draw.c:71:9: warning: implicit declaration of function 'draw_cell'; did you mean 'get_cell'? [-Wimplicit-function-declaration] draw_cell (cell, current_player, TRUE); ^~~~~~~~~ get_cell edit.c: In function 'edit_board': edit.c:51:3: warning: implicit declaration of function 'draw_board'; did you mean 'edit_board'? [-Wimplicit-function-declaration] draw_board (player, TRUE); ^~~~~~~~~~ edit_board edit.c:114:9: warning: implicit declaration of function 'draw_cell'; did you mean 'get_cell'? [-Wimplicit-function-declaration] draw_cell (cell, player, TRUE); ^~~~~~~~~ get_cell draw.c:74:11: warning: implicit declaration of function 'store_draw_cell' [-Wimplicit-function-declaration] store_draw_cell (cell); ^~~~~~~~~~~~~~~ edit.c:286:13: warning: implicit declaration of function 'dump_board'; did you mean 'edit_board'? [-Wimplicit-function-declaration] dump_board (Config->file_store_map, Config->use_brief_load); ^~~~~~~~~~ edit_board edit.c:294:13: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] exit (0); ^~~~ edit.c:294:13: warning: incompatible implicit declaration of built-in function 'exit' edit.c:294:13: note: include '' or provide a declaration of 'exit' edit.c:18:1: +#include edit.c:294:13: exit (0); ^~~~ draw.c:105:11: warning: implicit declaration of function 'is_visible' [-Wimplicit-function-declaration] if (is_visible (cell, current_side)) ^~~~~~~~~~ draw.c:132:10: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] Blank, strlen(Blank)); ^~~~~~ draw.c:132:10: warning: incompatible implicit declaration of built-in function 'strlen' draw.c:132:10: note: include '' or provide a declaration of 'strlen' draw.c:17:1: +#include draw.c:132:10: Blank, strlen(Blank)); ^~~~~~ draw.c: At top level: draw.c:154:1: warning: return type defaults to 'int' [-Wimplicit-int] draw_multiple_cell (cell) ^~~~~~~~~~~~~~~~~~ draw.c:193:1: warning: return type defaults to 'int' [-Wimplicit-int] draw_cell (cell, player, use_full) ^~~~~~~~~ load.c:27:1: warning: return type defaults to 'int' [-Wimplicit-int] dump_board (filename, use_brief) ^~~~~~~~~~ error.c:26:1: warning: return type defaults to 'int' [-Wimplicit-int] my_error_handler (my_display, my_error) ^~~~~~~~~~~~~~~~ load.c: In function 'dump_board': load.c:39:5: warning: implicit declaration of function 'throw_error' [-Wimplicit-function-declaration] throw_error ("Unable to open map file: %s", filename); ^~~~~~~~~~~ draw.c: In function 'draw_cell': draw.c:229:7: warning: implicit declaration of function 'draw_blank_cell'; did you mean 'draw_cell'? [-Wimplicit-function-declaration] draw_blank_cell (cell, player, FALSE); ^~~~~~~~~~~~~~~ draw_cell draw.c:232:5: warning: 'return' with no value, in function returning non-void return; ^~~~~~ draw.c:193:1: note: declared here draw_cell (cell, player, use_full) ^~~~~~~~~ init.c:26:1: warning: return type defaults to 'int' [-Wimplicit-int] init_board () ^~~~~~~~~~ init.c: In function 'init_board': init.c:37:46: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration] Config->stats[side] = (statistic_type *)(malloc(sizeof(statistic_type))); ^~~~~~ init.c:37:46: warning: incompatible implicit declaration of built-in function 'malloc' init.c:37:46: note: include '' or provide a declaration of 'malloc' init.c:18:1: +#include init.c:37:46: Config->stats[side] = (statistic_type *)(malloc(sizeof(statistic_type))); ^~~~~~ error.c: In function 'my_error_handler': error.c:35:3: warning: implicit declaration of function 'throw_message' [-Wimplicit-function-declaration] throw_message ("ERROR: ", "Unrecoverable, code %s", message); ^~~~~~~~~~~~~ init.c:46:3: warning: implicit declaration of function 'srand'; did you mean 'scanf'? [-Wimplicit-function-declaration] srand((long)Config->value_int_all[OPTION_SEED]); ^~~~~ scanf init.c:52:27: warning: incompatible implicit declaration of built-in function 'malloc' Board = (board_type *)(malloc(sizeof(board_type))); ^~~~~~ init.c:52:27: note: include '' or provide a declaration of 'malloc' init.c:132:5: warning: implicit declaration of function 'load_board'; did you mean 'init_board'? [-Wimplicit-function-declaration] load_board (Config->use_brief_load); ^~~~~~~~~~ init_board draw.c:463:11: warning: implicit declaration of function 'draw_arrows' [-Wimplicit-function-declaration] draw_arrows (cell, xwindow, hue_on, hue_off, ^~~~~~~~~~~ error.c:40:3: warning: implicit declaration of function 'dump_board' [-Wimplicit-function-declaration] dump_board (Config->file_store_map, FALSE); ^~~~~~~~~~ error.c:41:3: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] exit (0); ^~~~ error.c:41:3: warning: incompatible implicit declaration of built-in function 'exit' error.c:41:3: note: include '' or provide a declaration of 'exit' error.c:17:1: +#include error.c:41:3: exit (0); ^~~~ error.c: At top level: error.c:54:1: warning: return type defaults to 'int' [-Wimplicit-int] my_io_error_handler (my_display) ^~~~~~~~~~~~~~~~~~~ load.c:58:5: warning: implicit declaration of function 'dump_cell'; did you mean 'get_cell'? [-Wimplicit-function-declaration] dump_cell (CELL(i), Config->side_count, ^~~~~~~~~ get_cell load.c: At top level: load.c:74:1: warning: return type defaults to 'int' [-Wimplicit-int] dump_cell (cell, side_count, direction_count, fp, use_brief) ^~~~~~~~~ load.c: In function 'dump_cell': load.c:74:1: warning: type of 'use_brief' defaults to 'int' [-Wimplicit-int] load.c: At top level: load.c:137:1: warning: return type defaults to 'int' [-Wimplicit-int] load_board_header () ^~~~~~~~~~~~~~~~~ load.c:230:1: warning: return type defaults to 'int' [-Wimplicit-int] load_board (use_brief) ^~~~~~~~~~ error.c: In function 'my_io_error_handler': error.c:72:5: warning: implicit declaration of function 'throw_error' [-Wimplicit-function-declaration] throw_error ("Lost X-Window connection", NULL); ^~~~~~~~~~~ draw.c:583:5: warning: implicit declaration of function 'draw_manager'; did you mean 'draw_board'? [-Wimplicit-function-declaration] draw_manager (cell, xwindow, hue_off, x_center, y_center); ^~~~~~~~~~~~ draw_board load.c: In function 'load_board': error.c:111:3: warning: incompatible implicit declaration of built-in function 'exit' exit (0); ^~~~ load.c:242:5: warning: implicit declaration of function 'load_cell'; did you mean 'dump_cell'? [-Wimplicit-function-declaration] load_cell (cell, Config->load_side_count, ^~~~~~~~~ dump_cell error.c:111:3: note: include '' or provide a declaration of 'exit' error.c: At top level: load.c: At top level: load.c:261:1: warning: return type defaults to 'int' [-Wimplicit-int] load_cell (cell, load_side_count, direction_count, fp, use_brief) ^~~~~~~~~ error.c:124:1: warning: return type defaults to 'int' [-Wimplicit-int] throw_error (control_string, parameter_string) ^~~~~~~~~~~ error.c: In function 'throw_error': error.c:129:3: warning: incompatible implicit declaration of built-in function 'exit' exit (0); ^~~~ error.c:129:3: note: include '' or provide a declaration of 'exit' error.c: At top level: error.c:141:1: warning: return type defaults to 'int' [-Wimplicit-int] throw_warning (control_string, parameter_string) ^~~~~~~~~~~~~ error.c:157:1: warning: return type defaults to 'int' [-Wimplicit-int] throw_message (type_string, control_string, parameter_string) ^~~~~~~~~~~~~ error.c: In function 'throw_message': error.c:173:20: warning: format not a string literal and no format arguments [-Wformat-security] fprintf (stderr, full_string); ^~~~~~~~~~~ load.c: In function 'load_board_header': load.c:147:3: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result] fread (&Config->board_x_size, sizeof(short), 1, Config->fp); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ load.c:148:3: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result] fread (&Config->board_y_size, sizeof(short), 1, Config->fp); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ load.c:149:3: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result] fread (&Config->level_min, sizeof(int), 1, Config->fp); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ load.c:150:3: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result] fread (&Config->level_max, sizeof(int), 1, Config->fp); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ load.c:151:3: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result] fread (&Config->tile_type, sizeof(int), 1, Config->fp); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ load.c:152:3: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result] fread (&cell_size, sizeof(int), 1, Config->fp); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ load.c:154:3: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result] fread (&Config->load_side_count, sizeof(short), 1, Config->fp); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ load.c:156:3: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result] fread (&dummy, sizeof(char), 1, Config->fp); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ load.c: In function 'load_cell': load.c:275:5: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result] fread (&cell->level, sizeof(s_char), 1, fp); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ load.c:276:5: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result] fread (&cell->side, sizeof(s_char), 1, fp); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ load.c:283:9: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result] fread (&(cell->value[cell->side]), sizeof(s_char), 1, fp); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ load.c:285:7: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result] fread (&cell->angle, sizeof(short), 1, fp); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ load.c:288:9: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result] fread (&cell->growth, sizeof(s_char), 1, fp); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ load.c:293:9: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result] fread (&cell->old_growth, sizeof(s_char), 1, fp); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ load.c:304:5: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result] fread (&(cell->level), fixed_size, 1, fp); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ load.c:308:7: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result] fread (buffer, fixed_size, 1, fp); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ load.c:310:7: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result] fread (&(cell->side), fixed_size, 1, fp); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ load.c:317:7: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result] fread (buffer, sizeof(s_char), direction_count, fp); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ load.c:318:7: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result] fread (buffer, sizeof(s_char), load_side_count, fp); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ load.c:319:7: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result] fread (buffer, sizeof(s_char), load_side_count, fp); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ load.c:320:7: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result] fread (buffer, sizeof(s_char), load_side_count, fp); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ load.c:321:7: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result] fread (buffer, sizeof(s_char), load_side_count, fp); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ load.c:322:7: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result] fread (buffer, sizeof(s_char), load_side_count, fp); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ load.c:323:7: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result] fread (buffer, sizeof(s_char), load_side_count, fp); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ load.c:327:7: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result] fread (cell->dir, sizeof(s_char), direction_count, fp); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ load.c:328:7: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result] fread (cell->march, sizeof(s_char), load_side_count, fp); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ load.c:329:7: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result] fread (cell->march_dir, sizeof(s_char), load_side_count, fp); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ load.c:330:7: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result] fread (cell->march_type, sizeof(s_char), load_side_count, fp); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ load.c:331:7: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result] fread (cell->value, sizeof(s_char), load_side_count, fp); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ load.c:332:7: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result] fread (cell->seen, sizeof(s_char), load_side_count, fp); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ load.c:333:7: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result] fread (cell->draw_level, sizeof(s_char), load_side_count, fp); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ draw.c:588:5: warning: implicit declaration of function 'draw_march_arrows' [-Wimplicit-function-declaration] draw_march_arrows (cell, side, xwindow, ^~~~~~~~~~~~~~~~~ draw.c: At top level: draw.c:613:1: warning: return type defaults to 'int' [-Wimplicit-int] draw_blank_cell (cell, player, use_terrain) ^~~~~~~~~~~~~~~ draw.c:662:1: warning: return type defaults to 'int' [-Wimplicit-int] draw_arrows (cell, xwindow, hue_on, hue_off, x_center, y_center, ^~~~~~~~~~~ init.c:136:3: warning: implicit declaration of function 'shape_initialize'; did you mean 'XrmInitialize'? [-Wimplicit-function-declaration] shape_initialize (); ^~~~~~~~~~~~~~~~ XrmInitialize draw.c:766:1: warning: return type defaults to 'int' [-Wimplicit-int] draw_march_arrows (cell, march_side, xwindow, x_center, y_center, ^~~~~~~~~~~~~~~~~ draw.c:836:1: warning: return type defaults to 'int' [-Wimplicit-int] draw_manager (cell, xwindow, hue_off, x_center, y_center) ^~~~~~~~~~~~ draw.c:890:1: warning: return type defaults to 'int' [-Wimplicit-int] draw_shell (cell, player, source_side) ^~~~~~~~~~ draw.c:927:1: warning: return type defaults to 'int' [-Wimplicit-int] draw_chute (cell, player, source_side) ^~~~~~~~~~ draw.c:988:1: warning: return type defaults to 'int' [-Wimplicit-int] draw_message (text, textcount, new_side, current_player) ^~~~~~~~~~~~ draw.c: In function 'draw_message': draw.c:1001:10: warning: type defaults to 'int' in declaration of 'old_side' [-Wimplicit-int] static old_side=0, ^~~~~~~~ draw.c:1002:10: warning: type defaults to 'int' in declaration of 'very_first' [-Wimplicit-int] very_first=TRUE, ^~~~~~~~~~ draw.c:1003:10: warning: type defaults to 'int' in declaration of 'first_time' [-Wimplicit-int] first_time[MAX_PLAYERS]; ^~~~~~~~~~ draw.c:1028:16: warning: incompatible implicit declaration of built-in function 'strlen' old_length = strlen (Config->message_single[current_player]); ^~~~~~ draw.c:1028:16: note: include '' or provide a declaration of 'strlen' draw.c:1034:5: warning: 'return' with no value, in function returning non-void return; ^~~~~~ init.c:144:7: warning: implicit declaration of function 'init_terrain'; did you mean 'init_board'? [-Wimplicit-function-declaration] init_terrain (); ^~~~~~~~~~~~ init_board init.c:145:5: warning: 'return' with no value, in function returning non-void return; ^~~~~~ init.c:26:1: note: declared here init_board () ^~~~~~~~~~ draw.c:988:1: note: declared here draw_message (text, textcount, new_side, current_player) ^~~~~~~~~~~~ draw.c:1042:5: warning: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration] strcpy (Config->message_single[current_player], ""); ^~~~~~ draw.c:1042:5: warning: incompatible implicit declaration of built-in function 'strcpy' draw.c:1042:5: note: include '' or provide a declaration of 'strcpy' draw.c:1075:7: warning: incompatible implicit declaration of built-in function 'strcpy' strcpy (Config->message_single[current_player], ""); ^~~~~~ draw.c:1075:7: note: include '' or provide a declaration of 'strcpy' init.c:154:5: warning: implicit declaration of function 'init_farms'; did you mean 'init_board'? [-Wimplicit-function-declaration] init_farms (); ^~~~~~~~~~ init_board init.c:157:5: warning: implicit declaration of function 'init_towns'; did you mean 'init_board'? [-Wimplicit-function-declaration] init_towns (); ^~~~~~~~~~ init_board draw.c:1088:7: warning: implicit declaration of function 'remove_player' [-Wimplicit-function-declaration] remove_player (current_player); ^~~~~~~~~~~~~ draw.c:1089:7: warning: 'return' with no value, in function returning non-void return; ^~~~~~ draw.c:988:1: note: declared here draw_message (text, textcount, new_side, current_player) ^~~~~~~~~~~~ draw.c:1096:7: warning: implicit declaration of function 'game_stats' [-Wimplicit-function-declaration] game_stats (); ^~~~~~~~~~ draw.c:1097:7: warning: implicit declaration of function 'dump_board'; did you mean 'draw_board'? [-Wimplicit-function-declaration] dump_board (Config->file_store_map, FALSE); ^~~~~~~~~~ draw_board draw.c:1146:9: warning: implicit declaration of function 'strcat' [-Wimplicit-function-declaration] strcat (Config->message_single[current_player], " "); ^~~~~~ draw.c:1146:9: warning: incompatible implicit declaration of built-in function 'strcat' draw.c:1146:9: note: include '' or provide a declaration of 'strcat' draw.c:1167:9: warning: incompatible implicit declaration of built-in function 'strcat' strcat (Config->message_single[current_player], text); ^~~~~~ draw.c:1167:9: note: include '' or provide a declaration of 'strcat' draw.c:1258:5: warning: incompatible implicit declaration of built-in function 'strcpy' strcpy (Config->message_all, ""); ^~~~~~ draw.c:1258:5: note: include '' or provide a declaration of 'strcpy' draw.c: At top level: draw.c:1269:1: warning: return type defaults to 'int' [-Wimplicit-int] draw_timer (running_time, player) ^~~~~~~~~~ draw.c: In function 'draw_timer': draw.c:1275:22: warning: format '%u' expects argument of type 'unsigned int', but argument 3 has type 'long unsigned int' [-Wformat=] sprintf (line, "%02u:%02u", running_time/60, running_time%60); ~~~^ ~~~~~~~~~~~~~~~ %02lu draw.c:1275:27: warning: format '%u' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Wformat=] sprintf (line, "%02u:%02u", running_time/60, running_time%60); ~~~^ ~~~~~~~~~~~~~~~ %02lu draw.c:1279:9: warning: incompatible implicit declaration of built-in function 'strlen' line, strlen(line)); ^~~~~~ draw.c:1279:9: note: include '' or provide a declaration of 'strlen' init.c:160:5: warning: implicit declaration of function 'init_bases_or_armies' [-Wimplicit-function-declaration] init_bases_or_armies (OPTION_BASES); ^~~~~~~~~~~~~~~~~~~~ init.c:163:5: warning: implicit declaration of function 'init_rbases'; did you mean 'init_board'? [-Wimplicit-function-declaration] init_rbases (); ^~~~~~~~~~~ init_board init.c:169:5: warning: implicit declaration of function 'init_militia' [-Wimplicit-function-declaration] init_militia (TRUE); ^~~~~~~~~~~~ init.c:174:5: warning: implicit declaration of function 'init_unseen' [-Wimplicit-function-declaration] init_unseen (); ^~~~~~~~~~~ init.c: At top level: init.c:185:1: warning: return type defaults to 'int' [-Wimplicit-int] init_unseen () ^~~~~~~~~~~ init.c:210:1: warning: return type defaults to 'int' [-Wimplicit-int] init_terrain () ^~~~~~~~~~~~ init.c: In function 'init_terrain': init.c:247:17: warning: implicit declaration of function 'get_random' [-Wimplicit-function-declaration] x_peak[i] = get_random (Config->board_x_size); ^~~~~~~~~~ init.c: At top level: init.c:384:1: warning: return type defaults to 'int' [-Wimplicit-int] init_towns () ^~~~~~~~~~ init.c:410:1: warning: return type defaults to 'int' [-Wimplicit-int] init_farms () ^~~~~~~~~~ init.c:432:1: warning: return type defaults to 'int' [-Wimplicit-int] init_rbases () ^~~~~~~~~~~ init.c: In function 'init_rbases': init.c:526:9: warning: implicit declaration of function 'init_single_cell'; did you mean 'init_unseen'? [-Wimplicit-function-declaration] init_single_cell (CELL2(i,j), side, 1, 100); ^~~~~~~~~~~~~~~~ init_unseen init.c: At top level: init.c:540:1: warning: return type defaults to 'int' [-Wimplicit-int] init_bases_or_armies (option) ^~~~~~~~~~~~~~~~~~~~ init.c: In function 'init_bases_or_armies': init.c:540:1: warning: type of 'option' defaults to 'int' [-Wimplicit-int] init.c: At top level: init.c:682:1: warning: return type defaults to 'int' [-Wimplicit-int] init_militia (use_normalization) ^~~~~~~~~~~~ init.c: In function 'init_militia': init.c:767:11: warning: implicit declaration of function 'throw_error' [-Wimplicit-function-declaration] throw_error ("Cannot fit militia on screen", NULL); ^~~~~~~~~~~ init.c: At top level: init.c:821:1: warning: return type defaults to 'int' [-Wimplicit-int] init_single_cell (cell, side, value, growth) ^~~~~~~~~~~~~~~~ gcc -m32 -O2 -fno-strength-reduce -fno-strict-aliasing -I/usr/include -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFUNCPROTO=15 -DNARROWPROTO -DDEFAULT_XBO_DIR=\"/export/home/lesher/xbos\" -DDEFAULT_XBT_DIR=\"/export/home/lesher/xbts\" -DDEFAULT_XBA_DIR=\"/export/home/lesher/xbas\" -D_GLIBCXX_USE_C99_MATH=1 -c -o main.o main.c In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from main.c:1: /usr/include/features.h:184:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" ^~~~~~~ gcc -m32 -O2 -fno-strength-reduce -fno-strict-aliasing -I/usr/include -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFUNCPROTO=15 -DNARROWPROTO -DDEFAULT_XBO_DIR=\"/export/home/lesher/xbos\" -DDEFAULT_XBT_DIR=\"/export/home/lesher/xbts\" -DDEFAULT_XBA_DIR=\"/export/home/lesher/xbas\" -D_GLIBCXX_USE_C99_MATH=1 -c -o parse.o parse.c In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from parse.c:1: /usr/include/features.h:184:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" ^~~~~~~ main.c:30:1: warning: return type defaults to 'int' [-Wimplicit-int] main (argc,argv) ^~~~ main.c: In function 'main': main.c:39:3: warning: implicit declaration of function 'init_defaults'; did you mean 'XGetDefault'? [-Wimplicit-function-declaration] init_defaults(); ^~~~~~~~~~~~~ XGetDefault main.c:43:3: warning: implicit declaration of function 'load_options' [-Wimplicit-function-declaration] load_options (argc, argv); ^~~~~~~~~~~~ main.c:47:3: warning: implicit declaration of function 'init_board' [-Wimplicit-function-declaration] init_board (); ^~~~~~~~~~ main.c:51:3: warning: implicit declaration of function 'set_windows' [-Wimplicit-function-declaration] set_windows (); ^~~~~~~~~~~ main.c:56:5: warning: implicit declaration of function 'edit_board' [-Wimplicit-function-declaration] edit_board (); ^~~~~~~~~~ main.c:61:5: warning: implicit declaration of function 'replay_game'; did you mean 'XDisplayName'? [-Wimplicit-function-declaration] replay_game (); ^~~~~~~~~~~ XDisplayName main.c:71:3: warning: implicit declaration of function 'run_unix_loop' [-Wimplicit-function-declaration] run_unix_loop (); ^~~~~~~~~~~~~ main.c: At top level: main.c:87:1: warning: return type defaults to 'int' [-Wimplicit-int] run_unix_loop () ^~~~~~~~~~~~~ main.c: In function 'run_unix_loop': main.c:170:9: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] exit (1); ^~~~ main.c:170:9: warning: incompatible implicit declaration of built-in function 'exit' main.c:170:9: note: include '' or provide a declaration of 'exit' main.c:22:1: +#include main.c:170:9: exit (1); ^~~~ main.c:194:15: warning: implicit declaration of function 'draw_timer'; did you mean 'setitimer'? [-Wimplicit-function-declaration] draw_timer (running_time, player); ^~~~~~~~~~ setitimer main.c:203:8: warning: implicit declaration of function 'process_event' [-Wimplicit-function-declaration] process_event (event, player); ^~~~~~~~~~~~~ main.c:252:9: warning: implicit declaration of function 'update_board'; did you mean 'XGrabKeyboard'? [-Wimplicit-function-declaration] update_board (); ^~~~~~~~~~~~ XGrabKeyboard main.c: At top level: main.c:326:1: warning: return type defaults to 'int' [-Wimplicit-int] process_event (event, player) ^~~~~~~~~~~~~ main.c: In function 'process_event': main.c:364:7: warning: implicit declaration of function 'draw_board'; did you mean 'XGrabKeyboard'? [-Wimplicit-function-declaration] draw_board (player, FALSE); ^~~~~~~~~~ XGrabKeyboard main.c:397:13: warning: implicit declaration of function 'run_march' [-Wimplicit-function-declaration] run_march (cell, player, side, cell->x, cell->y, ^~~~~~~~~ main.c:440:8: warning: implicit declaration of function 'set_move'; did you mean 'remove'? [-Wimplicit-function-declaration] set_move (cell, Config->dir[player], 0); ^~~~~~~~ remove main.c:445:8: warning: implicit declaration of function 'set_move_force' [-Wimplicit-function-declaration] set_move_force (cell, Config->dir[player], 0); ^~~~~~~~~~~~~~ main.c:454:13: warning: implicit declaration of function 'draw_multiple_cell' [-Wimplicit-function-declaration] draw_multiple_cell (cell); ^~~~~~~~~~~~~~~~~~ main.c:505:17: warning: implicit declaration of function 'run_shoot' [-Wimplicit-function-declaration] run_shoot (cell, player, event.xbutton.x, event.xbutton.y, ^~~~~~~~~ main.c:724:15: warning: implicit declaration of function 'run_attack' [-Wimplicit-function-declaration] run_attack (cell, side); ^~~~~~~~~~ main.c:732:17: warning: implicit declaration of function 'run_zero' [-Wimplicit-function-declaration] run_zero (cell); ^~~~~~~~ main.c:829:19: warning: implicit declaration of function 'run_dig' [-Wimplicit-function-declaration] run_dig (cell); ^~~~~~~ main.c:861:19: warning: implicit declaration of function 'run_fill' [-Wimplicit-function-declaration] run_fill (cell); ^~~~~~~~ main.c:891:19: warning: implicit declaration of function 'run_scuttle' [-Wimplicit-function-declaration] run_scuttle (cell); ^~~~~~~~~~~ main.c:900:19: warning: implicit declaration of function 'run_build' [-Wimplicit-function-declaration] run_build (cell, side); ^~~~~~~~~ main.c:937:19: warning: implicit declaration of function 'run_reserve' [-Wimplicit-function-declaration] run_reserve (cell, player, side, text); ^~~~~~~~~~~ gcc -m32 -O2 -fno-strength-reduce -fno-strict-aliasing -I/usr/include -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFUNCPROTO=15 -DNARROWPROTO -DDEFAULT_XBO_DIR=\"/export/home/lesher/xbos\" -DDEFAULT_XBT_DIR=\"/export/home/lesher/xbts\" -DDEFAULT_XBA_DIR=\"/export/home/lesher/xbas\" -D_GLIBCXX_USE_C99_MATH=1 -c -o replay.o replay.c main.c:953:11: warning: implicit declaration of function 'draw_message' [-Wimplicit-function-declaration] draw_message (text,textcount,side,player); ^~~~~~~~~~~~ main.c:967:9: warning: implicit declaration of function 'remove_player' [-Wimplicit-function-declaration] remove_player (player); ^~~~~~~~~~~~~ main.c: At top level: main.c:1073:1: warning: return type defaults to 'int' [-Wimplicit-int] set_windows () ^~~~~~~~~~~ main.c: In function 'set_windows': main.c:1130:9: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration] if (strcmp (Config->side_to_bw_name[side], Config->side_to_hue_name[side])) ^~~~~~ main.c:1144:7: warning: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration] strcpy (hue_title, bw_title); ^~~~~~ main.c:1144:7: warning: incompatible implicit declaration of built-in function 'strcpy' main.c:1144:7: note: include '' or provide a declaration of 'strcpy' main.c:22:1: +#include main.c:1144:7: strcpy (hue_title, bw_title); ^~~~~~ main.c:1148:5: warning: implicit declaration of function 'open_xwindow'; did you mean 'set_windows'? [-Wimplicit-function-declaration] open_xwindow (xwindow, hue_title, bw_title); ^~~~~~~~~~~~ set_windows parse.c:31:1: warning: return type defaults to 'int' [-Wimplicit-int] load_options (argc, argv) ^~~~~~~~~~~~ main.c:1160:11: warning: implicit declaration of function 'shape_set_draw_method' [-Wimplicit-function-declaration] shape_set_draw_method (Board->shapes[side][i], side, FALSE); ^~~~~~~~~~~~~~~~~~~~~ main.c: At top level: main.c:1176:1: warning: return type defaults to 'int' [-Wimplicit-int] remove_player (current_player) ^~~~~~~~~~~~~ parse.c: In function 'load_options': parse.c:38:3: warning: implicit declaration of function 'check_options'; did you mean 'load_options'? [-Wimplicit-function-declaration] check_options (argc, argv, TRUE); ^~~~~~~~~~~~~ load_options In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from replay.c:1: /usr/include/features.h:184:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" ^~~~~~~ main.c: In function 'remove_player': main.c:1237:3: warning: implicit declaration of function 'close_xwindow'; did you mean 'set_windows'? [-Wimplicit-function-declaration] close_xwindow (XWindow[current_player]); ^~~~~~~~~~~~~ set_windows main.c:1262:5: warning: incompatible implicit declaration of built-in function 'exit' exit (0); ^~~~ main.c:1262:5: note: include '' or provide a declaration of 'exit' main.c:1270:25: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] draw_message (line, strlen(line), side, current_player); ^~~~~~ main.c:1270:25: warning: incompatible implicit declaration of built-in function 'strlen' main.c:1270:25: note: include '' or provide a declaration of 'strlen' parse.c:40:14: warning: implicit declaration of function 'load_command_line' [-Wimplicit-function-declaration] argc_new = load_command_line (argc, argv, argv_new); ^~~~~~~~~~~~~~~~~ parse.c:42:3: warning: implicit declaration of function 'preload_options'; did you mean 'load_options'? [-Wimplicit-function-declaration] preload_options (argc_new, argv_new); ^~~~~~~~~~~~~~~ load_options parse.c:46:3: warning: implicit declaration of function 'parse_options'; did you mean 'load_options'? [-Wimplicit-function-declaration] parse_options (argc_new, argv_new); ^~~~~~~~~~~~~ load_options parse.c:48:3: warning: implicit declaration of function 'clean_options'; did you mean 'load_options'? [-Wimplicit-function-declaration] clean_options (); ^~~~~~~~~~~~~ load_options parse.c: At top level: parse.c:64:1: warning: return type defaults to 'int' [-Wimplicit-int] check_options (argc, argv, ignore_colors) ^~~~~~~~~~~~~ parse.c: In function 'check_options': parse.c:92:20: warning: implicit declaration of function 'find_option'; did you mean 'load_options'? [-Wimplicit-function-declaration] option_index = find_option (argv[i]); ^~~~~~~~~~~ load_options parse.c:105:22: warning: implicit declaration of function 'find_load_filename' [-Wimplicit-function-declaration] option_index = find_load_filename (argv[i], load_name); ^~~~~~~~~~~~~~~~~~ parse.c:130:22: warning: implicit declaration of function 'find_color_match' [-Wimplicit-function-declaration] side_index = find_color_match (argv[i], color_name, 0); ^~~~~~~~~~~~~~~~ parse.c:137:23: warning: implicit declaration of function 'find_parameter_count' [-Wimplicit-function-declaration] parameter_count = find_parameter_count (argc, argv, i); ^~~~~~~~~~~~~~~~~~~~ parse.c:150:9: warning: implicit declaration of function 'throw_warning' [-Wimplicit-function-declaration] throw_warning ("Unresolvable color %s", argv[i]); ^~~~~~~~~~~~~ parse.c:205:5: warning: implicit declaration of function 'throw_error'; did you mean 'strerror'? [-Wimplicit-function-declaration] throw_error ("Poorly formed command line", NULL); ^~~~~~~~~~~ strerror parse.c: At top level: parse.c:218:1: warning: return type defaults to 'int' [-Wimplicit-int] load_command_line (argc, argv, command_line) ^~~~~~~~~~~~~~~~~ parse.c: In function 'load_command_line': parse.c:269:14: warning: implicit declaration of function 'copy_first'; did you mean 'strip_first'? [-Wimplicit-function-declaration] while (copy_first (argument, ptr)) ^~~~~~~~~~ strip_first parse.c: At top level: parse.c:360:1: warning: return type defaults to 'int' [-Wimplicit-int] preload_options (argc, argv) ^~~~~~~~~~~~~~~ replay.c:25:1: warning: return type defaults to 'int' [-Wimplicit-int] store_draw_cell (cell) ^~~~~~~~~~~~~~~ replay.c: In function 'store_draw_cell': replay.c:40:5: warning: 'return' with no value, in function returning non-void return; ^~~~~~ replay.c:25:1: note: declared here store_draw_cell (cell) ^~~~~~~~~~~~~~~ parse.c: In function 'preload_options': parse.c:381:9: warning: implicit declaration of function 'load_color'; did you mean 'BadColor'? [-Wimplicit-function-declaration] load_color (argv[i+1], atoi(argv[i+2]), ^~~~~~~~~~ BadColor replay.c: At top level: replay.c:105:1: warning: return type defaults to 'int' [-Wimplicit-int] replay_game () ^~~~~~~~~~~ replay.c: In function 'replay_game': replay.c:149:23: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] Config->message_all,strlen(Config->message_all)); ^~~~~~ replay.c:149:23: warning: incompatible implicit declaration of built-in function 'strlen' replay.c:149:23: note: include '' or provide a declaration of 'strlen' replay.c:17:1: +#include replay.c:149:23: Config->message_all,strlen(Config->message_all)); ^~~~~~ replay.c:172:9: warning: implicit declaration of function 'remove_player' [-Wimplicit-function-declaration] remove_player (player); ^~~~~~~~~~~~~ replay.c:174:7: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] exit (0); ^~~~ replay.c:174:7: warning: incompatible implicit declaration of built-in function 'exit' replay.c:174:7: note: include '' or provide a declaration of 'exit' replay.c:17:1: +#include replay.c:174:7: exit (0); ^~~~ parse.c:387:9: warning: implicit declaration of function 'load_color_inverse' [-Wimplicit-function-declaration] load_color_inverse (argv[i+1], argv[i+2]); ^~~~~~~~~~~~~~~~~~ replay.c:252:23: warning: implicit declaration of function 'close_xwindow'; did you mean 'XMoveWindow'? [-Wimplicit-function-declaration] close_xwindow (XWindow[i]); ^~~~~~~~~~~~~ XMoveWindow replay.c:253:21: warning: incompatible implicit declaration of built-in function 'exit' exit (0); ^~~~ replay.c:253:21: note: include '' or provide a declaration of 'exit' parse.c:392:9: warning: implicit declaration of function 'load_stipple'; did you mean 'load_options'? [-Wimplicit-function-declaration] load_stipple (argv[i+1], &argv[i+2]); ^~~~~~~~~~~~ load_options parse.c: At top level: parse.c:437:1: warning: return type defaults to 'int' [-Wimplicit-int] parse_options (argc, argv) ^~~~~~~~~~~~~ replay.c:265:7: warning: implicit declaration of function 'draw_cell'; did you mean 'get_cell'? [-Wimplicit-function-declaration] draw_cell (cell, player, TRUE); ^~~~~~~~~ get_cell replay.c: At top level: replay.c:284:1: warning: return type defaults to 'int' [-Wimplicit-int] store_parameters () ^~~~~~~~~~~~~~~~ replay.c:319:1: warning: return type defaults to 'int' [-Wimplicit-int] load_parameters () ^~~~~~~~~~~~~~~ replay.c:386:1: warning: return type defaults to 'int' [-Wimplicit-int] game_stats () ^~~~~~~~~~ parse.c: In function 'parse_options': parse.c:495:7: warning: implicit declaration of function 'install_option'; did you mean 'load_options'? [-Wimplicit-function-declaration] install_option (option_index, &argv[i], ^~~~~~~~~~~~~~ load_options replay.c: In function 'replay_game': replay.c:167:5: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result] fread (&x, sizeof(s_char), 1, Config->fp); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ replay.c:177:5: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result] fread (&y, sizeof(s_char), 1, Config->fp); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ replay.c:180:5: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result] fread (&(cell->level), sizeof(s_char), 1, Config->fp); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ replay.c:181:5: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result] fread (&(cell->redraw_status), sizeof(s_char), 1, Config->fp); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ replay.c:188:7: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result] fread (&(cell->side), sizeof(s_char), 1, Config->fp); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ replay.c:194:9: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result] fread (&side_first, sizeof(s_char), 1, Config->fp); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ replay.c:195:9: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result] fread (&value_first, sizeof(s_char), 1, Config->fp); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ replay.c:196:9: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result] fread (&side_second, sizeof(s_char), 1, Config->fp); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ replay.c:197:9: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result] fread (&value_second, sizeof(s_char), 1, Config->fp); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ replay.c:206:9: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result] fread (&(cell->value[cell->side]), sizeof(s_char), 1, Config->fp); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ replay.c:208:7: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result] fread (&(cell->angle), sizeof(short), 1, Config->fp); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ replay.c:215:11: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result] fread (&(cell->old_growth), sizeof(s_char), 1, Config->fp); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ replay.c:217:11: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result] fread (&(cell->growth), sizeof(s_char), 1, Config->fp); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ replay.c:221:9: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result] fread (&(cell->dir[i]), sizeof(s_char), 1, Config->fp); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ replay.c: In function 'load_parameters': replay.c:330:3: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result] fread (&Config->board_x_size, sizeof(short), 1, Config->fp); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ replay.c:331:3: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result] fread (&Config->board_y_size, sizeof(short), 1, Config->fp); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ replay.c:332:3: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result] fread (&Config->level_min, sizeof(int), 1, Config->fp); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ replay.c:333:3: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result] fread (&Config->level_max, sizeof(int), 1, Config->fp); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ replay.c:334:3: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result] fread (&Config->enable_all[OPTION_HEX], sizeof(n_char), 1, Config->fp); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ replay.c:335:3: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result] fread (&cell_size, sizeof(int), 1, Config->fp); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ replay.c:336:3: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result] fread (&Config->side_count, sizeof(short), 1, Config->fp); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ replay.c:366:3: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result] fread (&Config->hue_count, sizeof(short), 1, Config->fp); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ replay.c:368:5: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result] fread (Config->palette[i], sizeof(int), 3, Config->fp); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ replay.c:372:5: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result] fread (&Config->side_to_hue[side], sizeof(short), 1, Config->fp); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ replay.c:373:5: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result] fread (&Config->hue_to_inverse[side], sizeof(short), 1, Config->fp); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ replay.c:374:5: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result] fread (&Config->side_to_letter[side][0], sizeof(char), 1, Config->fp); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ parse.c:653:5: warning: implicit declaration of function 'print_usage_message' [-Wimplicit-function-declaration] print_usage_message (); ^~~~~~~~~~~~~~~~~~~ parse.c: At top level: parse.c:669:1: warning: return type defaults to 'int' [-Wimplicit-int] install_option (option_index, argv, parameter_count, side, is_enabled) ^~~~~~~~~~~~~~ parse.c: In function 'install_option': parse.c:791:3: warning: implicit declaration of function 'set_uchar_array' [-Wimplicit-function-declaration] set_uchar_array (Config->enable[option_index], is_enabled, side); ^~~~~~~~~~~~~~~ gcc -m32 -O2 -fno-strength-reduce -fno-strict-aliasing -I/usr/include -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFUNCPROTO=15 -DNARROWPROTO -DDEFAULT_XBO_DIR=\"/export/home/lesher/xbos\" -DDEFAULT_XBT_DIR=\"/export/home/lesher/xbts\" -DDEFAULT_XBA_DIR=\"/export/home/lesher/xbas\" -D_GLIBCXX_USE_C99_MATH=1 -c -o shape.o shape.c parse.c:793:3: warning: implicit declaration of function 'set_int_array' [-Wimplicit-function-declaration] set_int_array (Config->value_int[option_index], value_int, side); ^~~~~~~~~~~~~ parse.c:795:3: warning: implicit declaration of function 'set_double_array'; did you mean 'XK_doubleacute'? [-Wimplicit-function-declaration] set_double_array (Config->value_double[option_index], value_double, side); ^~~~~~~~~~~~~~~~ XK_doubleacute parse.c: At top level: parse.c:896:1: warning: return type defaults to 'int' [-Wimplicit-int] clean_options () ^~~~~~~~~~~~~ parse.c: In function 'clean_options': parse.c:918:42: warning: implicit declaration of function 'getpid'; did you mean 'getenv'? [-Wimplicit-function-declaration] Config->value_int_all[OPTION_SEED] = getpid() + time(NULL); ^~~~~~ getenv parse.c:918:53: warning: implicit declaration of function 'time' [-Wimplicit-function-declaration] Config->value_int_all[OPTION_SEED] = getpid() + time(NULL); ^~~~ In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from shape.c:1: /usr/include/features.h:184:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" ^~~~~~~ parse.c:1039:5: warning: implicit declaration of function 'store_parameters' [-Wimplicit-function-declaration] store_parameters (); ^~~~~~~~~~~~~~~~ parse.c:1073:5: warning: implicit declaration of function 'load_parameters' [-Wimplicit-function-declaration] load_parameters (); ^~~~~~~~~~~~~~~ parse.c:1093:5: warning: implicit declaration of function 'load_board_header' [-Wimplicit-function-declaration] load_board_header (Config->file_map); ^~~~~~~~~~~~~~~~~ parse.c:1113:3: warning: implicit declaration of function 'set_palette'; did you mean 'setstate'? [-Wimplicit-function-declaration] set_palette (Config->palette_hills, ^~~~~~~~~~~ setstate parse.c:1125:3: warning: implicit declaration of function 'set_move_parameters' [-Wimplicit-function-declaration] set_move_parameters (); ^~~~~~~~~~~~~~~~~~~ parse.c: At top level: parse.c:1170:1: warning: return type defaults to 'int' [-Wimplicit-int] set_move_parameters () ^~~~~~~~~~~~~~~~~~~ parse.c:1230:1: warning: return type defaults to 'int' [-Wimplicit-int] set_palette (palette, count, max_count) ^~~~~~~~~~~ parse.c: In function 'set_palette': parse.c:1245:5: warning: 'return' with no value, in function returning non-void return; ^~~~~~ parse.c:1230:1: note: declared here set_palette (palette, count, max_count) ^~~~~~~~~~~ parse.c: At top level: parse.c:1302:1: warning: return type defaults to 'int' [-Wimplicit-int] init_defaults () ^~~~~~~~~~~~~ parse.c:1417:1: warning: return type defaults to 'int' [-Wimplicit-int] find_option (option) ^~~~~~~~~~~ parse.c:1520:1: warning: return type defaults to 'int' [-Wimplicit-int] find_color_match (option, color_name, use_second_color) ^~~~~~~~~~~~~~~~ parse.c: In function 'find_color_match': parse.c:1550:9: warning: implicit declaration of function 'matchstr'; did you mean 'strstr'? [-Wimplicit-function-declaration] if (matchstr (line, Config->hue_name[j])) ^~~~~~~~ strstr parse.c: At top level: parse.c:1591:1: warning: return type defaults to 'int' [-Wimplicit-int] load_color (hue_name, red, green, blue) ^~~~~~~~~~ parse.c:1640:1: warning: return type defaults to 'int' [-Wimplicit-int] load_color_inverse (hue_name, inverse_hue_name) ^~~~~~~~~~~~~~~~~~ parse.c:1674:1: warning: return type defaults to 'int' [-Wimplicit-int] load_stipple (hue_name, stipples) ^~~~~~~~~~~~ parse.c:1721:1: warning: return type defaults to 'int' [-Wimplicit-int] print_usage_message () ^~~~~~~~~~~~~~~~~~~ parse.c:1740:1: warning: return type defaults to 'int' [-Wimplicit-int] copy_first (dest, src) ^~~~~~~~~~ parse.c:1789:1: warning: return type defaults to 'int' [-Wimplicit-int] set_double_array (array, value, index) ^~~~~~~~~~~~~~~~ parse.c:1813:1: warning: return type defaults to 'int' [-Wimplicit-int] set_int_array (array, value, index) ^~~~~~~~~~~~~ parse.c:1837:1: warning: return type defaults to 'int' [-Wimplicit-int] set_uchar_array (array, value, index) ^~~~~~~~~~~~~~~ shape.c:21:1: warning: return type defaults to 'int' [-Wimplicit-int] shape_initialize () ^~~~~~~~~~~~~~~~ shape.c: In function 'shape_initialize': shape.c:33:45: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration] Board->shapes[side][0] = (shape_type *)(malloc(sizeof(shape_type))); ^~~~~~ shape.c:33:45: warning: incompatible implicit declaration of built-in function 'malloc' shape.c:33:45: note: include '' or provide a declaration of 'malloc' shape.c:12:1: +#include shape.c:33:45: Board->shapes[side][0] = (shape_type *)(malloc(sizeof(shape_type))); ^~~~~~ shape.c:44:9: warning: implicit declaration of function 'hex_set_dimensions'; did you mean 'XListExtensions'? [-Wimplicit-function-declaration] hex_set_dimensions (Board->shapes[side][0], ^~~~~~~~~~~~~~~~~~ XListExtensions shape.c:46:9: warning: implicit declaration of function 'shape_set_chart' [-Wimplicit-function-declaration] shape_set_chart (Board->shapes[side][0]); ^~~~~~~~~~~~~~~ shape.c:55:9: warning: implicit declaration of function 'octagon_set_dimensions' [-Wimplicit-function-declaration] octagon_set_dimensions (Board->shapes[side][0], ^~~~~~~~~~~~~~~~~~~~~~ shape.c:64:9: warning: implicit declaration of function 'square_set_dimensions' [-Wimplicit-function-declaration] square_set_dimensions (Board->shapes[side][1], ^~~~~~~~~~~~~~~~~~~~~ shape.c:67:9: warning: implicit declaration of function 'octagon_set_square_troops' [-Wimplicit-function-declaration] octagon_set_square_troops ^~~~~~~~~~~~~~~~~~~~~~~~~ shape.c:77:9: warning: implicit declaration of function 'diamond_set_dimensions' [-Wimplicit-function-declaration] diamond_set_dimensions (Board->shapes[side][0], ^~~~~~~~~~~~~~~~~~~~~~ shape.c:88:9: warning: implicit declaration of function 'triangle_set_dimensions' [-Wimplicit-function-declaration] triangle_set_dimensions (Board->shapes[side][0], ^~~~~~~~~~~~~~~~~~~~~~~ gcc -m32 -O2 -fno-strength-reduce -fno-strict-aliasing -I/usr/include -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFUNCPROTO=15 -DNARROWPROTO -DDEFAULT_XBO_DIR=\"/export/home/lesher/xbos\" -DDEFAULT_XBT_DIR=\"/export/home/lesher/xbts\" -DDEFAULT_XBA_DIR=\"/export/home/lesher/xbas\" -D_GLIBCXX_USE_C99_MATH=1 -c -o shape_diamond.o shape_diamond.c shape.c:126:13: warning: implicit declaration of function 'hex_set_center' [-Wimplicit-function-declaration] hex_set_center (CELL2(i,j), Board->shapes[side][0], side); ^~~~~~~~~~~~~~ shape.c:130:13: warning: implicit declaration of function 'octagon_set_center' [-Wimplicit-function-declaration] octagon_set_center (CELL2(i,j), Board->shapes[side][0], ^~~~~~~~~~~~~~~~~~ In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from shape_diamond.c:1: /usr/include/features.h:184:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" ^~~~~~~ shape.c:135:13: warning: implicit declaration of function 'diamond_set_center' [-Wimplicit-function-declaration] diamond_set_center (CELL2(i,j), Board->shapes[side][0], side); ^~~~~~~~~~~~~~~~~~ shape.c:139:13: warning: implicit declaration of function 'triangle_set_center' [-Wimplicit-function-declaration] triangle_set_center (CELL2(i,j), Board->shapes[side][0], ^~~~~~~~~~~~~~~~~~~ shape.c:144:13: warning: implicit declaration of function 'square_set_center' [-Wimplicit-function-declaration] square_set_center (CELL2(i,j), Board->shapes[side][0], side); ^~~~~~~~~~~~~~~~~ shape.c:156:7: warning: implicit declaration of function 'hex_set_connections' [-Wimplicit-function-declaration] hex_set_connections (); ^~~~~~~~~~~~~~~~~~~ shape.c:160:7: warning: implicit declaration of function 'octagon_set_connections' [-Wimplicit-function-declaration] octagon_set_connections (); ^~~~~~~~~~~~~~~~~~~~~~~ gcc -m32 -O2 -fno-strength-reduce -fno-strict-aliasing -I/usr/include -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFUNCPROTO=15 -DNARROWPROTO -DDEFAULT_XBO_DIR=\"/export/home/lesher/xbos\" -DDEFAULT_XBT_DIR=\"/export/home/lesher/xbts\" -DDEFAULT_XBA_DIR=\"/export/home/lesher/xbas\" -D_GLIBCXX_USE_C99_MATH=1 -c -o shape_hex.o shape_hex.c shape_diamond.c:24:1: warning: return type defaults to 'int' [-Wimplicit-int] diamond_set_dimensions (shape, cell_size, side) ^~~~~~~~~~~~~~~~~~~~~~ shape.c:164:7: warning: implicit declaration of function 'diamond_set_connections' [-Wimplicit-function-declaration] diamond_set_connections (); ^~~~~~~~~~~~~~~~~~~~~~~ shape_diamond.c: In function 'diamond_set_dimensions': shape_diamond.c:99:3: warning: implicit declaration of function 'shape_set_draw_method' [-Wimplicit-function-declaration] shape_set_draw_method (shape, side, TRUE); ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from shape_hex.c:1: /usr/include/features.h:184:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" ^~~~~~~ shape_diamond.c:101:3: warning: implicit declaration of function 'shape_set_growth' [-Wimplicit-function-declaration] shape_set_growth (shape); ^~~~~~~~~~~~~~~~ shape.c:168:7: warning: implicit declaration of function 'triangle_set_connections' [-Wimplicit-function-declaration] triangle_set_connections (); ^~~~~~~~~~~~~~~~~~~~~~~~ shape_diamond.c:103:3: warning: implicit declaration of function 'shape_set_troops' [-Wimplicit-function-declaration] shape_set_troops (shape); ^~~~~~~~~~~~~~~~ shape.c:172:7: warning: implicit declaration of function 'square_set_connections' [-Wimplicit-function-declaration] square_set_connections (); ^~~~~~~~~~~~~~~~~~~~~~ shape_diamond.c:105:3: warning: implicit declaration of function 'shape_set_arrows' [-Wimplicit-function-declaration] shape_set_arrows (shape, 0); ^~~~~~~~~~~~~~~~ shape_diamond.c: At top level: shape_diamond.c:117:1: warning: return type defaults to 'int' [-Wimplicit-int] diamond_set_center (cell, shape, side) ^~~~~~~~~~~~~~~~~~ shape_diamond.c:137:1: warning: return type defaults to 'int' [-Wimplicit-int] diamond_set_horizons (shape) ^~~~~~~~~~~~~~~~~~~~ shape_diamond.c:233:1: warning: return type defaults to 'int' [-Wimplicit-int] diamond_set_connections () ^~~~~~~~~~~~~~~~~~~~~~~ shape_diamond.c:371:1: warning: return type defaults to 'int' [-Wimplicit-int] diamond_set_selects (shape, select, side) ^~~~~~~~~~~~~~~~~~~ shape.c:185:11: warning: implicit declaration of function 'hex_set_horizons' [-Wimplicit-function-declaration] hex_set_horizons (Board->shapes[side][0]); ^~~~~~~~~~~~~~~~ shape.c:189:11: warning: implicit declaration of function 'octagon_set_horizons' [-Wimplicit-function-declaration] octagon_set_horizons (Board->shapes[side][0], ^~~~~~~~~~~~~~~~~~~~ shape.c:194:11: warning: implicit declaration of function 'diamond_set_horizons' [-Wimplicit-function-declaration] diamond_set_horizons (Board->shapes[side][0]); ^~~~~~~~~~~~~~~~~~~~ shape_hex.c:24:1: warning: return type defaults to 'int' [-Wimplicit-int] hex_set_dimensions (shape, cell_size, side) ^~~~~~~~~~~~~~~~~~ shape.c:198:11: warning: implicit declaration of function 'triangle_set_horizons' [-Wimplicit-function-declaration] triangle_set_horizons (Board->shapes[side][0], TRUE); ^~~~~~~~~~~~~~~~~~~~~ shape_hex.c: In function 'hex_set_dimensions': shape_hex.c:109:3: warning: implicit declaration of function 'shape_set_draw_method' [-Wimplicit-function-declaration] shape_set_draw_method (shape, side, TRUE); ^~~~~~~~~~~~~~~~~~~~~ shape.c:203:11: warning: implicit declaration of function 'square_set_horizons' [-Wimplicit-function-declaration] square_set_horizons (Board->shapes[side][0]); ^~~~~~~~~~~~~~~~~~~ shape.c:214:45: warning: incompatible implicit declaration of built-in function 'malloc' Config->selects[side] = (select_type *)(malloc(sizeof(select_type))); ^~~~~~ shape.c:214:45: note: include '' or provide a declaration of 'malloc' shape_hex.c:111:3: warning: implicit declaration of function 'shape_set_growth' [-Wimplicit-function-declaration] shape_set_growth (shape); ^~~~~~~~~~~~~~~~ shape_hex.c:113:3: warning: implicit declaration of function 'shape_set_troops' [-Wimplicit-function-declaration] shape_set_troops (shape); ^~~~~~~~~~~~~~~~ shape.c:219:9: warning: implicit declaration of function 'hex_set_selects' [-Wimplicit-function-declaration] hex_set_selects (Board->shapes[side][0], Config->selects[side], side); ^~~~~~~~~~~~~~~ shape_hex.c:115:3: warning: implicit declaration of function 'shape_set_arrows' [-Wimplicit-function-declaration] shape_set_arrows (shape, 0); ^~~~~~~~~~~~~~~~ shape_hex.c: At top level: shape_hex.c:127:1: warning: return type defaults to 'int' [-Wimplicit-int] hex_set_center (cell, shape, side) ^~~~~~~~~~~~~~ shape_hex.c:148:1: warning: return type defaults to 'int' [-Wimplicit-int] hex_set_horizons (shape) ^~~~~~~~~~~~~~~~ shape_hex.c:238:1: warning: return type defaults to 'int' [-Wimplicit-int] hex_set_connections () ^~~~~~~~~~~~~~~~~~~ shape_hex.c:407:1: warning: return type defaults to 'int' [-Wimplicit-int] hex_set_selects (shape, select, side) ^~~~~~~~~~~~~~~ shape.c:223:9: warning: implicit declaration of function 'octagon_set_selects' [-Wimplicit-function-declaration] octagon_set_selects (Board->shapes[side][0], ^~~~~~~~~~~~~~~~~~~ shape.c:228:9: warning: implicit declaration of function 'diamond_set_selects' [-Wimplicit-function-declaration] diamond_set_selects (Board->shapes[side][0], ^~~~~~~~~~~~~~~~~~~ shape.c:233:9: warning: implicit declaration of function 'triangle_set_selects' [-Wimplicit-function-declaration] triangle_set_selects (Board->shapes[side][0], ^~~~~~~~~~~~~~~~~~~~ shape.c:238:9: warning: implicit declaration of function 'square_set_selects' [-Wimplicit-function-declaration] square_set_selects (Board->shapes[side][0], ^~~~~~~~~~~~~~~~~~ shape.c: At top level: shape.c:323:1: warning: return type defaults to 'int' [-Wimplicit-int] shape_set_draw_method (shape, side, disallow_pixmap) ^~~~~~~~~~~~~~~~~~~~~ shape.c: In function 'shape_set_draw_method': shape.c:334:5: warning: implicit declaration of function 'throw_warning' [-Wimplicit-function-declaration] throw_warning ("Cannot use DRAW_PIXMAP method, using DRAW_SIMPLE", NULL); ^~~~~~~~~~~~~ shape.c: At top level: shape.c:392:1: warning: return type defaults to 'int' [-Wimplicit-int] shape_set_growth (shape) ^~~~~~~~~~~~~~~~ shape.c:434:1: warning: return type defaults to 'int' [-Wimplicit-int] shape_set_troops (shape) ^~~~~~~~~~~~~~~~ shape.c:493:1: warning: return type defaults to 'int' [-Wimplicit-int] shape_set_chart (shape) ^~~~~~~~~~~~~~~ shape.c:667:1: warning: return type defaults to 'int' [-Wimplicit-int] shape_set_arrows (shape, offset) ^~~~~~~~~~~~~~~~ shape.c: In function 'shape_set_arrows': shape.c:702:9: warning: implicit declaration of function 'shape_set_single_arrow'; did you mean 'shape_set_arrows'? [-Wimplicit-function-declaration] shape_set_single_arrow (width, 0, FALSE, angle, ^~~~~~~~~~~~~~~~~~~~~~ shape_set_arrows shape.c:759:7: warning: implicit declaration of function 'shape_set_single_march'; did you mean 'shape_set_chart'? [-Wimplicit-function-declaration] shape_set_single_march (width, angle, ^~~~~~~~~~~~~~~~~~~~~~ shape_set_chart shape.c: At top level: shape.c:784:1: warning: return type defaults to 'int' [-Wimplicit-int] shape_set_single_arrow (length, aux_length, ^~~~~~~~~~~~~~~~~~~~~~ shape.c: In function 'shape_set_single_arrow': shape.c:857:5: warning: 'return' with no value, in function returning non-void return; ^~~~~~ shape.c:784:1: note: declared here shape_set_single_arrow (length, aux_length, ^~~~~~~~~~~~~~~~~~~~~~ shape.c: At top level: shape.c:936:1: warning: return type defaults to 'int' [-Wimplicit-int] shape_set_single_march (length, angle, march_source, march_dester) ^~~~~~~~~~~~~~~~~~~~~~ gcc -m32 -O2 -fno-strength-reduce -fno-strict-aliasing -I/usr/include -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFUNCPROTO=15 -DNARROWPROTO -DDEFAULT_XBO_DIR=\"/export/home/lesher/xbos\" -DDEFAULT_XBT_DIR=\"/export/home/lesher/xbts\" -DDEFAULT_XBA_DIR=\"/export/home/lesher/xbas\" -D_GLIBCXX_USE_C99_MATH=1 -c -o shape_octagon.o shape_octagon.c gcc -m32 -O2 -fno-strength-reduce -fno-strict-aliasing -I/usr/include -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFUNCPROTO=15 -DNARROWPROTO -DDEFAULT_XBO_DIR=\"/export/home/lesher/xbos\" -DDEFAULT_XBT_DIR=\"/export/home/lesher/xbts\" -DDEFAULT_XBA_DIR=\"/export/home/lesher/xbas\" -D_GLIBCXX_USE_C99_MATH=1 -c -o shape_square.o shape_square.c In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from shape_octagon.c:1: /usr/include/features.h:184:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" ^~~~~~~ In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from shape_square.c:1: /usr/include/features.h:184:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" ^~~~~~~ gcc -m32 -O2 -fno-strength-reduce -fno-strict-aliasing -I/usr/include -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFUNCPROTO=15 -DNARROWPROTO -DDEFAULT_XBO_DIR=\"/export/home/lesher/xbos\" -DDEFAULT_XBT_DIR=\"/export/home/lesher/xbts\" -DDEFAULT_XBA_DIR=\"/export/home/lesher/xbas\" -D_GLIBCXX_USE_C99_MATH=1 -c -o shape_triangle.o shape_triangle.c In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from shape_triangle.c:1: /usr/include/features.h:184:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" ^~~~~~~ shape_octagon.c:31:1: warning: return type defaults to 'int' [-Wimplicit-int] octagon_set_dimensions (shape, cell_size, side) ^~~~~~~~~~~~~~~~~~~~~~ shape_triangle.c:24:1: warning: return type defaults to 'int' [-Wimplicit-int] triangle_set_dimensions (shape, cell_size, side, point_up) ^~~~~~~~~~~~~~~~~~~~~~~ shape_octagon.c: In function 'octagon_set_dimensions': shape_octagon.c:122:3: warning: implicit declaration of function 'shape_set_draw_method' [-Wimplicit-function-declaration] shape_set_draw_method (shape, side, TRUE); ^~~~~~~~~~~~~~~~~~~~~ shape_square.c:22:1: warning: return type defaults to 'int' [-Wimplicit-int] square_set_dimensions (shape, cell_size, side, use_circle) ^~~~~~~~~~~~~~~~~~~~~ shape_triangle.c: In function 'triangle_set_dimensions': shape_triangle.c:133:3: warning: implicit declaration of function 'shape_set_draw_method' [-Wimplicit-function-declaration] shape_set_draw_method (shape, side, TRUE); ^~~~~~~~~~~~~~~~~~~~~ shape_octagon.c:124:3: warning: implicit declaration of function 'shape_set_growth' [-Wimplicit-function-declaration] shape_set_growth (shape); ^~~~~~~~~~~~~~~~ shape_square.c: In function 'square_set_dimensions': shape_square.c:127:3: warning: implicit declaration of function 'shape_set_draw_method' [-Wimplicit-function-declaration] shape_set_draw_method (shape, side, FALSE); ^~~~~~~~~~~~~~~~~~~~~ shape_triangle.c:135:3: warning: implicit declaration of function 'shape_set_growth' [-Wimplicit-function-declaration] shape_set_growth (shape); ^~~~~~~~~~~~~~~~ shape_octagon.c:126:3: warning: implicit declaration of function 'shape_set_troops' [-Wimplicit-function-declaration] shape_set_troops (shape); ^~~~~~~~~~~~~~~~ shape_triangle.c:137:3: warning: implicit declaration of function 'shape_set_troops' [-Wimplicit-function-declaration] shape_set_troops (shape); ^~~~~~~~~~~~~~~~ shape_square.c:129:3: warning: implicit declaration of function 'shape_set_growth' [-Wimplicit-function-declaration] shape_set_growth (shape); ^~~~~~~~~~~~~~~~ shape_triangle.c:139:3: warning: implicit declaration of function 'shape_set_arrows' [-Wimplicit-function-declaration] shape_set_arrows (shape, 0); ^~~~~~~~~~~~~~~~ shape_triangle.c: At top level: shape_triangle.c:151:1: warning: return type defaults to 'int' [-Wimplicit-int] triangle_set_center (cell, shape1, shape2, side) ^~~~~~~~~~~~~~~~~~~ shape_triangle.c:180:1: warning: return type defaults to 'int' [-Wimplicit-int] triangle_set_horizons (shape, point_up) ^~~~~~~~~~~~~~~~~~~~~ shape_triangle.c:249:1: warning: return type defaults to 'int' [-Wimplicit-int] triangle_set_connections () ^~~~~~~~~~~~~~~~~~~~~~~~ shape_triangle.c:366:1: warning: return type defaults to 'int' [-Wimplicit-int] triangle_set_selects (shape, select, side) ^~~~~~~~~~~~~~~~~~~~ shape_octagon.c:128:3: warning: implicit declaration of function 'shape_set_arrows' [-Wimplicit-function-declaration] shape_set_arrows (shape, 0); ^~~~~~~~~~~~~~~~ shape_octagon.c: At top level: shape_octagon.c:141:1: warning: return type defaults to 'int' [-Wimplicit-int] octagon_set_center (cell, shape1, shape2, side) ^~~~~~~~~~~~~~~~~~ shape_octagon.c:202:1: warning: return type defaults to 'int' [-Wimplicit-int] octagon_set_horizons (shape1, shape2) ^~~~~~~~~~~~~~~~~~~~ shape_square.c:131:3: warning: implicit declaration of function 'shape_set_troops' [-Wimplicit-function-declaration] shape_set_troops (shape); ^~~~~~~~~~~~~~~~ shape_octagon.c: In function 'octagon_set_horizons': shape_octagon.c:210:3: warning: implicit declaration of function 'square_set_horizons'; did you mean 'octagon_set_horizons'? [-Wimplicit-function-declaration] square_set_horizons (shape1); ^~~~~~~~~~~~~~~~~~~ octagon_set_horizons shape_octagon.c: At top level: shape_octagon.c:222:1: warning: return type defaults to 'int' [-Wimplicit-int] octagon_set_connections () ^~~~~~~~~~~~~~~~~~~~~~~ shape_square.c:133:3: warning: implicit declaration of function 'shape_set_arrows' [-Wimplicit-function-declaration] shape_set_arrows (shape, 0); ^~~~~~~~~~~~~~~~ shape_square.c: At top level: shape_square.c:145:1: warning: return type defaults to 'int' [-Wimplicit-int] square_set_center (cell, shape, side) ^~~~~~~~~~~~~~~~~ shape_square.c:170:1: warning: return type defaults to 'int' [-Wimplicit-int] square_set_horizons (shape) ^~~~~~~~~~~~~~~~~~~ shape_square.c:219:1: warning: return type defaults to 'int' [-Wimplicit-int] square_set_connections () ^~~~~~~~~~~~~~~~~~~~~~ shape_octagon.c: In function 'octagon_set_connections': shape_octagon.c:230:3: warning: implicit declaration of function 'square_set_connections'; did you mean 'octagon_set_connections'? [-Wimplicit-function-declaration] square_set_connections (); ^~~~~~~~~~~~~~~~~~~~~~ octagon_set_connections shape_square.c:280:1: warning: return type defaults to 'int' [-Wimplicit-int] square_set_selects (shape, select, side) ^~~~~~~~~~~~~~~~~~ shape_octagon.c: At top level: shape_octagon.c:345:1: warning: return type defaults to 'int' [-Wimplicit-int] octagon_set_selects (shape1, shape2, select, side) ^~~~~~~~~~~~~~~~~~~ shape_octagon.c:489:1: warning: return type defaults to 'int' [-Wimplicit-int] octagon_set_square_troops (shape1, shape2) ^~~~~~~~~~~~~~~~~~~~~~~~~ gcc -m32 -O2 -fno-strength-reduce -fno-strict-aliasing -I/usr/include -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFUNCPROTO=15 -DNARROWPROTO -DDEFAULT_XBO_DIR=\"/export/home/lesher/xbos\" -DDEFAULT_XBT_DIR=\"/export/home/lesher/xbts\" -DDEFAULT_XBA_DIR=\"/export/home/lesher/xbas\" -D_GLIBCXX_USE_C99_MATH=1 -c -o update.o update.c In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from update.c:1: /usr/include/features.h:184:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" ^~~~~~~ update.c:26:1: warning: return type defaults to 'int' [-Wimplicit-int] update_board () ^~~~~~~~~~~~ update.c: In function 'update_board': update.c:44:5: warning: 'return' with no value, in function returning non-void return; ^~~~~~ update.c:26:1: note: declared here update_board () ^~~~~~~~~~~~ update.c:50:5: warning: implicit declaration of function 'update_board_march'; did you mean 'update_board'? [-Wimplicit-function-declaration] update_board_march (); ^~~~~~~~~~~~~~~~~~ update_board update.c:59:18: warning: implicit declaration of function 'get_random' [-Wimplicit-function-declaration] swap_index = get_random (left); ^~~~~~~~~~ update.c:72:5: warning: implicit declaration of function 'update_cell_growth' [-Wimplicit-function-declaration] update_cell_growth (cell); ^~~~~~~~~~~~~~~~~~ update.c:75:7: warning: implicit declaration of function 'update_cell_manage' [-Wimplicit-function-declaration] update_cell_manage (cell); ^~~~~~~~~~~~~~~~~~ update.c:78:7: warning: implicit declaration of function 'update_cell_decay' [-Wimplicit-function-declaration] update_cell_decay (cell); ^~~~~~~~~~~~~~~~~ update.c:81:7: warning: implicit declaration of function 'update_cell_fight' [-Wimplicit-function-declaration] update_cell_fight (cell); ^~~~~~~~~~~~~~~~~ update.c:120:13: warning: implicit declaration of function 'update_cell'; did you mean 'update_board'? [-Wimplicit-function-declaration] update_cell (cell, cell->connect[l]); ^~~~~~~~~~~ update_board update.c:144:9: warning: implicit declaration of function 'update_cell_erode'; did you mean 'update_board'? [-Wimplicit-function-declaration] update_cell_erode (cell); ^~~~~~~~~~~~~~~~~ update_board update.c:160:13: warning: implicit declaration of function 'is_visible' [-Wimplicit-function-declaration] if (is_visible (cell, side)) ^~~~~~~~~~ update.c:161:11: warning: implicit declaration of function 'draw_cell'; did you mean 'get_cell'? [-Wimplicit-function-declaration] draw_cell (cell, player, TRUE); ^~~~~~~~~ get_cell update.c:172:9: warning: implicit declaration of function 'store_draw_cell' [-Wimplicit-function-declaration] store_draw_cell (cell); ^~~~~~~~~~~~~~~ update.c: At top level: update.c:196:1: warning: return type defaults to 'int' [-Wimplicit-int] update_cell (cell1, cell2) ^~~~~~~~~~~ update.c: In function 'update_cell': update.c:216:5: warning: 'return' with no value, in function returning non-void return; ^~~~~~ update.c:196:1: note: declared here update_cell (cell1, cell2) ^~~~~~~~~~~ update.c:230:5: warning: 'return' with no value, in function returning non-void return; ^~~~~~ update.c:196:1: note: declared here update_cell (cell1, cell2) ^~~~~~~~~~~ update.c:240:5: warning: 'return' with no value, in function returning non-void return; ^~~~~~ update.c:196:1: note: declared here update_cell (cell1, cell2) ^~~~~~~~~~~ update.c:263:5: warning: 'return' with no value, in function returning non-void return; ^~~~~~ update.c:196:1: note: declared here update_cell (cell1, cell2) ^~~~~~~~~~~ update.c:321:5: warning: implicit declaration of function 'update_cell_horizon'; did you mean 'update_cell'? [-Wimplicit-function-declaration] update_cell_horizon (cell1, side1); ^~~~~~~~~~~~~~~~~~~ update_cell update.c: At top level: update.c:335:1: warning: return type defaults to 'int' [-Wimplicit-int] update_cell_manage (cell) ^~~~~~~~~~~~~~~~~~ update.c: In function 'update_cell_manage': update.c:349:9: warning: 'return' with no value, in function returning non-void return; ^~~~~~ update.c:335:1: note: declared here update_cell_manage (cell) ^~~~~~~~~~~~~~~~~~ update.c:355:7: warning: 'return' with no value, in function returning non-void return; ^~~~~~ update.c:335:1: note: declared here update_cell_manage (cell) ^~~~~~~~~~~~~~~~~~ update.c:364:5: warning: 'return' with no value, in function returning non-void return; ^~~~~~ update.c:335:1: note: declared here update_cell_manage (cell) ^~~~~~~~~~~~~~~~~~ update.c:373:7: warning: implicit declaration of function 'run_build' [-Wimplicit-function-declaration] run_build (cell, cell->side); ^~~~~~~~~ update.c:380:7: warning: implicit declaration of function 'run_shoot' [-Wimplicit-function-declaration] run_shoot (cell, 0, cell->manage_x, cell->manage_y, ^~~~~~~~~ update.c:406:9: warning: implicit declaration of function 'run_fill' [-Wimplicit-function-declaration] run_fill (cell); ^~~~~~~~ update.c:450:9: warning: implicit declaration of function 'run_dig' [-Wimplicit-function-declaration] run_dig (cell); ^~~~~~~ update.c: At top level: update.c:479:1: warning: return type defaults to 'int' [-Wimplicit-int] update_cell_growth (cell) ^~~~~~~~~~~~~~~~~~ update.c: In function 'update_cell_growth': update.c:491:5: warning: 'return' with no value, in function returning non-void return; ^~~~~~ update.c:479:1: note: declared here update_cell_growth (cell) ^~~~~~~~~~~~~~~~~~ update.c: At top level: update.c:536:1: warning: return type defaults to 'int' [-Wimplicit-int] update_cell_decay (cell) ^~~~~~~~~~~~~~~~~ update.c: In function 'update_cell_decay': update.c:547:5: warning: 'return' with no value, in function returning non-void return; ^~~~~~ update.c:536:1: note: declared here update_cell_decay (cell) ^~~~~~~~~~~~~~~~~ update.c: At top level: update.c:576:1: warning: return type defaults to 'int' [-Wimplicit-int] update_cell_erode (cell) ^~~~~~~~~~~~~~~~~ update.c: In function 'update_cell_erode': update.c:582:5: warning: 'return' with no value, in function returning non-void return; ^~~~~~ update.c:576:1: note: declared here update_cell_erode (cell) ^~~~~~~~~~~~~~~~~ update.c: At top level: update.c:609:1: warning: return type defaults to 'int' [-Wimplicit-int] update_cell_fight (cell) ^~~~~~~~~~~~~~~~~ update.c: In function 'update_cell_fight': update.c:744:7: warning: implicit declaration of function 'update_cell_clean'; did you mean 'update_cell_decay'? [-Wimplicit-function-declaration] update_cell_clean (cell); ^~~~~~~~~~~~~~~~~ update_cell_decay update.c: At top level: update.c:770:1: warning: return type defaults to 'int' [-Wimplicit-int] update_board_march () ^~~~~~~~~~~~~~~~~~ update.c:934:1: warning: return type defaults to 'int' [-Wimplicit-int] is_visible (cell, active_side) ^~~~~~~~~~ update.c:1014:1: warning: return type defaults to 'int' [-Wimplicit-int] update_cell_horizon (base_cell, current_side) ^~~~~~~~~~~~~~~~~~~ update.c: In function 'update_cell_horizon': update.c:1029:5: warning: 'return' with no value, in function returning non-void return; ^~~~~~ update.c:1014:1: note: declared here update_cell_horizon (base_cell, current_side) ^~~~~~~~~~~~~~~~~~~ update.c:1047:5: warning: 'return' with no value, in function returning non-void return; ^~~~~~ update.c:1014:1: note: declared here update_cell_horizon (base_cell, current_side) ^~~~~~~~~~~~~~~~~~~ update.c: At top level: update.c:1142:1: warning: return type defaults to 'int' [-Wimplicit-int] update_cell_clean (cell) ^~~~~~~~~~~~~~~~~ update.c:1222:1: warning: return type defaults to 'int' [-Wimplicit-int] set_move (cell, dir, factor) ^~~~~~~~ update.c:1291:1: warning: return type defaults to 'int' [-Wimplicit-int] set_move_force (cell, dir, factor) ^~~~~~~~~~~~~~ gcc -m32 -O2 -fno-strength-reduce -fno-strict-aliasing -I/usr/include -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFUNCPROTO=15 -DNARROWPROTO -DDEFAULT_XBO_DIR=\"/export/home/lesher/xbos\" -DDEFAULT_XBT_DIR=\"/export/home/lesher/xbts\" -DDEFAULT_XBA_DIR=\"/export/home/lesher/xbas\" -D_GLIBCXX_USE_C99_MATH=1 -c -o utils.o utils.c gcc -m32 -O2 -fno-strength-reduce -fno-strict-aliasing -I/usr/include -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFUNCPROTO=15 -DNARROWPROTO -DDEFAULT_XBO_DIR=\"/export/home/lesher/xbos\" -DDEFAULT_XBT_DIR=\"/export/home/lesher/xbts\" -DDEFAULT_XBA_DIR=\"/export/home/lesher/xbas\" -D_GLIBCXX_USE_C99_MATH=1 -c -o window.o window.c In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from window.c:1: /usr/include/features.h:184:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" ^~~~~~~ In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from utils.c:1: /usr/include/features.h:184:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" ^~~~~~~ window.c:25:1: warning: return type defaults to 'int' [-Wimplicit-int] open_xwindow (xwindow, hue_title, bw_title) ^~~~~~~~~~~~ window.c: In function 'open_xwindow': window.c:73:3: warning: implicit declaration of function 'create_xwindow'; did you mean 'open_xwindow'? [-Wimplicit-function-declaration] create_xwindow (xwindow, hue_title, bw_title, current_side); ^~~~~~~~~~~~~~ open_xwindow window.c:77:25: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration] xwindow->hue = (GC *)(malloc(sizeof(GC)*(Config->side_count+1))); ^~~~~~ window.c:77:25: warning: incompatible implicit declaration of built-in function 'malloc' window.c:77:25: note: include '' or provide a declaration of 'malloc' window.c:13:1: +#include window.c:77:25: xwindow->hue = (GC *)(malloc(sizeof(GC)*(Config->side_count+1))); ^~~~~~ window.c:141:13: warning: implicit declaration of function 'match_color_name' [-Wimplicit-function-declaration] index = match_color_name ("mark", 0); ^~~~~~~~~~~~~~~~ window.c:251:7: warning: implicit declaration of function 'throw_warning' [-Wimplicit-function-declaration] throw_warning ("Could not allocate all color cells\n%s", ^~~~~~~~~~~~~ window.c:411:5: warning: implicit declaration of function 'init_stipple'; did you mean 'XSetStipple'? [-Wimplicit-function-declaration] init_stipple (xwindow->display, xwindow->window, stipple); ^~~~~~~~~~~~ XSetStipple window.c:496:7: warning: implicit declaration of function 'init_terrain_pixmaps' [-Wimplicit-function-declaration] init_terrain_pixmaps (xwindow, shape, gc_on, gc_off, index); ^~~~~~~~~~~~~~~~~~~~ window.c:678:9: warning: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration] strcpy (xwindow->letter[side], Config->side_to_letter[side]); ^~~~~~ window.c:678:9: warning: incompatible implicit declaration of built-in function 'strcpy' window.c:678:9: note: include '' or provide a declaration of 'strcpy' window.c:13:1: +#include window.c:678:9: strcpy (xwindow->letter[side], Config->side_to_letter[side]); ^~~~~~ window.c: At top level: window.c:699:1: warning: return type defaults to 'int' [-Wimplicit-int] create_xwindow (xwindow, hue_title, bw_title, current_side) ^~~~~~~~~~~~~~ window.c: In function 'create_xwindow': window.c:718:5: warning: implicit declaration of function 'throw_error' [-Wimplicit-function-declaration] throw_error ("Cannot open display %s", xwindow->display_name); ^~~~~~~~~~~ window.c: At top level: utils.c:65:1: warning: return type defaults to 'int' [-Wimplicit-int] match_color_name (color_name, default_hue) ^~~~~~~~~~~~~~~~ window.c:845:1: warning: return type defaults to 'int' [-Wimplicit-int] close_xwindow (xwindow) ^~~~~~~~~~~~~ utils.c: In function 'match_color_name': utils.c:65:1: warning: type of 'default_hue' defaults to 'int' [-Wimplicit-int] window.c:860:1: warning: return type defaults to 'int' [-Wimplicit-int] init_stipple (display, window, stipple) ^~~~~~~~~~~~ utils.c:71:10: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration] if (!strcmp (color_name, Config->hue_name[hue])) ^~~~~~ utils.c: At top level: utils.c:88:1: warning: return type defaults to 'int' [-Wimplicit-int] matchstr (line, word) ^~~~~~~~ utils.c: In function 'matchstr': utils.c:94:15: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] for (i=0; i' or provide a declaration of 'strlen' utils.c:14:1: +#include utils.c:94:15: for (i=0; ixbattle._man; \ fi + mkdir -p /home/slitaz/wok/xbattle/install/usr/bin install -c xbattle /home/slitaz/wok/xbattle/install/usr/bin/xbattle install in . done ================================================================================ Executing strip on all files... Done Time: 0.14s. Size: 141556 B -> 130216 B. Save: 11 KB. ================================================================================ Build dependencies to remove: 99 Removing: bzip2-dev font-misc-misc-base fontconfig fontconfig-dev freetype freetype-dev glib glib-dev harfbuzz harfbuzz-dev imake libcairo libfontenc libfontenc-dev libgdbm libharfbuzz libice libice-dev libpciaccess libpcre libpcre16 libpcre32 libpcrecpp libpcreposix libpng libpng-dev libsm libsm-dev libx11 libx11-dev libxau libxau-dev libxaw libxaw-dev libxcb libxcb-dev libxcomposite libxcomposite-dev libxcursor libxcursor-dev libxdamage libxdamage-dev libxdmcp libxdmcp-dev libxext libxext-dev libxfixes libxfixes-dev libxfont libxfont-dev libxft libxft-dev libxi libxi-dev libxinerama libxinerama-dev libxkbfile libxkbfile-dev libxml2 libxml2-dev libxml2-tools libxmu libxmu-dev libxpm libxpm-dev libxpm-util libxrandr libxrandr-dev libxrender libxrender-dev libxscrnsaver libxt libxt-dev libxtst libxtst-dev libxxf86vm pcre pcre-apps pcre-dev perl perl-core pixman util-linux-blkid util-linux-blkid-dev util-linux-mount util-linux-mount-dev util-linux-smartcols util-linux-uuid util-linux-uuid-dev xauth xkbcomp xkeyboard-config xorg xorg-cf-files xorg-dev xorgproto xz-dev xz-tools zlib-dev Pack: xbattle 5.4.1 ================================================================================ Executing: genpkg_rules Copying folders and files... Done Copying "receipt"... Done Determining package architecture... i486 Creating the list of files... Done Creating md5sum of files... Done Compressing the FS... Done Creating full cpio archive... Done QA: checking for empty package... Done Removing old package "xbattle-5.4.1-i486.tazpkg" Done The release checksum has changed. ================================================================================ Package "xbattle-5.4.1-i486.tazpkg" created Post-check ================================================================================ Checking build... Done Checking 'any' arch... Done Checking libtool in source/xbattle-5.4.1... Done Checking site script in source/xbattle-5.4.1... Done Checking ownership in install... Done Checking permissions in install... Done Checking broken symlinks in install... Done Querying Repology... Done Updating activity log... Done ================================================================================ Summary for: xbattle 5.4.1 ================================================================================ Src file : xbattle_5.4.1.orig.tar.gz Src size : 124.0K Source dir : 1.0M Produced : 140.0K Cook time : 51s Cook date : 2020-07-08 04:18 Target arch : i486 -------------------------------------------------------------------------------- # : Packed : Compressed : Files : Package name -------------------------------------------------------------------------------- 1 : 156.0K : 52.0K : 1 : xbattle-5.4.1-i486.tazpkg ================================================================================