>>> Building on exopi-1 under x11/xpostitPlus BDEPENDS = [devel/imake-cf;devel/imake] DIST = [x11/xpostitPlus:XPostitPlus-2.3.tar.gz] FULLPKGNAME = XPostitPlus-2.3p4 (Junk lock obtained for exopi-1 at 1764615271.60) >>> Running depends in x11/xpostitPlus at 1764615271.64 last junk was in security/yara/main /usr/sbin/pkg_add -aI -Drepair imake-1.0.10 imake-cf-1.0.8 was: /usr/sbin/pkg_add -aI -Drepair imake-1.0.10 imake-cf-1.0.8 /usr/sbin/pkg_add -aI -Drepair imake-1.0.10 imake-cf-1.0.8 >>> Running show-prepare-results in x11/xpostitPlus at 1764615273.15 ===> x11/xpostitPlus ===> Building from scratch XPostitPlus-2.3p4 ===> XPostitPlus-2.3p4 depends on: imake-* -> imake-1.0.10 ===> XPostitPlus-2.3p4 depends on: imake-cf-* -> imake-cf-1.0.8 ===> Verifying specs: ICE SM X11 Xau Xaw Xdmcp Xext Xmu Xpm Xt c ===> found ICE.12.0 SM.9.0 X11.19.0 Xau.10.0 Xaw.16.0 Xdmcp.11.0 Xext.13.0 Xmu.11.0 Xpm.10.0 Xt.11.1 c.102.2 imake-1.0.10 imake-cf-1.0.8 (Junk lock released for exopi-1 at 1764615273.93) distfiles size=78950 >>> Running build in x11/xpostitPlus at 1764615273.96 ===> x11/xpostitPlus ===> Checking files for XPostitPlus-2.3p4 `/exopi-cvs/ports/distfiles/XPostitPlus-2.3.tar.gz' is up to date. >> (SHA256) all files: OK ===> Extracting for XPostitPlus-2.3p4 ===> Patching for XPostitPlus-2.3p4 ===> Applying OpenBSD patch patch-Imakefile Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- Imakefile.orig Tue Sep 10 00:36:09 1996 |+++ Imakefile Thu Jun 19 21:04:32 2003 -------------------------- Patching file Imakefile using Plan A... Hunk #1 succeeded at 23. Hunk #2 succeeded at 35. done ===> Applying OpenBSD patch patch-insert_c Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- insert.c.orig 1996-06-27 02:03:31.000000000 -0300 |+++ insert.c 2003-11-04 20:28:19.000000000 -0300 -------------------------- Patching file insert.c using Plan A... Hunk #1 succeeded at 261. Hunk #2 succeeded at 296. done ===> Compiler link: clang -> /usr/bin/clang ===> Compiler link: clang++ -> /usr/bin/clang++ ===> Compiler link: cc -> /usr/bin/cc ===> Compiler link: c++ -> /usr/bin/c++ ===> Generating configure for XPostitPlus-2.3p4 ===> Configuring for XPostitPlus-2.3p4 imake -DPorts -DUseInstalled -I/usr/local/lib/X11/config make Makefiles make includes make depend rm -f .depend gccmakedep -f- -- -I/usr/local/include -I/usr/X11R6/include -DCSRG_BASED -DFUNCPROTO=15 -DNARROWPROTO -DPROMPT_FOR_SAVE -- list.c timer.c name.c Plaid.c confirm.c email.c io.c findnote.c menu.c note.c plaid.c util.c insert.c xpostit.c > .depend ===> Building for XPostitPlus-2.3p4 cc -O2 -I/usr/local/include -I/usr/X11R6/include -DCSRG_BASED -DFUNCPROTO=15 -DNARROWPROTO -DPROMPT_FOR_SAVE -c list.c In file included from list.c:36: ./xpostit.h:318:15: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 318 | extern char *rindex(); | ^ list.c:60:22: warning: passing arguments to 'CreateFindNotePrompt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 60 | CreateFindNotePrompt(notes, True); | ^ list.c:68:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 68 | CreateErrorDialog(string) | ^ In file included from list.c:36: ./xpostit.h:349:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 349 | void CreateErrorDialog(); | ^ list.c:133:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 133 | ErrPopDown(w, client_data, call_data) | ^ list.c:49:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 49 | void ErrPopDown(); | ^ list.c:50:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 50 | void ErrPopUp(); | ^ list.c:153:1: note: conflicting prototype is here 153 | ErrPopUp( | ^ 7 warnings generated. cc -O2 -I/usr/local/include -I/usr/X11R6/include -DCSRG_BASED -DFUNCPROTO=15 -DNARROWPROTO -DPROMPT_FOR_SAVE -c timer.c In file included from timer.c:33: ./xpostit.h:318:15: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 318 | extern char *rindex(); | ^ timer.c:192:33: warning: cast to 'XtPointer' (aka 'void *') from smaller integer type 'int' [-Wint-to-void-pointer-cast] 192 | SetCallback(TimerLeftArrowCB, (XtPointer)i); | ^~~~~~~~~~~~ ./xpostit.h:198:39: note: expanded from macro 'SetCallback' 198 | callbacks[0].closure = (caddr_t) (val) | ^~~ timer.c:253:34: warning: cast to 'XtPointer' (aka 'void *') from smaller integer type 'int' [-Wint-to-void-pointer-cast] 253 | SetCallback(TimerRightArrowCB, (XtPointer)i); | ^~~~~~~~~~~~ ./xpostit.h:198:39: note: expanded from macro 'SetCallback' 198 | callbacks[0].closure = (caddr_t) (val) | ^~~ timer.c:60:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 60 | CreateTimerPrompt(pn) | ^ In file included from timer.c:33: ./xpostit.h:348:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 348 | void CreateTimerPrompt(); | ^ timer.c:328:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 328 | TimerAccept(w, client_data, call_data) | ^ timer.c:51:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 51 | void TimerAccept(); | ^ timer.c:373:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 373 | TimerCancel(w, client_data, call_data) | ^ timer.c:52:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 52 | void TimerCancel(); | ^ timer.c:400:14: warning: cast to smaller integer type 'int' from 'caddr_t' (aka 'char *') [-Wpointer-to-int-cast] 400 | int index = (int) client_data; | ^~~~~~~~~~~~~~~~~ timer.c:396:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 396 | TimerRightArrowCB(w, client_data, call_data) | ^ timer.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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 54 | void TimerRightArrowCB(); | ^ timer.c:467:14: warning: cast to smaller integer type 'int' from 'caddr_t' (aka 'char *') [-Wpointer-to-int-cast] 467 | int index = (int) client_data; | ^~~~~~~~~~~~~~~~~ timer.c:463:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 463 | TimerLeftArrowCB(w, client_data, call_data) | ^ timer.c:53:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 53 | void TimerLeftArrowCB(); | ^ 15 warnings generated. cc -O2 -I/usr/local/include -I/usr/X11R6/include -DCSRG_BASED -DFUNCPROTO=15 -DNARROWPROTO -DPROMPT_FOR_SAVE -c name.c In file included from name.c:29: ./xpostit.h:318:15: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 318 | extern char *rindex(); | ^ name.c:38:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 38 | NameIt(pn, confirm_callbacks, cancel_callbacks) | ^ In file included from name.c:29: ./xpostit.h:331:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 331 | void NameIt(); | ^ 3 warnings generated. cc -O2 -I/usr/local/include -I/usr/X11R6/include -DCSRG_BASED -DFUNCPROTO=15 -DNARROWPROTO -DPROMPT_FOR_SAVE -c Plaid.c Plaid.c:71:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 71 | RaiseAction(w, event, params, num_params) | ^ Plaid.c:87:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 87 | LowerAction(w, event, params, num_params) | ^ Plaid.c:104:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 104 | RealizePlaid(w, value_mask, attributes) | ^ Plaid.c:149:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 149 | DestroyPlaid(w) | ^ 4 warnings generated. cc -O2 -I/usr/local/include -I/usr/X11R6/include -DCSRG_BASED -DFUNCPROTO=15 -DNARROWPROTO -DPROMPT_FOR_SAVE -c confirm.c In file included from confirm.c:32: ./xpostit.h:318:15: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 318 | extern char *rindex(); | ^ confirm.c:40:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 40 | ConfirmIt(confirm_callbacks, cancel_callbacks) | ^ In file included from confirm.c:32: ./xpostit.h:329:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 329 | void ConfirmIt(); | ^ 3 warnings generated. cc -O2 -I/usr/local/include -I/usr/X11R6/include -DCSRG_BASED -DFUNCPROTO=15 -DNARROWPROTO -DPROMPT_FOR_SAVE -c email.c In file included from email.c:31: ./xpostit.h:318:15: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 318 | extern char *rindex(); | ^ email.c:53:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 53 | CreateEmailNotePrompt(pn) | ^ In file included from email.c:31: ./xpostit.h:350:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 350 | void CreateEmailNotePrompt(); | ^ email.c:170:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 170 | EmailPopDown(w, client_data, call_data) | ^ email.c:45:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 45 | static void EmailPopDown(); | ^ email.c:212:11: warning: passing arguments to 'ErrPopUp' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 212 | ErrPopUp(syscmd); | ^ email.c:220:11: warning: passing arguments to 'ErrPopUp' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 220 | ErrPopUp("No text in note to email!"); | ^ email.c:188:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 188 | EmailNote(w, client_data, call_data) | ^ email.c:46:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 46 | static void EmailNote(); | ^ 9 warnings generated. cc -O2 -I/usr/local/include -I/usr/X11R6/include -DCSRG_BASED -DFUNCPROTO=15 -DNARROWPROTO -DPROMPT_FOR_SAVE -c io.c In file included from io.c:41: ./xpostit.h:318:15: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 318 | extern char *rindex(); | ^ io.c:202:15: warning: passing arguments to 'FillList' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 202 | if ( FillList(path, dir_viewform, DIR_TYPE, pn) == -1 ) | ^ io.c:204:11: warning: passing arguments to 'ErrPopUp' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 204 | ErrPopUp("Failed to get list of directories."); | ^ io.c:239:15: warning: passing arguments to 'FillList' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 239 | if ( FillList(path, file_viewform, FILE_TYPE, pn) == -1 ) | ^ io.c:241:11: warning: passing arguments to 'ErrPopUp' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 241 | ErrPopUp("Failed to get list of directories."); | ^ io.c:93:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 93 | CreateIOPrompt(pn, type, path) | ^ io.c:341:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 341 | IOCancel(w, client_data, call_data) | ^ io.c:75:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 75 | void IOCancel(); | ^ io.c:83:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 83 | int FillList(); | ^ io.c:369:1: note: conflicting prototype is here 369 | FillList( | ^ io.c:76:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 76 | void IODirCB(); | ^ io.c:562:1: note: conflicting prototype is here 562 | IODirCB( | ^ io.c:589:12: warning: passing arguments to 'ErrPopUp' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 589 | ErrPopUp(path); | ^ io.c:614:12: warning: passing arguments to 'ErrPopUp' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 614 | ErrPopUp(path); | ^ io.c:77:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 77 | void IOFileCB(); | ^ io.c:638:1: note: conflicting prototype is here 638 | IOFileCB( | ^ io.c:665:13: warning: passing arguments to 'ErrPopUp' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 665 | ErrPopUp(output); | ^ io.c:677:15: warning: passing arguments to 'InsertText' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 677 | InsertText( pn, path, False, FILE_TYPE ); | ^ io.c:681:13: warning: passing arguments to 'ErrPopUp' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 681 | ErrPopUp(output); | ^ io.c:691:13: warning: passing arguments to 'ErrPopUp' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 691 | ErrPopUp(output); | ^ io.c:712:13: warning: passing arguments to 'ErrPopUp' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 712 | ErrPopUp(output); | ^ io.c:74:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 74 | void IOAcceptCB(); | ^ io.c:740:1: note: conflicting prototype is here 740 | IOAcceptCB( | ^ io.c:765:13: warning: passing arguments to 'ErrPopUp' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 765 | ErrPopUp(output); | ^ io.c:786:16: warning: passing arguments to 'InsertText' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 786 | InsertText( pn, path, False, FILE_TYPE ); | ^ io.c:790:13: warning: passing arguments to 'ErrPopUp' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 790 | ErrPopUp(output); | ^ io.c:800:13: warning: passing arguments to 'ErrPopUp' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 800 | ErrPopUp(output); | ^ io.c:826:14: warning: passing arguments to 'IOExists' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 826 | IOExists(pn); | ^ io.c:832:15: warning: passing arguments to 'IOWriteFile' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 832 | IOWriteFile(pn); | ^ io.c:78:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 78 | void IOExists(); | ^ io.c:845:1: note: conflicting prototype is here 845 | IOExists( | ^ io.c:944:13: warning: passing arguments to 'IOWriteFile' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 944 | IOWriteFile((PostItNote *)client_data); | ^ io.c:940:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 940 | IOExistsAccept(w, client_data, call_data) | ^ io.c:79:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 79 | void IOExistsAccept(); | ^ io.c:950:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 950 | IOExistsCancel(w, client_data, call_data) | ^ io.c:80:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 80 | void IOExistsCancel(); | ^ io.c:82:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 82 | void IOWriteFile(); | ^ io.c:968:1: note: conflicting prototype is here 968 | IOWriteFile( | ^ io.c:989:11: warning: passing arguments to 'ErrPopUp' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 989 | ErrPopUp(output); | ^ 33 warnings generated. cc -O2 -I/usr/local/include -I/usr/X11R6/include -DCSRG_BASED -DFUNCPROTO=15 -DNARROWPROTO -DPROMPT_FOR_SAVE -c findnote.c In file included from findnote.c:31: ./xpostit.h:318:15: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 318 | extern char *rindex(); | ^ findnote.c:198:12: warning: passing arguments to 'ErrPopUp' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 198 | ErrPopUp("There are no hidden notes." ); | ^ findnote.c:200:12: warning: passing arguments to 'ErrPopUp' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 200 | ErrPopUp("You have no notes."); | ^ findnote.c:53:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 53 | CreateFindNotePrompt(notes, hidden) | ^ In file included from findnote.c:31: ./xpostit.h:343:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 343 | void CreateFindNotePrompt(); | ^ findnote.c:249:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 249 | FindPopDown(w, client_data, call_data) | ^ findnote.c:45:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 45 | void FindPopDown(); | ^ findnote.c:265:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 265 | FindPopUpChild(w, client_data, call_data) | ^ findnote.c:46:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 46 | void FindPopUpChild(); | ^ 9 warnings generated. cc -O2 -I/usr/local/include -I/usr/X11R6/include -DCSRG_BASED -DFUNCPROTO=15 -DNARROWPROTO -DPROMPT_FOR_SAVE -c menu.c In file included from menu.c:43: ./xpostit.h:318:15: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 318 | extern char *rindex(); | ^ menu.c:132:27: warning: cast to 'XtPointer' (aka 'void *') from smaller integer type 'int' [-Wint-to-void-pointer-cast] 132 | HandleMenuSelection, (XtPointer)i); | ^~~~~~~~~~~~ menu.c:150:10: warning: cast to smaller integer type 'int' from 'caddr_t' (aka 'char *') [-Wpointer-to-int-cast] 150 | switch ((int) client_data) { | ^~~~~~~~~~~~~~~~~ menu.c:152:16: warning: passing arguments to 'CreateNewNote' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 152 | CreateNewNote(PostItNote_1p5x2); | ^ menu.c:155:16: warning: passing arguments to 'CreateNewNote' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 155 | CreateNewNote(PostItNote_2x3); | ^ menu.c:158:16: warning: passing arguments to 'CreateNewNote' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 158 | CreateNewNote(PostItNote_3x3); | ^ menu.c:161:16: warning: passing arguments to 'CreateNewNote' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 161 | CreateNewNote(PostItNote_3x4); | ^ menu.c:164:16: warning: passing arguments to 'CreateNewNote' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 164 | CreateNewNote(PostItNote_3x5); | ^ menu.c:167:16: warning: passing arguments to 'CreateNewNote' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 167 | CreateNewNote(PostItNote_4x6); | ^ menu.c:176:15: warning: passing arguments to 'SaveAllNotes' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 176 | SaveAllNotes(True); | ^ menu.c:143:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 143 | HandleMenuSelection(w, client_data, call_data) | ^ menu.c:84:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 84 | static void HandleMenuSelection(); | ^ 12 warnings generated. cc -O2 -I/usr/local/include -I/usr/X11R6/include -DCSRG_BASED -DFUNCPROTO=15 -DNARROWPROTO -DPROMPT_FOR_SAVE -c note.c In file included from note.c:79: ./xpostit.h:318:15: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 318 | extern char *rindex(); | ^ note.c:213:16: warning: passing arguments to 'AllocNote' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 213 | pn = AllocNote(NewIndex); | ^ note.c:224:16: warning: passing arguments to 'MakeNoteWidget' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 224 | MakeNoteWidget(pn); | ^ note.c:145:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 145 | CreateNewNote(size) | ^ In file included from note.c:79: ./xpostit.h:339:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 339 | void CreateNewNote(); | ^ note.c:371:17: warning: passing arguments to 'AllocNote' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 371 | pn = AllocNote(n); | ^ note.c:415:26: warning: passing arguments to 'SafeAlloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 415 | pn->pn_file = SafeAlloc(strlen(fname) + 1); | ^ note.c:443:17: warning: passing arguments to 'MakeNoteWidget' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 443 | MakeNoteWidget(pn); | ^ note.c:466:11: warning: passing arguments to 'ErrPopUp' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 466 | ErrPopUp("There are no notes to raise."); | ^ note.c:488:11: warning: passing arguments to 'ErrPopUp' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 488 | ErrPopUp("There are no hidden notes to unhide."); | ^ note.c:508:11: warning: passing arguments to 'ErrPopUp' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 508 | ErrPopUp("There are no notes to lower."); | ^ note.c:524:32: warning: cast to 'caddr_t' (aka 'char *') from smaller integer type 'int' [-Wint-to-pointer-cast] 524 | SaveNote(pn->pn_shellwidget, (caddr_t) pn->pn_index, 0); | ^~~~~~~~~~~~~~~~~~~~~~ note.c:524:11: warning: passing arguments to 'SaveNote' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 524 | SaveNote(pn->pn_shellwidget, (caddr_t) pn->pn_index, 0); | ^ note.c:530:12: warning: passing arguments to 'ErrPopUp' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 530 | ErrPopUp("There are no notes to save."); | ^ note.c:515:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 515 | SaveAllNotes(showmsg) | ^ In file included from note.c:79: ./xpostit.h:333:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 333 | void SaveAllNotes(); | ^ note.c:555:33: warning: passing arguments to 'SafeAlloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 555 | pnlink = (PNLinks *)SafeAlloc(sizeof (PNLinks)); | ^ note.c:620:11: warning: passing arguments to 'ErrPopUp' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 620 | ErrPopUp("There are no anchored notes."); | ^ note.c:624:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 624 | SetSaveSensitive(w, client_data, call_data) | ^ In file included from note.c:79: ./xpostit.h:344:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 344 | void SetSaveSensitive(); | ^ note.c:835:2: warning: cast to 'caddr_t' (aka 'char *') from smaller integer type 'int' [-Wint-to-pointer-cast] 835 | SetCallback(SaveNote, pn->pn_index); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./xpostit.h:198:28: note: expanded from macro 'SetCallback' 198 | callbacks[0].closure = (caddr_t) (val) | ^~~~~~~~~~~~~~~ note.c:846:2: warning: cast to 'caddr_t' (aka 'char *') from smaller integer type 'int' [-Wint-to-pointer-cast] 846 | SetCallback(OpenNote, pn->pn_index); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./xpostit.h:198:28: note: expanded from macro 'SetCallback' 198 | callbacks[0].closure = (caddr_t) (val) | ^~~~~~~~~~~~~~~ note.c:857:2: warning: cast to 'caddr_t' (aka 'char *') from smaller integer type 'int' [-Wint-to-pointer-cast] 857 | SetCallback(ExportNote, pn->pn_index); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./xpostit.h:198:28: note: expanded from macro 'SetCallback' 198 | callbacks[0].closure = (caddr_t) (val) | ^~~~~~~~~~~~~~~ note.c:869:2: warning: cast to 'caddr_t' (aka 'char *') from smaller integer type 'int' [-Wint-to-pointer-cast] 869 | SetCallback(PrintNote, pn->pn_index); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./xpostit.h:198:28: note: expanded from macro 'SetCallback' 198 | callbacks[0].closure = (caddr_t) (val) | ^~~~~~~~~~~~~~~ note.c:879:2: warning: cast to 'caddr_t' (aka 'char *') from smaller integer type 'int' [-Wint-to-pointer-cast] 879 | SetCallback(EmailNoteCB, pn->pn_index); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./xpostit.h:198:28: note: expanded from macro 'SetCallback' 198 | callbacks[0].closure = (caddr_t) (val) | ^~~~~~~~~~~~~~~ note.c:890:2: warning: cast to 'caddr_t' (aka 'char *') from smaller integer type 'int' [-Wint-to-pointer-cast] 890 | SetCallback(HideNote, pn->pn_index); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./xpostit.h:198:28: note: expanded from macro 'SetCallback' 198 | callbacks[0].closure = (caddr_t) (val) | ^~~~~~~~~~~~~~~ note.c:900:2: warning: cast to 'caddr_t' (aka 'char *') from smaller integer type 'int' [-Wint-to-pointer-cast] 900 | SetCallback(EraseNote, pn->pn_index); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./xpostit.h:198:28: note: expanded from macro 'SetCallback' 198 | callbacks[0].closure = (caddr_t) (val) | ^~~~~~~~~~~~~~~ note.c:916:2: warning: cast to 'caddr_t' (aka 'char *') from smaller integer type 'int' [-Wint-to-pointer-cast] 916 | SetCallback(DestroyNote, pn->pn_index); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./xpostit.h:198:28: note: expanded from macro 'SetCallback' 198 | callbacks[0].closure = (caddr_t) (val) | ^~~~~~~~~~~~~~~ note.c:932:2: warning: cast to 'caddr_t' (aka 'char *') from smaller integer type 'int' [-Wint-to-pointer-cast] 932 | SetCallback(NameNote, pn->pn_index); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./xpostit.h:198:28: note: expanded from macro 'SetCallback' 198 | callbacks[0].closure = (caddr_t) (val) | ^~~~~~~~~~~~~~~ note.c:943:2: warning: cast to 'caddr_t' (aka 'char *') from smaller integer type 'int' [-Wint-to-pointer-cast] 943 | SetCallback(AnchorNote, pn->pn_index); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./xpostit.h:198:28: note: expanded from macro 'SetCallback' 198 | callbacks[0].closure = (caddr_t) (val) | ^~~~~~~~~~~~~~~ note.c:953:2: warning: cast to 'caddr_t' (aka 'char *') from smaller integer type 'int' [-Wint-to-pointer-cast] 953 | SetCallback(UnAnchorNote, pn->pn_index); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./xpostit.h:198:28: note: expanded from macro 'SetCallback' 198 | callbacks[0].closure = (caddr_t) (val) | ^~~~~~~~~~~~~~~ note.c:974:2: warning: cast to 'caddr_t' (aka 'char *') from smaller integer type 'int' [-Wint-to-pointer-cast] 974 | SetCallback(SetTimerNote, pn->pn_index); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./xpostit.h:198:28: note: expanded from macro 'SetCallback' 198 | callbacks[0].closure = (caddr_t) (val) | ^~~~~~~~~~~~~~~ note.c:985:2: warning: cast to 'caddr_t' (aka 'char *') from smaller integer type 'int' [-Wint-to-pointer-cast] 985 | SetCallback(UnSetTimerNote, pn->pn_index); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./xpostit.h:198:28: note: expanded from macro 'SetCallback' 198 | callbacks[0].closure = (caddr_t) (val) | ^~~~~~~~~~~~~~~ note.c:1015:2: warning: cast to 'caddr_t' (aka 'char *') from smaller integer type 'int' [-Wint-to-pointer-cast] 1015 | SetCallback(InsertCalendar, pn->pn_index); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./xpostit.h:198:28: note: expanded from macro 'SetCallback' 198 | callbacks[0].closure = (caddr_t) (val) | ^~~~~~~~~~~~~~~ note.c:1026:2: warning: cast to 'caddr_t' (aka 'char *') from smaller integer type 'int' [-Wint-to-pointer-cast] 1026 | SetCallback(InsertDates, pn->pn_index); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./xpostit.h:198:28: note: expanded from macro 'SetCallback' 198 | callbacks[0].closure = (caddr_t) (val) | ^~~~~~~~~~~~~~~ note.c:639:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 639 | MakeNoteWidget(pn) | ^ note.c:124:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 124 | static void MakeNoteWidget(); | ^ note.c:1120:21: warning: cast to smaller integer type 'int' from 'caddr_t' (aka 'char *') [-Wpointer-to-int-cast] 1120 | if ((pn = FindNote((int) client_data)) == NULL) | ^~~~~~~~~~~~~~~~~ note.c:1120:20: warning: passing arguments to 'FindNote' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1120 | if ((pn = FindNote((int) client_data)) == NULL) | ^ note.c:1147:16: warning: passing arguments to 'CreateIOPrompt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1147 | CreateIOPrompt(pn, XPOSTIT_OPEN_FILE, path); | ^ note.c:1106:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1106 | OpenNote(w, client_data, call_data) | ^ note.c:115:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 115 | static void OpenNote(); | ^ note.c:1171:21: warning: cast to smaller integer type 'int' from 'caddr_t' (aka 'char *') [-Wpointer-to-int-cast] 1171 | if ((pn = FindNote((int) client_data)) == NULL) | ^~~~~~~~~~~~~~~~~ note.c:1171:20: warning: passing arguments to 'FindNote' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1171 | if ((pn = FindNote((int) client_data)) == NULL) | ^ note.c:1198:16: warning: passing arguments to 'CreateIOPrompt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1198 | CreateIOPrompt(pn, XPOSTIT_EXPORT_FILE, path); | ^ note.c:1158:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1158 | ExportNote(w, client_data, call_data) | ^ note.c:116:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 116 | static void ExportNote(); | ^ note.c:1233:21: warning: cast to smaller integer type 'int' from 'caddr_t' (aka 'char *') [-Wpointer-to-int-cast] 1233 | if ((pn = FindNote((int) client_data)) == NULL) | ^~~~~~~~~~~~~~~~~ note.c:1233:20: warning: passing arguments to 'FindNote' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1233 | if ((pn = FindNote((int) client_data)) == NULL) | ^ note.c:1252:17: warning: passing arguments to 'GetNotePosition' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1252 | GetNotePosition(pn->pn_shellwidget, &shellx, &shelly); | ^ note.c:1271:26: warning: passing arguments to 'MakeFname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1271 | pn->pn_file = MakeFname(pn->pn_index); | ^ note.c:1336:12: warning: passing arguments to 'ErrPopUp' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1336 | ErrPopUp(cmd); | ^ note.c:1347:12: warning: passing arguments to 'ErrPopUp' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1347 | ErrPopUp(cmd); | ^ note.c:1362:11: warning: passing arguments to 'ErrPopUp' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1362 | ErrPopUp(cmd); | ^ note.c:1373:11: warning: passing arguments to 'ErrPopUp' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1373 | ErrPopUp(cmd); | ^ note.c:1384:12: warning: passing arguments to 'ErrPopUp' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1384 | ErrPopUp(cmd); | ^ note.c:1212:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1212 | SaveNote(w, client_data, call_data) | ^ note.c:114:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 114 | static void SaveNote(); | ^ note.c:1409:21: warning: cast to smaller integer type 'int' from 'caddr_t' (aka 'char *') [-Wpointer-to-int-cast] 1409 | if ((pn = FindNote((int) client_data)) == NULL) | ^~~~~~~~~~~~~~~~~ note.c:1409:20: warning: passing arguments to 'FindNote' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1409 | if ((pn = FindNote((int) client_data)) == NULL) | ^ note.c:1420:23: warning: cast to 'caddr_t' (aka 'char *') from smaller integer type 'int' [-Wint-to-pointer-cast] 1420 | confirm[0].closure = (caddr_t) pn->pn_index; | ^~~~~~~~~~~~~~~~~~~~~~ note.c:1422:22: warning: cast to 'caddr_t' (aka 'char *') from smaller integer type 'int' [-Wint-to-pointer-cast] 1422 | cancel[0].closure = (caddr_t) pn->pn_index; | ^~~~~~~~~~~~~~~~~~~~~~ note.c:1427:11: warning: passing arguments to 'ConfirmIt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1427 | ConfirmIt(confirm, cancel); | ^ note.c:1396:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1396 | EraseNote(w, client_data, call_data) | ^ note.c:118:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 118 | static void EraseNote(); | ^ note.c:1447:21: warning: cast to smaller integer type 'int' from 'caddr_t' (aka 'char *') [-Wpointer-to-int-cast] 1447 | if ((pn = FindNote((int) client_data)) == NULL) | ^~~~~~~~~~~~~~~~~ note.c:1447:20: warning: passing arguments to 'FindNote' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1447 | if ((pn = FindNote((int) client_data)) == NULL) | ^ note.c:1451:23: warning: cast to 'caddr_t' (aka 'char *') from smaller integer type 'int' [-Wint-to-pointer-cast] 1451 | confirm[0].closure = (caddr_t) pn->pn_index; | ^~~~~~~~~~~~~~~~~~~~~~ note.c:1453:22: warning: cast to 'caddr_t' (aka 'char *') from smaller integer type 'int' [-Wint-to-pointer-cast] 1453 | cancel[0].closure = (caddr_t) pn->pn_index; | ^~~~~~~~~~~~~~~~~~~~~~ note.c:1458:11: warning: passing arguments to 'ConfirmIt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1458 | ConfirmIt(confirm, cancel); | ^ note.c:1434:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1434 | DestroyNote(w, client_data, call_data) | ^ note.c:119:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 119 | static void DestroyNote(); | ^ note.c:1482:21: warning: cast to smaller integer type 'int' from 'caddr_t' (aka 'char *') [-Wpointer-to-int-cast] 1482 | if ((pn = FindNote((int) client_data)) == NULL) | ^~~~~~~~~~~~~~~~~ note.c:1482:20: warning: passing arguments to 'FindNote' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1482 | if ((pn = FindNote((int) client_data)) == NULL) | ^ note.c:1493:11: warning: passing arguments to 'ErrPopUp' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1493 | ErrPopUp(cmd); | ^ note.c:1501:11: warning: passing arguments to 'ErrPopUp' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1501 | ErrPopUp("No text in note to print!"); | ^ note.c:1465:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1465 | PrintNote(w, client_data, call_data) | ^ note.c:117:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 117 | static void PrintNote(); | ^ note.c:1556:21: warning: cast to smaller integer type 'int' from 'caddr_t' (aka 'char *') [-Wpointer-to-int-cast] 1556 | if ((pn = FindNote((int) client_data)) == NULL) | ^~~~~~~~~~~~~~~~~ note.c:1556:20: warning: passing arguments to 'FindNote' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1556 | if ((pn = FindNote((int) client_data)) == NULL) | ^ note.c:1559:23: warning: passing arguments to 'CreateEmailNotePrompt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1559 | CreateEmailNotePrompt(pn); | ^ note.c:1547:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1547 | EmailNoteCB(w, client_data, call_data) | ^ note.c:139:15: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 139 | static void EmailNoteCB(); | ^ note.c:1579:21: warning: cast to smaller integer type 'int' from 'caddr_t' (aka 'char *') [-Wpointer-to-int-cast] 1579 | if ((pn = FindNote((int) client_data)) == NULL) | ^~~~~~~~~~~~~~~~~ note.c:1579:20: warning: passing arguments to 'FindNote' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1579 | if ((pn = FindNote((int) client_data)) == NULL) | ^ note.c:1583:23: warning: cast to 'caddr_t' (aka 'char *') from smaller integer type 'int' [-Wint-to-pointer-cast] 1583 | confirm[0].closure = (caddr_t) pn->pn_index; | ^~~~~~~~~~~~~~~~~~~~~~ note.c:1585:22: warning: cast to 'caddr_t' (aka 'char *') from smaller integer type 'int' [-Wint-to-pointer-cast] 1585 | cancel[0].closure = (caddr_t) pn->pn_index; | ^~~~~~~~~~~~~~~~~~~~~~ note.c:1590:8: warning: passing arguments to 'NameIt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1590 | NameIt(pn, confirm, cancel); | ^ note.c:1566:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1566 | NameNote(w, client_data, call_data) | ^ note.c:127:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 127 | static void NameNote(); | ^ note.c:1606:21: warning: cast to smaller integer type 'int' from 'caddr_t' (aka 'char *') [-Wpointer-to-int-cast] 1606 | if ((pn = FindNote((int) client_data)) == NULL) | ^~~~~~~~~~~~~~~~~ note.c:1606:20: warning: passing arguments to 'FindNote' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1606 | if ((pn = FindNote((int) client_data)) == NULL) | ^ note.c:1597:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1597 | AnchorNote(w, client_data, call_data) | ^ note.c:128:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 128 | static void AnchorNote(); | ^ note.c:1628:21: warning: cast to smaller integer type 'int' from 'caddr_t' (aka 'char *') [-Wpointer-to-int-cast] 1628 | if ((pn = FindNote((int) client_data)) == NULL) | ^~~~~~~~~~~~~~~~~ note.c:1628:20: warning: passing arguments to 'FindNote' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1628 | if ((pn = FindNote((int) client_data)) == NULL) | ^ note.c:1619:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1619 | UnAnchorNote(w, client_data, call_data) | ^ note.c:129:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 129 | static void UnAnchorNote(); | ^ note.c:1650:21: warning: cast to smaller integer type 'int' from 'caddr_t' (aka 'char *') [-Wpointer-to-int-cast] 1650 | if ((pn = FindNote((int) client_data)) == NULL) | ^~~~~~~~~~~~~~~~~ note.c:1650:20: warning: passing arguments to 'FindNote' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1650 | if ((pn = FindNote((int) client_data)) == NULL) | ^ note.c:1641:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1641 | HideNote(w, client_data, call_data) | ^ note.c:126:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 126 | static void HideNote(); | ^ note.c:1674:22: warning: passing arguments to 'CreateFindNotePrompt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1674 | CreateFindNotePrompt(notes, False); | ^ note.c:1670:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1670 | MakeNoteListCB(w, client_data, call_data) | ^ In file included from note.c:79: ./xpostit.h:351:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 351 | void MakeNoteListCB(); | ^ note.c:1690:21: warning: cast to smaller integer type 'int' from 'caddr_t' (aka 'char *') [-Wpointer-to-int-cast] 1690 | if ((pn = FindNote((int) client_data)) == NULL) | ^~~~~~~~~~~~~~~~~ note.c:1690:20: warning: passing arguments to 'FindNote' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1690 | if ((pn = FindNote((int) client_data)) == NULL) | ^ note.c:1693:19: warning: passing arguments to 'CreateTimerPrompt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1693 | CreateTimerPrompt(pn); | ^ note.c:1681:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1681 | SetTimerNote(w, client_data, call_data) | ^ note.c:135:15: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 135 | static void SetTimerNote(); | ^ note.c:1712:21: warning: cast to smaller integer type 'int' from 'caddr_t' (aka 'char *') [-Wpointer-to-int-cast] 1712 | if ((pn = FindNote((int) client_data)) == NULL) | ^~~~~~~~~~~~~~~~~ note.c:1712:20: warning: passing arguments to 'FindNote' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1712 | if ((pn = FindNote((int) client_data)) == NULL) | ^ note.c:1701:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1701 | UnSetTimerNote(w, client_data, call_data) | ^ note.c:136:15: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 136 | static void UnSetTimerNote(); | ^ note.c:1746:21: warning: cast to smaller integer type 'int' from 'caddr_t' (aka 'char *') [-Wpointer-to-int-cast] 1746 | if ((pn = FindNote((int) client_data)) == NULL) | ^~~~~~~~~~~~~~~~~ note.c:1746:20: warning: passing arguments to 'FindNote' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1746 | if ((pn = FindNote((int) client_data)) == NULL) | ^ note.c:1762:11: warning: passing arguments to 'ErrPopUp' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1762 | ErrPopUp(tmpfile); | ^ note.c:1770:12: warning: passing arguments to 'InsertText' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1770 | InsertText(pn, tmpfile, True, FILE_TYPE); | ^ note.c:1734:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1734 | InsertCalendar(w, client_data, call_data) | ^ note.c:130:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 130 | static void InsertCalendar(); | ^ note.c:1789:21: warning: cast to smaller integer type 'int' from 'caddr_t' (aka 'char *') [-Wpointer-to-int-cast] 1789 | if ((pn = FindNote((int) client_data)) == NULL) | ^~~~~~~~~~~~~~~~~ note.c:1789:20: warning: passing arguments to 'FindNote' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1789 | if ((pn = FindNote((int) client_data)) == NULL) | ^ note.c:1792:20: warning: passing arguments to 'CreateInsertPrompt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1792 | CreateInsertPrompt(pn); | ^ note.c:1780:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1780 | InsertDates(w, client_data, call_data) | ^ note.c:131:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 131 | static void InsertDates(); | ^ note.c:1817:21: warning: cast to smaller integer type 'int' from 'caddr_t' (aka 'char *') [-Wpointer-to-int-cast] 1817 | if ((pn = FindNote((int) client_data)) == NULL) | ^~~~~~~~~~~~~~~~~ note.c:1817:20: warning: passing arguments to 'FindNote' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1817 | if ((pn = FindNote((int) client_data)) == NULL) | ^ note.c:1800:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1800 | ConfirmName(w, client_data, call_data) | ^ note.c:132:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 132 | static void ConfirmName(); | ^ note.c:1850:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1850 | CancelName(w, client_data, call_data) | ^ note.c:133:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 133 | static void CancelName(); | ^ note.c:1881:21: warning: cast to smaller integer type 'int' from 'caddr_t' (aka 'char *') [-Wpointer-to-int-cast] 1881 | if ((pn = FindNote((int) client_data)) == NULL) | ^~~~~~~~~~~~~~~~~ note.c:1881:20: warning: passing arguments to 'FindNote' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1881 | if ((pn = FindNote((int) client_data)) == NULL) | ^ note.c:1865:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1865 | ConfirmErase(w, client_data, call_data) | ^ note.c:121:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 121 | static void ConfirmErase(); | ^ note.c:1900:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1900 | CancelErase(w, client_data, call_data) | ^ note.c:120:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 120 | static void CancelErase(); | ^ note.c:1928:21: warning: cast to smaller integer type 'int' from 'caddr_t' (aka 'char *') [-Wpointer-to-int-cast] 1928 | if ((pn = FindNote((int) client_data)) == NULL) | ^~~~~~~~~~~~~~~~~ note.c:1928:20: warning: passing arguments to 'FindNote' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1928 | if ((pn = FindNote((int) client_data)) == NULL) | ^ note.c:1914:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1914 | ConfirmDestroy(w, client_data, call_data) | ^ note.c:123:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 123 | static void ConfirmDestroy(); | ^ note.c:1978:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1978 | CancelDestroy(w, client_data, call_data) | ^ note.c:122:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 122 | static void CancelDestroy(); | ^ note.c:2005:35: warning: passing arguments to 'SafeAlloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2005 | notes = (PostItNote *) SafeAlloc(sizeof(PostItNote)); | ^ note.c:2012:41: warning: passing arguments to 'SafeAlloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2012 | pn->pn_next = (PostItNote *) SafeAlloc(sizeof(PostItNote)); | ^ note.c:2034:25: warning: passing arguments to 'SafeAlloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2034 | pn->pn_text = SafeAlloc(pn->pn_textsize); | ^ note.c:1993:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1993 | AllocNote(index) | ^ note.c:112:20: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 112 | static PostItNote *AllocNote(); | ^ note.c:2053:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2053 | FindNote(index) | ^ note.c:111:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 111 | PostItNote *FindNote(); | ^ note.c:2096:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2096 | GetNotePosition(w, x, y) | ^ note.c:134:15: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 134 | static void GetNotePosition(); | ^ note.c:2165:19: warning: passing arguments to 'MakeAlarmPopup' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2165 | MakeAlarmPopup(pn); | ^ note.c:2145:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2145 | AlarmCheck(client_data, id) | ^ In file included from note.c:79: ./xpostit.h:328:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 328 | void AlarmCheck(); | ^ note.c:2180:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2180 | MakeAlarmPopup(pn) | ^ note.c:137:15: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 137 | static void MakeAlarmPopup(); | ^ note.c:2255:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2255 | AlarmPopDown(w, client_data, call_data) | ^ note.c:138:15: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 138 | static void AlarmPopDown(); | ^ 159 warnings generated. cc -O2 -I/usr/local/include -I/usr/X11R6/include -DCSRG_BASED -DFUNCPROTO=15 -DNARROWPROTO -DPROMPT_FOR_SAVE -c plaid.c In file included from plaid.c:33: ./xpostit.h:318:15: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 318 | extern char *rindex(); | ^ 1 warning generated. cc -O2 -I/usr/local/include -I/usr/X11R6/include -DCSRG_BASED -DFUNCPROTO=15 -DNARROWPROTO -DPROMPT_FOR_SAVE -c util.c In file included from util.c:51: ./xpostit.h:318:15: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 318 | extern char *rindex(); | ^ util.c:93:15: warning: passing arguments to 'SaveAllNotes' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 93 | SaveAllNotes(False); | ^ util.c:202:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 202 | SOECancel(w, client_data, call_data) | ^ util.c:58:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 58 | static void SOECancel(); | ^ util.c:221:14: warning: passing arguments to 'SaveAllNotes' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 221 | SaveAllNotes(False); | ^ util.c:216:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 216 | SOEAccept(w, client_data, call_data) | ^ util.c:57:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 57 | static void SOEAccept(); | ^ util.c:245:8: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 245 | char *getenv(); | ^ /usr/include/stdlib.h:110:7: note: conflicting prototype is here 110 | char *getenv(const char *); | ^ util.c:276:16: warning: passing arguments to 'SafeAlloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 276 | s = SafeAlloc(strlen(fname) + 1); | ^ util.c:334:15: warning: passing arguments to 'SafeAlloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 334 | s = SafeAlloc(strlen(fname) + 1); | ^ util.c:327:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 327 | MakeFname(index) | ^ util.c:343:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 343 | SafeAlloc(nbytes) | ^ In file included from util.c:51: ./xpostit.h:324:7: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 324 | char *SafeAlloc(); | ^ util.c:367:14: warning: passing arguments to 'SaveAllNotes' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 367 | SaveAllNotes(False); | ^ util.c:361:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 361 | AutoSave(client_data, id) | ^ In file included from util.c:51: ./xpostit.h:327:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 327 | void AutoSave(); | ^ util.c:410:12: warning: passing arguments to 'ErrPopUp' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 410 | ErrPopUp(cmd); | ^ util.c:423:12: warning: passing arguments to 'ErrPopUp' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 423 | ErrPopUp(cmd); | ^ util.c:441:13: warning: passing arguments to 'ErrPopUp' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 441 | ErrPopUp("Can't add text from file to note!!"); | ^ util.c:473:12: warning: passing arguments to 'ErrPopUp' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 473 | ErrPopUp("Can't add text from buffer to note!!"); | ^ 20 warnings generated. cc -O2 -I/usr/local/include -I/usr/X11R6/include -DCSRG_BASED -DFUNCPROTO=15 -DNARROWPROTO -DPROMPT_FOR_SAVE -c insert.c In file included from insert.c:31: ./xpostit.h:318:15: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 318 | extern char *rindex(); | ^ insert.c:47:8: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 47 | extern InsertText(); | ~~~~~~ ^ | int insert.c:149:34: warning: cast to 'XtPointer' (aka 'void *') from smaller integer type 'int' [-Wint-to-void-pointer-cast] 149 | SetCallback(InsertLeftArrowCB, (XtPointer)i); | ^~~~~~~~~~~~ ./xpostit.h:198:39: note: expanded from macro 'SetCallback' 198 | callbacks[0].closure = (caddr_t) (val) | ^~~ insert.c:57:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 57 | CreateInsertPrompt(pn) | ^ insert.c:377:12: warning: passing arguments to 'InsertText' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 377 | InsertText(pn, cmd, False, TEXT_TYPE); | ^ insert.c:255:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 255 | InsertAccept(w, client_data, call_data) | ^ insert.c:49:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 49 | void InsertAccept(); | ^ insert.c:387:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 387 | InsertCancel(w, client_data, call_data) | ^ insert.c:50:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 50 | void InsertCancel(); | ^ insert.c:419:34: warning: cast to smaller integer type 'int' from 'caddr_t' (aka 'char *') [-Wpointer-to-int-cast] 419 | XtSetValues ( insert_leftarrows[(int)client_data], args, nargs ); | ^~~~~~~~~~~~~~~~ insert.c:421:14: warning: cast to smaller integer type 'int' from 'caddr_t' (aka 'char *') [-Wpointer-to-int-cast] 421 | active_item=(int)client_data; | ^~~~~~~~~~~~~~~~ insert.c:410:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 410 | InsertLeftArrowCB(w, client_data, call_data) | ^ insert.c:51:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 51 | void InsertLeftArrowCB(); | ^ 13 warnings generated. cc -O2 -I/usr/local/include -I/usr/X11R6/include -DCSRG_BASED -DFUNCPROTO=15 -DNARROWPROTO -DPROMPT_FOR_SAVE -c xpostit.c In file included from xpostit.c:43: ./xpostit.h:318:15: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 318 | extern char *rindex(); | ^ xpostit.c:133:1: warning: return type of 'main' is not 'int' [-Wmain-return-type] 133 | void | ^ xpostit.c:133:1: note: change return type to 'int' 133 | void | ^~~~ | int xpostit.c:203:3: 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] 203 | exit ( 0 ); | ^ xpostit.c:203:3: note: include the header or explicitly provide a declaration for 'exit' xpostit.c:134:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 134 | main(argc, argv) | ^ 4 warnings generated. rm -f xpostit+ cc -o xpostit+ -O2 -L/usr/X11R6/lib -L/usr/local/lib list.o timer.o name.o Plaid.o confirm.o email.o io.o findnote.o menu.o note.o plaid.o util.o insert.o xpostit.o -lXaw -lXmu -lXt -lSM -lICE -lXpm -lXext -lX11 -lXdmcp -lXau -Wl,-rpath,/usr/local/lib ld: warning: timer.c(timer.o:(CreateTimerPrompt)): warning: sprintf() is often misused, please use snprintf() ld: warning: io.c(io.o:(FillList)): warning: strcpy() is almost always misused, please use strlcpy() ld: warning: io.c(io.o:(FillList)): warning: strcat() is almost always misused, please use strlcat() rm -f xpostit+._man if test -z "" ; then cd `dirname xpostit+` && ln -s `basename xpostit+.man` `basename xpostit+._man`; else /usr/libexec/cpp -undef -traditional -D__apploaddir__=/usr/local/lib/X11/app-defaults -D__appmansuffix__=1 -D__filemansuffix__=5 -D__libmansuffix__=3 -D__miscmansuffix__=7 -D__drivermansuffix__=4 -D__adminmansuffix__=8 -D__projectroot__=/usr/X11R6 -D__xconfigfile__=xorg.conf -D__xconfigdir__=/usr/local/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" < xpostit+.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/\@\@$/\\/' >xpostit+._man; fi >>> Running package in x11/xpostitPlus at 1764615279.36 ===> x11/xpostitPlus ===> Faking installation for XPostitPlus-2.3p4 install -c xpostit+ /exopi-obj/pobj/XPostitPlus-2.3/fake-amd64/usr/local/bin/xpostit+ + mkdir -p /exopi-obj/pobj/XPostitPlus-2.3/fake-amd64/etc/X11/app-defaults install -c -m 0444 XPostitPlus.ad /exopi-obj/pobj/XPostitPlus-2.3/fake-amd64/usr/local/lib/X11/app-defaults/XPostitPlus install in . done install -c -m 0444 xpostit+._man /exopi-obj/pobj/XPostitPlus-2.3/fake-amd64/usr/local/man/man1/xpostit+.1 install.man in . done ===> Building package for XPostitPlus-2.3p4 Create /exopi-cvs/ports/packages/amd64/all/XPostitPlus-2.3p4.tgz Creating package XPostitPlus-2.3p4 reading plist| checking dependencies| checksumming| checksumming| | 0% checksumming|*** | 5% checksumming|****** | 10% checksumming|********* | 14% checksumming|************ | 19% checksumming|*************** | 24% checksumming|***************** | 29% checksumming|******************** | 33% checksumming|*********************** | 38% checksumming|************************** | 43% checksumming|***************************** | 48% checksumming|******************************** | 52% checksumming|*********************************** | 57% checksumming|************************************** | 62% checksumming|***************************************** | 67% checksumming|******************************************** | 71% checksumming|********************************************** | 76% checksumming|************************************************* | 81% checksumming|**************************************************** | 86% checksumming|******************************************************* | 90% checksumming|********************************************************** | 95% checksumming|*************************************************************|100% archiving| archiving| | 0% archiving|************************************************ | 75% archiving|************************************************** | 78% archiving|****************************************************************|100% Link to /exopi-cvs/ports/packages/amd64/ftp/XPostitPlus-2.3p4.tgz >>> Running clean in x11/xpostitPlus at 1764615280.97 ===> x11/xpostitPlus ===> Cleaning for XPostitPlus-2.3p4 >>> Ended at 1764615281.46 max_stuck=0.69/depends=1.52/show-prepare-results=0.80/build=5.36/package=1.65/clean=0.52