=> "/opt/pkg/bin/bmake" ["-C", "/Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-arm64/time/catclock", "all", "BATCH=1", "DEPENDS_TARGET=/nonexistent"] WARNING: [license.mk] Every package should define a LICENSE. ===> Building for catclock-0.0nb6 --- xclock.o --- --- alarm.o --- --- xclock.o --- clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I. -I/include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DHAS_GNU_EMACS -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include -I/opt/pkg/include/freetype2 -c xclock.c --- alarm.o --- clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I. -I/include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DHAS_GNU_EMACS -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include -I/opt/pkg/include/freetype2 -c alarm.c alarm.c:98:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 98 | void InitBellAlarm(win, width, height, fontInfo, fontList, fg, bg, state, on) | ^ In file included from alarm.c:24: ./alarm.h:4:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 4 | extern void InitBellAlarm(); | ^ alarm.c:155:13: warning: incompatible pointer types passing 'short[15]' to parameter of type 'const char *' [-Wincompatible-pointer-types] 155 | bell_bits, | ^~~~~~~~~ /var/tmp/work/time/catclock/work/.buildlink/include/X11/Xlib.h:1603:29: note: passing argument to parameter here 1603 | _Xconst char* /* data */, | ^ alarm.c:141:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 141 | void DrawBell(flash) | ^ In file included from alarm.c:24: ./alarm.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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 9 | extern void DrawBell(); | ^ alarm.c:199:21: warning: incompatible function pointer types passing 'void (void)' to parameter of type 'void (*)(int)' [-Wincompatible-function-pointer-types] 199 | signal(SIGALRM, TextScroll); | ^~~~~~~~~~ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/sys/signal.h:390:26: note: passing argument to parameter here 390 | void(*signal(int, void (*)(int)))(int); | ^ alarm.c:390:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 390 | if (cp = index(tp, '\n')) { | ~~~^~~~~~~~~~~~~~~~~ alarm.c:390:9: note: place parentheses around the assignment to silence this warning 390 | if (cp = index(tp, '\n')) { | ^ | ( ) alarm.c:390:9: note: use '==' to turn this assignment into an equality comparison 390 | if (cp = index(tp, '\n')) { | ^ | == alarm.c:402:30: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 402 | if (nextAlarm.alarmAnnounce = malloc(strlen(tp) + 1)) { | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ alarm.c:402:30: note: place parentheses around the assignment to silence this warning 402 | if (nextAlarm.alarmAnnounce = malloc(strlen(tp) + 1)) { | ^ | ( ) alarm.c:402:30: note: use '==' to turn this assignment into an equality comparison 402 | if (nextAlarm.alarmAnnounce = malloc(strlen(tp) + 1)) { | ^ | == alarm.c:256:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 256 | static void ReadAlarmFile(file) | ^ alarm.c:416:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 416 | void SetAlarm(file) | ^ In file included from alarm.c:24: ./alarm.h:5:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 5 | extern void SetAlarm(); | ^ alarm.c:486:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 486 | void GetBellSize(bw, bh) | ^ In file included from alarm.c:24: ./alarm.h:7:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 7 | extern void GetBellSize(); | ^ alarm.c:495:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 495 | void SetBell(seconds) | ^ In file included from alarm.c:24: ./alarm.h:6:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 6 | extern void SetBell(); | ^ --- xclock.o --- xclock.c:289:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 289 | main(argc, argv) | ^ | int xclock.c:424:11: warning: passing 'unsigned int *' to parameter of type 'int *' converts between pointers to integer types with different sign [-Wpointer-sign] 424 | (unsigned int *)&argc, argv, NULL, | ^~~~~~~~~~~~~~~~~~~~~ /var/tmp/work/time/catclock/work/.buildlink/include/X11/Intrinsic.h:1491:28: note: passing argument to parameter here 1491 | int* /* argc_in_out */, | ^ xclock.c:669:16: warning: incompatible function pointer types passing 'void (Widget, XtPointer, XEvent *)' (aka 'void (struct _WidgetRec *, void *, union _XEvent *)') to parameter of type 'XtEventHandler' (aka 'void (*)(struct _WidgetRec *, void *, union _XEvent *, char *)') [-Wincompatible-function-pointer-types] 669 | False, MapCallback, (XtPointer)NULL); | ^~~~~~~~~~~ /var/tmp/work/time/catclock/work/.buildlink/include/X11/Intrinsic.h:849:31: note: passing argument to parameter here 849 | XtEventHandler /* proc */, | ^ xclock.c:775:10: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 775 | char *getenv(); | ^ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/_stdlib.h:162:18: note: conflicting prototype is here 162 | char *_LIBC_CSTR getenv(const char *); | ^ xclock.c:778:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 778 | if (cp = getenv("HOME")) { | ~~~^~~~~~~~~~~~~~~~ xclock.c:778:9: note: place parentheses around the assignment to silence this warning 778 | if (cp = getenv("HOME")) { | ^ | ( ) xclock.c:778:9: note: use '==' to turn this assignment into an equality comparison 778 | if (cp = getenv("HOME")) { | ^ | == xclock.c:780:27: warning: call to undeclared function 'getuid'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 780 | } else if (pw = getpwuid(getuid())) { | ^ xclock.c:780:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 780 | } else if (pw = getpwuid(getuid())) { | ~~~^~~~~~~~~~~~~~~~~~~~ xclock.c:780:16: note: place parentheses around the assignment to silence this warning 780 | } else if (pw = getpwuid(getuid())) { | ^ | ( ) xclock.c:780:16: note: use '==' to turn this assignment into an equality comparison 780 | } else if (pw = getpwuid(getuid())) { | ^ | == xclock.c:797:18: warning: passing arguments to 'InitBellAlarm' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 797 | InitBellAlarm(clockWindow, | ^ xclock.c:802:13: warning: passing arguments to 'SetAlarm' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 802 | SetAlarm(appData.alarmSet ? appData.alarmFile : NULL); | ^ xclock.c:803:12: warning: passing arguments to 'SetBell' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 803 | SetBell(appData.alarmBell ? appData.alarmBellPeriod : 0); | ^ xclock.c:822:43: warning: incompatible function pointer types passing 'void (Widget, XtPointer, XmDrawingAreaCallbackStruct *)' (aka 'void (struct _WidgetRec *, void *, XmDrawingAreaCallbackStruct *)') to parameter of type 'XtCallbackProc' (aka 'void (*)(struct _WidgetRec *, void *, void *)') [-Wincompatible-function-pointer-types] 822 | XtAddCallback(canvas, XmNexposeCallback, HandleExpose, NULL); | ^~~~~~~~~~~~ /var/tmp/work/time/catclock/work/.buildlink/include/X11/Intrinsic.h:1256:35: note: passing argument to parameter here 1256 | XtCallbackProc /* callback */, | ^ xclock.c:823:43: warning: incompatible function pointer types passing 'void (Widget, XtPointer, XmDrawingAreaCallbackStruct *)' (aka 'void (struct _WidgetRec *, void *, XmDrawingAreaCallbackStruct *)') to parameter of type 'XtCallbackProc' (aka 'void (*)(struct _WidgetRec *, void *, void *)') [-Wincompatible-function-pointer-types] 823 | XtAddCallback(canvas, XmNresizeCallback, HandleResize, NULL); | ^~~~~~~~~~~~ /var/tmp/work/time/catclock/work/.buildlink/include/X11/Intrinsic.h:1256:35: note: passing argument to parameter here 1256 | XtCallbackProc /* callback */, | ^ xclock.c:824:43: warning: incompatible function pointer types passing 'void (Widget, XtPointer, XmDrawingAreaCallbackStruct *)' (aka 'void (struct _WidgetRec *, void *, XmDrawingAreaCallbackStruct *)') to parameter of type 'XtCallbackProc' (aka 'void (*)(struct _WidgetRec *, void *, void *)') [-Wincompatible-function-pointer-types] 824 | XtAddCallback(canvas, XmNinputCallback, HandleInput, NULL); | ^~~~~~~~~~~ /var/tmp/work/time/catclock/work/.buildlink/include/X11/Intrinsic.h:1256:35: note: passing argument to parameter here 1256 | XtCallbackProc /* callback */, | ^ xclock.c:289:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 289 | main(argc, argv) | ^ xclock.c:548:7: warning: variable 'stringWidth' is used uninitialized whenever switch case is taken [-Wsometimes-uninitialized] 548 | case CAT_CLOCK : { | ^~~~~~~~~ xclock.c:85:19: note: expanded from macro 'CAT_CLOCK' 85 | #define CAT_CLOCK 2 /* KitCat (R) clock face */ | ^ xclock.c:626:29: note: uninitialized use occurs here 626 | ParseGeometry(topLevel, stringWidth, stringAscent, stringDescent); | ^~~~~~~~~~~ xclock.c:530:7: warning: variable 'stringWidth' is used uninitialized whenever switch case is taken [-Wsometimes-uninitialized] 530 | case ANALOG_CLOCK : { | ^~~~~~~~~~~~ xclock.c:83:22: note: expanded from macro 'ANALOG_CLOCK' 83 | #define ANALOG_CLOCK 0 /* Ye olde X10 xclock face */ | ^ xclock.c:626:29: note: uninitialized use occurs here 626 | ParseGeometry(topLevel, stringWidth, stringAscent, stringDescent); | ^~~~~~~~~~~ xclock.c:296:21: note: initialize the variable 'stringWidth' to silence this warning 296 | int stringWidth, | ^ | = 0 xclock.c:548:7: warning: variable 'stringAscent' is used uninitialized whenever switch case is taken [-Wsometimes-uninitialized] 548 | case CAT_CLOCK : { | ^~~~~~~~~ xclock.c:85:19: note: expanded from macro 'CAT_CLOCK' 85 | #define CAT_CLOCK 2 /* KitCat (R) clock face */ | ^ xclock.c:626:42: note: uninitialized use occurs here 626 | ParseGeometry(topLevel, stringWidth, stringAscent, stringDescent); | ^~~~~~~~~~~~ xclock.c:530:7: warning: variable 'stringAscent' is used uninitialized whenever switch case is taken [-Wsometimes-uninitialized] 530 | case ANALOG_CLOCK : { | ^~~~~~~~~~~~ xclock.c:83:22: note: expanded from macro 'ANALOG_CLOCK' 83 | #define ANALOG_CLOCK 0 /* Ye olde X10 xclock face */ | ^ xclock.c:626:42: note: uninitialized use occurs here 626 | ParseGeometry(topLevel, stringWidth, stringAscent, stringDescent); | ^~~~~~~~~~~~ xclock.c:297:19: note: initialize the variable 'stringAscent' to silence this warning 297 | stringAscent, stringDescent; | ^ | = 0 xclock.c:548:7: warning: variable 'stringDescent' is used uninitialized whenever switch case is taken [-Wsometimes-uninitialized] 548 | case CAT_CLOCK : { | ^~~~~~~~~ xclock.c:85:19: note: expanded from macro 'CAT_CLOCK' 85 | #define CAT_CLOCK 2 /* KitCat (R) clock face */ | ^ xclock.c:626:56: note: uninitialized use occurs here 626 | ParseGeometry(topLevel, stringWidth, stringAscent, stringDescent); | ^~~~~~~~~~~~~ xclock.c:530:7: warning: variable 'stringDescent' is used uninitialized whenever switch case is taken [-Wsometimes-uninitialized] 530 | case ANALOG_CLOCK : { | ^~~~~~~~~~~~ xclock.c:83:22: note: expanded from macro 'ANALOG_CLOCK' 83 | #define ANALOG_CLOCK 0 /* Ye olde X10 xclock face */ | ^ xclock.c:626:56: note: uninitialized use occurs here 626 | ParseGeometry(topLevel, stringWidth, stringAscent, stringDescent); | ^~~~~~~~~~~~~ xclock.c:297:34: note: initialize the variable 'stringDescent' to silence this warning 297 | stringAscent, stringDescent; | ^ | = 0 xclock.c:837:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 837 | static void ParseGeometry(topLevel, stringWidth, stringAscent, stringDescent) | ^ xclock.c:878:16: warning: passing 'int *' to parameter of type 'unsigned int *' converts between pointers to integer types with different sign [-Wpointer-sign] 878 | &x, &y, &width, &height); | ^~~~~~ /var/tmp/work/time/catclock/work/.buildlink/include/X11/Xlib.h:2871:37: note: passing argument to parameter here 2871 | unsigned int* /* width_return */, | ^ xclock.c:878:24: warning: passing 'int *' to parameter of type 'unsigned int *' converts between pointers to integer types with different sign [-Wpointer-sign] 878 | &x, &y, &width, &height); | ^~~~~~~ /var/tmp/work/time/catclock/work/.buildlink/include/X11/Xlib.h:2873:1: note: passing argument to parameter here 2873 | ); | ^ xclock.c:972:17: warning: passing arguments to 'GetBellSize' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 972 | GetBellSize(&bellWidth, &bellHeight); | ^ xclock.c:997:16: warning: passing 'int *' to parameter of type 'unsigned int *' converts between pointers to integer types with different sign [-Wpointer-sign] 997 | &x, &y, &width, &height); | ^~~~~~ /var/tmp/work/time/catclock/work/.buildlink/include/X11/Xlib.h:2871:37: note: passing argument to parameter here 2871 | unsigned int* /* width_return */, | ^ xclock.c:997:24: warning: passing 'int *' to parameter of type 'unsigned int *' converts between pointers to integer types with different sign [-Wpointer-sign] 997 | &x, &y, &width, &height); | ^~~~~~~ /var/tmp/work/time/catclock/work/.buildlink/include/X11/Xlib.h:2873:1: note: passing argument to parameter here 2873 | ); | ^ xclock.c:1118:16: warning: passing 'int *' to parameter of type 'unsigned int *' converts between pointers to integer types with different sign [-Wpointer-sign] 1118 | &x, &y, &width, &height); | ^~~~~~ /var/tmp/work/time/catclock/work/.buildlink/include/X11/Xlib.h:2871:37: note: passing argument to parameter here 2871 | unsigned int* /* width_return */, | ^ xclock.c:1118:24: warning: passing 'int *' to parameter of type 'unsigned int *' converts between pointers to integer types with different sign [-Wpointer-sign] 1118 | &x, &y, &width, &height); | ^~~~~~~ /var/tmp/work/time/catclock/work/.buildlink/include/X11/Xlib.h:2873:1: note: passing argument to parameter here 2873 | ); | ^ xclock.c:1197:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1197 | static void DrawLine(blankLength, length, fractionOfACircle) | ^ xclock.c:1241:18: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 1241 | extern void SetSeg(); | ^ xclock.c:287:13: note: conflicting prototype is here 287 | static void SetSeg(int, int, int, int); | ^ xclock.c:1234:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1234 | static void DrawHand(length, width, fractionOfACircle) | ^ xclock.c:1291:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1291 | static void DrawSecond(length, width, offset, fractionOfACircle) | ^ xclock.c:1358:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1358 | static void SetSeg(x1, y1, x2, y2) | ^ xclock.c:1418:13: warning: passing arguments to 'DrawBell' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1418 | DrawBell(False); | ^ xclock.c:1375:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1375 | static void DrawClockFace(secondHand, radius) | ^ xclock.c:1425:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1425 | static int Round(x) | ^ xclock.c:1433:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1433 | static void DigitalString(str) | ^ xclock.c:1447:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 1447 | while (*str++ = *cp++); | ~~~~~~~^~~~~~~ xclock.c:1447:16: note: place parentheses around the assignment to silence this warning 1447 | while (*str++ = *cp++); | ^ | ( ) xclock.c:1447:16: note: use '==' to turn this assignment into an equality comparison 1447 | while (*str++ = *cp++); | ^ | == xclock.c:1455:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1455 | static void Syntax(call) | ^ xclock.c:1475:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1475 | static void InitializeCat(catColor, detailColor, tieColor) | ^ xclock.c:1676:15: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1676 | static Pixmap CreateTailPixmap(t) | ^ xclock.c:1785:15: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1785 | static Pixmap CreateEyePixmap(t) | ^ xclock.c:1888:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1888 | static Widget CreateToggle(label, parent) | ^ xclock.c:1911:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1911 | static Widget CreatePushButton(label, parent) | ^ xclock.c:1935:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1935 | static void HandleExpose(w, clientData, callData) | ^ xclock.c:1955:15: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 1955 | extern void EraseHands(); | ^ xclock.c:274:13: note: conflicting prototype is here 274 | static void EraseHands(Widget, struct tm *); | ^ xclock.c:1984:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1984 | static void Tick(w, add) | ^ xclock.c:2173:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2173 | static void HandleInput(w, clientData, callData) | ^ xclock.c:2217:9: warning: incompatible function pointer types passing 'void (Widget, XtPointer, XmToggleButtonCallbackStruct *)' (aka 'void (struct _WidgetRec *, void *, XmToggleButtonCallbackStruct *)') to parameter of type 'XtCallbackProc' (aka 'void (*)(struct _WidgetRec *, void *, void *)') [-Wincompatible-function-pointer-types] 2217 | AlarmSetCallback, NULL); | ^~~~~~~~~~~~~~~~ /var/tmp/work/time/catclock/work/.buildlink/include/X11/Intrinsic.h:1256:35: note: passing argument to parameter here 1256 | XtCallbackProc /* callback */, | ^ xclock.c:2224:9: warning: incompatible function pointer types passing 'void (Widget, XtPointer, XmToggleButtonCallbackStruct *)' (aka 'void (struct _WidgetRec *, void *, XmToggleButtonCallbackStruct *)') to parameter of type 'XtCallbackProc' (aka 'void (*)(struct _WidgetRec *, void *, void *)') [-Wincompatible-function-pointer-types] 2224 | AlarmBellCallback, NULL); | ^~~~~~~~~~~~~~~~~ /var/tmp/work/time/catclock/work/.buildlink/include/X11/Intrinsic.h:1256:35: note: passing argument to parameter here 1256 | XtCallbackProc /* callback */, | ^ xclock.c:2231:9: warning: incompatible function pointer types passing 'void (Widget, XtPointer, XmToggleButtonCallbackStruct *)' (aka 'void (struct _WidgetRec *, void *, XmToggleButtonCallbackStruct *)') to parameter of type 'XtCallbackProc' (aka 'void (*)(struct _WidgetRec *, void *, void *)') [-Wincompatible-function-pointer-types] 2231 | ChimeCallback, NULL); | ^~~~~~~~~~~~~ /var/tmp/work/time/catclock/work/.buildlink/include/X11/Intrinsic.h:1256:35: note: passing argument to parameter here 1256 | XtCallbackProc /* callback */, | ^ xclock.c:2235:9: warning: incompatible function pointer types passing 'void (Widget, XtPointer, XmPushButtonCallbackStruct *)' (aka 'void (struct _WidgetRec *, void *, XmPushButtonCallbackStruct *)') to parameter of type 'XtCallbackProc' (aka 'void (*)(struct _WidgetRec *, void *, void *)') [-Wincompatible-function-pointer-types] 2235 | AckAlarmCallback, NULL); | ^~~~~~~~~~~~~~~~ /var/tmp/work/time/catclock/work/.buildlink/include/X11/Intrinsic.h:1256:35: note: passing argument to parameter here 1256 | XtCallbackProc /* callback */, | ^ xclock.c:2239:9: warning: incompatible function pointer types passing 'void (Widget, Widget, XmPushButtonCallbackStruct *)' (aka 'void (struct _WidgetRec *, struct _WidgetRec *, XmPushButtonCallbackStruct *)') to parameter of type 'XtCallbackProc' (aka 'void (*)(struct _WidgetRec *, void *, void *)') [-Wincompatible-function-pointer-types] 2239 | RereadAlarmCallback, setW); | ^~~~~~~~~~~~~~~~~~~ /var/tmp/work/time/catclock/work/.buildlink/include/X11/Intrinsic.h:1256:35: note: passing argument to parameter here 1256 | XtCallbackProc /* callback */, | ^ xclock.c:2243:9: warning: incompatible function pointer types passing 'void (Widget, Widget, XmPushButtonCallbackStruct *)' (aka 'void (struct _WidgetRec *, struct _WidgetRec *, XmPushButtonCallbackStruct *)') to parameter of type 'XtCallbackProc' (aka 'void (*)(struct _WidgetRec *, void *, void *)') [-Wincompatible-function-pointer-types] 2243 | EditAlarmCallback, setW); | ^~~~~~~~~~~~~~~~~ /var/tmp/work/time/catclock/work/.buildlink/include/X11/Intrinsic.h:1256:35: note: passing argument to parameter here 1256 | XtCallbackProc /* callback */, | ^ xclock.c:2250:44: warning: incompatible function pointer types passing 'void (Widget, XtPointer, XmPushButtonCallbackStruct *)' (aka 'void (struct _WidgetRec *, void *, XmPushButtonCallbackStruct *)') to parameter of type 'XtCallbackProc' (aka 'void (*)(struct _WidgetRec *, void *, void *)') [-Wincompatible-function-pointer-types] 2250 | XtAddCallback(exitW, XmNactivateCallback, ExitCallback, NULL); | ^~~~~~~~~~~~ /var/tmp/work/time/catclock/work/.buildlink/include/X11/Intrinsic.h:1256:35: note: passing argument to parameter here 1256 | XtCallbackProc /* callback */, | ^ xclock.c:2253:26: warning: incompatible pointer types passing 'XEvent *' (aka 'union _XEvent *') to parameter of type 'XButtonPressedEvent *' (aka 'XButtonEvent *') [-Wincompatible-pointer-types] 2253 | XmMenuPosition(menu, callData->event); | ^~~~~~~~~~~~~~~ /var/tmp/work/time/catclock/work/.buildlink/include/Xm/RowColumn.h:46:46: note: passing argument to parameter 'event' here 46 | XButtonPressedEvent *event) ; | ^ xclock.c:2260:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2260 | static void AlarmSetCallback(w, clientData, callData) | ^ xclock.c:2265:26: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 2265 | if (appData.alarmSet = appData.alarmSet ? False : True) { | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xclock.c:2265:26: note: place parentheses around the assignment to silence this warning 2265 | if (appData.alarmSet = appData.alarmSet ? False : True) { | ^ | ( ) xclock.c:2265:26: note: use '==' to turn this assignment into an equality comparison 2265 | if (appData.alarmSet = appData.alarmSet ? False : True) { | ^ | == xclock.c:2266:10: warning: passing arguments to 'SetAlarm' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2266 | SetAlarm(appData.alarmFile); | ^ xclock.c:2272:10: warning: passing arguments to 'SetAlarm' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2272 | SetAlarm(NULL); | ^ xclock.c:2278:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2278 | static void AlarmBellCallback(w, clientData, callData) | ^ xclock.c:2283:12: warning: passing arguments to 'SetBell' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2283 | SetBell((appData.alarmBell = appData.alarmBell ? False : True) ? | ^ xclock.c:2289:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2289 | static void ChimeCallback(w, clientData, callData) | ^ xclock.c:2299:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2299 | static void AckAlarmCallback(w, clientData, callData) | ^ xclock.c:2306:10: warning: passing arguments to 'SetAlarm' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2306 | SetAlarm(appData.alarmSet ? appData.alarmFile : NULL); | ^ xclock.c:2313:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2313 | static void RereadAlarmCallback(w, setW, callData) | ^ xclock.c:2328:13: warning: passing arguments to 'SetAlarm' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2328 | SetAlarm(appData.alarmFile); | ^ xclock.c:2338:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2338 | static void EditAlarmCallback(w, setW, callData) | ^ xclock.c:2343:18: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 2343 | extern char *getenv(); | ^ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/_stdlib.h:162:18: note: conflicting prototype is here 162 | char *_LIBC_CSTR getenv(const char *); | ^ xclock.c:2381:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2381 | static void ExitCallback(w, clientData, callData) | ^ xclock.c:2392:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2392 | static void HandleResize(w, clientData, callData) | ^ xclock.c:2453:17: warning: passing arguments to 'GetBellSize' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2453 | GetBellSize(&bellWidth, &bellHeight); | ^ xclock.c:2482:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2482 | static void EraseHands(w, tm) | ^ xclock.c:2525:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2525 | static void PropertyChangeCallback(w, clientData, | ^ xclock.c:2581:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2581 | static void MapCallback(w, clientData, event) | ^ --- alarm.o --- 15 warnings generated. --- catclock._man --- rm -f catclock._man if test -z "" ; then cd `dirname catclock` && ln -s `basename catclock.man` `basename catclock._man`; else /usr/bin/cpp -undef -traditional -D__GNUC__ -D__apploaddir__=/opt/pkg/lib/X11/app-defaults -D__appmansuffix__=1 -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" < catclock.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/\@\@$/\/' >catclock._man; fi --- xclock.o --- 75 warnings generated. --- catclock --- rm -f catclock clang -o catclock -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -L/opt/pkg/lib -L/opt/pkg/lib -L/opt/pkg/lib xclock.o alarm.o -L/opt/pkg/lib -L/opt/pkg/lib -lXm -lXft -lSM -lICE -lXt -lX11 -lm