>>> Building on exopi-6 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-6 at 1735134436.26) >>> Running depends in x11/xpostitPlus at 1735134436.31 last junk was in devel/libmpack/lua,lua52 /usr/sbin/pkg_add -aI -Drepair imake-1.0.9 imake-cf-1.0.7p0 was: /usr/sbin/pkg_add -aI -Drepair imake-1.0.9 imake-cf-1.0.7p0 /usr/sbin/pkg_add -aI -Drepair imake-1.0.9 imake-cf-1.0.7p0 >>> Running show-prepare-results in x11/xpostitPlus at 1735134437.54 ===> x11/xpostitPlus ===> Building from scratch XPostitPlus-2.3p4 ===> XPostitPlus-2.3p4 depends on: imake-* -> imake-1.0.9 ===> XPostitPlus-2.3p4 depends on: imake-cf-* -> imake-cf-1.0.7p0 ===> Verifying specs: ICE SM X11 Xau Xaw Xdmcp Xext Xmu Xpm Xt c ===> found ICE.11.0 SM.9.0 X11.18.2 Xau.10.0 Xaw.16.0 Xdmcp.11.0 Xext.13.0 Xmu.11.0 Xpm.10.0 Xt.11.1 c.100.3 imake-1.0.9 imake-cf-1.0.7p0 (Junk lock released for exopi-6 at 1735134438.85) distfiles size=78950 >>> Running build in x11/xpostitPlus at 1735134438.94 ===> 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 C2x, conflicting with a previous declaration [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] void ErrPopUp(); ^ list.c:153:1: note: conflicting prototype is here 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 C2x, conflicting with a previous declaration [-Wdeprecated-non-prototype] extern char *rindex(); ^ timer.c:192:33: warning: cast to 'XtPointer' (aka 'void *') from smaller integer type 'int' [-Wint-to-void-pointer-cast] SetCallback(TimerLeftArrowCB, (XtPointer)i); ^~~~~~~~~~~~ ./xpostit.h:198:39: note: expanded from macro 'SetCallback' 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] SetCallback(TimerRightArrowCB, (XtPointer)i); ^~~~~~~~~~~~ ./xpostit.h:198:39: note: expanded from macro 'SetCallback' 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] void TimerCancel(); ^ timer.c:400:14: warning: cast to smaller integer type 'int' from 'caddr_t' (aka 'char *') [-Wpointer-to-int-cast] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] void TimerRightArrowCB(); ^ timer.c:467:14: warning: cast to smaller integer type 'int' from 'caddr_t' (aka 'char *') [-Wpointer-to-int-cast] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x, conflicting with a previous declaration [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a previous declaration [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x, conflicting with a previous declaration [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x, conflicting with a previous declaration [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] int FillList(); ^ io.c:369:1: note: conflicting prototype is here 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] void IODirCB(); ^ io.c:562:1: note: conflicting prototype is here 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] void IOFileCB(); ^ io.c:638:1: note: conflicting prototype is here 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] void IOAcceptCB(); ^ io.c:740:1: note: conflicting prototype is here 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] void IOExists(); ^ io.c:845:1: note: conflicting prototype is here 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] void IOWriteFile(); ^ io.c:968:1: note: conflicting prototype is here 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a previous declaration [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x, conflicting with a previous declaration [-Wdeprecated-non-prototype] extern char *rindex(); ^ menu.c:132:27: warning: cast to 'XtPointer' (aka 'void *') from smaller integer type 'int' [-Wint-to-void-pointer-cast] HandleMenuSelection, (XtPointer)i); ^~~~~~~~~~~~ menu.c:150:10: warning: cast to smaller integer type 'int' from 'caddr_t' (aka 'char *') [-Wpointer-to-int-cast] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x, conflicting with a previous declaration [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] void SetSaveSensitive(); ^ note.c:835:2: warning: cast to 'caddr_t' (aka 'char *') from smaller integer type 'int' [-Wint-to-pointer-cast] SetCallback(SaveNote, pn->pn_index); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./xpostit.h:198:28: note: expanded from macro 'SetCallback' 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] SetCallback(OpenNote, pn->pn_index); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./xpostit.h:198:28: note: expanded from macro 'SetCallback' 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] SetCallback(ExportNote, pn->pn_index); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./xpostit.h:198:28: note: expanded from macro 'SetCallback' 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] SetCallback(PrintNote, pn->pn_index); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./xpostit.h:198:28: note: expanded from macro 'SetCallback' 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] SetCallback(EmailNoteCB, pn->pn_index); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./xpostit.h:198:28: note: expanded from macro 'SetCallback' 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] SetCallback(HideNote, pn->pn_index); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./xpostit.h:198:28: note: expanded from macro 'SetCallback' 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] SetCallback(EraseNote, pn->pn_index); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./xpostit.h:198:28: note: expanded from macro 'SetCallback' 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] SetCallback(DestroyNote, pn->pn_index); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./xpostit.h:198:28: note: expanded from macro 'SetCallback' 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] SetCallback(NameNote, pn->pn_index); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./xpostit.h:198:28: note: expanded from macro 'SetCallback' 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] SetCallback(AnchorNote, pn->pn_index); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./xpostit.h:198:28: note: expanded from macro 'SetCallback' 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] SetCallback(UnAnchorNote, pn->pn_index); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./xpostit.h:198:28: note: expanded from macro 'SetCallback' 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] SetCallback(SetTimerNote, pn->pn_index); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./xpostit.h:198:28: note: expanded from macro 'SetCallback' 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] SetCallback(UnSetTimerNote, pn->pn_index); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./xpostit.h:198:28: note: expanded from macro 'SetCallback' 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] SetCallback(InsertCalendar, pn->pn_index); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./xpostit.h:198:28: note: expanded from macro 'SetCallback' 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] SetCallback(InsertDates, pn->pn_index); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./xpostit.h:198:28: note: expanded from macro 'SetCallback' 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static void MakeNoteWidget(); ^ note.c:1120:21: warning: cast to smaller integer type 'int' from 'caddr_t' (aka 'char *') [-Wpointer-to-int-cast] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static void OpenNote(); ^ note.c:1171:21: warning: cast to smaller integer type 'int' from 'caddr_t' (aka 'char *') [-Wpointer-to-int-cast] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static void ExportNote(); ^ note.c:1233:21: warning: cast to smaller integer type 'int' from 'caddr_t' (aka 'char *') [-Wpointer-to-int-cast] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static void SaveNote(); ^ note.c:1409:21: warning: cast to smaller integer type 'int' from 'caddr_t' (aka 'char *') [-Wpointer-to-int-cast] 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 C2x [-Wdeprecated-non-prototype] 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] 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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static void EraseNote(); ^ note.c:1447:21: warning: cast to smaller integer type 'int' from 'caddr_t' (aka 'char *') [-Wpointer-to-int-cast] 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 C2x [-Wdeprecated-non-prototype] 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] 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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static void DestroyNote(); ^ note.c:1482:21: warning: cast to smaller integer type 'int' from 'caddr_t' (aka 'char *') [-Wpointer-to-int-cast] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static void PrintNote(); ^ note.c:1556:21: warning: cast to smaller integer type 'int' from 'caddr_t' (aka 'char *') [-Wpointer-to-int-cast] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static void EmailNoteCB(); ^ note.c:1579:21: warning: cast to smaller integer type 'int' from 'caddr_t' (aka 'char *') [-Wpointer-to-int-cast] 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 C2x [-Wdeprecated-non-prototype] 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] 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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static void NameNote(); ^ note.c:1606:21: warning: cast to smaller integer type 'int' from 'caddr_t' (aka 'char *') [-Wpointer-to-int-cast] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static void AnchorNote(); ^ note.c:1628:21: warning: cast to smaller integer type 'int' from 'caddr_t' (aka 'char *') [-Wpointer-to-int-cast] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static void UnAnchorNote(); ^ note.c:1650:21: warning: cast to smaller integer type 'int' from 'caddr_t' (aka 'char *') [-Wpointer-to-int-cast] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] void MakeNoteListCB(); ^ note.c:1690:21: warning: cast to smaller integer type 'int' from 'caddr_t' (aka 'char *') [-Wpointer-to-int-cast] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static void SetTimerNote(); ^ note.c:1712:21: warning: cast to smaller integer type 'int' from 'caddr_t' (aka 'char *') [-Wpointer-to-int-cast] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static void UnSetTimerNote(); ^ note.c:1746:21: warning: cast to smaller integer type 'int' from 'caddr_t' (aka 'char *') [-Wpointer-to-int-cast] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static void InsertCalendar(); ^ note.c:1789:21: warning: cast to smaller integer type 'int' from 'caddr_t' (aka 'char *') [-Wpointer-to-int-cast] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static void InsertDates(); ^ note.c:1817:21: warning: cast to smaller integer type 'int' from 'caddr_t' (aka 'char *') [-Wpointer-to-int-cast] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static void CancelName(); ^ note.c:1881:21: warning: cast to smaller integer type 'int' from 'caddr_t' (aka 'char *') [-Wpointer-to-int-cast] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static void CancelErase(); ^ note.c:1928:21: warning: cast to smaller integer type 'int' from 'caddr_t' (aka 'char *') [-Wpointer-to-int-cast] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x, conflicting with a previous declaration [-Wdeprecated-non-prototype] 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 C2x, conflicting with a previous declaration [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x, conflicting with a previous declaration [-Wdeprecated-non-prototype] char *getenv(); ^ /usr/include/stdlib.h:110:7: note: conflicting prototype is here 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a previous declaration [-Wdeprecated-non-prototype] 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] extern InsertText(); ~~~~~~ ^ int insert.c:149:34: warning: cast to 'XtPointer' (aka 'void *') from smaller integer type 'int' [-Wint-to-void-pointer-cast] SetCallback(InsertLeftArrowCB, (XtPointer)i); ^~~~~~~~~~~~ ./xpostit.h:198:39: note: expanded from macro 'SetCallback' 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] void InsertCancel(); ^ insert.c:419:34: warning: cast to smaller integer type 'int' from 'caddr_t' (aka 'char *') [-Wpointer-to-int-cast] 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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x, conflicting with a previous declaration [-Wdeprecated-non-prototype] extern char *rindex(); ^ xpostit.c:133:1: warning: return type of 'main' is not 'int' [-Wmain-return-type] void ^ xpostit.c:133:1: note: change return type to 'int' 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] 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 C2x [-Wdeprecated-non-prototype] 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 1735134443.87 ===> 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 1735134445.37 ===> x11/xpostitPlus ===> Cleaning for XPostitPlus-2.3p4 >>> Ended at 1735134445.72 max_stuck=0.00/depends=1.19/show-prepare-results=1.40/build=4.98/package=1.50/clean=0.39