WARNING: [license.mk] Every package should define a LICENSE. ===> Building for xjewel-1.6nb3 clang -O -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DHSCORE_FILE=\"/var/games/xjewel.scores\" -DUSE_SELECT -DICON_WINDOW -DGETPWENT -I/opt/pkg/include -c xw.c xw.c:59:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void xw_fatal(s,line,file) ^ In file included from xw.c:34: ./xw.h:17:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] extern void xw_fatal(); ^ xw.c:71:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Pixel xw_alloc_color(cname) ^ In file included from xw.c:34: ./xw.h:18:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] extern Pixel xw_alloc_color(); ^ xw.c:103:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void xw_sync_sleep(ms) ^ In file included from xw.c:34: ./xw.h:24:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] extern void xw_sync_sleep(); ^ xw.c:135:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void xw_set_timer(time_ms) ^ In file included from xw.c:34: ./xw.h:23:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] extern void xw_set_timer(); ^ xw.c:253:21: warning: passing arguments to 'xw_expose_event' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] xw_expose_event((XExposeEvent *) &xev); ^ xw.c:257:20: warning: passing arguments to 'xw_focus_event' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] xw_focus_event((XFocusChangeEvent *) &xev); ^ xw.c:260:20: warning: passing arguments to 'xw_leave_event' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] xw_leave_event((XLeaveWindowEvent *) &xev); ^ xw.c:263:18: warning: passing arguments to 'xw_key_event' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] xw_key_event((XKeyEvent *) &xev); ^ xw.c:267:18: warning: passing arguments to 'xw_but_event' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] xw_but_event((XButtonEvent *) &xev); ^ xw.c:271:18: warning: passing arguments to 'xw_map_event' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] xw_map_event((XMapEvent *) &xev); ^ xw.c:156:18: warning: unused variable 'writefds' [-Wunused-variable] fd_set readfds, writefds, exceptfds; ^ xw.c:402:11: warning: call to undeclared library function 'toupper' with type 'int (int)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] *AppName=toupper(*AppName); ^ xw.c:402:11: note: include the header or explicitly provide a declaration for 'toupper' xw.c:335:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void xw_init(argc, argv, w, h ) ^ In file included from xw.c:34: ./xw.h:21:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] extern void xw_init(); ^ 18 warnings generated. clang -O -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DHSCORE_FILE=\"/var/games/xjewel.scores\" -DUSE_SELECT -DICON_WINDOW -DGETPWENT -I/opt/pkg/include -c jewel.c jewel.c:40:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void xw_focus_event(xfev) ^ In file included from jewel.c:26: ./xw.h:29:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] extern void xw_focus_event(/*xfev*/); ^ jewel.c:52:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void xw_leave_event(xlev) ^ In file included from jewel.c:26: ./xw.h:30:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] extern void xw_leave_event(/*xlev*/); ^ jewel.c:71:17: warning: passing arguments to 'xw_set_timer' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] xw_set_timer(2000l); ^ jewel.c:77:17: warning: passing arguments to 'xw_set_timer' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] xw_set_timer(100L); ^ jewel.c:80:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void xw_map_event(xmev) ^ In file included from jewel.c:26: ./xw.h:32:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] extern void xw_map_event(/*xmev*/); ^ jewel.c:145:6: warning: call to undeclared library function 'printf' with type 'int (const char *, ...)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] printf("Thankyou for playing...try again sometime!\n"); ^ jewel.c:145:6: note: include the header or explicitly provide a declaration for 'printf' jewel.c:105:9: warning: enumeration values 'ICON' and 'NULL_STATE' not handled in switch [-Wswitch] switch(JewelState) ^~~~~~~~~~ jewel.c:105:9: note: add missing switch cases switch(JewelState) ^ jewel.c:98:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void xw_key_event(xkev) ^ In file included from jewel.c:26: ./xw.h:31:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] extern void xw_key_event(/*xkev*/); ^ jewel.c:221:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void xw_but_event(xbev) ^ In file included from jewel.c:26: ./xw.h:27:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] extern void xw_but_event(/*xbev*/); ^ jewel.c:254:10: warning: enumeration value 'ICON' not handled in switch [-Wswitch] switch(JewelState) ^~~~~~~~~~ jewel.c:254:10: note: add missing switch cases switch(JewelState) ^ jewel.c:233:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void xw_expose_event(xev) ^ In file included from jewel.c:26: ./xw.h:28:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] extern void xw_expose_event(/*xev*/); ^ jewel.c:291:14: warning: passing arguments to 'xw_set_timer' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] xw_set_timer(2000L); ^ jewel.c:297:9: warning: enumeration value 'NULL_STATE' not handled in switch [-Wswitch] switch(JewelState) ^~~~~~~~~~ jewel.c:297:9: note: add missing switch cases switch(JewelState) ^ jewel.c:381:22: warning: passing arguments to 'xw_alloc_color' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] green=xw_alloc_color("green"); ^ jewel.c:382:23: warning: passing arguments to 'xw_alloc_color' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] yellow=xw_alloc_color("yellow"); ^ jewel.c:408:35: warning: passing arguments to 'xw_alloc_color' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] colors[WILD_PIECE]=xw_alloc_color(WILD_C); ^ jewel.c:414:31: warning: passing arguments to 'xw_alloc_color' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] colors[PIECE1]=xw_alloc_color(PIECE1_C); ^ jewel.c:420:31: warning: passing arguments to 'xw_alloc_color' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] colors[PIECE2]=xw_alloc_color(PIECE2_C); ^ jewel.c:426:31: warning: passing arguments to 'xw_alloc_color' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] colors[PIECE3]=xw_alloc_color(PIECE3_C); ^ jewel.c:432:31: warning: passing arguments to 'xw_alloc_color' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] colors[PIECE4]=xw_alloc_color(PIECE4_C); ^ jewel.c:438:31: warning: passing arguments to 'xw_alloc_color' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] colors[PIECE5]=xw_alloc_color(PIECE5_C); ^ jewel.c:444:31: warning: passing arguments to 'xw_alloc_color' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] colors[PIECE6]=xw_alloc_color(PIECE6_C); ^ jewel.c:451:31: warning: passing arguments to 'xw_alloc_color' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] colors[FLASH1]=xw_alloc_color(FLASH_C); ^ jewel.c:473:33: warning: passing arguments to 'xw_alloc_color' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] colors[BACKGND1]=xw_alloc_color(BACKGND_C); ^ jewel.c:498:13: warning: passing arguments to 'xw_fatal' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { xw_fatal("Cannot load VERSION font.\n",__LINE__,__FILE__); } ^ jewel.c:504:13: warning: passing arguments to 'xw_fatal' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { xw_fatal("Cannot load HIGHSCORE font.\n",__LINE__,__FILE__); } ^ jewel.c:512:14: warning: passing arguments to 'xw_fatal' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { xw_fatal("Cannot load SCORE font.\n",__LINE__,__FILE__); } ^ jewel.c:535:9: warning: passing arguments to 'xw_init' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] xw_init(argc,argv,SCREEN_X, SCREEN_Y); ^ jewel.c:523:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int main(argc,argv) ^ 35 warnings generated. clang -O -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DHSCORE_FILE=\"/var/games/xjewel.scores\" -DUSE_SELECT -DICON_WINDOW -DGETPWENT -I/opt/pkg/include -c logic.c logic.c:30:14: warning: passing arguments to 'Draw_Piece' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Draw_Piece(board[i][j], i, j); ^ logic.c:34:13: warning: passing arguments to 'Draw_Piece' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Draw_Piece(next_block[i], -1, i); ^ logic.c:38:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void Get_Random_Block(block) ^ logic.c:59:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int Get_New_Background(old_background) ^ logic.c:91:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] Update_Board(piece, x, y) ^ int logic.c:95:12: warning: passing arguments to 'Draw_Piece' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Draw_Piece(piece, x, y); ^ logic.c:91:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Update_Board(piece, x, y) ^ logic.c:96:2: warning: non-void function does not return a value [-Wreturn-type] } ^ logic.c:116:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void Add_To_Remove_List(x, y, piece) ^ logic.c:125:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void Handle_Horiz_Line(i, j, in_line) ^ logic.c:136:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void Handle_Vert_Line(i, j, in_line) ^ logic.c:148:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void Handle_DiagR_Line(i, j, in_line) ^ logic.c:160:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void Handle_DiagL_Line(i, j, in_line) ^ logic.c:354:14: warning: passing arguments to 'Flash_Pieces' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Flash_Pieces(p_remov, index_rem, background); ^ logic.c:355:2: warning: non-void function does not return a value [-Wreturn-type] } ^ logic.c:390:14: warning: passing arguments to 'Dec_Rest' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if (Dec_Rest(num_pieces)) ^ logic.c:387:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void Update_Rest(num_pieces) ^ logic.c:417:12: warning: passing arguments to 'Add_Score' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Add_Score(JEWELSCORE, 1); ^ logic.c:426:12: warning: passing arguments to 'Add_Score' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Add_Score(add_score, i); ^ logic.c:397:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void Process_Block(special, piece) ^ logic.c:521:25: warning: incompatible pointer to integer conversion passing 'void *' to parameter of type 'int' [-Wint-conversion] Process_Block(FALSE, NULL); ^~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/sys/_types/_null.h:30:15: note: expanded from macro 'NULL' #define NULL __DARWIN_NULL ^~~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/sys/_types.h:52:23: note: expanded from macro '__DARWIN_NULL' #define __DARWIN_NULL ((void *)0) ^~~~~~~~~~~ logic.c:561:16: warning: passing arguments to 'Add_Raw_Score' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Add_Raw_Score(DROP_POINTS, cycles); ^ logic.c:603:14: warning: passing arguments to 'Draw_Piece' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Draw_Piece(next_block[i], -1, i); ^ 23 warnings generated. clang -O -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DHSCORE_FILE=\"/var/games/xjewel.scores\" -DUSE_SELECT -DICON_WINDOW -DGETPWENT -I/opt/pkg/include -c panel.c panel.c:54:14: warning: passing arguments to 'Redraw_Score' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Redraw_Score(Score); ^ panel.c:64:14: warning: passing arguments to 'Redraw_Score' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Redraw_Score(Score); ^ panel.c:57:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void Add_Raw_Score(pts,mult) ^ In file included from panel.c:9: ./panel.h:24:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] extern void Add_Raw_Score(/*pts,mult*/); ^ panel.c:73:18: warning: passing arguments to 'Redraw_Add_Score' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Redraw_Add_Score(pts,Mult); ^ panel.c:75:14: warning: passing arguments to 'Redraw_Score' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Redraw_Score(Score); ^ panel.c:68:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void Add_Score(pts,iteration) ^ In file included from panel.c:9: ./panel.h:25:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] extern void Add_Score(/*pts,iteration*/); ^ panel.c:87:14: warning: passing arguments to 'Redraw_Lives' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Redraw_Lives(Lives); ^ panel.c:94:14: warning: passing arguments to 'Redraw_Lives' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Redraw_Lives(Lives); ^ panel.c:106:14: warning: passing arguments to 'Redraw_Speed' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Redraw_Speed(Speed); ^ panel.c:107:14: warning: passing arguments to 'Redraw_Stage' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Redraw_Stage(Stage); ^ panel.c:119:14: warning: passing arguments to 'Redraw_Speed' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Redraw_Speed(Speed); ^ panel.c:120:14: warning: passing arguments to 'Redraw_Stage' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Redraw_Stage(Stage); ^ panel.c:130:15: warning: passing arguments to 'Redraw_Speed' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Redraw_Speed(Speed); ^ panel.c:131:15: warning: passing arguments to 'Redraw_Stage' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Redraw_Stage(Stage); ^ panel.c:148:13: warning: passing arguments to 'Redraw_Rest' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Redraw_Rest(Rest); ^ panel.c:151:15: warning: parameter 'val' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] BOOL Dec_Rest(val) ^ panel.c:163:16: warning: passing arguments to 'Redraw_Rest' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Redraw_Rest(Rest); ^ panel.c:151:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] BOOL Dec_Rest(val) ^ In file included from panel.c:9: ./panel.h:35:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] extern BOOL Dec_Rest(/*val*/); ^ panel.c:206:14: warning: passing arguments to 'Redraw_Score' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Redraw_Score(Score); ^ panel.c:207:14: warning: passing arguments to 'Redraw_Lives' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Redraw_Lives(Lives); ^ panel.c:208:14: warning: passing arguments to 'Redraw_Speed' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Redraw_Speed(Speed); ^ panel.c:209:14: warning: passing arguments to 'Redraw_Stage' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Redraw_Stage(Stage); ^ panel.c:210:13: warning: passing arguments to 'Redraw_Rest' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Redraw_Rest(Rest); ^ 26 warnings generated. clang -O -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DHSCORE_FILE=\"/var/games/xjewel.scores\" -DUSE_SELECT -DICON_WINDOW -DGETPWENT -I/opt/pkg/include -c xhscore.c xhscore.c:57:22: warning: passing arguments to 'xw_alloc_color' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] red = xw_alloc_color("red"); ^ xhscore.c:105:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void Draw_One_High_Score(i) ^ In file included from xhscore.c:22: ./xhscore.h:9:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] extern void Draw_One_High_Score(/*i*/); ^ xhscore.c:143:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void Show_High_Scores(start) ^ In file included from xhscore.c:22: ./xhscore.h:10:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] extern void Show_High_Scores(); ^ xhscore.c:169:16: warning: passing arguments to 'xw_sync_sleep' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] xw_sync_sleep(50L); ^ xhscore.c:192:17: warning: passing arguments to 'xw_sync_sleep' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] xw_sync_sleep(20L); ^ xhscore.c:173:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void Move_Down_High_Scores(number) ^ In file included from xhscore.c:22: ./xhscore.h:12:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] extern void Move_Down_High_Scores(/*number*/); ^ xhscore.c:205:14: warning: passing arguments to 'xw_set_timer' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] xw_set_timer(10000L); ^ 10 warnings generated. clang -O -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DHSCORE_FILE=\"/var/games/xjewel.scores\" -DUSE_SELECT -DICON_WINDOW -DGETPWENT -I/opt/pkg/include -c hscore.c hscore.c:122:2: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] close(hscorefd); ^ hscore.c:134:38: warning: call to undeclared function 'getuid'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] memcpy(high_scores[i].name,getpwuid(getuid())->pw_name,MAX_NAME_LENGTH+1); ^ hscore.c:141:21: warning: passing arguments to 'Draw_One_High_Score' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Draw_One_High_Score(i+1); ^ hscore.c:125:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void Add_High_Score(i) ^ hscore.c:158:18: warning: passing arguments to 'Show_High_Scores' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Show_High_Scores(1); ^ hscore.c:176:25: warning: passing arguments to 'Move_Down_High_Scores' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Move_Down_High_Scores(i+1); ^ hscore.c:179:20: warning: passing arguments to 'Show_High_Scores' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Show_High_Scores(i+1); ^ hscore.c:144:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void Update_High_Scores(NewStage, NewScore) ^ In file included from hscore.c:30: ./hscore.h:23:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] extern void Update_High_Scores(/*Stage, Score*/); ^ hscore.c:200:18: warning: passing arguments to 'Show_High_Scores' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Show_High_Scores(1); ^ 10 warnings generated. clang -O -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DHSCORE_FILE=\"/var/games/xjewel.scores\" -DUSE_SELECT -DICON_WINDOW -DGETPWENT -I/opt/pkg/include -c game.c game.c:78:15: warning: passing arguments to 'xw_sync_sleep' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] xw_sync_sleep(150L); ^ game.c:103:15: warning: passing arguments to 'xw_sync_sleep' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] xw_sync_sleep(150L); ^ game.c:107:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void Draw_Piece(piece,x,y) ^ In file included from game.c:22: ./game.h:9:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] extern void Draw_Piece(/* piece,x,y */); ^ game.c:143:16: warning: passing arguments to 'xw_sync_sleep' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] xw_sync_sleep(70L+SLOW_DRAW); ^ game.c:149:16: warning: passing arguments to 'xw_sync_sleep' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] xw_sync_sleep(160L+SLOW_DRAW); ^ game.c:155:15: warning: passing arguments to 'xw_sync_sleep' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] xw_sync_sleep(100L+SLOW_DRAW); ^ game.c:127:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void Flash_Pieces(p_remove, numflash, background) ^ In file included from game.c:22: ./game.h:12:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] extern void Flash_Pieces(/* p_remove, numflash, background */); ^ game.c:169:2: warning: call to undeclared library function 'sprintf' with type 'int (char *, const char *, ...)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] sprintf(buf,"POINTS"); ^ game.c:169:2: note: include the header or explicitly provide a declaration for 'sprintf' game.c:189:15: warning: passing arguments to 'xw_sync_sleep' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] xw_sync_sleep(160L+SLOW_FONTS); ^ game.c:208:20: warning: passing arguments to 'xw_sync_sleep' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] xw_sync_sleep(10L+SLOW_FONTS); ^ game.c:212:15: warning: passing arguments to 'xw_sync_sleep' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] xw_sync_sleep(110L+SLOW_FONTS); ^ game.c:158:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void Redraw_Add_Score(pts,mult) ^ In file included from game.c:23: ./panel.h:47:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] extern void Redraw_Add_Score(/*pts,mult*/); ^ game.c:216:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void Redraw_Score(Score) ^ In file included from game.c:23: ./panel.h:46:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] extern void Redraw_Score(); ^ game.c:234:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void Redraw_Lives(Lives) ^ In file included from game.c:23: ./panel.h:48:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] extern void Redraw_Lives(); ^ game.c:252:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void Redraw_Speed(Speed) ^ In file included from game.c:23: ./panel.h:49:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] extern void Redraw_Speed(); ^ game.c:271:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void Redraw_Stage(Stage) ^ In file included from game.c:23: ./panel.h:50:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] extern void Redraw_Stage(); ^ game.c:290:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void Redraw_Rest(Rest) ^ In file included from game.c:23: ./panel.h:51:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] extern void Redraw_Rest(); ^ game.c:375:14: warning: passing arguments to 'xw_set_timer' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] xw_set_timer(Get_Speed_ms()); ^ game.c:394:15: warning: passing arguments to 'xw_sync_sleep' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] xw_sync_sleep(500L); ^ game.c:396:20: warning: passing arguments to 'Update_High_Scores' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Update_High_Scores(Get_Stage(), Get_Score()); ^ game.c:428:17: warning: passing arguments to 'xw_set_timer' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { xw_set_timer(Get_Speed_ms()); } ^ 29 warnings generated. clang -O -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DHSCORE_FILE=\"/var/games/xjewel.scores\" -DUSE_SELECT -DICON_WINDOW -DGETPWENT -I/opt/pkg/include -c intro.c intro.c:62:14: warning: passing arguments to 'xw_set_timer' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] xw_set_timer(200L); ^ intro.c:85:16: warning: passing arguments to 'xw_set_timer' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] xw_set_timer(200L); ^ intro.c:110:19: warning: passing arguments to 'xw_set_timer' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { xw_set_timer(2L); } ^ intro.c:114:17: warning: passing arguments to 'xw_set_timer' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] xw_set_timer(200L); ^ intro.c:144:16: warning: passing arguments to 'xw_set_timer' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] xw_set_timer(200L); ^ intro.c:163:16: warning: passing arguments to 'xw_set_timer' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] xw_set_timer(2L); ^ intro.c:177:18: warning: passing arguments to 'xw_set_timer' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] xw_set_timer(1000L); ^ intro.c:207:13: warning: passing arguments to 'xw_fatal' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { xw_fatal("Cannot load PRESENT font.\n",__LINE__,__FILE__); } ^ intro.c:216:9: warning: enumeration value 'FINI' not handled in switch [-Wswitch] switch(IntroState) ^~~~~~~~~~ intro.c:216:9: note: add missing switch cases switch(IntroState) ^ 9 warnings generated. clang -O -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DHSCORE_FILE=\"/var/games/xjewel.scores\" -DUSE_SELECT -DICON_WINDOW -DGETPWENT -I/opt/pkg/include -c help.c help.c:103:14: warning: passing arguments to 'xw_set_timer' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] xw_set_timer(10000L); ^ help.c:118:13: warning: passing arguments to 'xw_fatal' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { xw_fatal("Cannot load SYMBOL font.\n",__LINE__,__FILE__); } ^ help.c:123:13: warning: passing arguments to 'xw_fatal' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { xw_fatal("Cannot load HEADER font.\n",__LINE__,__FILE__); } ^ 3 warnings generated. rm -f xjewel._man if test -z "" ; then cd `dirname xjewel` && ln -s `basename xjewel.man` `basename xjewel._man`; else /usr/bin/cpp -undef -traditional -D__GNUC__ -D__apploaddir__=/opt/pkg/lib/X11/app-defaults -D__appmansuffix__=6 -D__filemansuffix__=5 -D__libmansuffix__=3 -D__miscmansuffix__=7 -D__drivermansuffix__=4 -D__adminmansuffix__=8 -D__projectroot__=/opt/pkg -D__xconfigfile__=xorg.conf -D__xconfigdir__=/opt/pkg/lib/X11 -D__xlogfile__=Xorg -D__xservername__=Xorg -D__xorgversion__="\"`echo 7 7 0 | sed -e 's/ /./g' -e 's/^/Version\\ /'`\" \"X Version 11\"" -D__vendorversion__="`echo 7 7 0 | sed -e 's/ /./g' -e 's/^/Version\\ /'` X.Org" < xjewel.man | sed -e '/^# *[0-9][0-9]* *.*$/d' -e '/^#line *[0-9][0-9]* *.*$/d' -e '/^[ ]*XCOMM$/s/XCOMM/#/' -e '/^[ ]*XCOMM[^a-zA-Z0-9_]/s/XCOMM/#/' -e '/^[ ]*XHASH/s/XHASH/#/' -e '/\@\@$/s/\@\@$/\/' >xjewel._man; fi /opt/pkg/bin/bdftopcf -t bitmaps/seven_seg.bdf | gzip -n > bitmaps/seven_seg.pcf.gz /opt/pkg/bin/mkfontdir bitmaps/ rm -f xjewel clang -o xjewel -O -Wall -Wpointer-arith -no-cpp-precomp -L/opt/pkg/lib -L/opt/pkg/lib xw.o jewel.o logic.o panel.o xhscore.o hscore.o game.o intro.o help.o -lXext -lX11