=> "/opt/pkg/bin/bmake" ["-C", "/data/jenkins/workspace/pkgsrc-upstream-trunk/time/dclock", "all", "BATCH=1", "DEPENDS_TARGET=/nonexistent"] WARNING: [license.mk] Every package should define a LICENSE. ===> Building for dclock-4nb1 --- Dclock.o --- --- dclock.o --- --- Dclock.o --- gcc -O -I/opt/pkg/include -I/opt/pkg/include -c Dclock.c --- dclock.o --- gcc -O -I/opt/pkg/include -I/opt/pkg/include -c dclock.c dclock.c: In function 'Usage': dclock.c:41:1: warning: old-style function definition [-Wold-style-definition] 41 | Usage(name, args) | ^~~~~ dclock.c:72:5: error: implicit declaration of function 'exit' [-Wimplicit-function-declaration] 72 | exit(1); | ^~~~ dclock.c:24:1: note: include '' or provide a declaration of 'exit' 23 | #include "Dclock.h" +++ |+#include 24 | dclock.c:72:5: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 72 | exit(1); | ^~~~ dclock.c:72:5: note: include '' or provide a declaration of 'exit' dclock.c: In function 'quit': dclock.c:78:5: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 78 | exit(0); | ^~~~ dclock.c:78:5: note: include '' or provide a declaration of 'exit' dclock.c: At top level: dclock.c:82:17: error: initialization of 'void (*)(struct _WidgetRec *, XEvent *, char **, Cardinal *)' {aka 'void (*)(struct _WidgetRec *, union _XEvent *, char **, unsigned int *)'} from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types] 82 | { "quit", quit }, | ^~~~ dclock.c:82:17: note: (near initialization for 'actionsList[0].proc') dclock.c:76:1: note: 'quit' declared here 76 | quit() | ^~~~ dclock.c:85:1: error: return type defaults to 'int' [-Wimplicit-int] 85 | main(argc, argv) | ^~~~ dclock.c: In function 'main': dclock.c:85:1: warning: old-style function definition [-Wold-style-definition] dclock.c:85:1: error: type of 'argc' defaults to 'int' [-Wimplicit-int] dclock.c:89:18: warning: conflicting types for built-in function 'rindex'; expected 'char *(const char *, int)' [-Wbuiltin-declaration-mismatch] 89 | char *name, *rindex(); | ^~~~~~ dclock.c:91:16: error: too many arguments to function 'rindex'; expected 0, have 2 91 | if (name = rindex(argv[0], '/')) | ^~~~~~ ~~~~~~~ dclock.c:89:18: note: declared here 89 | char *name, *rindex(); | ^~~~~~ --- Dclock.o --- In file included from Dclock.c:10: DclockP.h:50:8: warning: extra tokens at end of '#endif' directive [-Wendif-labels] 50 | #endif _XtDclockP_h | ^~~~~~~~~~~~ Dclock.c:29:16: error: expected identifier or '(' before 'false' 29 | static Boolean false = False; | ^~~~~ Dclock.c:30:16: error: expected identifier or '(' before 'true' 30 | static Boolean true = True; | ^~~~ Dclock.c:37:8: error: type defaults to 'int' in declaration of 'cur_position' [-Wimplicit-int] 37 | static cur_position; /* outline current digit for setting alarm */ | ^~~~~~~~~~~~ Dclock.c:53:33: error: initialization of 'void (*)(struct _WidgetRec *, XEvent *, char **, Cardinal *)' {aka 'void (*)(struct _WidgetRec *, union _XEvent *, char **, unsigned int *)'} from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types] 53 | { "toggle-bell", toggle_bell }, | ^~~~~~~~~~~ Dclock.c:53:33: note: (near initialization for 'actionsList[0].proc') Dclock.c:14:51: note: 'toggle_bell' declared here 14 | invert_bitmap(), build_segments(), timeout(), toggle_bell(), | ^~~~~~~~~~~ Dclock.c:54:33: error: initialization of 'void (*)(struct _WidgetRec *, XEvent *, char **, Cardinal *)' {aka 'void (*)(struct _WidgetRec *, union _XEvent *, char **, unsigned int *)'} from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types] 54 | { "toggle-scroll", toggle_scroll }, | ^~~~~~~~~~~~~ Dclock.c:54:33: note: (near initialization for 'actionsList[1].proc') Dclock.c:15:29: note: 'toggle_scroll' declared here 15 | toggle_reverse_video(), toggle_scroll(), toggle_seconds(), | ^~~~~~~~~~~~~ Dclock.c:55:33: error: initialization of 'void (*)(struct _WidgetRec *, XEvent *, char **, Cardinal *)' {aka 'void (*)(struct _WidgetRec *, union _XEvent *, char **, unsigned int *)'} from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types] 55 | { "toggle-fade", toggle_fade }, | ^~~~~~~~~~~ Dclock.c:55:33: note: (near initialization for 'actionsList[2].proc') Dclock.c:18:5: note: 'toggle_fade' declared here 18 | toggle_fade(), toggle_tails(); | ^~~~~~~~~~~ Dclock.c:56:33: error: initialization of 'void (*)(struct _WidgetRec *, XEvent *, char **, Cardinal *)' {aka 'void (*)(struct _WidgetRec *, union _XEvent *, char **, unsigned int *)'} from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types] 56 | { "toggle-reverse-video", toggle_reverse_video }, | ^~~~~~~~~~~~~~~~~~~~ Dclock.c:56:33: note: (near initialization for 'actionsList[3].proc') Dclock.c:15:5: note: 'toggle_reverse_video' declared here 15 | toggle_reverse_video(), toggle_scroll(), toggle_seconds(), | ^~~~~~~~~~~~~~~~~~~~ Dclock.c:57:33: error: initialization of 'void (*)(struct _WidgetRec *, XEvent *, char **, Cardinal *)' {aka 'void (*)(struct _WidgetRec *, union _XEvent *, char **, unsigned int *)'} from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types] 57 | { "toggle-seconds", toggle_seconds }, | ^~~~~~~~~~~~~~ Dclock.c:57:33: note: (near initialization for 'actionsList[4].proc') Dclock.c:15:46: note: 'toggle_seconds' declared here 15 | toggle_reverse_video(), toggle_scroll(), toggle_seconds(), | ^~~~~~~~~~~~~~ Dclock.c:58:33: error: initialization of 'void (*)(struct _WidgetRec *, XEvent *, char **, Cardinal *)' {aka 'void (*)(struct _WidgetRec *, union _XEvent *, char **, unsigned int *)'} from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types] 58 | { "toggle-military-time", toggle_military_time }, | ^~~~~~~~~~~~~~~~~~~~ Dclock.c:58:33: note: (near initialization for 'actionsList[5].proc') Dclock.c:16:5: note: 'toggle_military_time' declared here 16 | toggle_military_time(), toggle_date(), make_number(), set_alarm(), | ^~~~~~~~~~~~~~~~~~~~ Dclock.c:59:33: error: initialization of 'void (*)(struct _WidgetRec *, XEvent *, char **, Cardinal *)' {aka 'void (*)(struct _WidgetRec *, union _XEvent *, char **, unsigned int *)'} from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types] 59 | { "toggle-date", toggle_date }, | ^~~~~~~~~~~ Dclock.c:59:33: note: (near initialization for 'actionsList[6].proc') Dclock.c:16:29: note: 'toggle_date' declared here 16 | toggle_military_time(), toggle_date(), make_number(), set_alarm(), | ^~~~~~~~~~~ Dclock.c:60:33: error: initialization of 'void (*)(struct _WidgetRec *, XEvent *, char **, Cardinal *)' {aka 'void (*)(struct _WidgetRec *, union _XEvent *, char **, unsigned int *)'} from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types] 60 | { "toggle-tails", toggle_tails }, | ^~~~~~~~~~~~ Dclock.c:60:33: note: (near initialization for 'actionsList[7].proc') Dclock.c:18:20: note: 'toggle_tails' declared here 18 | toggle_fade(), toggle_tails(); | ^~~~~~~~~~~~ Dclock.c:61:33: error: initialization of 'void (*)(struct _WidgetRec *, XEvent *, char **, Cardinal *)' {aka 'void (*)(struct _WidgetRec *, union _XEvent *, char **, unsigned int *)'} from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types] 61 | { "toggle-alarm", toggle_alarm }, | ^~~~~~~~~~~~ Dclock.c:61:33: note: (near initialization for 'actionsList[8].proc') Dclock.c:17:33: note: 'toggle_alarm' declared here 17 | show_date(), scroll_time(), toggle_alarm(), outline_digit(), | ^~~~~~~~~~~~ Dclock.c:62:33: error: initialization of 'void (*)(struct _WidgetRec *, XEvent *, char **, Cardinal *)' {aka 'void (*)(struct _WidgetRec *, union _XEvent *, char **, unsigned int *)'} from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types] 62 | { "set-alarm", set_alarm }, | ^~~~~~~~~ Dclock.c:62:33: note: (near initialization for 'actionsList[9].proc') Dclock.c:16:59: note: 'set_alarm' declared here 16 | toggle_military_time(), toggle_date(), make_number(), set_alarm(), | ^~~~~~~~~ Dclock.c:73:69: error: lvalue required as unary '&' operand 73 | XtOffset(DclockWidget,dclock.reverse), XtRBoolean, (caddr_t)&false}, | ^ Dclock.c:75:67: error: lvalue required as unary '&' operand 75 | XtOffset(DclockWidget,dclock.tails), XtRBoolean, (caddr_t)&false}, | ^ Dclock.c:77:66: error: lvalue required as unary '&' operand 77 | XtOffset(DclockWidget,dclock.fade), XtRBoolean, (caddr_t)&false}, | ^ Dclock.c:81:68: error: lvalue required as unary '&' operand 81 | XtOffset(DclockWidget,dclock.scroll), XtRBoolean, (caddr_t)&true}, | ^ Dclock.c:83:74: error: lvalue required as unary '&' operand 83 | XtOffset(DclockWidget,dclock.display_time), XtRBoolean, (caddr_t)&true}, | ^ Dclock.c:85:67: error: lvalue required as unary '&' operand 85 | XtOffset(DclockWidget,dclock.alarm), XtRBoolean, (caddr_t)&false}, | ^ Dclock.c:89:66: error: lvalue required as unary '&' operand 89 | XtOffset(DclockWidget,dclock.bell), XtRBoolean, (caddr_t)&false}, | ^ Dclock.c:91:69: error: lvalue required as unary '&' operand 91 | XtOffset(DclockWidget,dclock.seconds), XtRBoolean, (caddr_t)&false}, | ^ Dclock.c:93:69: error: lvalue required as unary '&' operand 93 | XtOffset(DclockWidget,dclock.miltime), XtRBoolean, (caddr_t)&false}, | ^ Dclock.c:108:41: error: initialization of 'void (*)(struct _WidgetRec *, struct _WidgetRec *, struct *, Cardinal *)' {aka 'void (*)(struct _WidgetRec *, struct _WidgetRec *, struct *, unsigned int *)'} from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types] 108 | /* initialize */ Initialize, | ^~~~~~~~~~ Dclock.c:108:41: note: (near initialization for 'dclockClassRec.core_class.initialize') Dclock.c:13:5: note: 'Initialize' declared here 13 | Initialize(), Resize(), Realize(), Destroy(), Redisplay(), GetGC(), | ^~~~~~~~~~ Dclock.c:110:41: error: initialization of 'void (*)(struct _WidgetRec *, XtValueMask *, XSetWindowAttributes *)' {aka 'void (*)(struct _WidgetRec *, long unsigned int *, XSetWindowAttributes *)'} from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types] 110 | /* realize */ Realize, | ^~~~~~~ Dclock.c:110:41: note: (near initialization for 'dclockClassRec.core_class.realize') Dclock.c:13:29: note: 'Realize' declared here 13 | Initialize(), Resize(), Realize(), Destroy(), Redisplay(), GetGC(), | ^~~~~~~ Dclock.c:115:41: error: initialization of 'int' from 'void *' makes integer from pointer without a cast [-Wint-conversion] 115 | /* xrm_class */ NULL, | ^~~~ Dclock.c:115:41: note: (near initialization for 'dclockClassRec.core_class.xrm_class') Dclock.c:120:41: error: initialization of 'void (*)(struct _WidgetRec *)' from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types] 120 | /* destroy */ Destroy, | ^~~~~~~ Dclock.c:120:41: note: (near initialization for 'dclockClassRec.core_class.destroy') Dclock.c:13:40: note: 'Destroy' declared here 13 | Initialize(), Resize(), Realize(), Destroy(), Redisplay(), GetGC(), | ^~~~~~~ Dclock.c:121:41: error: initialization of 'void (*)(struct _WidgetRec *)' from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types] 121 | /* resize */ Resize, | ^~~~~~ Dclock.c:121:41: note: (near initialization for 'dclockClassRec.core_class.resize') Dclock.c:13:19: note: 'Resize' declared here 13 | Initialize(), Resize(), Realize(), Destroy(), Redisplay(), GetGC(), | ^~~~~~ Dclock.c:122:41: error: initialization of 'void (*)(struct _WidgetRec *, XEvent *, struct _XRegion *)' {aka 'void (*)(struct _WidgetRec *, union _XEvent *, struct _XRegion *)'} from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types] 122 | /* expose */ Redisplay, | ^~~~~~~~~ Dclock.c:122:41: note: (near initialization for 'dclockClassRec.core_class.expose') Dclock.c:13:51: note: 'Redisplay' declared here 13 | Initialize(), Resize(), Realize(), Destroy(), Redisplay(), GetGC(), | ^~~~~~~~~ Dclock.c:123:41: error: initialization of 'Boolean (*)(struct _WidgetRec *, struct _WidgetRec *, struct _WidgetRec *, struct *, Cardinal *)' {aka 'char (*)(struct _WidgetRec *, struct _WidgetRec *, struct _WidgetRec *, struct *, unsigned int *)'} from incompatible pointer type 'Boolean (*)(void)' {aka 'char (*)(void)'} [-Wincompatible-pointer-types] 123 | /* set_values */ SetValues, | ^~~~~~~~~ Dclock.c:123:41: note: (near initialization for 'dclockClassRec.core_class.set_values') Dclock.c:26:16: note: 'SetValues' declared here 26 | static Boolean SetValues(), show_time(); | ^~~~~~~~~ Dclock.c: In function 'Initialize': Dclock.c:242:1: warning: old-style function definition [-Wold-style-definition] 242 | Initialize (request, new) | ^~~~~~~~~~ Dclock.c:271:5: error: too many arguments to function 'GetGC'; expected 0, have 1 271 | GetGC(new); | ^~~~~ ~~~ Dclock.c:13:64: note: declared here 13 | Initialize(), Resize(), Realize(), Destroy(), Redisplay(), GetGC(), | ^~~~~ Dclock.c:277:5: error: too many arguments to function 'invert_bitmap'; expected 0, have 3 277 | invert_bitmap(stpl_1_8th, 16, 16); | ^~~~~~~~~~~~~ ~~~~~~~~~~ Dclock.c:14:5: note: declared here 14 | invert_bitmap(), build_segments(), timeout(), toggle_bell(), | ^~~~~~~~~~~~~ Dclock.c:278:5: error: too many arguments to function 'invert_bitmap'; expected 0, have 3 278 | invert_bitmap(stpl_1_4th, 16, 16); | ^~~~~~~~~~~~~ ~~~~~~~~~~ Dclock.c:14:5: note: declared here 14 | invert_bitmap(), build_segments(), timeout(), toggle_bell(), | ^~~~~~~~~~~~~ Dclock.c:279:5: error: too many arguments to function 'invert_bitmap'; expected 0, have 3 279 | invert_bitmap(stpl_3_8ths, 16, 16); | ^~~~~~~~~~~~~ ~~~~~~~~~~~ Dclock.c:14:5: note: declared here 14 | invert_bitmap(), build_segments(), timeout(), toggle_bell(), | ^~~~~~~~~~~~~ Dclock.c:288:13: error: implicit declaration of function 'exit' [-Wimplicit-function-declaration] 288 | exit(1); | ^~~~ Dclock.c:11:1: note: include '' or provide a declaration of 'exit' 10 | #include "DclockP.h" +++ |+#include 11 | Dclock.c:288:13: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 288 | exit(1); | ^~~~ Dclock.c:288:13: note: include '' or provide a declaration of 'exit' Dclock.c: In function 'GetGC': Dclock.c:305:1: warning: old-style function definition [-Wold-style-definition] 305 | GetGC(w) | ^~~~~ Dclock.c: In function 'invert_bitmap': Dclock.c:338:1: warning: old-style function definition [-Wold-style-definition] 338 | invert_bitmap(bm, h, w) | ^~~~~~~~~~~~~ Dclock.c: In function 'Realize': Dclock.c:349:1: warning: old-style function definition [-Wold-style-definition] 349 | Realize (w, valueMask, attrs) | ^~~~~~~ Dclock.c:357:5: error: too many arguments to function 'Resize'; expected 0, have 1 357 | Resize(w); | ^~~~~~ ~ Dclock.c:13:19: note: declared here 13 | Initialize(), Resize(), Realize(), Destroy(), Redisplay(), GetGC(), | ^~~~~~ Dclock.c: In function 'Destroy': Dclock.c:361:1: warning: old-style function definition [-Wold-style-definition] 361 | Destroy (w) | ^~~~~~~ Dclock.c: In function 'Resize': Dclock.c:382:1: warning: old-style function definition [-Wold-style-definition] 382 | Resize (w) | ^~~~~~ Dclock.c:421:5: error: too many arguments to function 'build_segments'; expected 0, have 3 421 | build_segments(norm_segment_pts, digit_w, digit_h); | ^~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~ Dclock.c:14:22: note: declared here 14 | invert_bitmap(), build_segments(), timeout(), toggle_bell(), | ^~~~~~~~~~~~~~ Dclock.c:424:9: error: too many arguments to function 'build_segments'; expected 0, have 3 424 | build_segments(tiny_segment_pts, digit_w/2, digit_h/2); | ^~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~ Dclock.c:14:22: note: declared here 14 | invert_bitmap(), build_segments(), timeout(), toggle_bell(), | ^~~~~~~~~~~~~~ Dclock.c:435:9: error: too many arguments to function 'make_number'; expected 0, have 5 435 | make_number(w, w->dclock.digits[i], gc, i, norm_segment_pts); | ^~~~~~~~~~~ ~ Dclock.c:16:44: note: declared here 16 | toggle_military_time(), toggle_date(), make_number(), set_alarm(), | ^~~~~~~~~~~ Dclock.c:448:13: error: too many arguments to function 'make_number'; expected 0, have 5 448 | make_number(w, w->dclock.tiny_digits[i], gc, i, tiny_segment_pts); | ^~~~~~~~~~~ ~ Dclock.c:16:44: note: declared here 16 | toggle_military_time(), toggle_date(), make_number(), set_alarm(), | ^~~~~~~~~~~ Dclock.c: In function 'build_segments': Dclock.c:492:1: warning: old-style function definition [-Wold-style-definition] 492 | build_segments(seg_pts, w, h) | ^~~~~~~~~~~~~~ Dclock.c: In function 'make_number': Dclock.c:563:1: warning: old-style function definition [-Wold-style-definition] 563 | make_number(dw, pix, gc, n, seg_pts) | ^~~~~~~~~~~ Dclock.c: In function 'make_fade_number': Dclock.c:581:1: warning: old-style function definition [-Wold-style-definition] 581 | make_fade_number(dw, pix, gc, on_msk, turn_on_msk, turn_off_msk, iter) | ^~~~~~~~~~~~~~~~ Dclock.c: In function 'Redisplay': Dclock.c:623:1: warning: old-style function definition [-Wold-style-definition] 623 | Redisplay (w) | ^~~~~~~~~ --- dclock.o --- *** [dclock.o] Error code 1 bmake: stopped making "all" in /home/pbulk/work/time/dclock/work --- Dclock.o --- Dclock.c:645:12: error: too many arguments to function 'show_time'; expected 0, have 1 645 | (void) show_time(w); | ^~~~~~~~~ ~ Dclock.c:26:29: note: declared here 26 | static Boolean SetValues(), show_time(); | ^~~~~~~~~ Dclock.c:650:71: error: passing argument 2 of 'XtAddTimeOut' from incompatible pointer type [-Wincompatible-pointer-types] 650 | w->dclock.interval_id = XtAddTimeOut((unsigned long)1000, timeout, (XtPointer)w); | ^~~~~~~ | | | void (*)(void) In file included from /home/pbulk/work/time/dclock/work/.buildlink/include/X11/IntrinsicP.h:51, from Dclock.c:7: /home/pbulk/work/time/dclock/work/.buildlink/include/X11/Intrinsic.h:992:5: note: expected 'XtTimerCallbackProc' {aka 'void (*)(void *, long unsigned int *)'} but argument is of type 'void (*)(void)' 992 | XtTimerCallbackProc /* proc */, | ^~~~~~~~~~~~~~~~~~~ Dclock.c:14:40: note: 'timeout' declared here 14 | invert_bitmap(), build_segments(), timeout(), toggle_bell(), | ^~~~~~~ /home/pbulk/work/time/dclock/work/.buildlink/include/X11/Intrinsic.h:318:16: note: 'XtTimerCallbackProc' declared here 318 | typedef void (*XtTimerCallbackProc)( | ^~~~~~~~~~~~~~~~~~~ Dclock.c:654:69: error: passing argument 2 of 'XtAddTimeOut' from incompatible pointer type [-Wincompatible-pointer-types] 654 | XtAddTimeOut((unsigned long)(60 - (t % 60)) * 1000, timeout, (XtPointer)w); | ^~~~~~~ | | | void (*)(void) /home/pbulk/work/time/dclock/work/.buildlink/include/X11/Intrinsic.h:992:5: note: expected 'XtTimerCallbackProc' {aka 'void (*)(void *, long unsigned int *)'} but argument is of type 'void (*)(void)' 992 | XtTimerCallbackProc /* proc */, | ^~~~~~~~~~~~~~~~~~~ Dclock.c:14:40: note: 'timeout' declared here 14 | invert_bitmap(), build_segments(), timeout(), toggle_bell(), | ^~~~~~~ /home/pbulk/work/time/dclock/work/.buildlink/include/X11/Intrinsic.h:318:16: note: 'XtTimerCallbackProc' declared here 318 | typedef void (*XtTimerCallbackProc)( | ^~~~~~~~~~~~~~~~~~~ Dclock.c: In function 'show_time': Dclock.c:659:1: warning: old-style function definition [-Wold-style-definition] 659 | show_time(w) | ^~~~~~~~~ Dclock.c:692:9: error: too many arguments to function 'scroll_time'; expected 0, have 2 692 | scroll_time(w, buf); | ^~~~~~~~~~~ ~ Dclock.c:17:18: note: declared here 17 | show_date(), scroll_time(), toggle_alarm(), outline_digit(), | ^~~~~~~~~~~ Dclock.c:706:9: error: too many arguments to function 'show_date'; expected 0, have 2 706 | show_date(w, l_time); | ^~~~~~~~~ ~ Dclock.c:17:5: note: declared here 17 | show_date(), scroll_time(), toggle_alarm(), outline_digit(), | ^~~~~~~~~ Dclock.c:715:9: error: too many arguments to function 'toggle_reverse_video'; expected 0, have 1 715 | toggle_reverse_video(w); | ^~~~~~~~~~~~~~~~~~~~ ~ Dclock.c:15:5: note: declared here 15 | toggle_reverse_video(), toggle_scroll(), toggle_seconds(), | ^~~~~~~~~~~~~~~~~~~~ Dclock.c: In function 'scroll_time': Dclock.c:730:1: warning: old-style function definition [-Wold-style-definition] 730 | scroll_time(w, p) | ^~~~~~~~~~~ Dclock.c:834:13: error: too many arguments to function 'outline_digit'; expected 0, have 3 834 | outline_digit(w, cur_position, True); | ^~~~~~~~~~~~~ ~ Dclock.c:17:49: note: declared here 17 | show_date(), scroll_time(), toggle_alarm(), outline_digit(), | ^~~~~~~~~~~~~ Dclock.c: In function 'show_date': Dclock.c:862:1: warning: old-style function definition [-Wold-style-definition] 862 | show_date(w, now) | ^~~~~~~~~ Dclock.c: In function 'timeout': Dclock.c:928:1: warning: old-style function definition [-Wold-style-definition] 928 | timeout(w, id) | ^~~~~~~ Dclock.c:932:30: error: too many arguments to function 'show_time'; expected 0, have 1 932 | Boolean alarm_went_off = show_time(w); | ^~~~~~~~~ ~ Dclock.c:659:1: note: declared here 659 | show_time(w) | ^~~~~~~~~ Dclock.c:936:25: error: passing argument 2 of 'XtAddTimeOut' from incompatible pointer type [-Wincompatible-pointer-types] 936 | timeout, (XtPointer)w); | ^~~~~~~ | | | void (*)(void) /home/pbulk/work/time/dclock/work/.buildlink/include/X11/Intrinsic.h:992:5: note: expected 'XtTimerCallbackProc' {aka 'void (*)(void *, long unsigned int *)'} but argument is of type 'void (*)(void)' 992 | XtTimerCallbackProc /* proc */, | ^~~~~~~~~~~~~~~~~~~ Dclock.c:928:1: note: 'timeout' declared here 928 | timeout(w, id) | ^~~~~~~ /home/pbulk/work/time/dclock/work/.buildlink/include/X11/Intrinsic.h:318:16: note: 'XtTimerCallbackProc' declared here 318 | typedef void (*XtTimerCallbackProc)( | ^~~~~~~~~~~~~~~~~~~ Dclock.c: In function 'SetValues': Dclock.c:941:1: warning: old-style function definition [-Wold-style-definition] 941 | SetValues (current, request, new) | ^~~~~~~~~ Dclock.c:973:9: error: too many arguments to function 'GetGC'; expected 0, have 1 973 | GetGC(new); | ^~~~~ ~~~ Dclock.c:305:1: note: declared here 305 | GetGC(w) | ^~~~~ Dclock.c:974:9: error: too many arguments to function 'Resize'; expected 0, have 1 974 | Resize(new); /* pixmaps need to be redrawn */ | ^~~~~~ ~~~ Dclock.c:382:1: note: declared here 382 | Resize (w) | ^~~~~~ Dclock.c:982:9: error: too many arguments to function 'Resize'; expected 0, have 1 982 | Resize(new); | ^~~~~~ ~~~ Dclock.c:382:1: note: declared here 382 | Resize (w) | ^~~~~~ Dclock.c: In function 'toggle_date': Dclock.c:996:1: warning: old-style function definition [-Wold-style-definition] 996 | toggle_date(w) | ^~~~~~~~~~~ Dclock.c:1009:5: error: too many arguments to function 'Resize'; expected 0, have 1 1009 | Resize(w); | ^~~~~~ ~ Dclock.c:382:1: note: declared here 382 | Resize (w) | ^~~~~~ Dclock.c:1010:5: error: too many arguments to function 'Redisplay'; expected 0, have 1 1010 | Redisplay(w); | ^~~~~~~~~ ~ Dclock.c:623:1: note: declared here 623 | Redisplay (w) | ^~~~~~~~~ Dclock.c: In function 'toggle_bell': Dclock.c:1014:1: warning: old-style function definition [-Wold-style-definition] 1014 | toggle_bell(w) | ^~~~~~~~~~~ Dclock.c: In function 'toggle_scroll': Dclock.c:1022:1: warning: old-style function definition [-Wold-style-definition] 1022 | toggle_scroll(w) | ^~~~~~~~~~~~~ Dclock.c: In function 'toggle_reverse_video': Dclock.c:1029:1: warning: old-style function definition [-Wold-style-definition] 1029 | toggle_reverse_video(w) | ^~~~~~~~~~~~~~~~~~~~ Dclock.c: In function 'toggle_military_time': Dclock.c:1039:1: warning: old-style function definition [-Wold-style-definition] 1039 | toggle_military_time(w) | ^~~~~~~~~~~~~~~~~~~~ Dclock.c: In function 'toggle_seconds': Dclock.c:1053:1: warning: old-style function definition [-Wold-style-definition] 1053 | toggle_seconds(w) | ^~~~~~~~~~~~~~ Dclock.c: In function 'toggle_fade': Dclock.c:1067:1: warning: old-style function definition [-Wold-style-definition] 1067 | toggle_fade(w) | ^~~~~~~~~~~ Dclock.c:1075:9: error: too many arguments to function 'toggle_scroll'; expected 0, have 1 1075 | toggle_scroll(w); | ^~~~~~~~~~~~~ ~ Dclock.c:1022:1: note: declared here 1022 | toggle_scroll(w) | ^~~~~~~~~~~~~ Dclock.c: In function 'toggle_tails': Dclock.c:1079:1: warning: old-style function definition [-Wold-style-definition] 1079 | toggle_tails(w) | ^~~~~~~~~~~~ Dclock.c: In function 'toggle_alarm': Dclock.c:1089:1: warning: old-style function definition [-Wold-style-definition] 1089 | toggle_alarm(w) | ^~~~~~~~~~~~ Dclock.c: In function 'set_alarm': Dclock.c:1099:1: warning: old-style function definition [-Wold-style-definition] 1099 | set_alarm(w, event) | ^~~~~~~~~ Dclock.c:1103:12: error: type defaults to 'int' in declaration of 'saved_secs' [-Wimplicit-int] 1103 | static saved_secs, saved_miltime; | ^~~~~~~~~~ Dclock.c:1103:24: error: type defaults to 'int' in declaration of 'saved_miltime' [-Wimplicit-int] 1103 | static saved_secs, saved_miltime; | ^~~~~~~~~~~~~ Dclock.c:1115:9: error: too many arguments to function 'Resize'; expected 0, have 1 1115 | Resize(w); | ^~~~~~ ~ Dclock.c:382:1: note: declared here 382 | Resize (w) | ^~~~~~ Dclock.c:1116:9: error: too many arguments to function 'Redisplay'; expected 0, have 1 1116 | Redisplay(w); | ^~~~~~~~~ ~ Dclock.c:623:1: note: declared here 623 | Redisplay (w) | ^~~~~~~~~ Dclock.c:1126:13: error: too many arguments to function 'toggle_alarm'; expected 0, have 1 1126 | toggle_alarm(w); | ^~~~~~~~~~~~ ~ Dclock.c:1089:1: note: declared here 1089 | toggle_alarm(w) | ^~~~~~~~~~~~ Dclock.c:1161:28: error: too many arguments to function 'show_time'; expected 0, have 1 1161 | (void) show_time(w); | ^~~~~~~~~ ~ Dclock.c:659:1: note: declared here 659 | show_time(w) | ^~~~~~~~~ Dclock.c:1163:21: error: too many arguments to function 'outline_digit'; expected 0, have 3 1163 | outline_digit(w, cur_position, False); | ^~~~~~~~~~~~~ ~ Dclock.c:17:49: note: declared here 17 | show_date(), scroll_time(), toggle_alarm(), outline_digit(), | ^~~~~~~~~~~~~ Dclock.c:1164:21: error: too many arguments to function 'outline_digit'; expected 0, have 3 1164 | outline_digit(w, cur_position = i, True); | ^~~~~~~~~~~~~ ~ Dclock.c:17:49: note: declared here 17 | show_date(), scroll_time(), toggle_alarm(), outline_digit(), | ^~~~~~~~~~~~~ Dclock.c: In function 'outline_digit': Dclock.c:1174:1: warning: old-style function definition [-Wold-style-definition] 1174 | outline_digit(w, i, draw_it) | ^~~~~~~~~~~~~ *** [Dclock.o] Error code 1 bmake: stopped making "all" in /home/pbulk/work/time/dclock/work bmake: 2 errors bmake: stopped making "all" in /home/pbulk/work/time/dclock/work *** Error code 2 Stop. bmake[1]: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/time/dclock *** Error code 1 Stop. bmake: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/time/dclock