=> "/opt/pkg/bin/bmake" ["-C", "/Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-arm64/x11/xpostit", "all", "BATCH=1", "DEPENDS_TARGET=/nonexistent"] WARNING: [license.mk] Every package should define a LICENSE. ===> Building for xpostit-3.3.1nb4 --- Plaid.o --- --- confirm.o --- --- Plaid.o --- clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -I/opt/pkg/include -c Plaid.c --- confirm.o --- clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -I/opt/pkg/include -c confirm.c --- Plaid.o --- Plaid.c:99:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 99 | RaiseAction(w, event, params, num_params) | ^ Plaid.c:115:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 115 | LowerAction(w, event, params, num_params) | ^ Plaid.c:131:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 131 | HideAction(w, event, params, num_params) | ^ Plaid.c:147:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 147 | ShowAction(w, event, params, num_params) | ^ Plaid.c:163:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 163 | QuitAction(w, event, params, num_params) | ^ Plaid.c:179:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 179 | TearoffAction(w, event, params, num_params) | ^ Plaid.c:219:51: warning: passing 'unsigned char[66]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 219 | p = XCreatePixmapFromBitmapData(display, window, plaid_bits, | ^~~~~~~~~~ /var/tmp/work/x11/xpostit/work/.buildlink/include/X11/Xlib.h:1610:22: note: passing argument to parameter here 1610 | char* /* data */, | ^ Plaid.c:195:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 195 | RealizePlaid(w, value_mask, attributes) | ^ Plaid.c:240:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 240 | DestroyPlaid(w) | ^ Plaid.c:12:14: warning: unused variable 'RCSid' [-Wunused-variable] 12 | static char *RCSid = "$Header: /home/harbor/davy/stuff/xpostit/RCS/Plaid.c,v 1.6 1992/12/10 16:39:38 davy Exp $"; | ^~~~~ --- confirm.o --- confirm.c:56:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 56 | ConfirmIt(confirm_callbacks, cancel_callbacks) | ^ In file included from confirm.c:48: ./xpostit.h:167: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] 167 | void ConfirmIt(); | ^ confirm.c:12:14: warning: unused variable 'RCSid' [-Wunused-variable] 12 | static char *RCSid = "$Header: /home/harbor/davy/stuff/xpostit/RCS/confirm.c,v 1.5 1992/12/09 20:15:02 davy Exp $"; | ^~~~~ --- Plaid.o --- 10 warnings generated. --- confirm.o --- 3 warnings generated. --- menu.o --- --- note.o --- --- menu.o --- clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -I/opt/pkg/include -c menu.c --- note.o --- clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -I/opt/pkg/include -c note.c --- menu.o --- menu.c:123:58: warning: incompatible integer to pointer conversion passing 'int' to parameter of type 'XtPointer' (aka 'void *') [-Wint-conversion] 123 | XtAddCallback(entry, XtNcallback, HandleMenuSelection, i); | ^ /var/tmp/work/x11/xpostit/work/.buildlink/include/X11/Intrinsic.h:1258:1: note: passing argument to parameter here 1258 | ); | ^ menu.c:145:10: warning: cast to smaller integer type 'int' from 'caddr_t' (aka 'char *') [-Wpointer-to-int-cast] 145 | switch ((int) client_data) { | ^~~~~~~~~~~~~~~~~ menu.c:147: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] 147 | CreateNewNote(PostItNote_1p5x2); | ^ menu.c:150: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] 150 | CreateNewNote(PostItNote_2x3); | ^ menu.c:153: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] 153 | CreateNewNote(PostItNote_3x3); | ^ menu.c:156: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] 156 | CreateNewNote(PostItNote_3x4); | ^ menu.c:159: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] 159 | CreateNewNote(PostItNote_3x5); | ^ menu.c:162: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] 162 | CreateNewNote(PostItNote_4x6); | ^ menu.c:138:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 138 | HandleMenuSelection(w, client_data, call_data) | ^ menu.c:86: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] 86 | static void HandleMenuSelection(); | ^ menu.c:12:14: warning: unused variable 'RCSid' [-Wunused-variable] 12 | static char *RCSid = "$Header: /home/harbor/davy/stuff/xpostit/RCS/menu.c,v 1.6 1992/12/11 13:03:56 davy Exp $"; | ^~~~~ --- note.o --- In file included from note.c:111: ./vroot.h:29:24: warning: parameter 'screen' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 29 | VirtualRootWindow(dpy, screen) | ^ 30 | Display *dpy; 31 | { --- menu.o --- 11 warnings generated. --- note.o --- ./vroot.h:57:5: warning: passing 'long *' to parameter of type 'unsigned long *' converts between pointers to integer types with different sign [-Wpointer-sign] 57 | &nitems, &bytesafter, | ^~~~~~~ /var/tmp/work/x11/xpostit/work/.buildlink/include/X11/Xlib.h:2696:39: note: passing argument to parameter here 2696 | unsigned long* /* nitems_return */, | ^ In file included from note.c:111: ./vroot.h:57:14: warning: passing 'long *' to parameter of type 'unsigned long *' converts between pointers to integer types with different sign [-Wpointer-sign] 57 | &nitems, &bytesafter, | ^~~~~~~~~~~ /var/tmp/work/x11/xpostit/work/.buildlink/include/X11/Xlib.h:2697:44: note: passing argument to parameter here 2697 | unsigned long* /* bytes_after_return */, | ^ In file included from note.c:111: ./vroot.h:29:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 29 | VirtualRootWindow(dpy, screen) | ^ note.c:215: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] 215 | pn = AllocNote(NewIndex); | ^ note.c:224: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] 224 | pn->pn_title = SafeAlloc(strlen(buf) + 1); | ^ note.c:230: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] 230 | MakeNoteWidget(pn); | ^ note.c:150:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 150 | CreateNewNote(size) | ^ In file included from note.c:110: ./xpostit.h:175: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] 175 | void CreateNewNote(); | ^ note.c:241:8: warning: incompatible redeclaration of library function 'realloc' [-Wincompatible-library-redeclaration] 241 | char *realloc(); | ^ note.c:241:8: note: 'realloc' is a builtin with type 'void *(void *, unsigned long)' note.c:337:7: warning: call to undeclared function 'atoi'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 337 | n = atoi(&(d->d_name[nlen])); | ^ note.c:342: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] 342 | pn = AllocNote(n); | ^ --- plaid.o --- --- note.o --- note.c:366: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] 366 | pn->pn_file = SafeAlloc(strlen(fname) + 1); | ^ note.c:372:27: warning: passing arguments to 'SafeAlloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 372 | pn->pn_title = SafeAlloc(strlen(title) + 1); | ^ note.c:383:30: warning: passing arguments to 'realloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 383 | if ((pn->pn_text = realloc(pn->pn_text, n)) == NULL) { | ^ note.c:400: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] 400 | MakeNoteWidget(pn); | ^ note.c:475:32: warning: cast to 'caddr_t' (aka 'char *') from smaller integer type 'int' [-Wint-to-pointer-cast] 475 | SaveNote(pn->pn_shellwidget, (caddr_t) pn->pn_index, 0); | ^~~~~~~~~~~~~~~~~~~~~~ note.c:475: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] 475 | SaveNote(pn->pn_shellwidget, (caddr_t) pn->pn_index, 0); | ^ note.c:490:30: warning: passing arguments to 'StringToNoteSize' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 490 | notesize = StringToNoteSize((char *) call_data); | ^ note.c:483:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 483 | MakeNewNote(w, client_data, call_data) | ^ In file included from note.c:110: ./xpostit.h:168: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] 168 | void MakeNewNote(); | ^ note.c:555:2: warning: cast to 'caddr_t' (aka 'char *') from smaller integer type 'int' [-Wint-to-pointer-cast] 555 | SetCallback(SaveNote, pn->pn_index); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./xpostit.h:110:28: note: expanded from macro 'SetCallback' 110 | callbacks[0].closure = (caddr_t) (val) | ^~~~~~~~~~~~~~~ note.c:566:2: warning: cast to 'caddr_t' (aka 'char *') from smaller integer type 'int' [-Wint-to-pointer-cast] 566 | SetCallback(EraseNote, pn->pn_index); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./xpostit.h:110:28: note: expanded from macro 'SetCallback' 110 | callbacks[0].closure = (caddr_t) (val) | ^~~~~~~~~~~~~~~ note.c:578:2: warning: cast to 'caddr_t' (aka 'char *') from smaller integer type 'int' [-Wint-to-pointer-cast] 578 | SetCallback(DestroyNote, pn->pn_index); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./xpostit.h:110:28: note: expanded from macro 'SetCallback' 110 | callbacks[0].closure = (caddr_t) (val) | ^~~~~~~~~~~~~~~ note.c:590:2: warning: cast to 'caddr_t' (aka 'char *') from smaller integer type 'int' [-Wint-to-pointer-cast] 590 | SetCallback(TitleNote, pn->pn_index); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./xpostit.h:110:28: note: expanded from macro 'SetCallback' 110 | callbacks[0].closure = (caddr_t) (val) | ^~~~~~~~~~~~~~~ note.c:653:3: warning: incompatible pointer types passing 'XtEventHandler *' (aka 'void (**)(struct _WidgetRec *, void *, union _XEvent *, char *)') to parameter of type 'XtEventHandler' (aka 'void (*)(struct _WidgetRec *, void *, union _XEvent *, char *)'); dereference with * [-Wincompatible-pointer-types] 653 | (XtEventHandler *) StructureNotifyHandler, (XtPointer) pn); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | * /var/tmp/work/x11/xpostit/work/.buildlink/include/X11/Intrinsic.h:849:31: note: passing argument to parameter here 849 | XtEventHandler /* proc */, | ^ note.c:501:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 501 | MakeNoteWidget(pn) | ^ note.c:136: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] 136 | static void MakeNoteWidget(); | ^ --- plaid.o --- clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -I/opt/pkg/include -c plaid.c --- note.o --- note.c:719:21: warning: cast to smaller integer type 'int' from 'caddr_t' (aka 'char *') [-Wpointer-to-int-cast] 719 | if ((pn = FindNote((int) client_data)) == NULL) | ^~~~~~~~~~~~~~~~~ note.c:719: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] 719 | if ((pn = FindNote((int) client_data)) == NULL) | ^ note.c:726: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] 726 | pn->pn_file = MakeFname(pn->pn_index); | ^ note.c:731:2: warning: call to undeclared function 'GetNotePosition'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 731 | GetNotePosition(pn->pn_shellwidget, &shellx, &shelly); | ^ note.c:757:6: warning: call to undeclared function 'access'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 757 | if (access(app_res.note_dir, 0) < 0) { | ^ note.c:758:7: warning: call to undeclared function 'mkdir'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 758 | if (mkdir(app_res.note_dir, 0700) < 0) { | ^ note.c:700:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 700 | SaveNote(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 SaveNote(); | ^ note.c:823:21: warning: cast to smaller integer type 'int' from 'caddr_t' (aka 'char *') [-Wpointer-to-int-cast] 823 | if ((pn = FindNote((int) client_data)) == NULL) | ^~~~~~~~~~~~~~~~~ note.c:823: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] 823 | if ((pn = FindNote((int) client_data)) == NULL) | ^ note.c:841:23: warning: cast to 'caddr_t' (aka 'char *') from smaller integer type 'int' [-Wint-to-pointer-cast] 841 | confirm[0].closure = (caddr_t) pn->pn_index; | ^~~~~~~~~~~~~~~~~~~~~~ note.c:843:22: warning: cast to 'caddr_t' (aka 'char *') from smaller integer type 'int' [-Wint-to-pointer-cast] 843 | cancel[0].closure = (caddr_t) pn->pn_index; | ^~~~~~~~~~~~~~~~~~~~~~ note.c:848: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] 848 | ConfirmIt(confirm, cancel); | ^ note.c:805:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 805 | EraseNote(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 EraseNote(); | ^ note.c:868:21: warning: cast to smaller integer type 'int' from 'caddr_t' (aka 'char *') [-Wpointer-to-int-cast] 868 | if ((pn = FindNote((int) client_data)) == NULL) | ^~~~~~~~~~~~~~~~~ note.c:868: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] 868 | if ((pn = FindNote((int) client_data)) == NULL) | ^ note.c:872:23: warning: cast to 'caddr_t' (aka 'char *') from smaller integer type 'int' [-Wint-to-pointer-cast] 872 | confirm[0].closure = (caddr_t) pn->pn_index; | ^~~~~~~~~~~~~~~~~~~~~~ note.c:874:22: warning: cast to 'caddr_t' (aka 'char *') from smaller integer type 'int' [-Wint-to-pointer-cast] 874 | cancel[0].closure = (caddr_t) pn->pn_index; | ^~~~~~~~~~~~~~~~~~~~~~ note.c:879: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] 879 | ConfirmIt(confirm, cancel); | ^ note.c:855:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 855 | DestroyNote(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 DestroyNote(); | ^ note.c:895:21: warning: cast to smaller integer type 'int' from 'caddr_t' (aka 'char *') [-Wpointer-to-int-cast] 895 | if ((pn = FindNote((int) client_data)) == NULL) | ^~~~~~~~~~~~~~~~~ note.c:895: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] 895 | if ((pn = FindNote((int) client_data)) == NULL) | ^ note.c:901:2: warning: call to undeclared function 'GetNoteTitle'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 901 | GetNoteTitle(pn, OkayTitle, CancelTitle); | ^ note.c:886:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 886 | TitleNote(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 TitleNote(); | ^ note.c:924:21: warning: cast to smaller integer type 'int' from 'caddr_t' (aka 'char *') [-Wpointer-to-int-cast] 924 | if ((pn = FindNote((int) client_data)) == NULL) | ^~~~~~~~~~~~~~~~~ note.c:924: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] 924 | if ((pn = FindNote((int) client_data)) == NULL) | ^ note.c:908:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 908 | ConfirmErase(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 ConfirmErase(); | ^ note.c:942:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 942 | CancelErase(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 CancelErase(); | ^ note.c:970:21: warning: cast to smaller integer type 'int' from 'caddr_t' (aka 'char *') [-Wpointer-to-int-cast] 970 | if ((pn = FindNote((int) client_data)) == NULL) | ^~~~~~~~~~~~~~~~~ note.c:970: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] 970 | if ((pn = FindNote((int) client_data)) == NULL) | ^ note.c:998:3: warning: call to undeclared function 'unlink'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 998 | unlink(pn->pn_file); | ^ note.c:999:3: warning: call to undeclared library function 'free' with type 'void (void *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 999 | free(pn->pn_file); | ^ note.c:999:3: note: include the header or explicitly provide a declaration for 'free' note.c:956:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 956 | ConfirmDestroy(w, client_data, call_data) | ^ note.c:135: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] 135 | static void ConfirmDestroy(); | ^ note.c:1013:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1013 | CancelDestroy(w, client_data, call_data) | ^ note.c:134: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] 134 | static void CancelDestroy(); | ^ note.c:1039:2: warning: call to undeclared function 'ClearTitle'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1039 | ClearTitle(); | ^ note.c:1044: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] 1044 | if ((pn = FindNote(*(int *) client_data)) == NULL) | ^ note.c:1050:19: warning: call to undeclared function 'XawDialogGetValueString'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1050 | title = (String) XawDialogGetValueString(dialog); | ^ note.c:1050:10: warning: cast to 'String' (aka 'char *') from smaller integer type 'int' [-Wint-to-pointer-cast] 1050 | title = (String) XawDialogGetValueString(dialog); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ note.c:1056: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] 1056 | pn->pn_title = SafeAlloc(strlen(title) + 1); | ^ note.c:1027:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1027 | OkayTitle(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 OkayTitle(); | ^ note.c:1081:2: warning: call to undeclared function 'ClearTitle'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1081 | ClearTitle(); | ^ note.c:1074:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1074 | CancelTitle(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 CancelTitle(); | ^ note.c:1098: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] 1098 | notes = (PostItNote *) SafeAlloc(sizeof(PostItNote)); | ^ note.c:1105: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] 1105 | pn->pn_next = (PostItNote *) SafeAlloc(sizeof(PostItNote)); | ^ note.c:1115: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] 1115 | pn->pn_text = SafeAlloc(pn->pn_textsize); | ^ note.c:1089:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1089 | AllocNote(index) | ^ note.c:124: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] 124 | static PostItNote *AllocNote(); | ^ note.c:1130:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1130 | FindNote(index) | ^ note.c:123: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] 123 | static PostItNote *FindNote(); | ^ note.c:1172:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 1172 | GetNotePosition(w, x, y) | ^ | int note.c:1172:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] note.c:1220:1: warning: non-void function does not return a value [-Wreturn-type] 1220 | } | ^ note.c:1227:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1227 | StructureNotifyHandler(w, client_data, event, continue_to_dispatch) | ^ note.c:139:23: 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 XtEventHandler StructureNotifyHandler(); | ^ note.c:1244:1: warning: non-void function does not return a value [-Wreturn-type] 1244 | } | ^ note.c:1250:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1250 | NoteProtocolsHandler(w, client_data, event, continue_to_dispatch) | ^ note.c:137: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] 137 | static void NoteProtocolsHandler(); | ^ note.c:1275:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1275 | StringToNoteSize(s) | ^ note.c:142: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] 142 | static int StringToNoteSize(); | ^ note.c:12:14: warning: unused variable 'RCSid' [-Wunused-variable] 12 | static char *RCSid = "$Header: /home/harbor/davy/stuff/xpostit/RCS/note.c,v 1.20 1992/12/11 13:03:56 davy Exp $"; | ^~~~~ 97 warnings generated. --- title.o --- clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -I/opt/pkg/include -c title.c --- plaid.o --- plaid.c:12:14: warning: unused variable 'RCSid' [-Wunused-variable] 12 | static char *RCSid = "$Header: /home/harbor/davy/stuff/xpostit/RCS/plaid.c,v 1.6 1992/12/10 16:39:38 davy Exp $"; | ^~~~~ 1 warning generated. --- util.o --- clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -I/opt/pkg/include -c util.c --- title.o --- title.c:71:22: warning: unused variable 'nwidgets' [-Wunused-variable] 71 | register int nargs, nwidgets; | ^~~~~~~~ title.c:63:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 63 | GetNoteTitle(pn, okayCallback, cancelCallback) | ^ title.c:153:1: warning: non-void function does not return a value [-Wreturn-type] 153 | } | ^ title.c:12:14: warning: unused variable 'RCSid' [-Wunused-variable] 12 | static char *RCSid = "$Header: /home/harbor/davy/stuff/xpostit/RCS/title.c,v 1.6 1992/12/10 16:39:38 davy Exp $"; | ^~~~~ 4 warnings generated. --- version.o --- clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -I/opt/pkg/include -c version.c --- util.o --- util.c:76: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] 76 | char *getenv(); | ^ /System/Volumes/Data/Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/_stdlib.h:162:18: note: conflicting prototype is here 162 | char *_LIBC_CSTR getenv(const char *); | ^ util.c:92:23: warning: call to undeclared function 'getuid'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 92 | if ((pwd = getpwuid(getuid())) == NULL) { | ^ util.c:105: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] 105 | s = SafeAlloc(strlen(fname) + 1); | ^ util.c:121: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] 121 | s = SafeAlloc(strlen(fname) + 1); | ^ util.c:114:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 114 | MakeFname(index) | ^ util.c:130:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 130 | SafeAlloc(nbytes) | ^ In file included from util.c:51: ./xpostit.h:164: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] 164 | char *SafeAlloc(); | ^ util.c:12:14: warning: unused variable 'RCSid' [-Wunused-variable] 12 | static char *RCSid = "$Header: /home/harbor/davy/stuff/xpostit/RCS/util.c,v 1.6 1992/12/11 13:03:56 davy Exp $"; | ^~~~~ 8 warnings generated. --- version.o --- version.c:12:14: warning: unused variable 'XPostItVersion' [-Wunused-variable] 12 | static char *XPostItVersion = | ^~~~~~~~~~~~~~ 1 warning generated. --- xpostit.o --- --- xpostit._man --- --- xpostit.o --- clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -I/opt/pkg/include -c xpostit.c --- xpostit._man --- rm -f xpostit._man if test -z "" ; then cd `dirname xpostit` && ln -s `basename xpostit.man` `basename xpostit._man`; else /usr/bin/cpp -undef -traditional -D__GNUC__ -D__apploaddir__=/opt/pkg/lib/X11/app-defaults -D__appmansuffix__=1 -D__filemansuffix__=5 -D__libmansuffix__=3 -D__miscmansuffix__=7 -D__drivermansuffix__=4 -D__adminmansuffix__=8 -D__projectroot__=/opt/pkg -D__xconfigfile__=xorg.conf -D__xconfigdir__=/opt/pkg/lib/X11 -D__xlogfile__=Xorg -D__xservername__=Xorg -D__xorgversion__="\"`echo 7 7 0 | sed -e 's/ /./g' -e 's/^/Version\\ /'`\" \"X Version 11\"" -D__vendorversion__="`echo 7 7 0 | sed -e 's/ /./g' -e 's/^/Version\\ /'` X.Org" < 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 --- xpostit.o --- xpostit.c:181:28: warning: incompatible pointer types passing 'char **' to parameter of type 'ArgList' (aka 'Arg *') [-Wincompatible-pointer-types] 181 | XtNumber(resources), argv, argc); | ^~~~ /var/tmp/work/x11/xpostit/work/.buildlink/include/X11/Intrinsic.h:1571:25: note: passing argument to parameter here 1571 | ArgList /* args */, | ^ xpostit.c:187:2: warning: call to undeclared function 'SetNoteDir'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 187 | SetNoteDir(); | ^ xpostit.c:221:2: warning: call to undeclared function 'LoadSavedNotes'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 221 | LoadSavedNotes(); | ^ xpostit.c:122:6: warning: unused variable 'args' [-Wunused-variable] 122 | Arg args[4]; | ^~~~ xpostit.c:125:15: warning: unused variable 'nargs' [-Wunused-variable] 125 | register int nargs; | ^~~~~ xpostit.c:118:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 118 | main(argc, argv) | ^ xpostit.c:258:35: warning: passing 'char[1]' to parameter of type 'const unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 258 | XA_STRING, 8, PropModeAppend, "", 0); | ^~ /var/tmp/work/x11/xpostit/work/.buildlink/include/X11/Xlib.h:2085:38: note: passing argument to parameter here 2085 | _Xconst unsigned char* /* data */, | ^ xpostit.c:234:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 234 | WMProtocolsHandler(w, client_data, event, continue_to_dispatch) | ^ xpostit.c:109: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] 109 | static void WMProtocolsHandler(); | ^ xpostit.c:12:14: warning: unused variable 'RCSid' [-Wunused-variable] 12 | static char *RCSid = "$Header: /home/harbor/davy/stuff/xpostit/RCS/xpostit.c,v 1.7 1992/12/10 16:39:38 davy Exp $"; | ^~~~~ 10 warnings generated. --- xpostit --- rm -f xpostit clang -o xpostit -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -L/opt/pkg/lib -L/opt/pkg/lib Plaid.o confirm.o menu.o note.o plaid.o title.o util.o version.o xpostit.o -lXaw -lXmu -lXt -lSM -lICE -lXpm -lXext -lX11