WARNING: [license.mk] Every package should define a LICENSE. ===> Building for xpostit-3.3.1nb4 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 Plaid.c:99: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:115: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:131:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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] p = XCreatePixmapFromBitmapData(display, window, plaid_bits, ^~~~~~~~~~ /Users/pbulk/build/x11/xpostit/work/.buildlink/include/X11/Xlib.h:1610:22: note: passing argument to parameter here 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] DestroyPlaid(w) ^ Plaid.c:12:14: warning: unused variable 'RCSid' [-Wunused-variable] static char *RCSid = "$Header: /home/harbor/davy/stuff/xpostit/RCS/Plaid.c,v 1.6 1992/12/10 16:39:38 davy Exp $"; ^ 10 warnings generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -I/opt/pkg/include -c confirm.c confirm.c:56: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: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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] void ConfirmIt(); ^ confirm.c:12:14: warning: unused variable 'RCSid' [-Wunused-variable] static char *RCSid = "$Header: /home/harbor/davy/stuff/xpostit/RCS/confirm.c,v 1.5 1992/12/09 20:15:02 davy Exp $"; ^ 3 warnings generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -I/opt/pkg/include -c menu.c menu.c:123:58: warning: incompatible integer to pointer conversion passing 'int' to parameter of type 'XtPointer' (aka 'void *') [-Wint-conversion] XtAddCallback(entry, XtNcallback, HandleMenuSelection, i); ^ /Users/pbulk/build/x11/xpostit/work/.buildlink/include/X11/Intrinsic.h:1258:1: note: passing argument to parameter here ); ^ menu.c:145:10: warning: cast to smaller integer type 'int' from 'caddr_t' (aka 'char *') [-Wpointer-to-int-cast] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static void HandleMenuSelection(); ^ menu.c:12:14: warning: unused variable 'RCSid' [-Wunused-variable] static char *RCSid = "$Header: /home/harbor/davy/stuff/xpostit/RCS/menu.c,v 1.6 1992/12/11 13:03:56 davy Exp $"; ^ 11 warnings generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -I/opt/pkg/include -c note.c 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] VirtualRootWindow(dpy, screen) ^ ./vroot.h:57:5: warning: passing 'long *' to parameter of type 'unsigned long *' converts between pointers to integer types with different sign [-Wpointer-sign] &nitems, &bytesafter, ^~~~~~~ /Users/pbulk/build/x11/xpostit/work/.buildlink/include/X11/Xlib.h:2696:39: note: passing argument to parameter here 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] &nitems, &bytesafter, ^~~~~~~~~~~ /Users/pbulk/build/x11/xpostit/work/.buildlink/include/X11/Xlib.h:2697:44: note: passing argument to parameter here 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] void CreateNewNote(); ^ note.c:241:8: warning: incompatible redeclaration of library function 'realloc' [-Wincompatible-library-redeclaration] 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] 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 C2x [-Wdeprecated-non-prototype] pn = AllocNote(n); ^ note.c:366: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:372:27: 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_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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] MakeNoteWidget(pn); ^ note.c:475: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:475: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:490:30: warning: passing arguments to 'StringToNoteSize' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] void MakeNewNote(); ^ note.c:555:2: warning: cast to 'caddr_t' (aka 'char *') from smaller integer type 'int' [-Wint-to-pointer-cast] SetCallback(SaveNote, pn->pn_index); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./xpostit.h:110:28: note: expanded from macro 'SetCallback' 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] SetCallback(EraseNote, pn->pn_index); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./xpostit.h:110:28: note: expanded from macro 'SetCallback' 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] SetCallback(DestroyNote, pn->pn_index); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./xpostit.h:110:28: note: expanded from macro 'SetCallback' 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] SetCallback(TitleNote, pn->pn_index); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./xpostit.h:110:28: note: expanded from macro 'SetCallback' 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] (XtEventHandler *) StructureNotifyHandler, (XtPointer) pn); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * /Users/pbulk/build/x11/xpostit/work/.buildlink/include/X11/Intrinsic.h:849:31: note: passing argument to parameter here 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static void MakeNoteWidget(); ^ note.c:719: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:719: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:726: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:731:2: warning: call to undeclared function 'GetNotePosition'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 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] 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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static void SaveNote(); ^ note.c:823: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:823: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:841: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:843: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:848: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:805: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: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 EraseNote(); ^ note.c:868: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:868: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:872: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:874: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:879: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:855: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: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 DestroyNote(); ^ note.c:895: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:895: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:901:2: warning: call to undeclared function 'GetNoteTitle'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static void TitleNote(); ^ note.c:924: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:924: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:908: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: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 ConfirmErase(); ^ note.c:942: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: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 CancelErase(); ^ note.c:970: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:970: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:998:3: warning: call to undeclared function 'unlink'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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] 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 C2x [-Wdeprecated-non-prototype] 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] title = (String) XawDialogGetValueString(dialog); ^ note.c:1050:10: warning: cast to 'String' (aka 'char *') from smaller integer type 'int' [-Wint-to-pointer-cast] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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] ClearTitle(); ^ note.c:1074:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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] 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 C2x [-Wdeprecated-non-prototype] note.c:1220:1: warning: non-void function does not return a value [-Wreturn-type] } ^ note.c:1227:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static XtEventHandler StructureNotifyHandler(); ^ note.c:1244:1: warning: non-void function does not return a value [-Wreturn-type] } ^ note.c:1250:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static int StringToNoteSize(); ^ note.c:12:14: warning: unused variable 'RCSid' [-Wunused-variable] 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. 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 plaid.c:12:14: warning: unused variable 'RCSid' [-Wunused-variable] 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. 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 title.c:71:22: warning: unused variable 'nwidgets' [-Wunused-variable] 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 C2x [-Wdeprecated-non-prototype] GetNoteTitle(pn, okayCallback, cancelCallback) ^ title.c:153:1: warning: non-void function does not return a value [-Wreturn-type] } ^ title.c:12:14: warning: unused variable 'RCSid' [-Wunused-variable] 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. 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 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 C2x, conflicting with a previous declaration [-Wdeprecated-non-prototype] char *getenv(); ^ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/stdlib.h:147:7: note: conflicting prototype is here char *getenv(const char *); ^ util.c:92:23: warning: call to undeclared function 'getuid'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] char *SafeAlloc(); ^ util.c:12:14: warning: unused variable 'RCSid' [-Wunused-variable] 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. 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 version.c:12:14: warning: unused variable 'XPostItVersion' [-Wunused-variable] static char *XPostItVersion = ^ 1 warning generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -I/opt/pkg/include -c xpostit.c xpostit.c:181:28: warning: incompatible pointer types passing 'char **' to parameter of type 'ArgList' (aka 'Arg *') [-Wincompatible-pointer-types] XtNumber(resources), argv, argc); ^~~~ /Users/pbulk/build/x11/xpostit/work/.buildlink/include/X11/Intrinsic.h:1571:25: note: passing argument to parameter here 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] SetNoteDir(); ^ xpostit.c:221:2: warning: call to undeclared function 'LoadSavedNotes'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] LoadSavedNotes(); ^ xpostit.c:122:6: warning: unused variable 'args' [-Wunused-variable] Arg args[4]; ^ xpostit.c:125:15: warning: unused variable 'nargs' [-Wunused-variable] 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 C2x [-Wdeprecated-non-prototype] 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] XA_STRING, 8, PropModeAppend, "", 0); ^~ /Users/pbulk/build/x11/xpostit/work/.buildlink/include/X11/Xlib.h:2085:38: note: passing argument to parameter here _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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static void WMProtocolsHandler(); ^ xpostit.c:12:14: warning: unused variable 'RCSid' [-Wunused-variable] 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. 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 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