WARNING: [license.mk] Every package should define a LICENSE. ===> Building for catclock-0.0nb6 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 xclock.c:289:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 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] (unsigned int *)&argc, argv, NULL, ^~~~~~~~~~~~~~~~~~~~~ /Users/pbulk/build/time/catclock/work/.buildlink/include/X11/Intrinsic.h:1491:28: note: passing argument to parameter here 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] False, MapCallback, (XtPointer)NULL); ^~~~~~~~~~~ /Users/pbulk/build/time/catclock/work/.buildlink/include/X11/Intrinsic.h:849:31: note: passing argument to parameter here 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 C2x, conflicting with a previous declaration [-Wdeprecated-non-prototype] char *getenv(); ^ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/stdlib.h:147:7: note: conflicting prototype is here char *getenv(const char *); ^ xclock.c:778:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (cp = getenv("HOME")) { ~~~^~~~~~~~~~~~~~~~ xclock.c:778:9: note: place parentheses around the assignment to silence this warning if (cp = getenv("HOME")) { ^ ( ) xclock.c:778:9: note: use '==' to turn this assignment into an equality comparison 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] } else if (pw = getpwuid(getuid())) { ^ xclock.c:780:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] } else if (pw = getpwuid(getuid())) { ~~~^~~~~~~~~~~~~~~~~~~~ xclock.c:780:16: note: place parentheses around the assignment to silence this warning } else if (pw = getpwuid(getuid())) { ^ ( ) xclock.c:780:16: note: use '==' to turn this assignment into an equality comparison } 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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] XtAddCallback(canvas, XmNexposeCallback, HandleExpose, NULL); ^~~~~~~~~~~~ /Users/pbulk/build/time/catclock/work/.buildlink/include/X11/Intrinsic.h:1256:35: note: passing argument to parameter here 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] XtAddCallback(canvas, XmNresizeCallback, HandleResize, NULL); ^~~~~~~~~~~~ /Users/pbulk/build/time/catclock/work/.buildlink/include/X11/Intrinsic.h:1256:35: note: passing argument to parameter here 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] XtAddCallback(canvas, XmNinputCallback, HandleInput, NULL); ^~~~~~~~~~~ /Users/pbulk/build/time/catclock/work/.buildlink/include/X11/Intrinsic.h:1256:35: note: passing argument to parameter here 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 C2x [-Wdeprecated-non-prototype] main(argc, argv) ^ xclock.c:548:7: warning: variable 'stringWidth' is used uninitialized whenever switch case is taken [-Wsometimes-uninitialized] case CAT_CLOCK : { ^~~~~~~~~ xclock.c:85:19: note: expanded from macro 'CAT_CLOCK' #define CAT_CLOCK 2 /* KitCat (R) clock face */ ^ xclock.c:626:29: note: uninitialized use occurs here ParseGeometry(topLevel, stringWidth, stringAscent, stringDescent); ^~~~~~~~~~~ xclock.c:530:7: warning: variable 'stringWidth' is used uninitialized whenever switch case is taken [-Wsometimes-uninitialized] case ANALOG_CLOCK : { ^~~~~~~~~~~~ xclock.c:83:22: note: expanded from macro 'ANALOG_CLOCK' #define ANALOG_CLOCK 0 /* Ye olde X10 xclock face */ ^ xclock.c:626:29: note: uninitialized use occurs here ParseGeometry(topLevel, stringWidth, stringAscent, stringDescent); ^~~~~~~~~~~ xclock.c:296:21: note: initialize the variable 'stringWidth' to silence this warning int stringWidth, ^ = 0 xclock.c:548:7: warning: variable 'stringAscent' is used uninitialized whenever switch case is taken [-Wsometimes-uninitialized] case CAT_CLOCK : { ^~~~~~~~~ xclock.c:85:19: note: expanded from macro 'CAT_CLOCK' #define CAT_CLOCK 2 /* KitCat (R) clock face */ ^ xclock.c:626:42: note: uninitialized use occurs here ParseGeometry(topLevel, stringWidth, stringAscent, stringDescent); ^~~~~~~~~~~~ xclock.c:530:7: warning: variable 'stringAscent' is used uninitialized whenever switch case is taken [-Wsometimes-uninitialized] case ANALOG_CLOCK : { ^~~~~~~~~~~~ xclock.c:83:22: note: expanded from macro 'ANALOG_CLOCK' #define ANALOG_CLOCK 0 /* Ye olde X10 xclock face */ ^ xclock.c:626:42: note: uninitialized use occurs here ParseGeometry(topLevel, stringWidth, stringAscent, stringDescent); ^~~~~~~~~~~~ xclock.c:297:19: note: initialize the variable 'stringAscent' to silence this warning stringAscent, stringDescent; ^ = 0 xclock.c:548:7: warning: variable 'stringDescent' is used uninitialized whenever switch case is taken [-Wsometimes-uninitialized] case CAT_CLOCK : { ^~~~~~~~~ xclock.c:85:19: note: expanded from macro 'CAT_CLOCK' #define CAT_CLOCK 2 /* KitCat (R) clock face */ ^ xclock.c:626:56: note: uninitialized use occurs here ParseGeometry(topLevel, stringWidth, stringAscent, stringDescent); ^~~~~~~~~~~~~ xclock.c:530:7: warning: variable 'stringDescent' is used uninitialized whenever switch case is taken [-Wsometimes-uninitialized] case ANALOG_CLOCK : { ^~~~~~~~~~~~ xclock.c:83:22: note: expanded from macro 'ANALOG_CLOCK' #define ANALOG_CLOCK 0 /* Ye olde X10 xclock face */ ^ xclock.c:626:56: note: uninitialized use occurs here ParseGeometry(topLevel, stringWidth, stringAscent, stringDescent); ^~~~~~~~~~~~~ xclock.c:297:34: note: initialize the variable 'stringDescent' to silence this warning 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 C2x [-Wdeprecated-non-prototype] 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] &x, &y, &width, &height); ^~~~~~ /Users/pbulk/build/time/catclock/work/.buildlink/include/X11/Xlib.h:2871:37: note: passing argument to parameter here 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] &x, &y, &width, &height); ^~~~~~~ /Users/pbulk/build/time/catclock/work/.buildlink/include/X11/Xlib.h:2873:1: note: passing argument to parameter here ); ^ xclock.c:972:17: warning: passing arguments to 'GetBellSize' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] 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] &x, &y, &width, &height); ^~~~~~ /Users/pbulk/build/time/catclock/work/.buildlink/include/X11/Xlib.h:2871:37: note: passing argument to parameter here 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] &x, &y, &width, &height); ^~~~~~~ /Users/pbulk/build/time/catclock/work/.buildlink/include/X11/Xlib.h:2873:1: note: passing argument to parameter here ); ^ xclock.c:1118:16: warning: passing 'int *' to parameter of type 'unsigned int *' converts between pointers to integer types with different sign [-Wpointer-sign] &x, &y, &width, &height); ^~~~~~ /Users/pbulk/build/time/catclock/work/.buildlink/include/X11/Xlib.h:2871:37: note: passing argument to parameter here 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] &x, &y, &width, &height); ^~~~~~~ /Users/pbulk/build/time/catclock/work/.buildlink/include/X11/Xlib.h:2873:1: note: passing argument to parameter here ); ^ xclock.c:1197:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a previous declaration [-Wdeprecated-non-prototype] extern void SetSeg(); ^ xclock.c:287:13: note: conflicting prototype is here 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] static void DigitalString(str) ^ xclock.c:1447:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (*str++ = *cp++); ~~~~~~~^~~~~~~ xclock.c:1447:16: note: place parentheses around the assignment to silence this warning while (*str++ = *cp++); ^ ( ) xclock.c:1447:16: note: use '==' to turn this assignment into an equality comparison 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a previous declaration [-Wdeprecated-non-prototype] extern void EraseHands(); ^ xclock.c:274:13: note: conflicting prototype is here 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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] AlarmSetCallback, NULL); ^~~~~~~~~~~~~~~~ /Users/pbulk/build/time/catclock/work/.buildlink/include/X11/Intrinsic.h:1256:35: note: passing argument to parameter here 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] AlarmBellCallback, NULL); ^~~~~~~~~~~~~~~~~ /Users/pbulk/build/time/catclock/work/.buildlink/include/X11/Intrinsic.h:1256:35: note: passing argument to parameter here 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] ChimeCallback, NULL); ^~~~~~~~~~~~~ /Users/pbulk/build/time/catclock/work/.buildlink/include/X11/Intrinsic.h:1256:35: note: passing argument to parameter here 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] AckAlarmCallback, NULL); ^~~~~~~~~~~~~~~~ /Users/pbulk/build/time/catclock/work/.buildlink/include/X11/Intrinsic.h:1256:35: note: passing argument to parameter here 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] RereadAlarmCallback, setW); ^~~~~~~~~~~~~~~~~~~ /Users/pbulk/build/time/catclock/work/.buildlink/include/X11/Intrinsic.h:1256:35: note: passing argument to parameter here 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] EditAlarmCallback, setW); ^~~~~~~~~~~~~~~~~ /Users/pbulk/build/time/catclock/work/.buildlink/include/X11/Intrinsic.h:1256:35: note: passing argument to parameter here 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] XtAddCallback(exitW, XmNactivateCallback, ExitCallback, NULL); ^~~~~~~~~~~~ /Users/pbulk/build/time/catclock/work/.buildlink/include/X11/Intrinsic.h:1256:35: note: passing argument to parameter here 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] XmMenuPosition(menu, callData->event); ^~~~~~~~~~~~~~~ /Users/pbulk/build/time/catclock/work/.buildlink/include/Xm/RowColumn.h:46:46: note: passing argument to parameter 'event' here 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 C2x [-Wdeprecated-non-prototype] static void AlarmSetCallback(w, clientData, callData) ^ xclock.c:2265:26: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (appData.alarmSet = appData.alarmSet ? False : True) { ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xclock.c:2265:26: note: place parentheses around the assignment to silence this warning if (appData.alarmSet = appData.alarmSet ? False : True) { ^ ( ) xclock.c:2265:26: note: use '==' to turn this assignment into an equality comparison 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a previous declaration [-Wdeprecated-non-prototype] extern char *getenv(); ^ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/stdlib.h:147:7: note: conflicting prototype is here char *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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] static void MapCallback(w, clientData, event) ^ 75 warnings generated. 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] extern void InitBellAlarm(); ^ alarm.c:155:13: warning: incompatible pointer types passing 'short[15]' to parameter of type 'const char *' [-Wincompatible-pointer-types] bell_bits, ^~~~~~~~~ /Users/pbulk/build/time/catclock/work/.buildlink/include/X11/Xlib.h:1603:29: note: passing argument to parameter here _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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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] signal(SIGALRM, TextScroll); ^~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/sys/signal.h:390:26: note: passing argument to parameter here void(*signal(int, void (*)(int)))(int); ^ alarm.c:390:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (cp = index(tp, '\n')) { ~~~^~~~~~~~~~~~~~~~~ alarm.c:390:9: note: place parentheses around the assignment to silence this warning if (cp = index(tp, '\n')) { ^ ( ) alarm.c:390:9: note: use '==' to turn this assignment into an equality comparison if (cp = index(tp, '\n')) { ^ == alarm.c:402:30: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (nextAlarm.alarmAnnounce = malloc(strlen(tp) + 1)) { ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ alarm.c:402:30: note: place parentheses around the assignment to silence this warning if (nextAlarm.alarmAnnounce = malloc(strlen(tp) + 1)) { ^ ( ) alarm.c:402:30: note: use '==' to turn this assignment into an equality comparison 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] extern void SetBell(); ^ 15 warnings generated. 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 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