WARNING: [license.mk] Every package should define a LICENSE. ===> Building for xalarm-3.06nb5 clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DUSERENAME -DUSEGETHOSTNAME -DUSEGETPWUID -I/opt/pkg/include -c alarm.c alarm.c:46: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 time_t time(); ^ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/time.h:118:8: note: conflicting prototype is here time_t time(time_t *); ^ alarm.c:47:19: 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 struct tm *localtime(); ^ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/time.h:114:12: note: conflicting prototype is here struct tm *localtime(const time_t *); ^ alarm.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 CreateAlarmWidget (alarmmessage) ^ alarm.c:37:7: 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] void CreateAlarmWidget(), WakeUp(), ShowClickToZero(), ShowSnoozeValue(); ^ alarm.c:109:29: warning: passing arguments to 'EnsureNotGrownOffScreen' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] EnsureNotGrownOffScreen (xalarm.alarmwidget); ^ alarm.c:120:29: warning: passing arguments to 'EnsureNotGrownOffScreen' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] EnsureNotGrownOffScreen (xalarm.alarmwidget); ^ alarm.c:133:18: warning: cast to smaller integer type 'int' from 'XtPointer' (aka 'void *') [-Wvoid-pointer-to-int-cast] int mins = (int) clientdata; ^~~~~~~~~~~~~~~~ alarm.c:129: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 SnoozeAmount (widget, clientdata, calldata) ^ alarm.c:39: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] static void SnoozeAmount(), Snooze(), TimeTracker(); ^ alarm.c:150: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 Snooze (widget, clientdata, calldata) ^ alarm.c:39:29: 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] static void SnoozeAmount(), Snooze(), TimeTracker(); ^ alarm.c:179:34: warning: cast to 'XtPointer' (aka 'void *') from smaller integer type 'int' [-Wint-to-void-pointer-cast] SnoozeAmount ((Widget) NULL, (XtPointer) xalarm.snooze, (XtPointer) NULL); ^~~~~~~~~~~~~~~~~~~~~~~~~ alarm.c:182:14: warning: passing arguments to 'TimeTracker' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] TimeTracker ((XtPointer) xalarm.alarmwidget, (XtIntervalId) NULL); ^ alarm.c:183:17: warning: passing arguments to 'SetGeometry' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] SetGeometry (xalarm.alarmwidget); ^ alarm.c:186:11: warning: passing arguments to 'Audio' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Audio (xalarm.alarmaudio); ^ alarm.c:196:14: warning: passing arguments to 'QuitWarning' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] QuitWarning ((Widget) NULL, ^ alarm.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 WakeUp (clientdata, id) ^ alarm.c:37:28: 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] void CreateAlarmWidget(), WakeUp(), ShowClickToZero(), ShowSnoozeValue(); ^ alarm.c:212:69: warning: passing arguments to 'getenv' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] String user = UserName(), host = MachineName(), name = getenv ("NAME"); ^ alarm.c:230:15: warning: passing arguments to 'SetWMName' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] SetWMName ((Widget) clientdata, wmname); ^ alarm.c:232:35: warning: passing arguments to 'ResetTracker' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] xalarm.alarmid = ResetTracker (TimeTracker, clientdata, (int) (xalarm.offtime % 60)); ^ alarm.c:208: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 TimeTracker (clientdata, id) ^ alarm.c:39:39: 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] static void SnoozeAmount(), Snooze(), TimeTracker(); ^ alarm.c:243:10: warning: declaration of 'struct sigcontext' will not be visible outside of this function [-Wvisibility] struct sigcontext *scp; ^ alarm.c:263:41: warning: passing arguments to 'DateToMilliSeconds' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] xalarm.dateout = DateToMilliSeconds (xalarm.datestr); ^ alarm.c:241:8: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] SIGRET ResetAlarm (sig, code, scp, addr) ^ alarm.c:38:9: 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] SIGRET ResetAlarm(); ^ 27 warnings generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DUSERENAME -DUSEGETHOSTNAME -DUSEGETPWUID -I/opt/pkg/include -c when.c when.c:59: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 time_t time(); ^ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/time.h:118:8: note: conflicting prototype is here time_t time(time_t *); ^ when.c:60:19: 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 struct tm *localtime(); ^ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/time.h:114:12: note: conflicting prototype is here struct tm *localtime(const time_t *); ^ when.c:135:14: warning: passing arguments to 'TimeTracker' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] TimeTracker ((XtPointer) popup, (XtIntervalId) NULL); ^ when.c:136:17: warning: passing arguments to 'SetGeometry' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] SetGeometry (popup); ^ when.c:162:15: warning: passing arguments to 'SetWMName' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] SetWMName ((Widget) clientdata, wmname); ^ when.c:168:38: warning: passing arguments to 'DateToMilliSeconds' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] xalarm.dateout = DateToMilliSeconds (xalarm.datestr); ^ when.c:169:38: warning: passing arguments to 'TimeToMilliSeconds' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] xalarm.timeout = TimeToMilliSeconds (xalarm.timestr); ^ when.c:172:12: warning: passing arguments to 'Popup' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Popup (xalarm.gettimewidget, TIMEINSTRUCTIONS); ^ when.c:174:25: warning: passing arguments to 'MakeConfirmMessage' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] MakeConfirmMessage (buf); ^ when.c:182:34: warning: passing arguments to 'ResetTracker' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] xalarm.whenid = ResetTracker (TimeTracker, clientdata, 0); ^ when.c:150: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 TimeTracker (clientdata, id) ^ when.c:52:72: 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] static void PopupAndConfirm(), Popup(), PopupNext(), Edit(), Cancel(), TimeTracker(); ^ when.c:195:8: warning: passing arguments to 'Popup' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Popup (xalarm.gettimewidget, TIMEINSTRUCTIONS); ^ when.c:198:8: warning: passing arguments to 'Popup' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Popup (xalarm.getdatewidget, DATEINSTRUCTIONS); ^ when.c:201:8: warning: passing arguments to 'Popup' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Popup (xalarm.getwtimewidget, WARNINGINSTRUCTIONS); ^ when.c:205:12: warning: passing arguments to 'Confirmed' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Confirmed ((Widget) NULL, (XtPointer) NULL, (XtPointer) NULL); ^ when.c:221:2: warning: passing arguments to 'TimeToMilliSeconds' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] (DIALOGVALUE (xalarm.timestr, xalarm.gettimewidget)); ^ when.c:214: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 EnteredTime (widget, clientdata, calldata) ^ when.c:50:22: 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] void PopupAndAsk(), EnteredTime(), EnteredDate(), EnteredWarnings(), ^ when.c:244:2: warning: passing arguments to 'DateToMilliSeconds' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] (DIALOGVALUE (xalarm.datestr, xalarm.getdatewidget)); ^ when.c:237: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 EnteredDate (widget, clientdata, calldata) ^ when.c:50:37: 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] void PopupAndAsk(), EnteredTime(), EnteredDate(), EnteredWarnings(), ^ when.c:266:21: warning: passing arguments to 'SetWarningTimes' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] SetWarningTimes (DIALOGVALUE (xalarm.warningsstr, xalarm.getwtimewidget)); ^ when.c:260: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 EnteredWarnings (widget, clientdata, calldata) ^ when.c:50:52: 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] void PopupAndAsk(), EnteredTime(), EnteredDate(), EnteredWarnings(), ^ when.c:286:13: warning: cast to smaller integer type 'int' from 'XtPointer' (aka 'void *') [-Wvoid-pointer-to-int-cast] switch ((int) clientdata) { ^~~~~~~~~~~~~~~~ when.c:288:8: warning: passing arguments to 'Popup' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Popup (xalarm.gettimewidget, TIMEINSTRUCTIONS); ^ when.c:291:8: warning: passing arguments to 'Popup' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Popup (xalarm.getdatewidget, DATEINSTRUCTIONS); ^ when.c:294:8: warning: passing arguments to 'Popup' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Popup (xalarm.getwtimewidget, WARNINGINSTRUCTIONS); ^ when.c:282: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 Edit (widget, clientdata, calldata) ^ when.c:52:54: 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] static void PopupAndConfirm(), Popup(), PopupNext(), Edit(), Cancel(), TimeTracker(); ^ when.c:305: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 EditedText (widget, clientdata, calldata) ^ when.c:51:38: 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] Confirmed(), MakeConfirmMessage(), EditedText(); ^ when.c:327:24: warning: passing arguments to 'MakeConfirmMessage' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] MakeConfirmMessage (message); ^ when.c:328:11: warning: passing arguments to 'Popup' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Popup (xalarm.confirmwidget, message); ^ when.c:348:27: warning: passing arguments to 'TimeToMilliSeconds' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] TimeToMilliSeconds (xalarm.timestr)); ^ when.c:347:48: warning: passing arguments to 'DateToMilliSeconds' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] msecsout = SUMTIMEOUTS (DateToMilliSeconds (xalarm.datestr), ^ when.c:348:27: warning: passing arguments to 'TimeToMilliSeconds' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] TimeToMilliSeconds (xalarm.timestr)); ^ when.c:347:48: warning: passing arguments to 'DateToMilliSeconds' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] msecsout = SUMTIMEOUTS (DateToMilliSeconds (xalarm.datestr), ^ when.c:348:27: warning: passing arguments to 'TimeToMilliSeconds' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] TimeToMilliSeconds (xalarm.timestr)); ^ when.c:359:7: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] msecsout / MSECSIN1DAY, (msecsout / MSECSIN1HR) % 24, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^~~~~~~~~~~ when.c:359:31: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] msecsout / MSECSIN1DAY, (msecsout / MSECSIN1HR) % 24, ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^~~~~~~~~~~ when.c:360:7: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] (msecsout / MSECSIN1MIN) % 60); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^~~~~~~~~~~ when.c:338: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 MakeConfirmMessage (message) ^ when.c:51:16: 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] Confirmed(), MakeConfirmMessage(), EditedText(); ^ when.c:403:41: warning: passing arguments to 'TimeToMilliSeconds' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] xalarm.timeout = TimeToMilliSeconds (xalarm.timestr); ^ when.c:386: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 Confirmed (widget, clientdata, calldata) ^ when.c:51:3: 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] Confirmed(), MakeConfirmMessage(), EditedText(); ^ when.c:421:11: warning: passing arguments to 'Popup' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Popup (xalarm.gettimewidget, TIMEINSTRUCTIONS); ^ when.c:417: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 Cancel (widget, clientdata, calldata) ^ when.c:52:62: 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] static void PopupAndConfirm(), Popup(), PopupNext(), Edit(), Cancel(), TimeTracker(); ^ when.c:447:29: warning: passing arguments to 'EnsureNotGrownOffScreen' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] EnsureNotGrownOffScreen (XtParent (form)); ^ when.c:431: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 Popup (widget, label) ^ when.c:52:32: 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] static void PopupAndConfirm(), Popup(), PopupNext(), Edit(), Cancel(), TimeTracker(); ^ 54 warnings generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DUSERENAME -DUSEGETHOSTNAME -DUSEGETPWUID -I/opt/pkg/include -c warnings.c warnings.c:42: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 time_t time(); ^ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/time.h:118:8: note: conflicting prototype is here time_t time(time_t *); ^ warnings.c:43:19: 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 struct tm *localtime(); ^ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/time.h:114:12: note: conflicting prototype is here struct tm *localtime(const time_t *); ^ warnings.c:72:38: warning: passing arguments to 'TimeToMilliSeconds' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] (unsigned long) TimeToMilliSeconds (warning)) { ^ warnings.c:56: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 SetWarningTimes (warnings) ^ warnings.c:36:7: 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] void SetWarningTimes(), Warning(), QuitWarning(); ^ warnings.c:128:14: warning: passing arguments to 'TimeTracker' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] TimeTracker ((XtPointer) popup, (XtIntervalId) NULL); ^ warnings.c:129:17: warning: passing arguments to 'SetGeometry' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] SetGeometry (popup); ^ warnings.c:130:11: warning: passing arguments to 'Audio' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Audio (xalarm.warningaudio); ^ warnings.c:108: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 Warning (clientdata, id) ^ warnings.c:36:26: 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] void SetWarningTimes(), Warning(), QuitWarning(); ^ warnings.c:160:12: warning: passing arguments to 'SetWMName' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] SetWMName ((Widget) clientdata, wmname); ^ warnings.c:180:34: warning: passing arguments to 'ResetTracker' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] xalarm.warningid = ResetTracker (TimeTracker, clientdata, ^ warnings.c:143: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 TimeTracker (clientdata, id) ^ warnings.c:37: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] static void TimeTracker(), Reset(); ^ warnings.c:195:17: warning: passing arguments to 'QuitWarning' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] QuitWarning (widget, clientdata, calldata); ^ warnings.c:196:24: warning: cast to smaller integer type 'int' from 'void *' [-Wvoid-pointer-to-int-cast] (void) ResetAlarm ((int) NULL, (int) NULL, (struct sigcontext *) NULL, ^~~~~~~~~~ warnings.c:196:36: warning: cast to smaller integer type 'int' from 'void *' [-Wvoid-pointer-to-int-cast] (void) ResetAlarm ((int) NULL, (int) NULL, (struct sigcontext *) NULL, ^~~~~~~~~~ warnings.c:196:23: warning: passing arguments to 'ResetAlarm' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] (void) ResetAlarm ((int) NULL, (int) NULL, (struct sigcontext *) NULL, ^ warnings.c:191: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 Reset (widget, clientdata, calldata) ^ warnings.c:37:28: 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] static void TimeTracker(), Reset(); ^ warnings.c:206: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 QuitWarning (widget, clientdata, calldata) ^ warnings.c:36:37: 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] void SetWarningTimes(), Warning(), QuitWarning(); ^ 22 warnings generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DUSERENAME -DUSEGETHOSTNAME -DUSEGETPWUID -I/opt/pkg/include -c times.c times.c:34: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 time_t time(); ^ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/time.h:118:8: note: conflicting prototype is here time_t time(time_t *); ^ times.c:35:19: 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 struct tm *localtime(); ^ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/time.h:114:12: note: conflicting prototype is here struct tm *localtime(const time_t *); ^ times.c:58:29: warning: passing arguments to 'ParseTimeString' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if (not ParseTimeString (timestr, &hours, &minutes, &in24hrformat)) ^ times.c:50:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] long TimeToMilliSeconds (timestr) ^ times.c:32:7: 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] long TimeToMilliSeconds(); ^ times.c:99:18: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (relative = (*str == '+')) ~~~~~~~~~^~~~~~~~~~~~~~~ times.c:99:18: note: place parentheses around the assignment to silence this warning if (relative = (*str == '+')) ^ ( ) times.c:99:18: note: use '==' to turn this assignment into an equality comparison if (relative = (*str == '+')) ^ == times.c:87:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Boolean ParseTimeString (str, hrs, mins, in24hrf) ^ times.c:33: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 subsequent definition [-Wdeprecated-non-prototype] Boolean ParseTimeString(); ^ 8 warnings generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DUSERENAME -DUSEGETHOSTNAME -DUSEGETPWUID -I/opt/pkg/include -c dates.c dates.c:37: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 time_t time(); ^ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/time.h:118:8: note: conflicting prototype is here time_t time(time_t *); ^ dates.c:38:19: 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 struct tm *localtime(); ^ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/time.h:114:12: note: conflicting prototype is here struct tm *localtime(const time_t *); ^ dates.c:68:36: warning: passing arguments to 'NextWord' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] while (strcmp (word = NextWord (line, chpos), "-")) ^ dates.c:81:29: warning: passing arguments to 'ParseDateString' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if (not ParseDateString (*datestr, &days, &dayofweek, &dayofmonth, &month, &year)) { ^ dates.c:93:22: warning: passing arguments to 'NextWord' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] *timestr = NextWord (line, chpos); ^ dates.c:94:26: warning: passing arguments to 'ParseTimeString' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if (not ParseTimeString (*timestr, &hrs, &mins, &dummy)) { ^ dates.c:103:34: warning: passing arguments to 'DateToMilliSeconds' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] dateout = DateToMilliSeconds (*datestr); ^ dates.c:104:34: warning: passing arguments to 'TimeToMilliSeconds' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] timeout = TimeToMilliSeconds (*timestr); ^ dates.c:117:28: warning: passing arguments to 'DateToMilliSeconds' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] (void) DateToMilliSeconds (*datestr); ^ dates.c:50:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Boolean AppointmentWithin (withindays, line, timestr, datestr, chpos) ^ dates.c:29: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 subsequent definition [-Wdeprecated-non-prototype] Boolean AppointmentWithin(); ^ dates.c:138:34: warning: passing arguments to 'ParseDateString' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] else if (not ParseDateString (datestr, &days, &dayofweek, &dayofmonth, &month, &year)) ^ dates.c:142:24: warning: passing arguments to 'DaysBeforeDate' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] days = DaysBeforeDate (dayofweek, dayofmonth, month, year); ^ dates.c:130:15: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] unsigned long DateToMilliSeconds (datestr) ^ dates.c:30: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 subsequent definition [-Wdeprecated-non-prototype] unsigned long DateToMilliSeconds(); ^ dates.c:187:38: warning: passing arguments to 'IsInteger' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if ((*str == '+') and (IsInteger (str))) ^ dates.c:188:10: warning: call to undeclared function 'atoi'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] *days = atoi (str); ^ dates.c:190:33: warning: passing arguments to 'NextWord' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] while (strcmp (word = NextWord (str, &chpos), "")) { ^ dates.c:224:60: warning: passing arguments to 'IsInteger' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] else if (((num = atoi (word)) <= 0) or (not IsInteger (word))) { ^ dates.c:168: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 Boolean ParseDateString (str, days, dayofweek, dayofmonth, month, year) ^ dates.c:33:16: 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] static Boolean ParseDateString(); ^ dates.c:299:22: warning: passing arguments to 'DaysBetween' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] (DaysBetween (&today, date) < 0)) ^ dates.c:330:25: warning: passing arguments to 'DaysBetween' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] return (DaysBetween (&today, date)); ^ dates.c:275: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 DaysBeforeDate (dayofweek, dayofmonth, month, year) ^ dates.c:32:27: 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] static int DaysBetween(), DaysBeforeDate(); ^ dates.c:339: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 DaysBetween (today, date) ^ dates.c:32:12: 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] static int DaysBetween(), DaysBeforeDate(); ^ dates.c:373: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 DaysTo (datestr, inst) ^ dates.c:31:6: 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] int DaysTo(); ^ 29 warnings generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DUSERENAME -DUSEGETHOSTNAME -DUSEGETPWUID -I/opt/pkg/include -c file.c file.c:63: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 time_t time(); ^ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/time.h:118:8: note: conflicting prototype is here time_t time(time_t *); ^ file.c:64:19: 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 struct tm *localtime(); ^ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/time.h:114:12: note: conflicting prototype is here struct tm *localtime(const time_t *); ^ file.c:83:56: warning: passing arguments to 'getenv' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] String timestr, datestr, alarmfilepath = getenv ("XALARMFILEPATH"), ^ file.c:118:25: warning: passing arguments to 'AppointmentWithin' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if (AppointmentWithin (days, line, ×tr, &datestr, &endofdate)) { ^ file.c:136:4: warning: call to undeclared library function 'exit' with type 'void (int) __attribute__((noreturn))'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] exit (-1); ^ file.c:136:4: note: include the header or explicitly provide a declaration for 'exit' file.c:138:12: warning: passing arguments to 'DoAlarm' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] DoAlarm (argv, newargc); ^ file.c:78: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 ParseAlarmFile (days, argv, argc) ^ file.c:54:6: 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] int ParseAlarmFile(); ^ file.c:175:24: warning: passing arguments to 'MakeConfirmMessage' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] MakeConfirmMessage (buf); ^ file.c:177:23: warning: passing arguments to 'SaveAlarm' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if (not SaveAlarm (filename)) ^ file.c:181:13: warning: passing arguments to 'EditedText' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] EditedText ((Widget) NULL, (XtPointer) NULL, (XtPointer) False); ^ file.c:185:29: warning: passing arguments to 'EnsureNotGrownOffScreen' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] EnsureNotGrownOffScreen (XtParent (XtParent (xalarm.confirmwidget))); ^ file.c:162: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 SaveAlarmSettings (widget, clientdata, calldata) ^ file.c:53:7: 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] void SaveAlarmSettings(), AlarmDying(), RestartDiedAlarms(); ^ file.c:201:20: warning: passing arguments to 'SaveAlarm' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if (not SaveAlarm (filename)) ^ file.c:194: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 AlarmDying (display) ^ file.c:53:28: 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] void SaveAlarmSettings(), AlarmDying(), RestartDiedAlarms(); ^ file.c:225:12: warning: call to undeclared function 'umask'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] (void) umask (63); ^ file.c:240:30: warning: passing arguments to 'TimeToMilliSeconds' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] now += ((TimeToMilliSeconds (xalarm.timestr) + ^ file.c:241:23: warning: passing arguments to 'DateToMilliSeconds' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] DateToMilliSeconds (xalarm.datestr)) / MSECSIN1SEC); ^ file.c:255:36: warning: passing arguments to 'ReplaceNewlines' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] xalarm.timestr, ReplaceNewlines (xalarm.messagestr)); ^ file.c:214: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 Boolean SaveAlarm (filename) ^ file.c:55:16: 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] static Boolean SaveAlarm(); ^ file.c:288:59: warning: passing arguments to 'DisplayName' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if (NIL (Display *, (display = XOpenDisplay (DisplayName (argv, argc))))) ^ file.c:295:14: warning: passing arguments to 'RenameFile' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] RenameFile (livefilename, tmp); ^ file.c:296:17: warning: passing arguments to 'RenameFile' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] RenameFile (diedfilename, livefilename); ^ file.c:302:10: warning: call to undeclared function 'wait'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] (void) wait ((int *) NULL); ^ file.c:307:14: warning: passing arguments to 'RenameFile' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] RenameFile (tmp, livefilename); ^ file.c:290:2: warning: add explicit braces to avoid dangling else [-Wdangling-else] else { ^ file.c:278: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 RestartDiedAlarms (argv, argc) ^ file.c:53:42: 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] void SaveAlarmSettings(), AlarmDying(), RestartDiedAlarms(); ^ file.c:318: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 RenameFile (from, to) ^ file.c:56: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] static void RenameFile(); ^ 33 warnings generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DUSERENAME -DUSEGETHOSTNAME -DUSEGETPWUID -I/opt/pkg/include -c fns.c fns.c:68: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 time_t time(); ^ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/time.h:118:8: note: conflicting prototype is here time_t time(time_t *); ^ fns.c:69:19: 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 struct tm *localtime(); ^ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/time.h:114:12: note: conflicting prototype is here struct tm *localtime(const time_t *); ^ fns.c:131:6: warning: call to undeclared function 'system'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if (system (command) != 0) ^ fns.c:137:16: warning: call to undeclared function 'atoi'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if (kill (atoi (data->reset), SIGUSR1) == -1) ^ fns.c:142:10: warning: call to undeclared function 'system'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if (system (command) != 0) ^ fns.c:139:4: warning: add explicit braces to avoid dangling else [-Wdangling-else] } else { ^ fns.c:148:16: warning: call to undeclared function 'atoi'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if (kill (atoi (data->kill), SIGUSR2) == -1) ^ fns.c:153:10: warning: call to undeclared function 'system'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if (system (command) != 0) ^ fns.c:150:4: warning: add explicit braces to avoid dangling else [-Wdangling-else] } else { ^ fns.c:159:2: warning: call to undeclared library function 'exit' with type 'void (int) __attribute__((noreturn))'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] exit (0); ^ fns.c:159:2: note: include the header or explicitly provide a declaration for 'exit' fns.c:81: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 Initialise (proggie, data) ^ fns.c:59:7: 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] void Initialise(), AddTimeOuts(), SetWMName(), StartDaemon(), ^ fns.c:203:43: warning: passing arguments to 'DaysTo' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] } else if (ISINVALID (*days = DaysTo (argv[i], instance = File))) { ^ fns.c:212:43: warning: passing arguments to 'DaysTo' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] } else if (ISINVALID (*days = DaysTo (argv[i], instance = Daemon))) { ^ fns.c:183:10: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Instance PreParseArgList (argv, argc, days, args) ^ fns.c:56: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 subsequent definition [-Wdeprecated-non-prototype] Instance PreParseArgList(); ^ fns.c:245:39: warning: passing arguments to 'DisplayName' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] String displayname = DisplayName (argv, argc); ^ fns.c:282:25: warning: passing arguments to 'ParseAlarmFile' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] kids = ParseAlarmFile (7 - now->tm_wday, argv, argc); ^ fns.c:284:25: warning: passing arguments to 'ParseAlarmFile' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] kids = ParseAlarmFile (days - 1, argv, argc); ^ fns.c:287:10: warning: call to undeclared function 'wait'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] (void) wait ((int *) NULL); ^ fns.c:240: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 StartDaemon (days, argv, argc) ^ fns.c:59:49: 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] void Initialise(), AddTimeOuts(), SetWMName(), StartDaemon(), ^ fns.c:312:10: warning: declaration of 'struct sigcontext' will not be visible outside of this function [-Wvisibility] struct sigcontext *scp; ^ fns.c:310: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 SIGRET KillDaemon (sig, code, scp, addr) ^ fns.c:62: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 subsequent definition [-Wdeprecated-non-prototype] static SIGRET KillDaemon(); ^ fns.c:327:10: warning: declaration of 'struct sigcontext' will not be visible outside of this function [-Wvisibility] struct sigcontext *scp; ^ fns.c:330:10: warning: passing arguments to 'Quit' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Quit ((Widget) NULL, (XtPointer) NULL, (XtPointer) NULL); ^ fns.c:325:8: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] SIGRET KillAlarm (sig, code, scp, addr) ^ fns.c:58:9: 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] SIGRET KillAlarm(); ^ fns.c:383:10: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] XtFree (property.value); ^~~~~~~~~~~~~~ /Users/pbulk/build/time/xalarm/work/.buildlink/include/X11/Intrinsic.h:1870:1: note: passing argument to parameter here ); ^ fns.c:368: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 SetWMName (widget, name) ^ fns.c:59:36: 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] void Initialise(), AddTimeOuts(), SetWMName(), StartDaemon(), ^ fns.c:393:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] XtIntervalId ResetTracker (tracker, clientdata, triggered) ^ fns.c:57: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] XtIntervalId ResetTracker(); ^ fns.c:429:27: warning: passing arguments to 'CentreWidgetUnderPointer' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] CentreWidgetUnderPointer (widget, width, height, borderwidth); ^ fns.c:431:16: warning: passing arguments to 'ParseGeometry' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ParseGeometry (widget, width, height, borderwidth, xalarm.geometry); ^ fns.c:417: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 SetGeometry (widget) ^ fns.c:60:3: 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] SetGeometry(), EnsureNotGrownOffScreen(), Audio(), Quit(); ^ fns.c:440: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 CentreWidgetUnderPointer (widget, width, height, borderwidth) ^ fns.c:61: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] static void CentreWidgetUnderPointer(), ParseGeometry(); ^ fns.c:467: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 (widget, currentwidth, currentheight, borderwidth, geometry) ^ fns.c:61:41: 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] static void CentreWidgetUnderPointer(), ParseGeometry(); ^ fns.c:503: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 EnsureNotGrownOffScreen (widget) ^ fns.c:60: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 subsequent definition [-Wdeprecated-non-prototype] SetGeometry(), EnsureNotGrownOffScreen(), Audio(), Quit(); ^ fns.c:533:6: warning: add explicit braces to avoid dangling else [-Wdangling-else] else { ^ fns.c:522:8: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] String DisplayName (argv, argc) ^ fns.c:53:50: 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] String Concat(), ReplaceNewlines(), NextWord(), DisplayName(), ^ fns.c:552:6: warning: call to undeclared function 'system'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if (system (sound) != 0) ^ fns.c:546: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 Audio (sound) ^ fns.c:60:45: 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] SetGeometry(), EnsureNotGrownOffScreen(), Audio(), Quit(); ^ fns.c:565:8: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] String Concat (strings, n) ^ fns.c:53:9: 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] String Concat(), ReplaceNewlines(), NextWord(), DisplayName(), ^ fns.c:596:8: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] String ReplaceNewlines (str) ^ fns.c:53:19: 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] String Concat(), ReplaceNewlines(), NextWord(), DisplayName(), ^ fns.c:617:8: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] String NextWord (str, chpos) ^ fns.c:53:38: 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] String Concat(), ReplaceNewlines(), NextWord(), DisplayName(), ^ fns.c:649:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Boolean IsInteger (str) ^ fns.c:55: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 subsequent definition [-Wdeprecated-non-prototype] Boolean IsInteger(); ^ fns.c:725: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 Quit (widget, clientdata, calldata) ^ fns.c:60:54: 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] SetGeometry(), EnsureNotGrownOffScreen(), Audio(), Quit(); ^ 60 warnings generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DUSERENAME -DUSEGETHOSTNAME -DUSEGETPWUID -I/opt/pkg/include -c xalarm.c xalarm.c:166:32: warning: passing arguments to 'PreParseArgList' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] instance = PreParseArgList (argv, &argc, &days, &args); ^ xalarm.c:168:23: warning: passing arguments to 'RestartDiedAlarms' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] RestartDiedAlarms (args, argc); ^ xalarm.c:175:10: warning: passing arguments to 'DoAlarm' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] DoAlarm (args, argc); ^ xalarm.c:178:14: warning: passing arguments to 'StartDaemon' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] StartDaemon (days, args, argc); ^ xalarm.c:181:24: warning: passing arguments to 'ParseAlarmFile' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] (void) ParseAlarmFile (days, args, argc); ^ xalarm.c:158: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) ^ xalarm.c:30:6: 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] int main(); ^ xalarm.c:214:16: warning: passing arguments to 'Initialise' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Initialise (*argv, &data); ^ xalarm.c:215:31: warning: passing arguments to 'Concat' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] CreateAlarmWidget (Concat (argv, argc)); ^ xalarm.c:215:23: warning: passing arguments to 'CreateAlarmWidget' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] CreateAlarmWidget (Concat (argv, argc)); ^ xalarm.c:216:14: 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 (&data); ^ xalarm.c:193: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 DoAlarm (argv, argc) ^ xalarm.c:31:7: 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] void DoAlarm(); ^ xalarm.c:234:47: warning: passing arguments to 'TimeToMilliSeconds' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] xalarm.pester = (int) (TimeToMilliSeconds (time) / MSECSIN1MIN); ^ xalarm.c:236:47: warning: passing arguments to 'TimeToMilliSeconds' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] xalarm.snooze = (int) (TimeToMilliSeconds (time) / MSECSIN1MIN); ^ xalarm.c:257:41: warning: passing arguments to 'DateToMilliSeconds' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] xalarm.dateout = DateToMilliSeconds (xalarm.datestr = data->date); ^ xalarm.c:258:41: warning: passing arguments to 'TimeToMilliSeconds' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] xalarm.timeout = TimeToMilliSeconds (xalarm.timestr = data->time); ^ xalarm.c:259:21: warning: passing arguments to 'SetWarningTimes' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] SetWarningTimes (xalarm.warningsstr = data->warnings); ^ xalarm.c:228: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 SetAlarm (data) ^ xalarm.c: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] static void SetAlarm(); ^ 20 warnings generated. rm -f xalarm._man if test -z "" ; then cd `dirname xalarm` && ln -s `basename xalarm.man` `basename xalarm._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" < xalarm.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/\@\@$/\/' >xalarm._man; fi rm -f xalarm clang -o xalarm -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -L/opt/pkg/lib -L/opt/pkg/lib alarm.o when.o warnings.o times.o dates.o file.o fns.o xalarm.o -lXaw -lXmu -lXt -lSM -lICE -lXpm -lXext -lX11