WARNING: [license.mk] Every package should define a LICENSE. ===> Building for tgif-4.2.5nb2 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 -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c tgif.c tgif.c:136:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetProgramName(FileName) ^ tgif.c:150:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int PrTgifLoad(FileName) ^ tgif.c:292:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void PrTgifDump(inbuf, tile_page_err_msg_id) ^ tgif.c:344:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DoPrTgif(argc, argv, from_prtgif) ^ tgif.c:501:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DoTgif(argc, argv) ^ tgif.c:588:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int main(argc, argv) ^ 6 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 -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c align.c align.c:78:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetSSSIForDistr(obj_ptr, vsel_ptr, update_pmvi) ^ align.c:828:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DistributeDirect(alignment) ^ align.c:843:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *GetDistrDirectMenuStr(i) ^ align.c:874:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] TgMenu *CreateDistributeDirectMenu(parent_menu, x, y, menu_info, ^ align.c:917:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int AutoJustifiable(obj_ptr) ^ align.c:942:17: warning: variable 'new_lty' set but not used [-Wunused-but-set-variable] int new_ltx, new_lty, dx, dy, ltx, lty; ^ align.c:942:39: warning: variable 'lty' set but not used [-Wunused-but-set-variable] int new_ltx, new_lty, dx, dy, ltx, lty; ^ align.c:938:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void AutoJustify(obj_ptr) ^ align.c:1022:27: warning: variable 'ssn' set but not used [-Wunused-but-set-variable] int curved=(-1), ssn=(-1); ^ align.c:1023:20: warning: variable 'ssvlist' set but not used [-Wunused-but-set-variable] IntPoint *ssvlist=NULL; ^ align.c:1411:34: warning: variable 'ssn' set but not used [-Wunused-but-set-variable] int changed=FALSE, n=0, ssn=(-1), curved=(-1); ^ align.c:1619:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void HoriAlignSubMenu(index) ^ align.c:1631:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RefreshHoriAlignMenu(menu) ^ align.c:1649:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] TgMenu *CreateHoriAlignMenu(parent_menu, x, y, menu_info, status_str_xlated) ^ align.c:1675:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int HoriAlignMenu(X, Y, TrackMenubar) ^ align.c:1692:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void VertAlignSubMenu(index) ^ align.c:1704:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RefreshVertAlignMenu(menu) ^ align.c:1722:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] TgMenu *CreateVertAlignMenu(parent_menu, x, y, menu_info, status_str_xlated) ^ align.c:1748:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int VertAlignMenu(X, Y, TrackMenubar) ^ align.c:1765:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void AlignDirect(alignment) ^ align.c:1784:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *GetAlignDirectMenuStr(i) ^ align.c:1844:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] TgMenu *CreateAlignDirectMenu(parent_menu, x, y, menu_info) ^ align.c:1883:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] TgMenu *CreateAlignObjsDirectMenu(parent_menu, x, y, menu_info, ^ align.c:1894:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] TgMenu *CreateAlignToGridDirectMenu(parent_menu, x, y, menu_info, ^ align.c:1905:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] TgMenu *CreateAlignToPageDirectMenu(parent_menu, x, y, menu_info, ^ 25 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 -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c animate.c animate.c:54:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void AnimateSend(PolyPtr, Speed, Pixel) ^ animate.c:222:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void AnimateFlashColor(ObjPtr, ColorIndex) ^ 2 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 -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c arc.c arc.c:85:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ArcDirection(xc, yc, x1, y1, x2, y2) ^ arc.c:116:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void PointsToArc(xc, yc, x1, y1, x2, y2, dir, int_degree, ltx, lty, w, h, ^ arc.c:171:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ArcRealX2Y2(ArcPtr, RealX2, RealY2) ^ arc.c:184:8: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] double GetRadianInArc(arc_ptr, x, y) ^ arc.c:194:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void GetArcArrowInfo(obj_ptr, ptip_vs1, ptail_vs1, vs1, pa_angle1, ^ arc.c:398:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void CalcArcOBBox(ObjPtr) ^ arc.c:483:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void CalcArcBBox(obj_ptr, obbox, bbox) ^ arc.c:518:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DumpArcPSPath(FP, xc, yc, xr, yr, dir, a1, a2, outline, blank1, blank2) ^ arc.c:560:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DumpArcArrows(FP, obj_ptr) ^ arc.c:594:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DumpArcPath(FP, ObjPtr, xc, yc, xr, yr, dir, angle1, angle2, ^ arc.c:651:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DumpArcObj(FP, ObjPtr) ^ arc.c:658:8: warning: variable 'x1' set but not used [-Wunused-but-set-variable] int x1, y1, aw, ah; ^ arc.c:658:12: warning: variable 'y1' set but not used [-Wunused-but-set-variable] int x1, y1, aw, ah; ^ arc.c:658:16: warning: variable 'aw' set but not used [-Wunused-but-set-variable] int x1, y1, aw, ah; ^ arc.c:658:20: warning: variable 'ah' set but not used [-Wunused-but-set-variable] int x1, y1, aw, ah; ^ arc.c:775:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int NeedsToCacheArcObj(ObjPtr) ^ arc.c:785:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void MakeArcRotatedVs(obj_ptr, oval_vs, angle1, angle2, ^ arc.c:1038:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void MakeCachedArc(ObjPtr) ^ arc.c:1115:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DrawArcObj(window, XOff, YOff, ObjPtr) ^ arc.c:1231:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] struct ObjRec *CreateArcObj(xc, yc, x1, y1, x2, y2, dir, ltx, lty, w, h, ^ arc.c:1313:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int Colinear(Ax, Ay, Dx, Dy, Cx, Cy) ^ arc.c:1336:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int SegmentIntersects(Ax, Ay, Bx, By, Cx, Cy, Dx, Dy) ^ arc.c:1403:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int GetCenter(Ax, Ay, Cx, Cy, Bx, By, pcx, pcy, pdir) ^ arc.c:1519:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void HighLightInContinueArc(drawing_arc, OrigX, OrigY, saved_x, saved_y, ^ arc.c:1571:19: warning: variable 'obj_ptr' set but not used [-Wunused-but-set-variable] struct ObjRec *obj_ptr; ^ arc.c:1562:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ContinueArc(OrigX, OrigY) ^ arc.c:1766:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DrawArc(input) ^ arc.c:1785:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SaveArcObj(FP, ObjPtr) ^ arc.c:1826:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ReadArcObj(FP, Inbuf, ObjPtr) ^ arc.c:2057:26: warning: format string is not a string literal (potentially insecure) [-Wformat-security] sprintf(gszMsgBox, TgLoadString(STID_WARN_INCONSIST_ARC_DIR)); ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^~~~~~~~~~~ arc.c:2057:26: note: treat the string as an argument to avoid this sprintf(gszMsgBox, TgLoadString(STID_WARN_INCONSIST_ARC_DIR)); ^ "%s", /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^ arc.c:2066:26: warning: format string is not a string literal (potentially insecure) [-Wformat-security] sprintf(gszMsgBox, TgLoadString(STID_WARN_INCONSIST_ARC_DIR)); ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^~~~~~~~~~~ arc.c:2066:26: note: treat the string as an argument to avoid this sprintf(gszMsgBox, TgLoadString(STID_WARN_INCONSIST_ARC_DIR)); ^ "%s", /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^ arc.c:2171:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetArcPropMask(ObjPtr, plMask, plSkip, pProp) ^ arc.c:2201:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void FreeArcObj(ObjPtr) ^ arc.c:2215:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ParseArcSpec(spec, seperator, radius, dir, theta1, theta2, error_str) ^ 34 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 -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c attr.c attr.c:81:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void LinkInAttr(PrevPtr, NextPtr, AttrPtr) ^ attr.c:100:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void FreeAttr(AttrPtr) ^ attr.c:110:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void UnlinkAttr(AttrPtr) ^ attr.c:134:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void UpdAttrOwner(first_attr, owner_obj) ^ attr.c:145:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *FindEqual(s) ^ attr.c:152:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ParseAttrStr(buf, name, name_sz, value, value_sz) ^ attr.c:199:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void UpdateAttr(TextPtr, AttrPtr) ^ attr.c:230:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DrawAttrs(Win, XOff, YOff, AttrPtr) ^ attr.c:247:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void MoveAttrs(AttrPtr, Dx, Dy) ^ attr.c:258:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DelAllAttrs(AttrPtr) ^ attr.c:270:17: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] struct AttrRec *AddAttrByNameAndValue(ObjPtr, AttrName, AttrValue) ^ attr.c:360:17: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] struct AttrRec *NewAttr(OwnerObjPtr, ObjPtr, Inherited) ^ attr.c:384:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DupAnAttr(FromAttrPtr, ToAttrPtr) ^ attr.c:405:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DupAttrs(FromObjPtr, ToObjPtr) ^ attr.c:425:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void AddAttr(ObjPtr, TextObjPtr) ^ attr.c:520:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SaveAttr(FP, AttrPtr) ^ attr.c:546:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SaveAttrs(FP, BotAttrPtr) ^ attr.c:569:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *ReadAttrString(Str) ^ attr.c:590:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int FreeBufAndReturn(line, rc) ^ attr.c:598:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ReadAttr(FP, AttrPtr) ^ attr.c:674:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] struct ObjRec *FindTopLevelObjWithType(type_str) ^ attr.c:693:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ObjMightChangeForShowAndUpdAttrNames(ObjPtr) ^ attr.c:709:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void UpdateFirstTextStringWithAttrNameAndValue(ObjPtr, AttrPtr) ^ attr.c:723:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int DoShowAndUpdAttrNames(ObjPtr, Force) ^ attr.c:974:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DetachGroupAttrs(ObjPtr, TopSelPtr, BotSelPtr) ^ attr.c:1018:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DetachAllObjAttrs(obj_ptr, TopSelPtr, BotSelPtr) ^ attr.c:1147:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void UpdAttr(AttrPtr) ^ attr.c:1163:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int MoveOneAttr(ObjPtr, AttrPtr) ^ attr.c:1310:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ChangeAttrJust(ObjPtr, AttrPtr) ^ attr.c:1396:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] TgMenu *CreateAttrMenu(parent_menu, x, y, num_items, menu_strings, ^ attr.c:1463:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void FreeEditAttrInfo(pEditAttrInfo) ^ attr.c:1467:27: warning: variable 'fore_colors' set but not used [-Wunused-but-set-variable] int i=0, num_attrs=0, *fore_colors=NULL, *attr_indices=NULL; ^ attr.c:1467:46: warning: variable 'attr_indices' set but not used [-Wunused-but-set-variable] int i=0, num_attrs=0, *fore_colors=NULL, *attr_indices=NULL; ^ attr.c:1500:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int HasEditAttrsInContextMenu(obj_ptr, pp_name_attr) ^ attr.c:1516:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void FreeRestrictedAttrNames(ppsz_restricted, num_restricted) ^ attr.c:1532:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void GetRestrictedAttrNames(restricted_attr_obj, pppsz_restricted, ^ attr.c:1584:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void GetAttrGroupAttrNames(restricted_attr_obj, group_index, pppsz_restricted, ^ attr.c:1616:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int IsRestrictedAttr(attr_name, ppsz_restricted, num_restricted) ^ attr.c:1630:15: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] EditAttrInfo *CreateEditAttrInfo(obj_ptr) ^ attr.c:1718:15: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] EditAttrInfo *CreateEditAttrGroupInfo(obj_ptr) ^ attr.c:1858:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void CopyAndUpdateAttrs(ToObjPtr, FromObjPtr) ^ attr.c:1929:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ToggleNamedAttrShown(attr_name) ^ attr.c:2083:10: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] DspList *FileAttrNameListing(ObjPtr, pn_entries, pCheckArray) ^ attr.c:2140:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int EditAttrCheckUpdate(pp_dsp_ptr, ppsz_entries, pn_num_entries, ^ attr.c:2188:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int EditAttrNames(TopStr, ObjAttrDspList, entries, num_entries, pCheckArray) ^ attr.c:2212:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int BlankStr(s) ^ attr.c:2405:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int GetAttrNamesCount(buf) ^ attr.c:2428:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetAttrGroupInfoDisplayedNames(pagi) ^ attr.c:2455:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void FreeAttrGroupInfo(pagi) ^ attr.c:2488:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ParseAttrGroupXDef(group_index, xdef_line, buf) ^ 50 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 -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c auxtext.c auxtext.c:73:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void GetStrSizeInfo(pDynStr, w, lbearing, rextra) ^ auxtext.c:85:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int GetNumberOfMiniLines(minilines) ^ auxtext.c:96:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int IsHex(ch, pn_val) ^ auxtext.c:97:9: warning: promoted type 'int' of K&R function parameter is not compatible with the parameter type 'char' declared in a previous prototype [-Wknr-promoted-parameter] char ch; ^ ./auxtext.e:56:33: note: previous declaration is here extern int IsHex ARGS_DECL((char, int*)); ^ auxtext.c:115:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int InputOctalString(pszBuf, pnBufSize) ^ auxtext.c:129:26: warning: format string is not a string literal (potentially insecure) [-Wformat-security] sprintf(gszMsgBox, TgLoadString(STID_INPUT_STR)); ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^~~~~~~~~~~ auxtext.c:129:26: note: treat the string as an argument to avoid this sprintf(gszMsgBox, TgLoadString(STID_INPUT_STR)); ^ "%s", /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^ auxtext.c:226:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int CharIsCntrlINS(key_ev, key_sym) ^ auxtext.c:238:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int CharIsShiftINS(key_ev, key_sym) ^ auxtext.c:250:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int CharIsCntrlShiftINS(key_ev, key_sym) ^ auxtext.c:273:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int CharIsESC(key_ev, psz_buf, key_sym, pn_has_ch) ^ auxtext.c:290:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int CharIsCRorLF(key_ev, psz_buf, key_sym, pn_has_ch) ^ auxtext.c:309:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int CharIsDEL(key_ev, psz_buf, key_sym, pn_has_ch) ^ auxtext.c:324:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int CharIsBS(key_ev, psz_buf, key_sym, pn_has_ch, left_is_BS) ^ auxtext.c:343:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int CharIsBSorDEL(key_ev, psz_buf, key_sym, pn_has_ch, left_is_BS) ^ auxtext.c:362:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int CharIsTAB(key_ev, psz_buf, key_sym, pn_has_ch) ^ auxtext.c:380:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int CharIsHome(key_ev, psz_buf, key_sym, pn_has_ch) ^ auxtext.c:389:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int CharIsEnd(key_ev, psz_buf, key_sym, pn_has_ch) ^ auxtext.c:398:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int CharIsCntrlSpace(key_ev, psz_buf, key_sym, pn_has_ch) ^ auxtext.c:417:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void TranslateKeys(s, key_sym) ^ auxtext.c:447:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void GetTransformedTextBBoxAbsVs(ObjPtr, LBearing, RightExtra, Vs) ^ auxtext.c:470:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetTextOBBox(ObjPtr, Just, W, H, LBearing, RightExtra, Rotate) ^ auxtext.c:565:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetTextBBox(ObjPtr, Just, W, H, LBearing, RightExtra, Rotate) ^ auxtext.c:621:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetTextOrigBBoxes(ObjPtr, Just, W, H, LBearing, RightExtra, Rotate) ^ auxtext.c:644:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int UpdTextBBox(ObjPtr) ^ auxtext.c:700:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int PixelOnOff(image, col_start, row_start, scale) ^ auxtext.c:735:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int PaintBackingPixmap(text_ptr, bbox_w, bbox_h, min_lbearing, max_rextra, ^ auxtext.c:836:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void MakeCachedTextBitmap(ObjPtr) ^ auxtext.c:1109:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void UpdateOuterInnerSel(obj_ptr) ^ auxtext.c:1121:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] struct ObjRec *SubFindTextObj(ObjPtr, XOff, YOff, obj_to_be_found) ^ auxtext.c:1198:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] struct ObjRec *FindTextObj(XOff, YOff, obj_to_be_found) ^ auxtext.c:1331:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DumpTextPath(FP, ObjPtr) ^ auxtext.c:1383:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DumpSimpleTextBBoxPath(FP, just, x, lty, rby, indent) ^ auxtext.c:1434:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DumpTextFill(FP, ObjPtr) ^ auxtext.c:1543:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DumpTextObj(FP, ObjPtr) ^ auxtext.c:1614:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int NeedToCacheStrSeg(pStrSeg) ^ auxtext.c:1621:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int NeedToCacheStrBlock(pStrBlock) ^ auxtext.c:1646:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int NeedToCacheMiniLine(pMiniLine) ^ auxtext.c:1660:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int NeedToCacheMiniLines(minilines) ^ auxtext.c:1674:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int NeedsToCacheTextObj(ObjPtr) ^ auxtext.c:1685:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SaveString(FP, S) ^ auxtext.c:1706:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SaveDoubleByteString(FP, S) ^ auxtext.c:1732:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SaveStrSeg(FP, pStrSeg) ^ auxtext.c:1771:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SaveAStrBlock(FP, pStrBlock) ^ auxtext.c:1839:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SaveStrBlocks(FP, pFirstStrBlock) ^ auxtext.c:1872:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SaveAMiniLine(FP, pMiniLine) ^ auxtext.c:1895:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SaveMiniLines(FP, minilines) ^ auxtext.c:1927:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void CombineOverUnderYOffsets(underline_y_offset, overline_y_offset, ^ auxtext.c:1936:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void UncombineOverUnderYOffsets(combined, pn_underline_y_offset, ^ auxtext.c:1955:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SaveTextObj(FP, ObjPtr) ^ auxtext.c:2013:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SaveHexString(FP, buf) ^ auxtext.c:2035:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *ReadString(Str) ^ auxtext.c:2074:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] StrSegInfo *CreateStrSegFromString(buf, pOwnerStrBlock) ^ auxtext.c:2108:15: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] StrBlockInfo *CreateStrBlockFromString(buf, pOwnerMiniLine) ^ auxtext.c:2121:15: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] MiniLineInfo *CreateMiniLineFromString(buf, ppFirstMiniLine, ppLastMiniLine) ^ auxtext.c:2173:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] struct ObjRec *FormTextObjectFromFile(FP, AbsX, AbsBaselineY) ^ auxtext.c:2239:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int PaintLeftText(Str, Just, LtX, LtY) ^ auxtext.c:2265:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RepaintFirstStr(ObjPtr, Str) ^ 57 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 -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c box.c box.c:71:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void MyBox(window, gc, x1, y1, x2, y2) ^ box.c:86:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DumpBoxPath(FP, ObjPtr, LtX, LtY, RbX, RbY, Width, Pen, Dash, TransPat) ^ box.c:143:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DumpBoxObj(FP, ObjPtr) ^ box.c:249:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DrawBoxObj(win, XOff, YOff, ObjPtr) ^ box.c:321:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int CreateBoxObj(X1, Y1, X2, Y2, CreateAbsolute) ^ box.c:395:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ContinueBox(OrigX, OrigY) ^ box.c:507:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DrawBox(input) ^ box.c:543:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SaveBoxObj(FP, ObjPtr) ^ box.c:576:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ReadBoxObj(FP, Inbuf, ObjPtr) ^ box.c:814:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetBoxPropMask(ObjPtr, plMask, plSkip, pProp) ^ box.c:838:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void FreeBoxObj(ObjPtr) ^ 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 -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c button.c button.c:59:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int GetButtonFontStyle(pButtonFontInfo) ^ button.c:102:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ButtonWidth(Str, MinLen, pButtonFontInfo) ^ button.c:134:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DisplayButtonInBBox(Win, Str, Len, BBox, Normal, HighLight, Width, ^ button.c:147:40: warning: variable 'top' set but not used [-Wunused-but-set-variable] int button_w=0, button_h=0, left=0, top=0, text_w=0; ^ 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 -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c chat.c chat.c:154:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void MoveResizeChatWindow(x, y, w, h) ^ chat.c:162:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int GetChatFontStyle(pnIsBold, pnIsItalic) ^ chat.c:217:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void GetChatNickName(buf, buf_sz) ^ chat.c:225:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int AddChatLineToListCtl(nick_name, color_index, font_style, buf) ^ chat.c:281:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ChatEventHandler(input, handling_pti) ^ chat.c:416:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int IsChatWindowEvent(input, ppti_handler_tidget_return) ^ chat.c:724:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ChatAppendChatLine(ptfi, nick_name, encoding, buf) ^ chat.c:755:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ChatAddUser(buf) ^ 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 -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c chinput.c 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 -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c choice.c choice.c:211:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ShowStipple(dpy, win, gc, bitmap, col, row, w, h) ^ choice.c:239:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void HighLightThreeDButton(choice, highlight) ^ choice.c:346:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ShowColor(PropagateWhereToPrint) ^ choice.c:958:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int NeedSelectTopObject(Choice, VertexTypeObj) ^ choice.c:968:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ShowCurChoiceMouseStatus(choice, state, cur_text_under_mouse) ^ choice.c:985:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetCurChoice(NewChoice) ^ choice.c:1194:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void TextVSpaceLoop(button_ev) ^ choice.c:1239:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RCBRadiusLoop(button_ev) ^ choice.c:1275:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ZoomLoop(button_ev) ^ choice.c:1356:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void FormatFloat(pfval, buf) ^ choice.c:1390:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void FormatAngle(angle, buf) ^ choice.c:1417:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ValidChoice(choice) ^ choice.c:1450:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ChoiceEventHandler(input) ^ choice.c:2001:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void HighLightModeThreeDButton(mode, highlight) ^ choice.c:2076:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ModeEventHandler(input) ^ 15 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 -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c choose.c choose.c:111:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int GetWorkingDirectory(buf, buf_sz) ^ choose.c:145:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int SetWorkingDirectory(dir) ^ choose.c:152:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void CalcBaseWinWidth(pni) ^ choose.c:182:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void CleanUpCheckArray(pCheckArray) ^ choose.c:208:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int CopyCheckArray(pCheckArrayTo, pCheckArrayFrom) ^ choose.c:248:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void NamesSetTitle(title_str) ^ choose.c:360:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void NamesAddButton(btn_str, btn_id) ^ choose.c:387:8: warning: variable 'block_h' set but not used [-Wunused-but-set-variable] int block_h, block_start; ^ choose.c:412:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DrawCheckbox(dpy, win, gc, x, y, w, h, checked) ^ choose.c:449:8: warning: comparison of array 'check_bits' equal to a null pointer is always false [-Wtautological-pointer-compare] if (check_bits == NULL) { } ^~~~~~~~~~ ~~~~ choose.c:457:22: warning: variable 'end' set but not used [-Wunused-but-set-variable] int len=0, top=0, end=0, checkbox_cols=0, text_left=0, box_offset=0, box_w=0; ^ choose.c:453:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RedrawItem(pni, index) ^ choose.c:705:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExposeOrMapNames(input) ^ choose.c:747:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int CreateNamesWindows(win_name) ^ choose.c:880:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int IsFirstEqChar(s, index) ^ choose.c:925:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void BackSpaceInNames(pn_changing, pn_selected_btn_index) ^ choose.c:1030:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ParseFileName(FullName, DirName, Name) ^ choose.c:1068:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void CharInNames(buf, pn_changing, pn_selected_btn_index) ^ choose.c:1209:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int GetNameEntryNum(RowOffset) ^ choose.c:1221:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ScrollItemCallback(pv_userdata) ^ choose.c:1245:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ScrollPageCallback(pv_userdata) ^ choose.c:1273:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int DoNameBtnScroll(scroll_page, scroll_dir, pbbox, pni) ^ choose.c:1326:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void NameScrollHandler(button_ev) ^ choose.c:1476:25: warning: variable 'box_offset' set but not used [-Wunused-but-set-variable] int checkbox_cols=0, box_offset=0, clicked_col=INVALID, check_updated=FALSE; ^ choose.c:1469:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int NameDspHandler(button_ev) ^ choose.c:1557:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ControlChar(key_ev, key_sym) ^ choose.c:1630:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void BackUpOneWord(pn_changing, pn_selected_btn_index) ^ choose.c:1675:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SpecialKeyInNames(key_ev, key_sym, pn_changing, pn_selected_btn_index) ^ choose.c:1732:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int GetBtnIndexFromBtnId(btn_id) ^ choose.c:1752:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void KeyPressInNames(key_ev, pn_changing, pn_selected_btn_index) ^ choose.c:1810:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ButtonPressInPath(button_ev) ^ choose.c:1864:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ButtonPressInNames(button_ev, pn_changing, pn_selected_btn_index) ^ choose.c:1950:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void NamesSetDefaultBtnId(def_btn_id, double_click_btn_id) ^ choose.c:1959:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void NamesSetStyle(edit_style, loop_once) ^ choose.c:1968:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void NamesSetEntries(dsp_ptr, entries, num_entries, p_check_array, ^ choose.c:1986:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void NamesSetCallback(pf_before_loop, pf_after_loop, pf_check_update) ^ choose.c:2013:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void NamesSetDir(dir_name) ^ choose.c:2058:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int GetParentRealDir(dir, buf, buf_sz) ^ choose.c:2138:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int Names(win_name, pn_selected_index, selected_str, str_sz, p_void) ^ 39 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 -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c cli_xcin.c 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 -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c convkinput.c convkinput.c:98:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void KinputSetConvOverSpot(nConvOverSpot) ^ convkinput.c:105:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void KinputTellCursorPosition(dpy, win, x, y) ^ convkinput.c:175:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Atom InternAtom(dpy, name) ^ convkinput.c:191:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void KinputBeginConversion (dpy, win) ^ convkinput.c:299:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void KinputCheckClientMessage (dpy, win, xclient) ^ convkinput.c:342:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void CvtCompoundTextToEuc(dst, src) ^ convkinput.c:428:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char* CvtCompoundTextToEuc_N(src, items) ^ convkinput.c:444:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char* KinputCheckConvProperty (dpy, win, xprop) ^ convkinput.c:490:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void KinputEndConversion (dpy, win) ^ convkinput.c:554:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void CvtJisToEuc(dst, src) ^ convkinput.c:620:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int CvtEucToJis(dst, src) ^ 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 -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c convxim.c convxim.c:89:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] CVListElem *FindXIC(win) ^ convxim.c:106:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DeleteXICInfo(pElem) ^ convxim.c:126:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void XIMClose(win) ^ convxim.c:183:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void XIMSetICFocus(dpy, win) ^ convxim.c:337:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void XIMNextEvent(dpy, win, xev_p) ^ convxim.c:361:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int XIMLookupString(key_ev, buf, buf_len, key_sym_p, c_stat_p) ^ convxim.c:398:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void XIMUnsetICFocus(win) ^ convxim.c:413:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void XIMSetConvOverSpot(gnOverTheSpot) ^ convxim.c:419:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void XIMTellCursorPosition(dpy, win, x, y) ^ 9 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 -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c cmd.c cmd.c:81:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void InsertCmd(PrevCmd, NextCmd, CmdPtr, ppFirstCmd, ppLastCmd) ^ cmd.c:103:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *GetCmdType(CmdType) ^ cmd.c:124:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] struct CmdRec *CreateCmdFromSerializationBuf(cmd_type, buf) ^ cmd.c:141:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void CopyAndInsertCmd(from_remote, serialization_buf, PrevCmd, NextCmd, CmdPtr, ^ cmd.c:186:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void UnlinkCmd(CmdPtr, ppFirstCmd, ppLastCmd) ^ cmd.c:202:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DeleteARedoRecord(CmdPtr, percent_start, percent_end) ^ cmd.c:354:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ClearRedoRecords(CmdPtr) ^ cmd.c:393:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void CopySel(from_top_sel, count, to_top_sel, to_bot_sel) ^ cmd.c:413:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void LinkJustTheObjects(TopSel, BotSel) ^ cmd.c:430:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void UndoNewCmd(CmdPtr) ^ cmd.c:463:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RedoNewCmd(CmdPtr) ^ cmd.c:499:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ObjHasFullID(obj_ptr, psz_full_id) ^ cmd.c:523:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int GetPositionFromFullID(psz_full_id) ^ cmd.c:555:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void UndoDeleteCmd(CmdPtr) ^ cmd.c:618:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int SetupBeforePointers(CmdPtr, modify_before_pointers, pp_actual_pos_before) ^ cmd.c:786:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int RedoDeleteCmd(CmdPtr) ^ cmd.c:856:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int UndoOrRedoMoveCmd(CmdPtr) ^ cmd.c:933:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void UpdateXPmObjectsInACmd(CmdPtr) ^ cmd.c:972:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int UpdatePixelInACmd(CmdPtr) ^ cmd.c:1023:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int RefreshColormap(nRedoing, CmdPtr) ^ cmd.c:1108:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int UndoOrRedoReplaceCmd(CmdPtr, HighLightSingleObj) ^ cmd.c:1315:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int UndoOrRedoOneToManyCmd(CmdPtr) ^ cmd.c:1455:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void UndoOrRedoGotoPageCmd(CmdPtr) ^ cmd.c:1468:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void UndoOrRedoWBSlideShow(CmdPtr) ^ cmd.c:1493:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetUndoRedoRestoreDrawingModeInfo(p_urrdmi, cur_choice, text_cursor_shown, ^ cmd.c:1508:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void UndoRedoRestoreDrawingMode(p_urrdmi) ^ cmd.c:1552:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void UndoACmd(CmdPtr, HighLight, nPerformAction) ^ cmd.c:1612:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int RedoACmd(CmdPtr, HighLight, nPerformAction) ^ cmd.c:1810:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] struct SelRec *PrepareStackingInfo(TopSel, BotSel, NumObjs, PreparePhase, ^ cmd.c:1873:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void PrepareStacking(TopSel, BotSel, NumObjs, PreparePhase) ^ cmd.c:1891:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void PrepareToRecord(CmdType, TopSel, BotSel, NumObjs) ^ cmd.c:1934:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void FreeAfterSel(CmdPtr) ^ cmd.c:1947:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void PrepareExtendedSerializationInfoForRecordCmd(SubCmdPtr, TopSel, BotSel, ^ cmd.c:1971:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RecordCmd(CmdType, SubCmdPtr, TopSel, BotSel, NumObjs) ^ cmd.c:2155:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void AbortPrepareCmd(CmdType) ^ cmd.c:2206:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void PrepareToReplaceAnObj(BeforeObjPtr) ^ cmd.c:2222:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RecordReplaceAnObj(AfterObjPtr) ^ cmd.c:2257:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RecordWBSlideShow(into_slideshow) ^ cmd.c:2273:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RecordWBChatALine(pSubCmdPtr) ^ 39 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 -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c color.c color.c:121:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DefaultColorArrays(Entries, ForePixels, Valid, InitRV, StatusStr) ^ color.c:150:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int GetDrawingBgPixel(index, pixel) ^ color.c:162:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int GetDrawingFgPixel(index, pixel) ^ color.c:174:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void GetDrawingFgColorStr(index, pixel, color_buf, buf_sz) ^ color.c:194:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TgifParseColor(psz_color, p_color) ^ color.c:218:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ParseAndAllocColorByName(colorname, color, red_req, green_req, blue_req) ^ color.c:359:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int InitColorFromXPixmap(pn_num_colors, pppsz_color_str) ^ color.c:1352:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int DrawAVerticalTab(color_index, x, y, skip) ^ color.c:1396:38: warning: variable 'y_start' set but not used [-Wunused-but-set-variable] int i, x=(windowPadding>>1), y=0, y_start; ^ color.c:1436:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int OneColorObject(ObjPtr, ColorIndex) ^ color.c:1616:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ChangeObjColor(ObjPtr, ColorIndex) ^ color.c:1699:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ChangeAllSelColor(ColorIndex, HighLight) ^ color.c:1715:11: warning: variable 'text_obj_created' set but not used [-Wunused-but-set-variable] int text_obj_created=FALSE, text_cursor_shown=FALSE; ^ color.c:1715:35: warning: variable 'text_cursor_shown' set but not used [-Wunused-but-set-variable] int text_obj_created=FALSE, text_cursor_shown=FALSE; ^ color.c:1817:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetUpColorMenuPixmap(fore_colors, init_rv, pixmap, rows, cols) ^ color.c:1838:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RefreshColorMenu(menu) ^ color.c:1856:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] TgMenu *CreateColorMenu(parent_menu, x, y, menu_info, status_str_xlated) ^ color.c:1911:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ColorMenu(X, Y, TrackMenubar) ^ color.c:1963:8: warning: comparison of array 'upend_bits' equal to a null pointer is always false [-Wtautological-pointer-compare] if (upend_bits == NULL) { } ^~~~~~~~~~ ~~~~ color.c:1967:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetAllColorLayersState(on_state) ^ color.c:1990:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void HandleClickInColorWindow(button_ev) ^ color.c:2101:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void HandleMotionInColorWindow(motion_ev) ^ color.c:2152:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ColorEventHandler(input) ^ color.c:2188:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ColorDummyEventHandler(input) ^ color.c:2208:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void UpdatePixelForStrSeg(pStrSeg, pUserData) ^ color.c:2233:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int UpdatePixel(ObjPtr) ^ color.c:2386:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void UpdateXPmObjects(ObjPtr) ^ color.c:2618:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SaveColors(FP) ^ color.c:2655:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ReadColors(FP, Inbuf) ^ color.c:2759:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DumpRGBColorLine(FP, ColorIndex, Indent, EndOfLine) ^ 30 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 -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c cutpaste.c cutpaste.c:135:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetCutBuffer(buf, bytes_to_write, buf_is_simple_string, buf_is_utf8_string) ^ cutpaste.c:188:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int WriteBufToCutBuffer(buf, bytes_to_write, buf_is_simple_string, ^ cutpaste.c:216:26: warning: format string is not a string literal (potentially insecure) [-Wformat-security] sprintf(gszMsgBox, TgLoadString(STID_CANT_ACQUIRE_X_SELECTION)); ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^~~~~~~~~~~ cutpaste.c:216:26: note: treat the string as an argument to avoid this sprintf(gszMsgBox, TgLoadString(STID_CANT_ACQUIRE_X_SELECTION)); ^ "%s", /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^ cutpaste.c:198:27: warning: variable 'setselowner_failed' set but not used [-Wunused-but-set-variable] int copy_failed=FALSE, setselowner_failed=FALSE; ^ cutpaste.c:365:29: warning: format string is not a string literal (potentially insecure) [-Wformat-security] sprintf(gszMsgBox, TgLoadString(STID_COPY_FAILED_OBJ_MAYBE_TOO_BIG)); ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^~~~~~~~~~~ cutpaste.c:365:29: note: treat the string as an argument to avoid this sprintf(gszMsgBox, TgLoadString(STID_COPY_FAILED_OBJ_MAYBE_TOO_BIG)); ^ "%s", /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^ cutpaste.c:368:29: warning: format string is not a string literal (potentially insecure) [-Wformat-security] sprintf(gszMsgBox, TgLoadString(STID_COPY_BUFFER_UPDATED)); ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^~~~~~~~~~~ cutpaste.c:368:29: note: treat the string as an argument to avoid this sprintf(gszMsgBox, TgLoadString(STID_COPY_BUFFER_UPDATED)); ^ "%s", /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^ cutpaste.c:248:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int CopyObjectToCutBuffer(force) ^ cutpaste.c:488:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] unsigned int PasteString(CutBuffer, highlight, record_cmd) ^ cutpaste.c:521:21: warning: variable 'pMiniLine' set but not used [-Wunused-but-set-variable] MiniLineInfo *pMiniLine=NULL; ^ cutpaste.c:621:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] struct ObjRec *CreateTmpBoxObj(LtX, LtY, RbX, RbY) ^ cutpaste.c:661:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void AssignNewObjIds(ObjPtr) ^ cutpaste.c:690:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int CutBufferType(cut_buffer) ^ cutpaste.c:708:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int GetObjsFromCutBuffer(cut_buffer, len, pp_top_obj, pp_bot_obj) ^ cutpaste.c:788:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void FreeSelectionOrCutBuffer(cut_buffer, from_selection) ^ cutpaste.c:799:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *FetchSelectionOrCutBuffer(pnLen, pnFromSelection) ^ cutpaste.c:1088:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *GetTextBytesFromWindowProperty(win, property, compound_text, pul_len, ^ cutpaste.c:1157:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *GetTextBytesFromGivenSelection(compound_text, pulLen, which_selection, ^ cutpaste.c:1326:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *GetTextBytesFromSelection(compound_text, pulLen) ^ cutpaste.c:1485:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SkipIntProp(lWhich, plSkip) ^ cutpaste.c:1492:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void TestStringProp(n1, n2, psz1, psz2, lWhich, plSkip) ^ cutpaste.c:1505:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetStringProp(n1, pn2, psz1, psz2) ^ cutpaste.c:1518:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void TestIntProp(n1, n2, lWhich, plSkip) ^ cutpaste.c:1526:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void TestFontProp(nDoubleByte1, nFont1, nStyle1, nDoubleByte2, nFont2, ^ cutpaste.c:1548:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void TestCTMProp(ctm1, transformed, ctm2, lWhich, plSkip) ^ cutpaste.c:1565:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetIntPropertyMask(lWhich, nValue, pszValue, plMask, plSkip, pProp) ^ cutpaste.c:1662:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetFontPropertyMask(nDoubleByte, nFont, nStyle, plMask, plSkip, pProp) ^ cutpaste.c:1686:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetCTMPropertyMask(ctm, plMask, plSkip, pProp) ^ cutpaste.c:1712:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetTextPropMask(ObjPtr, plMask, plSkip, pProp) ^ cutpaste.c:1750:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetPropMask(ObjPtr, plMask, plSkip, pProp) ^ cutpaste.c:1902:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int GetAngleFromCTM(ctm) ^ cutpaste.c:1942:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DoPasteAProperty(lWhich, pProp) ^ cutpaste.c:2015:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DoGetAProperty(lWhich, pProp) ^ cutpaste.c:2159:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void WriteIntProp(pszSec, pszKey, nValue) ^ cutpaste.c:2168:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void WriteStringProp(pszSec, pszKey, nValue, pszValue) ^ cutpaste.c:2178:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void WriteFontProp(pszSec, pszKey, nFont, nStyle) ^ cutpaste.c:2192:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void WriteCTMProp(pszSec, pszKey, nTransformed, ctm) ^ cutpaste.c:2209:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ParseIntProp(pszBuf, pnValue) ^ cutpaste.c:2217:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ParseStringProp(pszBuf, pnValue, pszValue) ^ cutpaste.c:2235:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ParseFontSzUnitProp(pszBuf, pnSzUnit) ^ cutpaste.c:2260:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ParseFontProp(pszBuf, pnDoubleByte, pnFont, pnStyle) ^ cutpaste.c:2290:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ParseCTMProp(pszBuf, pnTransformed, ctm) ^ cutpaste.c:2350:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void WritePropToIni(lWhich, pszSec, pszKey, pProp) ^ cutpaste.c:2405:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ParseAProp(lWhich, pszBuf, pProp) ^ cutpaste.c:2443:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ReadPropFromIni(pszSec, plMask, pCheckArray, pProp) ^ cutpaste.c:2597:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void FormatPropForDisplay(lWhich, pProp, ppir, pszBuf) ^ cutpaste.c:2662:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int GetPropSelection(pp_dsp_ptr, ppsz_entries, pn_num_entries, pn_marked_index, ^ cutpaste.c:2700:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int DoCopyProperties(pCheckArray, pProp) ^ cutpaste.c:2781:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int PropSetExists(pszPropSet) ^ cutpaste.c:2803:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int DoSaveProperties(pCheckArray, pProp) ^ cutpaste.c:2848:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int DoPasteProperties(pCheckArray, pProp) ^ cutpaste.c:2901:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int FreePropSelection(pp_dsp_ptr, ppsz_entries, pn_num_entries, pn_marked_index, ^ cutpaste.c:2951:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int PropSelectionCheckUpdate(pp_dsp_ptr, ppsz_entries, pn_num_entries, ^ cutpaste.c:3002:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SelectProperties(pszTitle, nWhich, pCheckArray, pProp) ^ cutpaste.c:3067:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int PrepareToCopyProperties(pProp, lMask, lSkip, pCheckArray) ^ cutpaste.c:3104:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int PrepareToPasteProperties(pszSec, plMask, pCheckArray, pProp) ^ cutpaste.c:3141:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int SetupProperties(pProp, plMask, plSkip, pCheckArray, nWhich) ^ cutpaste.c:3184:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void FixMasksForGetProperty(pProp, plMask, plSkip) ^ cutpaste.c:3224:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DoGetProperty(target_index) ^ cutpaste.c:3324:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void CopyProperties(nPrompt) ^ cutpaste.c:3364:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int WriteBufToIni(buf, ini_fname) ^ cutpaste.c:3396:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void PasteProperties(nPrompt) ^ cutpaste.c:3400:19: warning: variable 'lSkip' set but not used [-Wunused-but-set-variable] long lMask=0L, lSkip=0L; ^ cutpaste.c:3445:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int GetPropSetNames(pp_dsp_ptr, ppsz_entries, pn_num_entries, pn_marked_index, ^ cutpaste.c:3489:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int FreePropSetNames(pp_dsp_ptr, ppsz_entries, pn_num_entries, pn_marked_index, ^ cutpaste.c:3517:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int SelectPropSetForRestore(pszTitle, pszPropSet, nPropSetSize) ^ cutpaste.c:3542:19: warning: variable 'lSkip' set but not used [-Wunused-but-set-variable] long lMask=0L, lSkip=0L; ^ cutpaste.c:3616:10: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] DspList *IniSectionListing(pszSection, pszIniFile, pnEntries) ^ cutpaste.c:3659:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int EditIniSectionStrings(psz_title, dsp_ptr, entries, num_entries, ^ cutpaste.c:3682:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int DefEditIniSectionCheck(psz_key, psz_value) ^ cutpaste.c:3689:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int EditIniSectionDefAfterLoop(pp_dsp_ptr, ppsz_entries, pn_num_entries, ^ cutpaste.c:3729:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int EditIniSection(pszTitle, pszSection, pszIniFile, pf_after_loop) ^ cutpaste.c:3781:10: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] DspList *IniSectionKeysListing(pszSection, pszIniFile, pnEntries) ^ cutpaste.c:3819:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int SelectFromIniSectionStrings(psz_title, dsp_ptr, entries, num_entries, ^ cutpaste.c:3840:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *SelectFromIniSection(pszTitle, pszSection, pszIniFile) ^ cutpaste.c:3881:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void FreeRecentFilesListing(pkvi, max_count) ^ cutpaste.c:3896:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] KeyValInfo *RecentFilesListing(pnEntries) ^ cutpaste.c:3960:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void OpenARecentlyUsedFile(file_index) ^ cutpaste.c:3979:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void AddARecentlyUsedFile(path) ^ cutpaste.c:4083:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int CreateSimpleStringObj(buf) ^ cutpaste.c:4116:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SaveSimpleStringObj(FP, ObjPtr) ^ cutpaste.c:4135:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ReadSimpleStringObj(FP, Inbuf, ObjPtr) ^ cutpaste.c:4194:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void FreeSimpleStringObj(ObjPtr) ^ cutpaste.c:4205:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void UnInheritAllAttrs(obj_ptr) ^ cutpaste.c:4395:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int DoSetMarginsForImportMultipageTextFile(spec) ^ cutpaste.c:4426:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void GetCurMarginsForImportTextFile(buf) ^ cutpaste.c:4518:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int RefreshImportMutipageTextFileMenu(menu) ^ cutpaste.c:4537:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] TgMenu *CreateImportMutipageTextFileMenu(parent_menu, x, y, menu_info, ^ 87 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 -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c cursor.c cursor.c:254:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetTextCursor(window) ^ cursor.c:260:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetNullCursor(window) ^ cursor.c:266:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetWatchCursor(window) ^ cursor.c:276:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetDrawCursor(window) ^ cursor.c:282:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetFreeHandCursor(window) ^ cursor.c:288:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetVertexCursor(window) ^ cursor.c:294:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetRotateCursor(window) ^ cursor.c:300:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetRotatingCursor(window) ^ cursor.c:306:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetHoriShearCursor(window) ^ cursor.c:312:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetVertShearCursor(window) ^ cursor.c:318:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetMoveCursor(window) ^ cursor.c:324:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetHyperSpaceCursor(window) ^ cursor.c:330:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetFloodFillCursor(window) ^ cursor.c:336:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetDripCursor(window) ^ cursor.c:342:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetHandCursor(window) ^ cursor.c:348:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetDefaultCursor(window) ^ cursor.c:568:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void PutCursor(window, x, y, foreground) ^ cursor.c:619:8: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Cursor NewFontCursor(cursor_name) ^ cursor.c:632:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetWindowCursor(window, cursor) ^ cursor.c:639:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DeleteFontCursor(cursor) ^ 20 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 -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c dialog.c dialog.c:65:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] unsigned int CornerLoop(OrigX, OrigY) ^ dialog.c:90:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] unsigned int DrawWindowLoop(OrigX, OrigY, cursor, snap_to_grid) ^ dialog.c:142:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] unsigned int PickAPoint(OrigX, OrigY, cursor) ^ dialog.c:240:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetupMBButton(MBInfoPtr, BtnDesc, BtnCh, BtnID) ^ dialog.c:287:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void CalcFormatStringInBox(buf, xfs, font_height, format_box_w, pn_num_lines, ^ dialog.c:294:25: warning: variable 'max_len' set but not used [-Wunused-but-set-variable] int len=strlen(buf), max_len=0, max_w=0, max_h=0, total=0; ^ dialog.c:294:54: warning: variable 'total' set but not used [-Wunused-but-set-variable] int len=strlen(buf), max_len=0, max_w=0, max_h=0, total=0; ^ dialog.c:450:8: warning: comparison of array 'info_bits' equal to a null pointer is always false [-Wtautological-pointer-compare] if (info_bits == NULL) { } ^~~~~~~~~ ~~~~ dialog.c:432:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void CalcSimpleGeometry(MBInfoPtr, Message) ^ dialog.c:512:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void CalcGeometry(MBInfoPtr, Message) ^ dialog.c:585:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int SetupMBWindow(MBInfoPtr, Message, Title, IconAndBtns, IsDialog) ^ dialog.c:760:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DisplayInput(MBInfoPtr) ^ dialog.c:801:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int HandleMsgBoxKeyEvent(MBInfoPtr, input) ^ dialog.c:885:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int HandleDeleteMsgBox(MBInfoPtr) ^ dialog.c:905:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void HandlePasteInDialog(MBInfoPtr, input) ^ dialog.c:944:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int HandleMsgBoxBtnEvent(MBInfoPtr, input) ^ dialog.c:1037:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RefreshMsgBox(MBInfoPtr) ^ dialog.c:1128:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int MsgBox(Message, Title, IconAndBtns) ^ dialog.c:1235:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int DoDialog(Message, ReturnStr) ^ dialog.c:1351:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int Dialog(Message, Comment, ReturnStr) ^ 20 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 -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c drawing.c drawing.c:144:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetXorDrawGC(xor_pixel) ^ drawing.c:183:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DrawHorizOutline(Win, Y, X1, X2, XStart, XEnd) ^ drawing.c:204:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DrawVertOutline(Win, X, Y1, Y2, YStart, YEnd) ^ drawing.c:225:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DrawSymOutline(Win, XOff, YOff, ObjPtr) ^ drawing.c:248:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int NeedToDraw(ObjBBox) ^ drawing.c:366:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ShowInterrupt(CheckInterval) ^ drawing.c:404:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void HighLightDummyWindow1(highlight) ^ drawing.c:435:8: warning: comparison of array 'intr_bits' not equal to a null pointer is always true [-Wtautological-pointer-compare] if (intr_bits != NULL && trek_bits != NULL) { } /* do nothing but reference the variable */ ^~~~~~~~~ ~~~~ drawing.c:435:29: warning: comparison of array 'trek_bits' not equal to a null pointer is always true [-Wtautological-pointer-compare] if (intr_bits != NULL && trek_bits != NULL) { } /* do nothing but reference the variable */ ^~~~~~~~~ ~~~~ drawing.c:473:8: warning: comparison of array 'run_bits' not equal to a null pointer is always true [-Wtautological-pointer-compare] if (run_bits != NULL) { } /* do nothing but reference the variable */ ^~~~~~~~ ~~~~ drawing.c:441:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ShowRunning(dpy, win, win_w, win_h) ^ drawing.c:496:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DummiesEventHandler(input) ^ drawing.c:545:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int KeyPressEventIsEscape(key_ev) ^ drawing.c:560:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Bool CheckESC(p_display, p_ev, psz_arg) ^ drawing.c:590:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int CheckInterrupt(check_esc) ^ drawing.c:611:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DrawClippedPixmap(pixmap, win, gc, pixmap_w, pixmap_h, ltx, lty) ^ drawing.c:653:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void FillClippedRectangle(win, gc, ltx, lty, orig_w, orig_h) ^ drawing.c:692:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ObjInVisibleLayer(ObjPtr) ^ drawing.c:751:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int DrawObj(Win, ObjPtr) ^ drawing.c:880:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DrawPaperBoundary(Win) ^ drawing.c:904:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RedrawAnArea(BotObj, LtX, LtY, RbX, RbY) ^ drawing.c:1010:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RedrawAreas(BotObj, LtX1, LtY1, RbX1, RbY1, LtX2, LtY2, RbX2, RbY2) ^ drawing.c:1235:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void GetBetterBBox(ObjPtr, LtX, LtY, RbX, RbY, AlreadyFound) ^ drawing.c:1366:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RedrawVertSliceFromCache(start_frac, scroll_all_the_way) ^ drawing.c:1400:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RedrawHoriSliceFromCache(start_frac, scroll_all_the_way) ^ drawing.c:1433:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RedrawAreaFromCache(start_frac, scroll_all_the_way) ^ drawing.c:1453:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RedrawDrawWindow(BotObj) ^ drawing.c:1667:8: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Pixmap DrawAllOnPixmap(LtX, LtY, W, H, nRedraw) ^ drawing.c:2028:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int DoShortCut(key_ev, name, key_sym, state, args) ^ drawing.c:2907:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ShortHand(input) ^ drawing.c:2920:30: warning: variable 'have_ch' set but not used [-Wunused-but-set-variable] int valid_shortcut=FALSE, have_ch; ^ drawing.c:2989:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecuteCmdById(nCmdId, nIndex) ^ drawing.c:3010:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int CallShortCut(name, argc, argv, code, state) ^ drawing.c:3073:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int WriteAttrToTmp(attr_ptr, ptfi) ^ drawing.c:3133:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int WriteNamedAttrsToTmp(obj_ptr, num_restricted, ppsz_restricted, ptfi, ^ drawing.c:3222:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TmpFileChanged(ptfi) ^ drawing.c:3242:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ReadAttrFromTmp(attr_ptr, ptfi) ^ drawing.c:3265:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ReadNamedAttrsFromTmp(obj_ptr, num_restricted, ppsz_restricted, ptfi) ^ drawing.c:3288:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int AbortLaunch(pVoid) ^ drawing.c:3298:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void EditIndexedAttrInEditor(index) ^ drawing.c:3355:22: warning: format string is not a string literal (potentially insecure) [-Wformat-security] sprintf(title, TgLoadString(STID_EDIT_UNNAME_ATTR_DOTS)); ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^~~~~~~~~~~ drawing.c:3355:22: note: treat the string as an argument to avoid this sprintf(title, TgLoadString(STID_EDIT_UNNAME_ATTR_DOTS)); ^ "%s", /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^ drawing.c:3418:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void EditIndexedAttrGroupInEditor(index) ^ drawing.c:3476:22: warning: format string is not a string literal (potentially insecure) [-Wformat-security] sprintf(title, TgLoadString(STID_EDIT_UNNAME_ATTR_DOTS)); ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^~~~~~~~~~~ drawing.c:3476:22: note: treat the string as an argument to avoid this sprintf(title, TgLoadString(STID_EDIT_UNNAME_ATTR_DOTS)); ^ "%s", /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^ drawing.c:3555:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] TgMenu *CreateEditAttrInEditorMenu(parent_menu, X, Y, menu_info, ^ drawing.c:3589:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] TgMenu *CreateEditAttrGroupInEditorMenu(parent_menu, X, Y, menu_info, ^ drawing.c:3623:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void GetProperty(index) ^ drawing.c:3629:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] TgMenu *CreateGetPropertyMenu(parent_menu, X, Y, menu_info, ^ drawing.c:3666:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetPeekStrings(attr_strings, status_strings, i, menu_text, status_text) ^ drawing.c:3677:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int CanGetArea(obj_ptr) ^ drawing.c:3697:29: warning: variable 'num_hinge_points' set but not used [-Wunused-but-set-variable] int num_smooth_points=0, num_hinge_points=0; ^ drawing.c:3693:8: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] double GetPolygonArea(polygon_ptr) ^ drawing.c:3746:8: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] double GetArea(obj_ptr) ^ drawing.c:3913:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void PeekDimension(index) ^ drawing.c:3919:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] TgMenu *CreatePeekDimensionMenu(parent_menu, X, Y, menu_info, ^ drawing.c:3955:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int RefreshContextMenu(menu) ^ drawing.c:3985:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] TgMenu *CreateContextMenu(parent_menu, X, Y, menu_info, status_str_xlated) ^ drawing.c:4002:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int RefreshEditTextContextMenu(menu) ^ drawing.c:4022:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] TgMenu *CreateEditTextContextMenu(parent_menu, X, Y, menu_info, ^ drawing.c:4040:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ContextMenu(X, Y, TrackMenubar) ^ drawing.c:4063:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void HandleMotionForPortInDrawWindow(mouse_x, mouse_y) ^ drawing.c:4067:36: warning: variable 'obj_ptr' set but not used [-Wunused-but-set-variable] struct ObjRec *owner_obj=NULL, *obj_ptr, *obj_under_cursor=NULL; ^ drawing.c:4155:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void HandleMotionInDrawWindow(input) ^ drawing.c:4253:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int HandlePressForPortInDrawWindow(cancel) ^ drawing.c:4279:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int HandlePressInDrawWindow(input, pn_status) ^ drawing.c:4421:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int DrawingEventHandler(input) ^ 65 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 -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c dup.c dup.c:63:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void CopyObjId(FromObjPtr, ToObjPtr) ^ dup.c:96:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void CopyObjLocks(FromObjPtr, ToObjPtr) ^ dup.c:124:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void UnlockAnObj(ObjPtr) ^ dup.c:146:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DupObjXfrmMtrx(FromObjPtr, ToObjPtr) ^ dup.c:157:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DupObjBasics(FromObjPtr, ToObjPtr) ^ dup.c:192:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DupPolyObj(PolyPtr, ObjPtr) ^ dup.c:304:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DupPolygonObj(PolygonPtr, ObjPtr) ^ dup.c:406:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DupOvalObj(OvalPtr, ObjPtr) ^ dup.c:441:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DupBoxObj(BoxPtr, ObjPtr) ^ dup.c:459:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DupRCBoxObj(RCBoxPtr, ObjPtr) ^ dup.c:495:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DupArcObj(ArcPtr, ObjPtr) ^ dup.c:544:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DupXBmObj(XBmPtr, ObjPtr) ^ dup.c:632:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DupXPmObj(XPmPtr, ObjPtr) ^ dup.c:785:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DupStrSeg(pToStrBlock, pFromStrSeg) ^ dup.c:811:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DupStrBlock(pStrBlock, pMiniLineOwner, ppFirstStrBlock, ppLastStrBlock) ^ dup.c:852:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DupMiniLine(pMiniLine, pOwnerMiniLines, pOwnerBlock, ppFirstMiniLine, ^ dup.c:880:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DupMiniLines(minilines, pOwnerBlock, ppMinilines) ^ dup.c:904:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DupTextObj(TextPtr, FromObjPtr, ToObjPtr) ^ dup.c:976:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DupConnection(FromConnPtr, ToConnPtr) ^ dup.c:981:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DupGroupObj(GroupPtr, ObjPtr) ^ dup.c:1010:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] struct ObjRec *DupObj(ObjPtr) ^ dup.c:1149:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DupTheseObjects(TopSel, BotSel, NewTopSel, NewBotSel) ^ dup.c:1180:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void JustDupSelObj(NewTopSel, NewBotSel) ^ 23 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 -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c edit.c edit.c:216:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ConvertObjIntSpline(ObjPtr) ^ edit.c:362:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetBezierPoints(n, vs, new_n, bezier_vs) ^ edit.c:398:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ConvertObjToBezier(ObjPtr) ^ edit.c:499:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int SetBezierConvertNumSegsValue(spec) ^ edit.c:519:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetBezierConvertNumSegs(psz_num_segs) ^ edit.c:797:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void BreakATextObj(ObjPtr, how, poli) ^ edit.c:914:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int GetBreakSpecFromCh(spec) ^ edit.c:936:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DoBreakUpText(spec, forced_justify) ^ edit.c:1024:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void BreakUpText(spec) ^ edit.c:1031:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int DoSetTextFillPatternColor(ObjPtr) ^ edit.c:1154:23: warning: format string is not a string literal (potentially insecure) [-Wformat-security] sprintf(gszMsgBox, TgLoadString(STID_VERTEX_AT_3_OCLOCK_YNC)); ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^~~~~~~~~~~ edit.c:1154:23: note: treat the string as an argument to avoid this sprintf(gszMsgBox, TgLoadString(STID_VERTEX_AT_3_OCLOCK_YNC)); ^ "%s", /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^ edit.c:1216:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int DeleteStructuredSplinePoint(index, poly_ptr, polygon_ptr) ^ edit.c:1655:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void AddPointMeasureCursor(start, abs_w, abs_h, abs_x, abs_y) ^ edit.c:1681:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int DetermineBefore(prev_dist, next_dist, new_prev_dist, new_next_dist) ^ edit.c:1734:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int CanAddSmoothPointForStructuredSpline(button, psssi) ^ edit.c:1783:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ContinueAddStructuredPolyOrPolygonPointSetup(paspi) ^ edit.c:2025:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ContinueAddStructuredPolyOrPolygonPointFirstMoved(paspi) ^ edit.c:2315:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ContinueAddStructuredPolyOrPolygonPointRestMoved(paspi) ^ edit.c:2419:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ContinueAddStructuredPolyOrPolygonPointFinished(paspi) ^ edit.c:2669:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void EraseHighLightForAddStructuredPolyPoint(paspi, abs_dx, abs_dy, ^ edit.c:2712:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ContinueAddStructuredPolyOrPolygonPoint(obj_ptr, button, start_mouse_x, ^ edit.c:2817:44: warning: variable 'num' set but not used [-Wunused-but-set-variable] int sel_ltx, sel_lty, sel_rbx, sel_rby, num=0, i, intn=0; ^ edit.c:2798:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ContinueAddPolyPoint(ObjPtr, MouseX, MouseY, Index, PolyPtr, ^ edit.c:3175:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ContinueAddPolygonPoint(ObjPtr, MouseX, MouseY, Index, PolygonPtr, ^ edit.c:3939:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ReproducePixmap(pixel_to_use, orig_pixmap, orig_image, orig_bitmap, ^ edit.c:4026:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int RemoveObjTransPixel(obj_ptr, ptci) ^ edit.c:4152:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RotateXY(x, y, angle_in_radian, new_x, new_y) ^ edit.c:4170:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RotateBBoxByRadian(bbox, angle_in_radian, v) ^ edit.c:4186:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int HighLightOrFinalLayout(arc_ptr, box_info_ptr, grid_x, grid_y, finalize) ^ edit.c:4320:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void HighLightLayout(arc_ptr, box_info_ptr, grid_x, grid_y, generate) ^ edit.c:4340:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DoLayoutOnArc(arc_obj, box_info_ptr) ^ edit.c:4410:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ObjsAlreadySorted(box_info_ptr, min_index, max_index) ^ edit.c:4430:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void QuickSortObjs(box_info_ptr, min_index, max_index, level) ^ edit.c:4503:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int DecideLayoutDirection(obj_ptr) ^ edit.c:4621:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int FinishPreciseRotate(angle_spec, pivot_x, pivot_y) ^ edit.c:4722:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RotateAllSelObj(angle_spec) ^ edit.c:4887:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void UpdateOuterInnerSelForFind(obj_ptr) ^ edit.c:4896:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] struct ObjRec *DoFind(obj_ptr) ^ edit.c:4965:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] struct ObjRec *DoFindAlready(obj_ptr, bottom_half, pn_give_up) ^ edit.c:5195:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int RefreshEditMenu(menu) ^ edit.c:5225:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] TgMenu *CreateEditMenu(parent_menu, x, y, menu_info, status_str_xlated) ^ edit.c:5242:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int EditMenu(X, Y, TrackMenubar) ^ edit.c:5339:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void Abut(Dir) ^ edit.c:5543:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RefreshArrangeMenu(menu) ^ edit.c:5548:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ArrangeMenu(X, Y, TrackMenubar) ^ edit.c:5565:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int RefreshPropertiesMenu(menu) ^ edit.c:5579:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] TgMenu *CreatePropertiesMenu(parent_menu, x, y, menu_info, status_str_xlated) ^ edit.c:5596:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int PropertiesMenu(X, Y, TrackMenubar) ^ edit.c:6120:26: warning: format string is not a string literal (potentially insecure) [-Wformat-security] sprintf(gszMsgBox, TgLoadString(STID_NO_OBJ_SHADOW_FOUND)); ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^~~~~~~~~~~ edit.c:6120:26: note: treat the string as an argument to avoid this sprintf(gszMsgBox, TgLoadString(STID_NO_OBJ_SHADOW_FOUND)); ^ "%s", /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^ edit.c:6135:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ReadObjectShadowInfo(buf) ^ edit.c:6164:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ConsecutiveVerticesSelected(pn_index0, pn_index1) ^ edit.c:6408:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int RefreshPolySplineMenu(menu) ^ edit.c:6422:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] TgMenu *CreatePolySplineMenu(parent_menu, x, y, menu_info, status_str_xlated) ^ 53 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 -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c eps.c eps.c:190:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DumpXBmByte(fp, num_nibbles, image_h, nibble_index, row_index, ^ eps.c:215:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int UpdateEndDetectState(c, p_end_detect_state, p_line_count) ^ eps.c:240:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ReadPreviewBitmap(fp, file_name, image_w, image_h, bps, bitmap, image) ^ eps.c:410:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void AddLine(s) ^ eps.c:432:15: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] unsigned long ReadDoubleWord(buf) ^ eps.c:450:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int XbmToPreviewBitmap(FP, xbm_fname) ^ eps.c:530:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ErrorInConvertTiffToXbm(fp, tiff_fp, xbm_fp, fname) ^ eps.c:547:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ConvertTiffToXbm(fp, tiff_offset, tiff_sz, xbm_fname, xbm_sz) ^ eps.c:625:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] FILE *ErrorInGetTiffEPSIInfo(fp, eps_fp, fname) ^ eps.c:686:29: warning: format string is not a string literal (potentially insecure) [-Wformat-security] fprintf(stderr, TgLoadString(STID_FAIL_TO_WRITE_TO_STDOUT)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ eps.c:686:29: note: treat the string as an argument to avoid this fprintf(stderr, TgLoadString(STID_FAIL_TO_WRITE_TO_STDOUT)); ^ "%s", eps.c:641:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] FILE *GetTiffEPSIInfo(fp, pszEPS, file_buf_sz, pnPreviewOK) ^ eps.c:754:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void GetEPSFullPath(file_name, full_path, buf_sz) ^ eps.c:780:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ConvertPsToXbm(pszPsPath, pszXbmPath, file_buf_sz) ^ eps.c:849:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int AutoGeneratePreviewBitmap(pszPsPath, pBitmap, pImage, pnImageW, pnImageH) ^ eps.c:902:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int DoMyReadEPSFile(file_name, pn_image_w, pn_image_h, p_bitmap, p_image, ^ eps.c:1208:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int MyReadEPSFile(file_name, image_w, image_h, bitmap, image, num_lines, ^ eps.c:1227:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] FILE *JustGetTiffEPSIInfo(fp, pszEPS, file_buf_sz) ^ eps.c:1290:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int JustReadEPSLines(xbm_ptr) ^ eps.c:1466:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DumpEPSObj(FP, ObjPtr) ^ eps.c:1664:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetEPSObjCTM(obj_ptr, p_orig_obbox) ^ eps.c:1701:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] struct ObjRec *CreateEPSObj(FileName, ImageW, ImageH, bitmap, image, ^ 21 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 -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c exec.c exec.c:489:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int PrependToTmpStr(psz) ^ exec.c:510:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int AppendToTmpStr(psz) ^ exec.c:531:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int AppendToTmpStr2(psz1, psz2, tg2) ^ exec.c:550:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecuteCmdGetResult(cmd, result_list, max_lines) ^ exec.c:588:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] struct ObjRec *FindObjWithName(BotObj, OrigObj, obj_name, inside_root_obj, ^ exec.c:716:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int EndingRightParan(inbuf) ^ exec.c:728:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int OnlyBlanksLeft(inbuf) ^ exec.c:740:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *GetToken(inbuf, outbuf, obuf_sz, tok_type) ^ exec.c:876:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *convert_str(inbuf, obj_ptr, double_quotes_for_null) ^ exec.c:1004:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int PipeReachedEOF(fp) ^ exec.c:1023:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int WaitForEvent(fp, fp_is_pipe, fp_is_named_pipe, pn_quit, ^ exec.c:1131:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int AbortLaunch(pVoid) ^ exec.c:1142:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void LaunchIt(cmd) ^ exec.c:1220:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int DoLaunch(launch_attr, obj_ptr) ^ exec.c:1328:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int BadCmd(cmd_name) ^ exec.c:1338:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int BadSelectedObj(cmd_name) ^ exec.c:1348:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int BadAttr(attr_name, cmd_name) ^ exec.c:1360:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int FileAttrNotAllowed(attr_name, cmd_name) ^ exec.c:1372:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int BadObjName(obj_name, cmd_name) ^ exec.c:1382:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int BadArg(arg_name, cmd_name) ^ exec.c:1394:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetReplaceAttrValueCallback(pf_replace_attr_value, pv_userdata) ^ exec.c:1402:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ReplaceAttrFirstValue(obj_ptr, attr_ptr, new_value) ^ exec.c:1514:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ReplaceAttrAllValues(obj_ptr, attr_ptr, ppTopStr, ppBotStr) ^ exec.c:1522:18: warning: variable 'pMiniLine' set but not used [-Wunused-but-set-variable] MiniLineInfo *pMiniLine=NULL; ^ exec.c:1620:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void JustReadFileIntoAttr(FP, attr_ptr, attr_owner_obj) ^ exec.c:1770:29: warning: format string is not a string literal (potentially insecure) [-Wformat-security] sprintf(gszMsgBox, TgLoadString(STID_USER_INTR)); ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^~~~~~~~~~~ exec.c:1770:29: note: treat the string as an argument to avoid this sprintf(gszMsgBox, TgLoadString(STID_USER_INTR)); ^ "%s", /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^ exec.c:1721:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int CheckExecInterrupt(orig_cmd) ^ exec.c:1800:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int IntExpression(expr, p_ival, orig_cmd) ^ exec.c:1822:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int FloatExpression(expr, p_dval, orig_cmd) ^ exec.c:1844:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SelectAnObj(sub_obj, owner_obj, top_owner, pp_saved_top_sel, ^ exec.c:1865:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecLaunch(argv, obj_ptr, orig_cmd) ^ exec.c:1881:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecExec(argv, obj_ptr, orig_cmd) ^ exec.c:1898:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecMktemp(argv, obj_ptr, orig_cmd) ^ exec.c:1992:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecUseTemplate(argv, obj_ptr, orig_cmd) ^ exec.c:2108:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecUpdChild(argv, obj_ptr, orig_cmd, upd_type) ^ exec.c:2462:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecUpdEPSChild(argv, obj_ptr, orig_cmd) ^ exec.c:2469:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecUpdXBMChild(argv, obj_ptr, orig_cmd) ^ exec.c:2476:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecUpdXPMChild(argv, obj_ptr, orig_cmd) ^ exec.c:2484:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecDelChild(argv, obj_ptr, orig_cmd, upd_type) ^ exec.c:2584:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecDelEPSChild(argv, obj_ptr, orig_cmd) ^ exec.c:2591:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecDelXBMChild(argv, obj_ptr, orig_cmd) ^ exec.c:2598:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecDelXPMChild(argv, obj_ptr, orig_cmd) ^ exec.c:2607:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] long ms_time(tv) ^ exec.c:2620:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecFlipDeck(argv, obj_ptr, orig_cmd) ^ exec.c:2877:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int DoReadFileIntoAttr(attr_ptr, attr_owner_obj, file_name, orig_cmd) ^ exec.c:2931:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecReadFileIntoAttr(argv, obj_ptr, orig_cmd) ^ exec.c:2954:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecWriteOrAppendAttrIntoFile(argv, obj_ptr, orig_cmd, open_mode) ^ exec.c:3012:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecWriteAttrIntoFile(argv, obj_ptr, orig_cmd) ^ exec.c:3020:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecAppendAttrIntoFile(argv, obj_ptr, orig_cmd) ^ exec.c:3028:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecSelectObjByName(argv, obj_ptr, orig_cmd) ^ exec.c:3055:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ExecSelectTopObj(obj_ptr, orig_cmd) ^ exec.c:3072:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ExecDelAllSelObj(obj_ptr, orig_cmd) ^ exec.c:3087:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ExecUnSelectAllObj(obj_ptr, orig_cmd) ^ exec.c:3095:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecMoveSelObjRel(argv, obj_ptr, orig_cmd) ^ exec.c:3119:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecRepeat(argv, obj_ptr, orig_cmd) ^ exec.c:3148:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecHyperJump(argv, obj_ptr, orig_cmd) ^ exec.c:3175:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int MapCGIChars(buf, buf_sz, orig_str) ^ exec.c:3209:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecMakeCGIQuery(argv, obj_ptr, orig_cmd) ^ exec.c:3219:18: warning: variable 'buf_len' set but not used [-Wunused-but-set-variable] int buf_sz=0, buf_len=0, tmp_sz=0, num_attrs=0; ^ exec.c:3219:39: warning: variable 'num_attrs' set but not used [-Wunused-but-set-variable] int buf_sz=0, buf_len=0, tmp_sz=0, num_attrs=0; ^ exec.c:3385:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecWaitClick(argv, obj_ptr, orig_cmd) ^ exec.c:3497:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecSleep(argv, obj_ptr, orig_cmd) ^ exec.c:3600:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ExecBeginAnimate(obj_ptr, orig_cmd) ^ exec.c:3612:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ExecEndAnimate(obj_ptr, orig_cmd) ^ exec.c:3621:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecSetRedraw(argv, obj_ptr, orig_cmd) ^ exec.c:3639:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecSetSelObjColor(argv, obj_ptr, orig_cmd) ^ exec.c:3665:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecSetSelObjFill(argv, obj_ptr, orig_cmd) ^ exec.c:3688:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecSetSelObjPen(argv, obj_ptr, orig_cmd) ^ exec.c:3711:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecSetSelObjLineWidth(argv, obj_ptr, orig_cmd) ^ exec.c:3749:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecSetSelObjSpline(argv, obj_ptr, orig_cmd) ^ exec.c:3778:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecSetSelObjArrow(argv, obj_ptr, orig_cmd) ^ exec.c:3807:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecSetSelObjDash(argv, obj_ptr, orig_cmd) ^ exec.c:3830:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecSetSelObjTransPat(argv, obj_ptr, orig_cmd) ^ exec.c:3852:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecSetSelObjRCBRadius(argv, obj_ptr, orig_cmd) ^ exec.c:3875:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecSetSelTextVSpace(argv, obj_ptr, orig_cmd) ^ exec.c:3892:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecSetSelTextJust(argv, obj_ptr, orig_cmd) ^ exec.c:3919:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecSetSelTextFont(argv, obj_ptr, orig_cmd) ^ exec.c:3957:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecSetSelTextStyle(argv, obj_ptr, orig_cmd) ^ exec.c:3987:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecSetSelTextSize(argv, obj_ptr, orig_cmd) ^ exec.c:4028:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecSetSelTextUnderline(argv, obj_ptr, orig_cmd) ^ exec.c:4045:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecSetSelTextOverline(argv, obj_ptr, orig_cmd) ^ exec.c:4062:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecInc(argv, obj_ptr, orig_cmd) ^ exec.c:4087:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecDec(argv, obj_ptr, orig_cmd) ^ exec.c:4116:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int DoShuffleObjToTopOrBottom(argv, obj_ptr, orig_cmd, to_top) ^ exec.c:4207:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecShuffleObjToTop(argv, obj_ptr, orig_cmd) ^ exec.c:4215:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecShuffleObjToBot(argv, obj_ptr, orig_cmd) ^ exec.c:4223:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ExecDisableUndo(obj_ptr, orig_cmd) ^ exec.c:4235:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ExecEnableUndo(obj_ptr, orig_cmd) ^ exec.c:4243:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecGetDrawingArea(argv, obj_ptr, orig_cmd) ^ exec.c:4282:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecGetSelObjBBox(argv, obj_ptr, orig_cmd) ^ exec.c:4323:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecGetNamedObjBBox(argv, obj_ptr, orig_cmd) ^ exec.c:4372:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecMoveSelObjAbs(argv, obj_ptr, orig_cmd) ^ exec.c:4396:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecAssign(argv, obj_ptr, orig_cmd) ^ exec.c:4435:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecStrCpy(argv, obj_ptr, orig_cmd) ^ exec.c:4455:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecStrCat(argv, obj_ptr, orig_cmd) ^ exec.c:4482:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecCopyStrToCutBuffer(argv, obj_ptr, orig_cmd) ^ exec.c:4488:8: warning: variable 'len' set but not used [-Wunused-but-set-variable] int len=0; ^ exec.c:4502:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecWhile(argv, raw_argv, obj_ptr, orig_cmd) ^ exec.c:4539:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecIf(argv, obj_ptr, orig_cmd) ^ exec.c:4583:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecGetCurrentFile(argv, obj_ptr, orig_cmd) ^ exec.c:4613:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecGetCurrentExportFile(argv, obj_ptr, orig_cmd) ^ exec.c:4649:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecGetCurrentDir(argv, obj_ptr, orig_cmd) ^ exec.c:4669:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecGetEnv(argv, obj_ptr, orig_cmd) ^ exec.c:4693:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecStrLen(argv, obj_ptr, orig_cmd) ^ exec.c:4715:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecSubStr(argv, obj_ptr, orig_cmd) ^ exec.c:4754:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecStrStr(argv, obj_ptr, orig_cmd) ^ exec.c:4775:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecStrRStr(argv, obj_ptr, orig_cmd) ^ exec.c:4801:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ExecUnMakeSelObjIconic(obj_ptr, orig_cmd) ^ exec.c:4838:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecHyperJumpThenExec(argv, obj_ptr, orig_cmd) ^ exec.c:4868:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ReplaceAttrShown(obj_ptr, attr_ptr, show_type) ^ exec.c:4923:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecShowHideAttr(argv, obj_ptr, orig_cmd, show_type) ^ exec.c:4962:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecShowAttr(argv, obj_ptr, orig_cmd) ^ exec.c:4970:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecHideAttr(argv, obj_ptr, orig_cmd) ^ exec.c:4978:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecShowAttrName(argv, obj_ptr, orig_cmd) ^ exec.c:4986:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecHideAttrName(argv, obj_ptr, orig_cmd) ^ exec.c:4995:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecShowHideValue(argv, obj_ptr, orig_cmd, show_type) ^ exec.c:5026:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecShowValue(argv, obj_ptr, orig_cmd) ^ exec.c:5034:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecHideValue(argv, obj_ptr, orig_cmd) ^ exec.c:5042:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecGetAttrBBox(argv, obj_ptr, orig_cmd) ^ exec.c:5091:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecSizeSelObjAbs(argv, obj_ptr, orig_cmd) ^ exec.c:5124:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecSizeNamedObjAbs(argv, obj_ptr, orig_cmd) ^ exec.c:5166:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecMessageBox(argv, obj_ptr, orig_cmd) ^ exec.c:5221:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecGetUserInput(argv, obj_ptr, orig_cmd) ^ exec.c:5258:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecAddAttrToSelObj(argv, obj_ptr, orig_cmd) ^ exec.c:5365:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecDelAttrFromSelObj(argv, obj_ptr, orig_cmd) ^ exec.c:5423:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecUserEndAnEdge(argv, obj_ptr, orig_cmd) ^ exec.c:5475:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecUserDrawAnEdge(argv, obj_ptr, orig_cmd) ^ exec.c:5559:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecGetAPolyVertexAbs(argv, obj_ptr, orig_cmd) ^ exec.c:5625:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecMoveAPolyVertexAbs(argv, obj_ptr, orig_cmd) ^ exec.c:5767:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecPostAttrAndGetCGI(argv, obj_ptr, orig_cmd) ^ exec.c:5880:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ExecNavigateBack(obj_ptr, orig_cmd) ^ exec.c:5888:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ExecStop(obj_ptr, orig_cmd) ^ exec.c:5899:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecSqrt(argv, obj_ptr, orig_cmd) ^ exec.c:5941:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecRandom(argv, obj_ptr, orig_cmd) ^ exec.c:5981:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecSRand48(argv, obj_ptr, orig_cmd) ^ exec.c:6011:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecDRand48(argv, obj_ptr, orig_cmd) ^ exec.c:6042:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecRound(argv, obj_ptr, orig_cmd) ^ exec.c:6077:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecRedrawObj(argv, obj_ptr, orig_cmd) ^ exec.c:6099:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ExecRedrawDrawingArea(obj_ptr, orig_cmd) ^ exec.c:6107:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecIntToHex(argv, obj_ptr, orig_cmd) ^ exec.c:6155:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecForI(argv, obj_ptr, orig_cmd) ^ exec.c:6253:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ExecSetFileNotModified(obj_ptr, orig_cmd) ^ exec.c:6263:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecNewId(argv, obj_ptr, orig_cmd) ^ exec.c:6282:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecRotateSelObj(argv, obj_ptr, orig_cmd) ^ exec.c:6311:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecCallSimpleShortCut(argv, obj_ptr, orig_cmd) ^ exec.c:6369:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecCallOneArgShortCut(argv, obj_ptr, orig_cmd) ^ exec.c:6438:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecSubstituteAttr(argv, obj_ptr, orig_cmd) ^ exec.c:6569:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecGetFileSize(argv, obj_ptr, orig_cmd) ^ exec.c:6597:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecIsFile(argv, obj_ptr, orig_cmd) ^ exec.c:6624:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecIndex(argv, obj_ptr, orig_cmd) ^ exec.c:6650:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecRIndex(argv, obj_ptr, orig_cmd) ^ exec.c:6680:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecGetNumberOfLines(argv, obj_ptr, orig_cmd) ^ exec.c:6715:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecGetLineInAttr(argv, obj_ptr, orig_cmd) ^ exec.c:6778:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecTrim(argv, obj_ptr, orig_cmd) ^ exec.c:6800:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecIsAttr(argv, obj_ptr, orig_cmd) ^ exec.c:6827:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecFindObjNames(argv, obj_ptr, orig_cmd) ^ exec.c:6953:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int FindObjNamesOnAllPgs(argv, obj_ptr, orig_cmd, tg2) ^ exec.c:7085:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecFindObjNamesOnAllPgs(argv, obj_ptr, orig_cmd) ^ exec.c:7105:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecTg2FindObjNsOnAllPgs(argv, obj_ptr, orig_cmd) ^ exec.c:7125:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecTokenize(argv, obj_ptr, orig_cmd) ^ exec.c:7252:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecMoveAttrRel(argv, obj_ptr, orig_cmd) ^ exec.c:7282:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecGetNumberOfVs(argv, obj_ptr, orig_cmd) ^ exec.c:7320:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecIsObjTransformed(argv, obj_ptr, orig_cmd) ^ exec.c:7348:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecMakeSelObjIconic(argv, obj_ptr, orig_cmd) ^ exec.c:7376:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecMoveNamedObjRel(argv, obj_ptr, orig_cmd) ^ exec.c:7409:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecMoveNamedObjAbs(argv, obj_ptr, orig_cmd) ^ exec.c:7443:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecGetTgifVersion(argv, obj_ptr, orig_cmd) ^ exec.c:7495:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecGetTgifDir(argv, obj_ptr, orig_cmd) ^ exec.c:7513:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecGetProfileString(argv, obj_ptr, orig_cmd) ^ exec.c:7576:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecWriteProfileString(argv, obj_ptr, orig_cmd) ^ exec.c:7612:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecSelectAdditionalObj(argv, obj_ptr, orig_cmd) ^ exec.c:7646:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecOpenFile(argv, obj_ptr, orig_cmd) ^ exec.c:7712:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecCloseFile(argv, obj_ptr, orig_cmd) ^ exec.c:7748:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecReadFile(argv, obj_ptr, orig_cmd) ^ exec.c:7803:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecWriteFile(argv, obj_ptr, orig_cmd) ^ exec.c:7842:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecFlushFile(argv, obj_ptr, orig_cmd) ^ exec.c:7871:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecAppendFile(argv, obj_ptr, orig_cmd) ^ exec.c:7927:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecSetOutputFormat(argv, obj_ptr, orig_cmd) ^ exec.c:7970:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecSetExportClipRect(argv, obj_ptr, orig_cmd) ^ exec.c:8007:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecImportFile(argv, obj_ptr, orig_cmd) ^ exec.c:8240:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecSetXpmOutputVersion(argv, obj_ptr, orig_cmd) ^ exec.c:8263:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecEditIniSection(argv, obj_ptr, orig_cmd) ^ exec.c:8304:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecSelectFromIniSection(argv, obj_ptr, orig_cmd) ^ exec.c:8343:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecAppendLineIntoAttr(argv, obj_ptr, orig_cmd) ^ exec.c:8383:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecInsertLineIntoAttr(argv, obj_ptr, orig_cmd) ^ exec.c:8470:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecClearAttr(argv, obj_ptr, orig_cmd) ^ exec.c:8536:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecCreateText(argv, obj_ptr, orig_cmd) ^ exec.c:8578:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecCreateBox(argv, obj_ptr, orig_cmd) ^ exec.c:8611:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecCreateCornerOval(argv, obj_ptr, orig_cmd) ^ exec.c:8646:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecCreateCenterOval(argv, obj_ptr, orig_cmd) ^ exec.c:8678:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecCreateEdgeOval(argv, obj_ptr, orig_cmd) ^ exec.c:8720:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecCreateRCBox(argv, obj_ptr, orig_cmd) ^ exec.c:8753:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecCreateArc(argv, obj_ptr, orig_cmd) ^ exec.c:8841:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecCreateFirstVertex(argv, obj_ptr, orig_cmd) ^ exec.c:8865:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecCreateNextVertex(argv, obj_ptr, orig_cmd) ^ exec.c:8892:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ExecCreatePoly(obj_ptr, orig_cmd) ^ exec.c:8918:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ExecCreatePolygon(obj_ptr, orig_cmd) ^ exec.c:8965:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ExecStartCreateGroup(obj_ptr, orig_cmd) ^ exec.c:8979:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ExecCreateGroup(obj_ptr, orig_cmd) ^ exec.c:9060:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecSetAllowInterrupt(argv, obj_ptr, orig_cmd) ^ exec.c:9084:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int DoExecSelectEachObjAndExec(attr_name) ^ exec.c:9108:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecSelectEachObjAndExec(argv, obj_ptr, orig_cmd) ^ exec.c:9167:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecEditAttrInTextMode(argv, obj_ptr, orig_cmd) ^ exec.c:9187:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ExecSetFileUnSavable(obj_ptr, orig_cmd) ^ exec.c:9200:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ExternalPsToEpsi(scale_val, src_file_name, dest_file_name) ^ exec.c:9223:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void FindGsVersion(gs_copyright, pn_gs_type, pn_gs_version) ^ exec.c:9271:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int PbmToEpsi(d_scale, pbm_fname, out_fname, orig_cmd) ^ exec.c:9391:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int InternalPsToEpsi(scale, src_file_name, dest_file_name, orig_cmd) ^ exec.c:9456:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecPsToEpsi(argv, obj_ptr, orig_cmd) ^ exec.c:9518:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecObjsBBoxIntersect(argv, obj_ptr, orig_cmd) ^ exec.c:9556:11: warning: comparison of array 'buf' equal to a null pointer is always false [-Wtautological-pointer-compare] (buf==NULL ? "" : buf)); ^~~ ~~~~ exec.c:9561:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ExecDelAllAttrFromSelObj(obj_ptr, orig_cmd) ^ exec.c:9602:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void Swap(psz, i, j) ^ exec.c:9613:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RandomPermutation(prpi, num_states) ^ exec.c:9669:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecRndPermLinesInAttr(argv, obj_ptr, orig_cmd) ^ exec.c:9676:19: warning: variable 'minilines' set but not used [-Wunused-but-set-variable] MiniLinesInfo *minilines=NULL; ^ exec.c:9746:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *ExecFreeArgv(need_raw_argv, argc, p_argv, p_raw_argv) ^ exec.c:9768:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ShowExecStatus(need_raw_argv, argc, argv, raw_argv, func_name) ^ exec.c:9802:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *ExecuteACommand(cmd_ptr, obj_ptr) ^ exec.c:9930:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecuteCommands(cmd, obj_ptr) ^ exec.c:9968:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int CommentLine(buf) ^ exec.c:9976:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int DoExec(exec_attr, obj_ptr) ^ exec.c:10046:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ResetExec(nBegin) ^ exec.c:10095:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *ReadACmdFromFile(fp, is_named_pipe, pn_quit) ^ exec.c:10151:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DoExecCmdsFromFile(fp, is_named_pipe, pn_quit) ^ exec.c:10206:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ExecCmdsFromFile(buf) ^ exec.c:10314:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ExecCmdsFromTmp(tmp_fname) ^ exec.c:10366:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecACommandFromBuffer(buf, pn_quit) ^ 228 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 -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c expr.c expr.c:96:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int BadOperandType(operator_str) ^ expr.c:106:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int DivByZero(operator_str) ^ expr.c:116:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int OpPrec(op_code) ^ expr.c:154:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int OpArity(op_code) ^ expr.c:193:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int OpPush(op_code, cur_depth) ^ expr.c:209:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ValPush(v_ptr) ^ expr.c:234:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void PopValStk(v_ptr) ^ expr.c:259:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExprAtomType(expr) ^ expr.c:290:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int EvalEquality(op_code, v, result_ptr) ^ expr.c:349:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int EvalInequality(op_code, v, result_ptr) ^ expr.c:437:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int EvalMod(left, right) ^ expr.c:444:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int MultipleOf(left, right) ^ expr.c:459:8: warning: variable 'left_ival' set but not used [-Wunused-but-set-variable] int left_ival, right_ival; ^ expr.c:460:11: warning: variable 'left_dval' set but not used [-Wunused-but-set-variable] double left_dval, right_dval; ^ expr.c:454:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int EvalArithmaticOp(op_code, op_str, v, result_ptr) ^ expr.c:793:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ParseForNumericVal(ppsz_token, v) ^ expr.c:836:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ParseForStringVal(ppsz_token, v) ^ expr.c:871:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ParseForIDVal(ppsz_token, v) ^ expr.c:957:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ProcessOp(prec) ^ expr.c:968:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int EvalExpr(orig_expr, v_ptr) ^ 20 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 -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c file.c file.c:238:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *MkTempFile(buf, buf_sz, psz_dir, psz_prefix) ^ file.c:305:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetUnSavableFile(unsavable) ^ file.c:314:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void UpdateDocumentFonts(ps_font_name) ^ file.c:335:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DumpDocumentFonts(dump_fp) ^ file.c:382:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int FindPropagatedEPSInfo(buf) ^ file.c:414:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DumpPropagatedEPSInfo(dump_fp) ^ file.c:452:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DoUpdatePropagatedEPSInfo(index, psz_value) ^ file.c:479:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void UpdatePropagatedEPSInfo(line, pn_status) ^ file.c:549:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DumpResidual(write_fp) ^ file.c:561:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void AddToResidual(write_fp, buf) ^ file.c:587:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *GetPostScriptToken(read_fname, pszStart, ppszEnd) ^ file.c:627:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void CondenseAndCopyPostScriptFile(read_fp, write_fp, read_fname, condense) ^ file.c:687:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int CondensePostScriptFile(read_fname, buf_sz) ^ file.c:729:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int CopyAFile(file1, file2, condense) ^ file.c:792:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int FindProgramInPath(cmd, msg, no_msg) ^ file.c:845:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExecuteCmd(cmd, done_msg) ^ file.c:891:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ClearFileInfo(clean_up_comments) ^ file.c:913:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int OkayToCreateFile(FileName) ^ file.c:931:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SaveObj(FP, ObjPtr, Level) ^ file.c:955:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int FileNameHasExtension(file_name, file_type, pn_gzipped, pn_no_name) ^ file.c:1040:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RemoveFileNameExtension(file_name) ^ file.c:1096:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int FixDecimalPoint(buf) ^ file.c:1112:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void Save(FP, BotObjPtr, Level, PageNumber) ^ file.c:1340:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int SaveTmpFile(NewFileName) ^ file.c:1455:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SaveNewFile(SaveSelectedOnly, pszNewFile) ^ file.c:2230:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SavePages(pSpecifyPagesInfo) ^ file.c:2238:17: warning: variable 'len' set but not used [-Wunused-but-set-variable] int count=0, len, short_name=FALSE, ok=TRUE, watch_cursor=FALSE; ^ file.c:2514:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *ParseStr(Str, C, Left, LeftSz) ^ file.c:2548:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *FindChar(C, Str) ^ file.c:2561:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SaveCreatorID(FP, obj_ptr, psz_prefix) ^ file.c:2578:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ReadCreatorID(FP, ObjPtr) ^ file.c:2611:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int NumFieldsToFontStr(buf) ^ file.c:2633:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ReadState(Inbuf) ^ file.c:3395:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ReadObjAttrs(MinFileVersion, FP, ObjPtr) ^ file.c:3425:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ReadPageObj(Inbuf, ppsz_page_name) ^ file.c:3542:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ReadUnitObj(Inbuf) ^ file.c:3561:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ReadGeneratedBy(Inbuf) ^ file.c:3595:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ReadScriptFracObj(Inbuf) ^ file.c:3619:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ReadRightMarginObj(Inbuf) ^ file.c:3640:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ReadThreshFillReplaceObj(Inbuf) ^ file.c:3677:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ReadShapeShadowObj(Inbuf) ^ file.c:3697:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ReadFgBgColors(Inbuf) ^ file.c:3731:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int FreeBufAndReturn(buf, rc) ^ file.c:3739:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ReadObj(FP, ObjPtr) ^ file.c:4101:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void AdjForOldVersion(obj_ptr) ^ file.c:4116:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int DownloadRemoteFile(file_name, ppsz_content_type, ppsz_page_spec, ^ file.c:4160:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ImportGivenFile(file_name, group_and_lock, highlight) ^ file.c:4392:29: warning: format string is not a string literal (potentially insecure) [-Wformat-security] sprintf(gszMsgBox, TgLoadString(STID_FILE_CORRUPTED_ABORT_IMPORT)); ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^~~~~~~~~~~ file.c:4392:29: note: treat the string as an argument to avoid this sprintf(gszMsgBox, TgLoadString(STID_FILE_CORRUPTED_ABORT_IMPORT)); ^ "%s", /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^ file.c:4494:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ClearBgColorInfo(nRedraw) ^ file.c:4515:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ClearBgPixmapInfo(nRedraw) ^ file.c:4631:11: warning: logical not is only applied to the left hand side of this comparison [-Wlogical-not-parentheses] if (!MyReadPixmapFile(tmp_xpm_fname, &image_w, &image_h, &w, &h, &pixmap, ^ file.c:4631:11: note: add parentheses after the '!' to evaluate the comparison first if (!MyReadPixmapFile(tmp_xpm_fname, &image_w, &image_h, &w, &h, &pixmap, ^ ( file.c:4631:11: note: add parentheses around left hand side expression to silence this warning if (!MyReadPixmapFile(tmp_xpm_fname, &image_w, &image_h, &w, &h, &pixmap, ^ ( file.c:4735:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int LoadFile(FullName, ObjFile, GzippedObjFile) ^ file.c:4879:29: warning: format string is not a string literal (potentially insecure) [-Wformat-security] sprintf(gszMsgBox, TgLoadString(STID_FILE_CORRUPTED_ABORT_OPEN)); ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^~~~~~~~~~~ file.c:4879:29: note: treat the string as an argument to avoid this sprintf(gszMsgBox, TgLoadString(STID_FILE_CORRUPTED_ABORT_OPEN)); ^ "%s", /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^ file.c:4952:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DumpPatFill(FP, Fill, BBox, Indent, EndOfLine) ^ file.c:4990:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DumpSymOutline(FP, ObjPtr) ^ file.c:5029:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DumpAttrs(FP, AttrPtr) ^ file.c:5121:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DumpAnObj(FP, ObjPtr) ^ file.c:5223:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int DumpBBox(fp, page_only, page_bbox) ^ file.c:5327:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ModifyOutputFileName(FileName) ^ file.c:5344:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DumpTextObjInAscii(FP, ObjPtr) ^ file.c:5357:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DumpAttrsInAscii(FP, AttrPtr) ^ file.c:5448:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DumpAnObjInAscii(FP, ObjPtr) ^ file.c:5501:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int SetPortName(name, buf, buf_sz, pn_buf_index) ^ file.c:5526:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DumpNetlListLine(FP, port_name, pMiniLine) ^ file.c:5542:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DumpNetListForAPort(FP, ObjPtr, buf, buf_sz, pn_buf_index) ^ file.c:5567:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DoDumpNetListForAnObj(FP, ObjPtr) ^ file.c:5642:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DumpComponentAttrs(FP, ObjPtr) ^ file.c:5663:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DoDumpComponentForAnObj(FP, ObjPtr) ^ file.c:5726:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DumpNetListForAnObj(FP, ObjPtr) ^ file.c:5744:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void WriteWord(fp, word) ^ file.c:5753:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void WriteDoubleWord(fp, dword) ^ file.c:5793:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetPsSetup(buf) ^ file.c:5801:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetBopHook(buf) ^ file.c:5808:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetEopHook(buf) ^ file.c:5834:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int GetCmdUsingDefAndXDef(buf, buf_sz, def_cmd, option, verify_count, ^ file.c:6147:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void GenTiffFile(tmp_fname, epsi_fname, condense, condensed_already) ^ file.c:6331:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetOutputFileName(ps_file, file_ext, pn_short_name, ppsz_rest) ^ file.c:6391:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DumpRegMark(fp, pstem) ^ file.c:6408:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int FixUpSVGLine(out_fp, dup_buf) ^ file.c:6504:8: warning: variable 'line_num' set but not used [-Wunused-but-set-variable] int line_num=0, fixed=FALSE; ^ file.c:6499:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int FixUpSVGFile(tmpsvg_fname, svg_fname) ^ file.c:6626:29: warning: format string is not a string literal (potentially insecure) [-Wformat-security] sprintf(gszMsgBox, TgLoadString(STID_NO_OBJ_TO_EXPORT)); ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^~~~~~~~~~~ file.c:6626:29: note: treat the string as an argument to avoid this sprintf(gszMsgBox, TgLoadString(STID_NO_OBJ_TO_EXPORT)); ^ "%s", /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^ file.c:7663:32: warning: format string is not a string literal (potentially insecure) [-Wformat-security] sprintf(gszMsgBox, TgLoadString(STID_NO_CUR_FILE_CANNOT_GEN_TEXT)); ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^~~~~~~~~~~ file.c:7663:32: note: treat the string as an argument to avoid this sprintf(gszMsgBox, TgLoadString(STID_NO_CUR_FILE_CANNOT_GEN_TEXT)); ^ "%s", /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^ file.c:6563:34: warning: variable 'export_cap' set but not used [-Wunused-but-set-variable] int i, len, short_name=FALSE, export_cap=0; ^ file.c:6555:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int DoGenDump(FileName) ^ file.c:7802:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int GenDump(FileName) ^ file.c:7850:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void Dump(FileName) ^ file.c:8080:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DumpOnePageInTileMode(row, col) ^ file.c:8205:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void PrintWithCommand(FileName) ^ file.c:8385:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DoNewProc(clear_all_wb) ^ file.c:8447:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int BeforeOpenURL(pn_do_not_save) ^ file.c:8482:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void OpenURL(file_name, do_not_save, pn_need_to_check_auto_exec) ^ file.c:8610:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void AfterOpenURL(need_to_check_auto_exec) ^ file.c:8622:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void OpenProc(psz_fname_spec) ^ file.c:8692:26: warning: format string is not a string literal (potentially insecure) [-Wformat-security] sprintf(gszMsgBox, TgLoadString(STID_SELECT_FILE_AS_TEMPLATE)); ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^~~~~~~~~~~ file.c:8692:26: note: treat the string as an argument to avoid this sprintf(gszMsgBox, TgLoadString(STID_SELECT_FILE_AS_TEMPLATE)); ^ "%s", /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^ file.c:8907:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int RefreshFileMenu(menu) ^ file.c:8953:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] TgMenu *CreateFileMenu(parent_menu, x, y, menu_info, status_str_xlated) ^ file.c:8970:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int FileMenu(X, Y, TrackMenubar) ^ file.c:8986:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] TgMenu *CreateRecentFilesMenu(parent_menu, x, y, menu_info, status_str_xlated) ^ file.c:9064:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *ReadFileIntoBuf(fname, pn_buf_sz) ^ file.c:9100:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int WriteBufIntoTmpFile(buf, buf_sz, tmp_fname, tmp_fname_sz) ^ 101 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 -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c font.c font.c:392:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int IsFontDoubleByte(font_index) ^ font.c:398:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int IsDoubleByteFontVertical(font_index, style) ^ font.c:404:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int CanConvertUTF8ToFont(font_index) ^ font.c:411:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int CanConvertFontToUTF8(font_index) ^ font.c:418:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ConvertToOrFromUTF8(which, font_index, ppsz_cut_buffer) ^ font.c:515:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int DoesFontExist(font_name, double_byte) ^ font.c:563:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int SzUnitToFontSize(sz_unit) ^ font.c:571:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int SzUnitToPointSize(sz_unit) ^ font.c:579:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int BadDoubleByteString(pszStr, pszZero) ^ font.c:589:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *GetPrevChar(nDoubleByte, pszStr, pszCur) ^ font.c:618:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *GetShowFontChar(FontIndex) ^ font.c:639:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RecordDoubleByteFontInfo(xfs, pszSection) ^ font.c:670:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void GetCurFontInfoStr(buf, buf_sz) ^ font.c:689:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] XFontStruct *LoadAFontByName(psz_font_name, double_byte, can_debug) ^ font.c:714:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void LoadAFont(info_index, size, can_debug, pxfs, pn_vert) ^ font.c:763:21: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] struct FontSizeRec *FindFontInfo(font_index, style_index, sz_unit, must_find) ^ font.c:882:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void GetPSFontStr(FontIndex, StyleIndex, FontStr) ^ font.c:903:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] XFontStruct *LoadASymbolFont(font_size) ^ font.c:917:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *LookupPSFontAliases(buf) ^ font.c:935:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void MapAliasedPSFontName(buf, buf_sz) ^ font.c:946:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetTextExtentsInfo(pTextExtents) ^ font.c:967:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] struct StrRec *SegmentDoubleByteString(pszStr) ^ font.c:1023:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void AllocTmp16Strings(pszStr, nLen) ^ font.c:1044:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void MyTextExtents(xfs, pszStr, nLen, pxcs) ^ font.c:1113:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int MyTextWidth(xfs, pszStr, nLen) ^ font.c:1160:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void MyDrawString(dpy, d, gc, nDepth, x, y, pszStr, nLen) ^ font.c:1258:8: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Pixmap PaintVertChar(pTextExtents, nRotate) ^ font.c:1263:8: warning: variable 'w' set but not used [-Wunused-but-set-variable] int w=0, lbearing=0, rextra=0, image_w=0, image_h=0; ^ font.c:1263:25: warning: variable 'rextra' set but not used [-Wunused-but-set-variable] int w=0, lbearing=0, rextra=0, image_w=0, image_h=0; ^ font.c:1383:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ValidCharCode(c_ptr) ^ font.c:1398:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *CharCodeTranslate(c_ptr) ^ font.c:1437:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RemovePSFontNameVariations(ps_font_name_str) ^ font.c:1454:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SaveDontReencode(FP) ^ font.c:1474:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ReadDontReencode(buf) ^ font.c:1492:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SavePSFontAliases(FP) ^ font.c:1534:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SaveDoubleByteModBytes(FP) ^ font.c:1546:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SavePSFontNeedCharSubs(FP) ^ font.c:1588:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SavePSCharSubs(FP) ^ font.c:1627:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ProcessAPSFontAlias(fake_font_name, real_font_name) ^ font.c:1654:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ReadPSFontAliases(FP, buf) ^ font.c:1695:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void FreePSCharSubs(pppscs) ^ font.c:1715:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ValidCharCodeSpec(psz_char_code, token_name, pn_char_code, resource_name) ^ font.c:1775:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ProcessCharSubs(ppscs, psz_char_code, ps_char_name, resource_name) ^ font.c:1802:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ParsePSCharSubs(ppscs, c_ptr, resource_name) ^ font.c:1835:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *FindPSFontNeedCharSubs(ps_font_name) ^ font.c:1849:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] PSCharSubs *FindTokenInPSCharSubs(token_name) ^ font.c:1867:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] PSCharSubs *FindPSCharSubs(ps_font_name) ^ font.c:1878:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ProcessPSCharSubs(font_name, token_name) ^ font.c:1960:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ReadPSFontNeedCharSubs(FP, buf) ^ font.c:2000:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ReadPSCharSubs(FP, buf) ^ font.c:2067:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int DontReencodeInXDefOrCmdLine(pszFontName, nFontIndex, nFontStyle) ^ font.c:2103:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void UpdateEncodeCharInfo(nIndex, psz) ^ font.c:2115:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void PrepareStrSeg(pStrSeg) ^ font.c:2149:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void PrepareStrBlock(pStrBlock) ^ font.c:2173:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void PrepareMiniLine(pMiniLine) ^ font.c:2184:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void PrepareMiniLines(minilines) ^ font.c:2196:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void PrepareText(ObjPtr) ^ font.c:2205:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void PrepareObjFontInfo(ObjPtr) ^ font.c:2287:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int NeedEncode(FontName, FontIndex, StyleIndex) ^ font.c:2309:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int GetFontIndex(FontStr, StyleIndex, MustFind) ^ font.c:2359:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int GetFontAndStyle(FontStr, pnFont, pnStyle, MustFind) ^ font.c:2386:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int GetFontIndexFromPSFontAndStyle(font_str, style, pnDoubleByte, pnModified) ^ font.c:2429:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void InitDontReencode(buf) ^ font.c:2585:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void PutCurSzUnit(sz_unit) ^ font.c:2595:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void GetCurFontMsg(buf, pStrSeg) ^ font.c:2624:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void CurFontMsg(nShowInMsgWindow, nShowInStatusWindow, pStrSeg) ^ font.c:2636:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DumpReEncodeVector(FP, vec_prefix, vec_suffix, flag_ptr) ^ font.c:2681:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DumpEightBitFontInfo(FP) ^ font.c:2718:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int GetCompatibleSize(font_dpi, font_size) ^ font.c:2814:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TrySetCanvasFont(font, style, size, must_find_requested, pnGotRequested) ^ font.c:2900:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ObjFontInfoToCurFontInfo(TextPtr) ^ font.c:2909:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void StrSegInfoToCurFontInfo(pStrSeg) ^ font.c:2926:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetupFontInfoStr(num_new_fonts, first_fmly) ^ font.c:3562:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void InitABasicFontPtr(ppFontPtr, ppszFontName, opt_name, def_font_name, ^ font.c:4207:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetPushedFontValue(which, value) ^ font.c:4242:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int AdjTransformedTextBBox(ObjPtr) ^ font.c:4271:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ChangeStrSegFontProp(pStrSeg, which, value) ^ font.c:4328:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ChangeStrBlockFontProp(pStrBlock, which, value) ^ font.c:4366:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ChangeMiniLineFontProp(pMiniLine, which, value) ^ font.c:4382:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ChangeMiniLinesFontProp(minilines, which, value) ^ font.c:4399:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ChangeTextFontProp(text_ptr, which, value) ^ font.c:4418:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ChangeObjTextStyle(ObjPtr, StyleIndex) ^ font.c:4467:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ChangeFontStyle(StyleIndex) ^ font.c:4561:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ChangeObjTextJust(ObjPtr, JustIndex) ^ font.c:4617:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ChangeFontJust(JustIndex) ^ font.c:4673:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ChangeObjTextUnderline(ObjPtr, UnderlineIndex) ^ font.c:4723:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ChangeFontUnderline(UnderlineIndex) ^ font.c:4780:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ChangeObjTextOverline(ObjPtr, OverlineIndex) ^ font.c:4830:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ChangeFontOverline(OverlineIndex) ^ font.c:4887:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int RefreshFontStyleMenu(menu) ^ font.c:4929:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] TgMenu *CreateFontStyleMenu(parent_menu, x, y, menu_info, status_str_xlated) ^ font.c:4947:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int StyleMenu(X, Y, TrackMenubar) ^ font.c:4976:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ChangeObjTextSzUnit(ObjPtr, SzUnit) ^ font.c:5025:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ChangeFontSize(SizeIndex) ^ font.c:5118:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int RefreshFontSizeMenu(menu) ^ font.c:5139:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] TgMenu *CreateFontSizeMenu(parent_menu, x, y, menu_info, status_str_xlated) ^ font.c:5200:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int SizeMenu(X, Y, TrackMenubar) ^ font.c:5217:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ChangeObjTextFont(ObjPtr, FontIndex) ^ font.c:5266:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ChangeFont(FontIndex, ForceNewChoice) ^ font.c:5363:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int RefreshFontMenu(menu) ^ font.c:5382:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] TgMenu *CreateFontMenu(parent_menu, x, y, menu_info, status_str_xlated) ^ font.c:5440:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int FontMenu(X, Y, TrackMenubar) ^ font.c:5456:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ChangeObjVSpace(ObjPtr, VSpace) ^ font.c:5518:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ChangeVSpace(VSpace) ^ font.c:5576:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ChangeAllSelRealSzUnit(sz_unit, HighLight) ^ font.c:5612:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetSelFontSize(pszBuf) ^ font.c:5817:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void VerifyCompatibleFontIndex(font_index) ^ font.c:5825:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void GetFontStr(FontIndex, StyleIndex, FontStr) ^ font.c:5837:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void GetCompatibleFontName(old_font_index, style, font_str) ^ 109 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 -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c ftp.c ftp.c:55:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void FtpFreeBuf(buf) ^ ftp.c:61:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void FtpDebug(val) ^ ftp.c:67:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int FtpDoConnect(psz_host, us_port, pn_socket) ^ ftp.c:96:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *AppendSimpleString(buf, value) ^ ftp.c:125:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int FtpDoWrite(n_socket, psz_path) ^ ftp.c:138:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void FtpDumpResponse(func_name, buf) ^ ftp.c:181:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int FtpDoRead(n_socket, ppsz_buf, pn_buf_sz) ^ ftp.c:314:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int FtpSendSimpleCmd(n_socket, value) ^ ftp.c:331:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int FtpSendUserName(n_socket, value) ^ ftp.c:339:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int FtpSendPassword(n_socket, password) ^ ftp.c:347:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int FtpSendType(n_socket, type_cmd) ^ ftp.c:355:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int FtpSendRetrieveCmd(n_socket, psz_path) ^ ftp.c:376:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int FtpSendListCmd(n_socket) ^ ftp.c:384:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int FtpSendCWDCmd(n_socket, psz_path) ^ ftp.c:405:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int FtpSendPortCmd(n_socket, pn_data_socket) ^ ftp.c:466:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int FtpReadCmd(n_socket, ppsz_buf, pn_cmd) ^ ftp.c:490:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int FtpLogin(n_socket) ^ ftp.c:528:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int FtpPassword(n_socket) ^ ftp.c:548:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int FtpPort(n_socket, pn_data_socket) ^ ftp.c:582:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int FtpType(n_socket) ^ ftp.c:602:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int FtpRetr(n_socket, psz_path) ^ ftp.c:622:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int FtpCwd(n_socket, psz_path, pn_is_dir) ^ ftp.c:665:8: warning: variable 'status' set but not used [-Wunused-but-set-variable] int status=TG_REMOTE_STATUS_OK; ^ ftp.c:659:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int FtpGetContent(n_socket, data_socket, is_dir, ppsz_buf, pn_buf_sz) ^ ftp.c:686:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int FtpDoTalk(n_socket, psz_path, ppsz_buf, pn_buf_sz) ^ 25 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 -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c grid.c grid.c:98:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void MyHDotLine(Win, gc, Y, XStart, XEnd) ^ grid.c:115:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void MyVDotLine(Win, gc, X, YStart, YEnd) ^ grid.c:134:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DrawGridLinesSetVars(pn_inc, pn_step, pn_abs_inc) ^ grid.c:169:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RedrawGridLines(Win) ^ grid.c:213:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DrawGridLines(Win, LtX, LtY, W, H) ^ grid.c:276:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RedrawPageLines(Win) ^ grid.c:307:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DrawPageLines(Win, LtX, LtY, W, H) ^ grid.c:345:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void GetRightMarginSpec(buf) ^ grid.c:374:26: warning: format string is not a string literal (potentially insecure) [-Wformat-security] sprintf(gszMsgBox, TgLoadString(STID_RIGHT_MARGIN_DISABLED)); ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^~~~~~~~~~~ grid.c:374:26: note: treat the string as an argument to avoid this sprintf(gszMsgBox, TgLoadString(STID_RIGHT_MARGIN_DISABLED)); ^ "%s", /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^ grid.c:644:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetWhereToPrint(nIndex) ^ grid.c:740:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void PostZoom(xc, yc) ^ grid.c:870:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void FixUpZoomCenter(p_abs_cx, p_abs_cy, zooming_in) ^ grid.c:997:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ZoomInAtCursor(abs_x, abs_y) ^ grid.c:1086:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void CenterAtCursor(abs_x, abs_y) ^ grid.c:1094:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void PreciseZoom(zoomed_in, zoom_scale, force_zoom) ^ grid.c:1147:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int UpdPageStyle(NewPageStyle) ^ grid.c:1268:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ChangePageStyle(NewPageStyle) ^ grid.c:1289:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int RefreshPageStyleMenu(menu) ^ grid.c:1304:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] TgMenu *CreatePageStyleMenu(parent_menu, x, y, menu_info, status_str_xlated) ^ grid.c:1320:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int PageStyleMenu(X, Y, TrackMenubar) ^ grid.c:1337:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RefreshExportFormatMenu(menu) ^ grid.c:1355:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] TgMenu *CreateExportFormatMenu(parent_menu, x, y, menu_info, status_str_xlated) ^ grid.c:1415:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExportFormatMenu(X, Y, TrackMenubar) ^ grid.c:1432:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int RefreshShowHideMenu(menu) ^ grid.c:1476:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] TgMenu *CreateShowHideMenu(parent_menu, x, y, menu_info, status_str_xlated) ^ grid.c:1492:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int RefreshLayoutMenu(menu) ^ grid.c:1534:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] TgMenu *CreateLayoutMenu(parent_menu, x, y, menu_info, status_str_xlated) ^ grid.c:1550:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int LayoutMenu(X, Y, TrackMenubar) ^ grid.c:1587:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void GridXY(X, Y, GridX, GridY) ^ grid.c:1615:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ControlKeyPressedEvent(ev) ^ grid.c:1630:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int DiagEventCheck(ev) ^ grid.c:1651:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DiagGridXY(OrigX, OrigY, NewX, NewY) ^ grid.c:1688:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void MoveModeSubMenu(index) ^ grid.c:1701:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RefreshMoveModeMenu(menu) ^ grid.c:1719:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] TgMenu *CreateMoveModeMenu(parent_menu, x, y, menu_info, status_str_xlated) ^ grid.c:1745:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int MoveModeMenu(X, Y, TrackMenubar) ^ grid.c:1762:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void StretchableTextModeSubMenu(index) ^ grid.c:1776:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RefreshStretchableTextModeMenu(menu) ^ grid.c:1794:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] TgMenu *CreateStretchableTextModeMenu(parent_menu, x, y, menu_info, ^ grid.c:1822:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int StretchableTextModeMenu(X, Y, TrackMenubar) ^ grid.c:1839:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RefreshTransPatModeMenu(menu) ^ grid.c:1857:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] TgMenu *CreateTransPatModeMenu(parent_menu, x, y, menu_info, status_str_xlated) ^ grid.c:1883:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TransPatModeMenu(X, Y, TrackMenubar) ^ grid.c:1900:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int RefreshGridMenu(menu) ^ grid.c:1923:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] TgMenu *CreateGridMenu(parent_menu, x, y, menu_info, status_str_xlated) ^ grid.c:1940:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int GridMenu(X, Y, TrackMenubar) ^ 46 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 -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c group.c group.c:95:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void CreateGroupObj(TopObjPtr, BotObjPtr) ^ group.c:117:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SaveGroupObj(FP, ObjPtr, Level) ^ group.c:134:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SaveCompObj(FP, ObjPtr, Level) ^ group.c:151:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SaveIconObj(FP, ObjPtr, Level) ^ group.c:169:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SavePinObj(FP, ObjPtr, Level) ^ group.c:199:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ReadGroupObj(FP, ObjType, ObjPtr) ^ group.c:401:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void FreeGroupObj(ObjPtr) ^ group.c:414:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void UngroupObj(ObjPtr, TopSelPtr, BotSelPtr) ^ group.c:431:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int NoObjToUngroup(pn_force_ungroup) ^ group.c:476:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void UngroupSelObj(highlight, record_cmd) ^ 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 -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c hash.c hash.c:58:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void FreeHashData(phd) ^ hash.c:70:11: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] HashData *NewIntHashData(psz_key, key_sz, ival) ^ hash.c:90:11: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] HashData *NewStrHashData(psz_key, key_sz, psz_value) ^ hash.c:110:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] unsigned int GetBucket(p_hash, psz_key, key_sz) ^ hash.c:171:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void CleanUpHash(p_hash) ^ hash.c:195:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int InitHash(p_hash, which) ^ hash.c:220:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int HashStoreInt(p_hash, psz_key, key_sz, ival) ^ hash.c:236:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int HashStoreStr(p_hash, psz_key, key_sz, psz_val) ^ hash.c:252:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int HashLookUpInt(p_hash, psz_key, key_sz, pn_value_return) ^ hash.c:277:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *HashLookUpStr(p_hash, psz_key, key_sz) ^ 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 -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c help.c help.c:249:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RefreshHelpMenu(menu) ^ help.c:254:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int HelpMenu(X, Y, TrackMenubar) ^ 2 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 -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c http.c http.c:106:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void HttpFreeBuf(buf) ^ http.c:112:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void HttpDebug(val) ^ http.c:148:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DoBase64Encode(buf_in, buf_len, return_buf_in) ^ http.c:189:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *Base64Encode(buf) ^ http.c:205:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int Convert(buf4, count, buf3) ^ http.c:234:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int DoBase64Decode(buf, buf_sz, return_buf) ^ http.c:267:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *Base64Decode(buf) ^ http.c:283:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void BubbleAuthInfoToTop(pai) ^ http.c:298:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *FindAuthorization(pszHost, nPort, pszScheme, pszRealm) ^ http.c:359:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int SetAuthorization(pszHost, nPort, pszScheme, pszRealm, pszEncodedAuth) ^ http.c:391:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void HttpSetReferer(buf) ^ http.c:403:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void HttpFakeReferer(buf) ^ http.c:504:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *HttpHeaderGetOtherField(name) ^ http.c:529:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int HttpDoConnect(psz_host, us_port, pn_socket) ^ http.c:560:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *AppendSimpleString(buf, name, value) ^ http.c:598:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *AppendAcceptStrings(buf) ^ http.c:619:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *AppendKeepAliveStrings(buf) ^ http.c:629:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *AppendRefererStrings(buf) ^ http.c:644:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *AppendUserAgentString(buf) ^ http.c:653:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *AppendFromString(buf) ^ http.c:662:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *AppendHostString(buf, psz_host, us_port) ^ http.c:674:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *AppendAuthorizationString(buf) ^ http.c:692:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *AppendPostContentTypeString(buf) ^ http.c:700:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *AppendPostContentLengthString(buf, content_length) ^ http.c:712:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *AppendPostContentString(buf, fp, content_length) ^ http.c:740:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *AppendCRLFString(buf) ^ http.c:746:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int HttpDoWrite(n_socket, psz_path, psz_host, us_port) ^ http.c:949:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ParseBadFormat(buf) ^ http.c:959:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ParseNoMem(buf) ^ http.c:968:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int HttpParseHeaderLine(buf, first_line) ^ http.c:1110:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *HttpExtractText(buf, pn_buf_sz, pn_html, ppsz_content_type) ^ http.c:1242:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int GetContentLength(buf, pn_header_len) ^ http.c:1283:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ReadFromSocket(n_socket) ^ http.c:1344:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int HttpDoRead(n_socket, ppsz_buf, pn_buf_sz) ^ 34 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 -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c imgproc.c imgproc.c:152:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ParseThreshFillReplaceSpec(spec) ^ imgproc.c:221:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TrueColorPixelWithinRange(pixel, ptfri) ^ imgproc.c:250:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int OtherPixelWithinRange(pixel, ptfri) ^ imgproc.c:283:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int GetPixelRGB(ptfri, pixel, pxc_pixel) ^ imgproc.c:342:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int SetupThreshFillReplaceInfo(ptfri, pixel, pxc_pixel) ^ imgproc.c:425:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int DoPpm6(xpm_ptr) ^ imgproc.c:439:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int FreePreprocessPixels(h, xcolors) ^ imgproc.c:476:10: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] XColor **PreprocessOneImagePixels(w, h, image, bitmap_image) ^ imgproc.c:594:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int SetConvExtraInfo(fp, image_w, image_h, image, bitmap_image) ^ imgproc.c:683:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *GetImageProcName(nCmdId) ^ imgproc.c:713:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TrueColorTransPixelCheck(obj_ptr, cmdid) ^ imgproc.c:727:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int CurColorIsTranscolor(trans_color_r, trans_color_g, trans_color_b) ^ imgproc.c:755:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int CheckSelectionForImageProc(cmdid) ^ imgproc.c:809:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int GetXPmImages(xpm_ptr, p_image, p_bitmap_image) ^ imgproc.c:925:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int GetOrAllocHistogramIndex(pcolor) ^ imgproc.c:982:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int PixelToIndexHash(pixel) ^ imgproc.c:990:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int GetIndexOfPixel(pixel) ^ imgproc.c:1009:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void UpdatePixelToIndexMapping(buckets, pixel, index) ^ imgproc.c:1031:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int AllocTmpBuckets(populate_with_color_pixels) ^ imgproc.c:1091:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int CreateObjPixelToIndexMapping(xpm_ptr) ^ imgproc.c:1183:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int DumpConvolution(fp) ^ imgproc.c:1273:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int DumpQuantizedConvolution(fp) ^ imgproc.c:1380:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int AlreadySorted(nMinIndex, nMaxIndex, nLongAxis) ^ imgproc.c:1415:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DebugSortACube(nMinIndex, nMaxIndex, nLevel, nLongAxis) ^ imgproc.c:1478:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void QuickSortACube(nMinIndex, nMaxIndex, nLevel, nLongAxis) ^ imgproc.c:1560:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SweepACube(cube_index) ^ imgproc.c:1604:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int SplitACube(cube_index, pul_before_count, pul_after_count) ^ imgproc.c:1786:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int DoConvolution(fp, image, bitmap_image, w, h, xpm_ptr) ^ imgproc.c:1951:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int DoColorMapping(fp, image, bitmap_image, w, h, xpm_ptr) ^ imgproc.c:2064:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] FILE *GetImageProcOutputFileName(pszPath, path_buf_sz, pnShortName, ppszRest) ^ imgproc.c:2091:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int CleanUpProcessImage(fp, image, bitmap_image) ^ imgproc.c:2235:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int DoImageProc(pvImageMapColorFunc) ^ imgproc.c:2489:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ChangeToGray(nColorIndex, pColor) ^ imgproc.c:2539:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ChangeToInvertColor(nColorIndex, pColor) ^ imgproc.c:2598:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ChangeToInterpolateColor(nColorIndex, pColor) ^ imgproc.c:2716:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ChangeToBrightenDarken(nColorIndex, pColor) ^ imgproc.c:2814:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RGBtoHSV(r, g, b, h, s, v) ^ imgproc.c:2861:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void HSVtoRGB(h, s, v, r, g, b) ^ imgproc.c:2927:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ChangeToChangeSaturation(nColorIndex, pColor) ^ imgproc.c:3044:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int HueInFromRange(fHue) ^ imgproc.c:3060:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ChangeToChangeHue(nColorIndex, pColor) ^ imgproc.c:3230:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ChangeToContrastEnhance(nColorIndex, pColor) ^ imgproc.c:3332:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ChangeToColorBalance(nColorIndex, pColor) ^ imgproc.c:3440:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ChangeToGamma(nColorIndex, pColor) ^ imgproc.c:3498:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void Gamma(buf) ^ imgproc.c:3549:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ConvolveToEdgeDetect(x, y) ^ imgproc.c:3721:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ConvolveToEmboss(x, y) ^ imgproc.c:3812:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ConvolveToReduceColors(x, y) ^ imgproc.c:3879:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void FreeTargetColors(ncolors) ^ imgproc.c:3893:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int AllocTargetColors(ncolors) ^ imgproc.c:3911:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int GetClosestColorIndex(red_bits, green_bits, blue_bits, red, green, blue, ^ imgproc.c:4047:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ConvolveToErrorDiffuse(x, y) ^ imgproc.c:4081:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ConvolveToReduceToPixmapColors(x, y) ^ imgproc.c:4139:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int GetIntensity(index, max_levels) ^ imgproc.c:4158:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int DoPrepareForErrorDiffuse(xpm_ptr) ^ imgproc.c:4329:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int PrepareForErrorDiffuse(xpm_ptr) ^ imgproc.c:4345:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int MapTargetColors(xpm_ptr) ^ imgproc.c:4560:24: warning: too few arguments in call to 'FreeTargetColors' FreeTargetColors(); ~~~~~~~~~~~~~~~~ ^ imgproc.c:4592:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int GetMobileWebSafeIntensity(index) ^ imgproc.c:4708:21: warning: too few arguments in call to 'FreeTargetColors' FreeTargetColors(); ~~~~~~~~~~~~~~~~ ^ imgproc.c:4736:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ParseDefaultColorLevels(buf, p_xcolor) ^ imgproc.c:4876:21: warning: too few arguments in call to 'FreeTargetColors' FreeTargetColors(); ~~~~~~~~~~~~~~~~ ^ imgproc.c:4804:39: warning: variable 'image_h' set but not used [-Wunused-but-set-variable] int i, red=0, rc=FALSE, ncolors=0, image_h=0; ^ imgproc.c:4966:21: warning: too few arguments in call to 'FreeTargetColors' FreeTargetColors(); ~~~~~~~~~~~~~~~~ ^ imgproc.c:4982:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ConvolveToSpread(x, y) ^ imgproc.c:5146:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ConvolveToSharpen(x, y) ^ imgproc.c:5264:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ConvolveToBlur(x, y) ^ imgproc.c:5353:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void Blur(nSize) ^ imgproc.c:5388:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int PointInRect(x, y, p_bbox) ^ imgproc.c:5401:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ConvolveToAlphaCombine(x, y) ^ imgproc.c:5542:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void OffsetRect(p_bbox, dx, dy) ^ imgproc.c:5662:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ConvolveToSubtract(x, y) ^ imgproc.c:5850:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ConvolveToXorColors(x, y) ^ imgproc.c:6121:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void CleanTrapMapNode(pTrapMapNode) ^ imgproc.c:6178:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int SetTrapMapLeaf(pTrapMapSpecRoot, pnIndex, pTrapMapNode, nWhich) ^ imgproc.c:6191:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int SetTrapMapPt(pTrapMapSpecRoot, pnIndex, pTrapMapNode, nWhich) ^ imgproc.c:6222:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int SetTrapMapSeg(pTrapMapSpecRoot, pnIndex, pTrapMapNode, nWhich) ^ imgproc.c:6252:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int BuildTrapMapNode(pTrapMapSpecRoot, pnIndex, pTrapMapNode) ^ imgproc.c:6275:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int BuildTrapMap(pTrapMapSpec) ^ imgproc.c:6350:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ConvolveToVectorWarp(x, y) ^ imgproc.c:6397:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetTrapMapSegValue(nSegIndex, nPtIndex, w) ^ imgproc.c:6423:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetTrapMapExtraValue(nLeafIndex, end_x, end_y, w) ^ imgproc.c:6447:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int CheckVectorWarpCoords(pFromPt, pToPt, dx, dy, image_w, image_h, pBBox) ^ imgproc.c:6639:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int GetQuadrant(pTrapMap, x, y) ^ imgproc.c:6677:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ComputeVectorWarpData(pFromPt, dx, dy) ^ imgproc.c:6877:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int SpecifyLineSeg(pnFromAbsX, pnFromAbsY, pnToAbsX, pnToAbsY) ^ imgproc.c:7002:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int GetBggenImageSize(p_image_w, p_image_h) ^ imgproc.c:7038:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int BggenGenerateXpm(image_w, image_h, sz_spec, sz_path, path_buf_sz) ^ imgproc.c:7221:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int CircularBggenGenerateXpm(image_w, image_h, ncolors, sz_path, path_buf_sz) ^ imgproc.c:7476:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int SimpleRectBggenGenerateXpm(image_w, image_h, pxcolor, sz_path, path_buf_sz) ^ imgproc.c:7711:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int RegenerateImageFile(pszPath, xpm_ptr) ^ imgproc.c:8034:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ContinueCrop(nObjAbsLtX, nObjAbsLtY, nStartXOff, nStartYOff, ^ imgproc.c:8105:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int GetCropArea(obj_abs_ltx, obj_abs_lty, pbbox) ^ imgproc.c:8353:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetCurrentColor(xpm_ptr, image, bitmap_image, image_x, image_y) ^ imgproc.c:8412:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DoGetColor(obj_ptr) ^ imgproc.c:8557:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] unsigned int FillReplacePickAPoint(OrigX, OrigY, EndX, EndY, AllowDrag, cursor) ^ imgproc.c:8627:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DoReplaceAColor(obj_ptr, image, bitmap_image, image_x, image_y, ^ imgproc.c:8817:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ContinueReplaceColor(obj_ptr) ^ imgproc.c:9118:52: warning: format string is not a string literal (potentially insecure) [-Wformat-security] snprintf(gszMsgBox, sizeof(gszMsgBox), TgLoadString(STID_CANNOT_FIND_GOOD_TRANSPIX)); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:57:62: note: expanded from macro 'snprintf' __builtin___snprintf_chk (str, len, 0, __darwin_obsz(str), __VA_ARGS__) ^~~~~~~~~~~ imgproc.c:9118:52: note: treat the string as an argument to avoid this snprintf(gszMsgBox, sizeof(gszMsgBox), TgLoadString(STID_CANNOT_FIND_GOOD_TRANSPIX)); ^ "%s", /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:57:62: note: expanded from macro 'snprintf' __builtin___snprintf_chk (str, len, 0, __darwin_obsz(str), __VA_ARGS__) ^ imgproc.c:8938:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int SetupReplaceColorInfo(obj_ptr, prci) ^ imgproc.c:9197:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int SelectThisPixelForFloodFill(c, r, pixel, image) ^ imgproc.c:9236:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void FloodFillAddToQueue(plist, c, r, dir, pbbox) ^ imgproc.c:9257:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void FloodFillBFS(image, pixel, image_w, image_h, plist, map, pbbox) ^ imgproc.c:9331:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void CalcFloodFill(c, r, pixel, image, image_w, image_h, dir, map, pbbox) ^ imgproc.c:9346:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DoFloodFill(image, image_w, map, pbbox) ^ imgproc.c:9366:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void StartFloodFill(obj_ptr, image, bitmap_image, image_x, image_y, ^ imgproc.c:9491:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TryFloodFill(obj_ptr, image_w, image_h, image, bitmap_image, button, ^ imgproc.c:9543:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void GetUntransformedPoint(obj_ptr, abs_x, abs_y, v) ^ imgproc.c:9561:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ContinueFloodFill(obj_ptr) ^ imgproc.c:9769:26: warning: format string is not a string literal (potentially insecure) [-Wformat-security] sprintf(gszMsgBox, TgLoadString(STID_FLOOD_REPLACE_DISABLED)); ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^~~~~~~~~~~ imgproc.c:9769:26: note: treat the string as an argument to avoid this sprintf(gszMsgBox, TgLoadString(STID_FLOOD_REPLACE_DISABLED)); ^ "%s", /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^ imgproc.c:9845:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int OnContour(x, y) ^ imgproc.c:9865:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ProbeContour(x, y, dir, pn_new_x, pn_new_y) ^ imgproc.c:9884:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ContourNeighbor(x, y, last_dir, pn_new_x, pn_new_y) ^ imgproc.c:9919:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int CreatePolyFromContour(num_pts) ^ imgproc.c:10041:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int StartCreateContour(obj_ptr, image, bitmap_image, image_x, image_y, ^ imgproc.c:10108:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ContinueCreateContour(obj_ptr) ^ imgproc.c:10380:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int RefreshImageProcMenu(menu) ^ imgproc.c:10396:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] TgMenu *CreateImageProcMenu(parent_menu, x, y, menu_info, status_str_xlated) ^ imgproc.c:10413:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ImageProcMenu(X, Y, TrackMenubar) ^ 119 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 -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c import.c import.c:100:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void MillisecondSleep(ms) ^ import.c:116:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExtensionMatch(Spec, DirName) ^ import.c:137:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *SetUpExtStr(cbBuf, pszExt, pszOtherExt) ^ import.c:199:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void InvalidFilterSpecMsg(pszEntry, pszValue, nExplain) ^ import.c:221:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int CountPercentS(buf) ^ import.c:234:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *FindBlank(pszStr, ppszEnd) ^ import.c:465:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ImportGivenXBitmapFile(remote_file, tmp_fname, xbm_fname, stid_success, ^ import.c:601:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ImportGivenXPixmapFile(remote_file, tmp_fname, xpm_fname, stid_success, ^ import.c:710:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ImportEPSFile(Embed, psz_fname_spec) ^ import.c:1062:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ConvertGifToXpm(pszGifPath, pszXpmPath, xpm_path_sz) ^ import.c:1131:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ConvertPngToXpm(pszPngPath, pszXpmPath, xpm_path_sz) ^ import.c:1202:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ConvertJpegToXpm(pszJpegPath, pszXpmPath, xpm_path_sz) ^ import.c:1273:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ConvertImageFileToPpm6(pszImageFilePath, pszPpm6Path, ppm6_path_sz, format) ^ import.c:1357:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ConvertJpegToPpm6(pszJpegPath, pszPpm6Path, ppm6_path_sz) ^ import.c:1365:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ConvertPngToPpm6(pszPngPath, pszPpm6Path, ppm6_path_sz) ^ import.c:1373:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ConvertGifToPpm6(pszGifPath, pszPpm6Path, ppm6_path_sz) ^ import.c:1386:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int FinishImport(remote_file, remote_tmp_fname, local_fname, which, pn_image_w, ^ import.c:1627:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ImportJPEGFile(Embed, psz_fname_spec) ^ import.c:1847:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ConvertPbmToXbm(pszPbmPath, pszXbmPath, xbm_path_sz) ^ import.c:1994:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ConvertPgmToXpm(pszPgmPath, pszXpmPath, xpm_path_sz) ^ import.c:2141:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ConvertPpmToXpm(pszPpmPath, pszXpmPath, xpm_path_sz) ^ import.c:2259:10: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] DspList *ImportFilterListing(pnEntries) ^ import.c:2285:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ChooseAnImportFilter(top_str, entries, num_entries) ^ import.c:2306:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int SelectAnImportFilter(pszSelected) ^ import.c:2340:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ConvertAnyToXpm(pii, pszAnyPath, pszXpmPath, xpm_path_sz) ^ import.c:2425:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ReadFourBytes(psz_path, magic_buf, magic_buf_sz) ^ import.c:2444:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int DoImportOtherFile(pii, psz_path) ^ import.c:2609:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ImportOtherFileType(pszName) ^ import.c:2635:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ImportSpecifiedFileType(psz_path, psz_filter) ^ import.c:2654:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ConvertOtherToXpm(pszFile, pszFormat, pszXpmPath, xpm_path_sz) ^ import.c:2690:19: warning: format string is not a string literal (potentially insecure) [-Wformat-security] sprintf(szTop, TgLoadString(STID_SEL_ANIM_GIF_FILE_TO_IMPORT)); ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^~~~~~~~~~~ import.c:2690:19: note: treat the string as an argument to avoid this sprintf(szTop, TgLoadString(STID_SEL_ANIM_GIF_FILE_TO_IMPORT)); ^ "%s", /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^ import.c:2951:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void InitBrowse(pszDir, ObjType) ^ import.c:3029:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] struct ObjRec *ImportForThumbnails(fname, p_bbox_w, p_bbox_h) ^ import.c:3091:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int RegenerateImageFile(pszPath) ^ import.c:3118:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] struct ObjRec *MyRegenerateImage(obj_ptr) ^ import.c:3180:8: warning: variable 'final_w' set but not used [-Wunused-but-set-variable] int final_w=0, final_h=0; ^ import.c:3180:19: warning: variable 'final_h' set but not used [-Wunused-but-set-variable] int final_w=0, final_h=0; ^ import.c:3172:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] struct ObjRec *GenerateXpmThumbnail(imported_obj) ^ import.c:3245:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int BrowseDir(DirName, ExtStr, ExtStrLen, ObjType, pii) ^ import.c:3466:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void StartBrowse(DirName, ExtStr, ExtStrLen, ObjType, pii) ^ import.c:3507:8: warning: variable 'len' set but not used [-Wunused-but-set-variable] int len=0; ^ import.c:3576:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void BrowseOtherType(pszName) ^ import.c:3640:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int EnumPopupMenuProcToHide(menu_index, win, pUserData) ^ import.c:3668:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int EnumPopupMenuProcToShow(menu_index, win, pUserData) ^ import.c:3679:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int EnumPopupMenuProcToUpdate(menu_index, win, pUserData) ^ import.c:3713:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] struct ObjRec *CreatePpmTrueObjFromImage(image, image_w, image_h, ^ import.c:3827:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void CaptureUpdateBox(OrigX, OrigY, end_x, end_y) ^ import.c:3840:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ContinueScreenCapture(OrigX, OrigY) ^ import.c:4010:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int RefreshScreenCaptureMenu(menu) ^ import.c:4032:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] TgMenu *CreateScreenCaptureMenu(parent_menu, x, y, menu_info, status_str_xlated) ^ import.c:4058:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int RefreshImportMenu(menu) ^ import.c:4070:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] TgMenu *CreateImportMenu(parent_menu, x, y, menu_info, status_str_xlated) ^ 52 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 -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c ini.c ini.c:78:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int InvalidPath(pszFile) ^ ini.c:88:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int GetLastModifiedTime(pszFile, pFileTime) ^ ini.c:102:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int CompareFileTime(pNewFileTime, pOldFileTime) ^ ini.c:121:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void UnlinkFileInfo(ptifi) ^ ini.c:137:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DiscardEntryInfo(ptiei) ^ ini.c:145:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DiscardSectionInfo(ptisi) ^ ini.c:159:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int WriteOutIniFile(ptifi, pszAltFile) ^ ini.c:221:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int DiscardFileInfo(ptifi) ^ ini.c:242:17: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] TGINIENTRYINFO *AllocEntryInfo(ptisi, pszEntry, pszValue) ^ ini.c:278:19: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] TGINISECTIONINFO *AllocSectionInfo(ptifi, pszSection, bValuelessKey) ^ ini.c:312:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] TGINIFILEINFO *AllocFileInfo(pszFile) ^ ini.c:350:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ParseFile(ptifi) ^ ini.c:418:17: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] TGINIENTRYINFO *FindEntryInfo(ptisi, pszEntry) ^ ini.c:451:19: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] TGINISECTIONINFO *FindSectionInfo(ptifi, pszSection) ^ ini.c:469:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] TGINIFILEINFO *TgIniFindFileInfo(pszFile, bAutoLoad) ^ ini.c:507:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TgIniDiscardFileInfo(pszFile) ^ ini.c:523:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void TgIniBeginFastProfile(ptifi) ^ ini.c:530:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void TgIniEndFastProfile(ptifi) ^ ini.c:537:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TgIniSetProfileStripQuotes(ptifi, bStripQuotes) ^ ini.c:551:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *TgIniGetProfileString(pszSection, pszEntry, ptifi) ^ ini.c:648:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TgIniWriteProfileString(pszSection, pszEntry, pszValue, ptifi) ^ ini.c:719:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void TgIniBeginDupKeySection(pszSection, ptifi) ^ ini.c:735:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void TgIniEndDupKeySection(pszSection, ptifi) ^ ini.c:747:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TgIniBeginValuelessKeySection(pszSection, ptifi) ^ ini.c:779:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void TgIniEndValuelessKeySection(pszSection, ptifi, bValuelessKey) ^ ini.c:799:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TgIniIsValuelessKeySection(pszSection, ptifi) ^ ini.c:817:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TgIniDeleteDupKeyValue(pszSection, pszEntry, pszValue, ptifi) ^ ini.c:871:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *tgFreeProfileString(pszStr) ^ ini.c:878:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void tgBeginFastProfile(pszFile) ^ ini.c:888:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void tgEndFastProfile(pszFile) ^ ini.c:898:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int tgSetProfileStripQuotes(pszFile, bStripQuotes) ^ ini.c:909:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *tgGetProfileString(pszSection, pszEntry, pszFile) ^ ini.c:919:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int tgGetProfileInt(pszSection, pszEntry, nDefault, pszFile) ^ ini.c:943:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int tgWriteProfileString(pszSection, pszEntry, pszString, pszFile) ^ ini.c:955:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void tgBeginDupKeySection(pszSection, pszFile) ^ ini.c:969:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void tgEndDupKeySection(pszSection, pszFile) ^ ini.c:983:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int tgBeginValuelessKeySection(pszSection, pszFile) ^ ini.c:997:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void tgEndValuelessKeySection(pszSection, pszFile, bValuelessKey) ^ ini.c:1012:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int tgIsValuelessKeySection(pszSection, pszFile) ^ ini.c:1026:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int tgDeleteDupKeyValue(pszSection, pszEntry, pszValue, pszFile) ^ 40 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 -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c inmethod.c inmethod.c:256:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void KinputCleanUp(dpy, win) ^ inmethod.c:264:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int KinputInit(dpy, win, arg) ^ inmethod.c:294:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int KinputFocusIn(dpy, win) ^ inmethod.c:302:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int KinputFocusOut(dpy, win) ^ inmethod.c:310:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int KinputSendKey(dpy, win, key_ev, buf) ^ inmethod.c:320:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int KinputConvProperty(dpy, win, prop_ev, ppsz_buf) ^ inmethod.c:336:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int KinputExpectCM(dpy, win) ^ inmethod.c:345:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int KinputHandleCM(dpy, win, cm_ev, key_ev, buf) ^ inmethod.c:357:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int KinputActiveOnCntrlSpace(dpy, win) ^ inmethod.c:366:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int KinputHandleCntrlSpace(dpy, win) ^ inmethod.c:375:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int KinputDeactiveOnCreateText(dpy, win) ^ inmethod.c:383:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int KinputHandleCreateText(dpy, win) ^ inmethod.c:392:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int KinputTellCursorPos(dpy, win, cur_x, cur_y) ^ inmethod.c:406:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void XimCleanUp(dpy, win) ^ inmethod.c:414:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int XimInit(dpy, win, arg) ^ inmethod.c:431:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int XimFocusIn(dpy, win) ^ inmethod.c:440:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int XimFocusOut(dpy, win) ^ inmethod.c:449:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int XimDeactiveOnCreateText(dpy, win) ^ inmethod.c:457:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int XimHandleCreateText(dpy, win) ^ inmethod.c:466:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int XimExpectNextEvent(dpy, win) ^ inmethod.c:475:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int XimHandleNextEvent(dpy, win, ev) ^ inmethod.c:485:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int XimHandleNewCurText(dpy, win) ^ inmethod.c:494:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int XimExpectLookupString(dpy, win) ^ inmethod.c:505:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int XimHandleLookupString(dpy, win, key_ev, psz_buf, buf_size, p_key_sym, ^ inmethod.c:520:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int XimTellCursorPos(dpy, win, cur_x, cur_y) ^ inmethod.c:534:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void Tgtwb5CleanUp(dpy, win) ^ inmethod.c:542:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int Tgtwb5Init(dpy, win, arg) ^ inmethod.c:551:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int Tgtwb5SendKey(dpy, win, key_ev, buf) ^ inmethod.c:561:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int Tgtwb5ExpectCM(dpy, win) ^ inmethod.c:569:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int Tgtwb5ActiveOnCntrlSpace(dpy, win) ^ inmethod.c:578:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int Tgtwb5HandleCntrlSpace(dpy, win) ^ inmethod.c:586:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int Tgtwb5DeactiveOnCreateText(dpy, win) ^ inmethod.c:594:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int Tgtwb5HandleCreateText(dpy, win) ^ inmethod.c:858:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int InputMethodTypeMatched(double_byte) ^ inmethod.c:872:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int tgIMFocusIn(dpy, win) ^ inmethod.c:883:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int tgIMFocusOut(dpy, win) ^ inmethod.c:894:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int tgIMTranslateKeyEvent(dpy, win, key_ev, buf) ^ inmethod.c:907:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int tgIMConvertProperty(dpy, win, prop_ev, ppsz_buf) ^ inmethod.c:921:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int tgIMExpectClientMessage(dpy, win) ^ inmethod.c:932:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int tgIMHandleClientMessage(dpy, win, cm_ev, key_ev, buf) ^ inmethod.c:947:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int tgIMActiveOnCntrlSpace(dpy, win) ^ inmethod.c:958:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int tgIMHandleCntrlSpace(dpy, win) ^ inmethod.c:969:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int tgIMDeactiveOnCreateText(dpy, win) ^ inmethod.c:981:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int tgIMHandleCreateText(dpy, win) ^ inmethod.c:992:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int tgIMTellCursorPosition(dpy, win, cur_x, cur_y) ^ inmethod.c:1005:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int tgIMExpectNextEvent(dpy, win) ^ inmethod.c:1016:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int tgIMHandleNextEvent(dpy, win, ev) ^ inmethod.c:1028:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int tgIMHandleNewCurText(dpy, win) ^ inmethod.c:1039:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int tgIMExpectLookupString(dpy, win) ^ inmethod.c:1050:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int tgIMHandleLookupString(dpy, win, key_ev, psz_buf, buf_size, p_key_sym, ^ 50 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 -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c list.c 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 -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c mainloop.c mainloop.c:146:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int AddExtraWinInfo(win, mapped, raise, expose_handler, ev_handler, ^ mainloop.c:236:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *MySetLocale(category, new_locale) ^ mainloop.c:248:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ExecWithFile(CmdName, FileName) ^ mainloop.c:271:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DeallocStrings(FStr, Str1, Menu1, Str2, Menu2, Str3, Menu3) ^ mainloop.c:284:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void AllocStrings(FStr, Str1, Menu1, Str2, Menu2, Str3, Menu3) ^ mainloop.c:414:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ExposeEventHandler(input, recursive) ^ mainloop.c:518:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int GzipFile(fname, gzipped_fname) ^ mainloop.c:584:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *GunzipFileIntoTemp(gzipped_fname) ^ mainloop.c:780:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int JustLoadAFile(pszFile, pnNeedToCheckAutoExec, nAttemptToMerge, pnAbortMerge) ^ mainloop.c:1109:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SigchldHandler(sig) ^ mainloop.c:1118:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int JustInit(pszFile, pnNeedToCheckAutoExec) ^ mainloop.c:1252:18: warning: variable 'initialized' set but not used [-Wunused-but-set-variable] static int initialized=FALSE; ^ mainloop.c:1405:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int GetAnXEvent(pXEvent) ^ mainloop.c:1517:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TryProcessAnXEvent(pnNeedToCheckAutoExec) ^ mainloop.c:1676:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TryProcessAnAbortXEvent(esc_to_abort, pf_abort_callback, p_void) ^ mainloop.c:1723:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void MainLoop(Op, FileName, FuncStr, Str1, Menu1, Str2, Menu2, Str3, Menu3) ^ mainloop.c:1838:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void UrlDump(pszUrl) ^ mainloop.c:1891:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DosEpsFilter(pszUrl) ^ mainloop.c:1900:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void HandleSimpleEvent(input) ^ mainloop.c:1929:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void AllocReturnStr(ReturnStr) ^ mainloop.c:1935:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void Animate(TypeStr, PolyId, SpeedStr, ColorStr, ReturnStr) ^ mainloop.c:2018:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void MyFormat(Str) ^ mainloop.c:2041:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void UpdAttrVal(ObjId, AttrName, AttrColor, AttrVal, ReturnStr) ^ mainloop.c:2118:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetLastKeyEvInfo(key_ev) ^ mainloop.c:2132:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetLastBtnEvInfo(button_ev) ^ 25 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 -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c mainmenu.c mainmenu.c:218:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SaveMainWinPosition(x, y) ^ mainmenu.c:228:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void MoveMainMenuWindow(x, y) ^ mainmenu.c:246:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void GetPopupXY(win, px, py) ^ mainmenu.c:272:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void GetPopupWH(win, pw, ph) ^ mainmenu.c:333:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RepositionSubMenuWindow(win, menu_index, OrigCursorX, OrigCursorY) ^ mainmenu.c:379:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void TgSubMenuExposeHandler(input, win_info) ^ mainmenu.c:402:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ComputeSubMenuWinXY(win, x, y) ^ mainmenu.c:430:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void TgUpdateMenuBBox(menu, pn_win_x, pn_win_y) ^ mainmenu.c:444:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void TgShowPullDownStatus(menu, new_selected) ^ mainmenu.c:463:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void TgPullDownFromSubMenu(menu, new_selected) ^ mainmenu.c:551:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int MouseInsideWindow(win, win_w, win_h) ^ mainmenu.c:565:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TgSubMenuEventHandler(input, win_info) ^ mainmenu.c:807:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void TgSubMenuCleanUp(win_info) ^ mainmenu.c:818:8: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Window TgRealizePinnedMenuWindow(menu, win_x, win_y, win_w, win_h) ^ mainmenu.c:920:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TgWindowIsPinnedMenu(win, menu_index) ^ mainmenu.c:928:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TgHandlePinnedMenuEvent(win, menu_index, input) ^ mainmenu.c:942:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void UpdatePinnedMenu(menu_index) ^ mainmenu.c:1024:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void UseWireMenuItemInModeItem(connecting) ^ mainmenu.c:1054:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DestroyPinnedMenu(menu_index) ^ mainmenu.c:1145:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void EnumPopupMenuWindow(pFunc, pUserData) ^ 20 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 -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c mark.c mark.c:95:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void MarkStructuredSpline(obj_ptr, ssn, ssvs, ssmooth, curved, locked) ^ mark.c:143:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void MarkPoly(ObjPtr, NumPts, V, Smooth, Curved, Locked) ^ mark.c:206:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void Mark4Corners(BBox, Locked, Thin) ^ mark.c:228:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void Mark8Places(BBox, Locked) ^ mark.c:278:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void HighLightAnObj(ObjPtr) ^ mark.c:323:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void HighLightVertices(Dir) ^ mark.c:428:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void HighLight(Dir) ^ mark.c:522:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int CreatePolygonTickMarks(num_pts) ^ mark.c:542:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int StartCreateTickMarks(nCmdId) ^ mark.c:585:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void CalcSquareVs(v) ^ mark.c:600:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void CalcTriangleVs(v) ^ mark.c:617:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void CalcCircleVs(v) ^ mark.c:630:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void CalcXVs(v) ^ mark.c:649:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void CalcDiamondVs(v) ^ mark.c:664:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void CalcBowtieVs(v) ^ mark.c:679:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void CalcInvTriangleVs(v) ^ mark.c:696:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void CalcPlusVs(v) ^ mark.c:715:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void CalcHourGlassVs(v) ^ mark.c:730:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void CreateTickMarks(n, vs, nCmdId) ^ mark.c:753:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetRealVertex(vs_return, i, dvs) ^ mark.c:772:11: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] IntPoint *GetSplinePolyTickMarkVs(pn_return, n, vs, smooth) ^ mark.c:867:11: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] IntPoint *GetHingedPolygonTickMarkVs(pn_return, n, vs, smooth, ^ mark.c:908:11: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] IntPoint *GetSplinePolygonTickMarkVs(pn_return, n, vs, smooth) ^ mark.c:968:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int AddObjTickMarks(ObjPtr, nCmdId) ^ mark.c:1035:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void AddTickMarks(nCmdId) ^ mark.c:1095:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int SetTickMarkSizeValue(spec) ^ mark.c:1115:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetTickMarkSize(psz_num_segs) ^ 27 warnings generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c markup.c markup.c:52:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int DumpHtmlBuf(in_tag, psz_start) ^ markup.c:107:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int DoParseMarkUpFile(buf) ^ markup.c:144:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ParseMarkUpFile(buf, buf_sz, pn_html, psz_content_type) ^ 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 -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c menu.c menu.c:200:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void UpdateMenubarItemInfo(x, w, h, MenuX, MenuY, TextBBox) ^ menu.c:236:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int WhichMenubarItem(X, Y, MenuX, MenuY, TextBBox) ^ menu.c:300:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int GetMenubarItemInfo(index, MenuX, MenuY, TextBBox) ^ menu.c:350:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SendCommandToSelf(nCmdId, nIndex) ^ menu.c:366:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] TgMenuItem *FindMenuItemByCmdId(menu, cmdid) ^ menu.c:385:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] TgMenuItem *FindMenuItemByIndex(menu, index) ^ menu.c:405:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] TgMenuItem *FindMenuItemBySubMenuInfoPtr(menu, submenu_info) ^ menu.c:427:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TgSetMenuItemCheckOrRadioById(menu, cmdid, checked, mask) ^ menu.c:447:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TgSetMenuItemCheckById(menu, cmdid, checked) ^ menu.c:454:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TgSetMenuItemRadioById(menu, cmdid, checked) ^ menu.c:461:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TgIsMenuItemChecked(menu, index) ^ menu.c:476:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TgIsMenuItemRadio(menu, index) ^ menu.c:491:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TgIsMenuItemEnabled(menu, index) ^ menu.c:505:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TgEnableMenuItemById(menu, cmdid, enabled) ^ menu.c:524:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TgEnableMenuItemByIndex(menu, index, enabled) ^ menu.c:543:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TgEnableMenuItemBySubMenuInfoPtr(menu, submenu_info, enabled) ^ menu.c:563:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void TgClearThreeDButton(dpy, win, gc, bbox, linewidth) ^ menu.c:590:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void TgDrawThreeDButton(dpy, win, gc, bbox, state, linewidth, button) ^ menu.c:673:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void TgDrawStipple(dpy, win, gc, stipple, x, y, w, h, fg_pixel, bg_pixel, ^ menu.c:700:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void TgDraw2DGrayedPixmap(dpy, win, bitmap, x, y, w, h, fg_pixel, bg_pixel) ^ menu.c:752:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetParentMenuWinBBox(menu) ^ menu.c:759:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void AdjMenuGeometry(menu, pn_orig_x, pn_orig_y, pn_min_pin, pn_max_pin) ^ menu.c:822:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void TgDrawTextMenuItem(menu, menu_item) ^ menu.c:988:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void TgDrawBitmapOrColorMenuItem(menu, menu_item) ^ menu.c:1084:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void TgDrawMenuItem(menu, menu_item) ^ menu.c:1099:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void TgDrawEntireMenu(menu) ^ menu.c:1213:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TgWhichMenuIndex(menu, x, y, must_be_in_menu) ^ menu.c:1292:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TgPointInAnAncestorMenu(menu, root_x, root_y) ^ menu.c:1304:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TgPointInParentMenuSelectedItem(parent_menu) ^ menu.c:1317:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] TgMenu *TgCreatePopUpSubMenu(menu, selected_index) ^ menu.c:1343:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TgPopUpSubMenu(menu, win_x, win_y) ^ menu.c:1385:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ScrollItemCallback(pv_userdata) ^ menu.c:1421:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ScrollPageCallback(pv_userdata) ^ menu.c:1464:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int DoScrollMenu(menu, scroll_page, scroll_dir, pbbox) ^ menu.c:1551:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DoDragInScrollMenu(menu, menu_w, menu_h, mouse_x, mouse_y, btn_offset) ^ menu.c:1706:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ScrollMenu(menu, x, y, menu_w, menu_h, button_state) ^ menu.c:1828:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TgMenuLoop(menu) ^ menu.c:2174:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] TgMenu *TgDestroyMenu(menu, free_menu) ^ menu.c:2208:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TgGetTextMenuItemWidths(menu_item, pn_check_w, pn_str_w, pn_shortcut_w) ^ menu.c:2255:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TgSetMenuItemInfo(to_menu_item, mask, from_menu_item) ^ menu.c:2335:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TgAdjustMenuItemHeight(menu, menu_item) ^ menu.c:2368:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void TgAdjustMenuGeometry(menu, image_w, image_h, max_rows) ^ menu.c:2429:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int CreateTextMenuItemsFromMenuItemInfo(menu, menu_iteminfos, status_str_xlated) ^ menu.c:2513:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetScrollableMenuSize(menu) ^ menu.c:2533:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int CreateBitmapOrColorMenuItemsFromMenuItemInfo(menu, menu_iteminfos, ^ menu.c:2590:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] TgMenu *TgCreateMenuFromMenuInfo(parent_menu, x, y, menu_info, ^ menu.c:2647:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetScrollableMenuFirstIndex(menu, selected_item_index) ^ menu.c:2680:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int RefreshMainMenu(menu) ^ menu.c:2694:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] TgMenu *CreateMainMenu(parent_menu, x, y, menu_info, status_str_xlated) ^ menu.c:2745:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int IsPrefix(Prefix, Str, Rest) ^ menu.c:3145:8: warning: comparison of array 'check_bits' equal to a null pointer is always false [-Wtautological-pointer-compare] if (check_bits == NULL) { } ^~~~~~~~~~ ~~~~ menu.c:3146:8: warning: comparison of array 'submenu_bits' equal to a null pointer is always false [-Wtautological-pointer-compare] if (submenu_bits == NULL) { } ^~~~~~~~~~~~ ~~~~ menu.c:3257:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void IconEventHandler(input) ^ menu.c:3301:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void TitleEventHandler(input) ^ menu.c:3367:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void HighLightMenubarString(item_str, bbox, highlight) ^ menu.c:3491:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int PullDownFromMenubar(index, x, y, text_bbox) ^ menu.c:3571:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int MenubarEventHandler(input) ^ 57 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 -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c menuinfo.c 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 -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c miniline.c miniline.c:138:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetCopyUTF8FontInfo(pStrSeg, double_byte) ^ miniline.c:161:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int CalcSingleByteInfoForCopyUTF8(pn_font_index) ^ miniline.c:182:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int FoundSingleByteFontAtStrBlock(pStrBlock, pStrSeg, double_byte) ^ miniline.c:205:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int CanFindSingleOrDoubleByteFontAtCursor(pStrSeg, double_byte) ^ miniline.c:251:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int CanFindSingleByteFontAtCursor(pStrSeg) ^ miniline.c:257:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int CanFindDoubleByteFontAtCursor(pStrSeg) ^ miniline.c:268:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SaveDrawTextInfo(pDrawTextInfo) ^ miniline.c:329:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RestoreDrawTextInfo(pDrawTextInfo) ^ miniline.c:395:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SaveDrawWinDrawTextInfo(forced) ^ miniline.c:412:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RestoreDrawWinDrawTextInfo(forced) ^ miniline.c:444:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void AddToDirtyBBox(pBBox) ^ miniline.c:460:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int GetDirtyBBox(pBBox) ^ miniline.c:474:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int IntersectDirtyBBox(pBBox) ^ miniline.c:506:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *GetIndentString(indent) ^ miniline.c:544:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DumpIndentString(FP, indent) ^ miniline.c:575:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void FreeStrSeg(pStrSeg) ^ miniline.c:583:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void FreeStrBlock(pStrBlock) ^ miniline.c:601:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void FreeMiniLine(pMiniLine) ^ miniline.c:614:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void FreeMiniLines(minilines, free_minilines) ^ miniline.c:632:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void FreeStrBlockList(pFirstStrBlock) ^ miniline.c:644:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void FreeMiniLineList(pFirstMiniLine) ^ miniline.c:656:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void UnlinkStrBlock(pStrBlock) ^ miniline.c:674:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void UnlinkMiniLine(pMiniLine) ^ miniline.c:729:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void InsertStrBlock(pPrevStrBlock, pNextStrBlock, pStrBlock, ^ miniline.c:749:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void InsertMiniLine(pPrevMiniLine, pNextMiniLine, pMiniLine, ^ miniline.c:769:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int BlankStrSeg(pStrSeg) ^ miniline.c:775:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int BlankStrBlock(pStrBlock) ^ miniline.c:804:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int BlankMiniLine(pMiniLine) ^ miniline.c:818:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int BlankMiniLines(minilines) ^ miniline.c:832:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] StrSegInfo *GetTextFirstStrSeg(obj_ptr) ^ miniline.c:845:19: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] struct DynStrRec *GetTextFirstDynStr(obj_ptr) ^ miniline.c:860:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void CopyCurInfoIntoStrSeg(pStrBlock, pStrSeg) ^ miniline.c:892:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void CopyCurInfoFromStrSeg(pStrSeg) ^ miniline.c:914:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void CopyCurInfoIntoTextPtr(obj_ptr, text_ptr) ^ miniline.c:951:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void CopyCurInfoFromTextPtr(obj_ptr, text_ptr) ^ miniline.c:970:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int RecalcStrSegMetrics(pStrSeg, prmi) ^ miniline.c:1010:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void UpdateMetricsFromValues(p_found, w, asc, des, min_lbearing, max_rextra, ^ miniline.c:1043:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void UpdateMetricsFromStrSegInfo(p_found, pStrSeg, pTextExtents) ^ miniline.c:1053:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int StrBlockTypeToMiniLinesJust(type) ^ miniline.c:1065:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int RecalcStrBlockMetrics(pStrBlock, prmi) ^ miniline.c:1216:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int RecalcMiniLineMetrics(pMiniLine, prmi) ^ miniline.c:1262:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int RecalcMiniLinesMetrics(minilines, prmi) ^ miniline.c:1327:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int RecalcTextMetrics(text_ptr, x, orig_baseline_y) ^ miniline.c:1365:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void UpdateStrBlockBBoxes(pStrBlock, x, baseline_y, clean) ^ miniline.c:1415:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void UpdateMiniLineBBoxes(pMiniLine, x, baseline_y, clean) ^ miniline.c:1442:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void UpdateMiniLinesBBoxes(minilines, x, baseline_y, clean) ^ miniline.c:1486:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void UpdateCurTextBBoxes(clean) ^ miniline.c:1500:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DoFuncOnStrSegForStrSeg(pStrSeg, pFunc, pUserData) ^ miniline.c:1509:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DoFuncOnStrSegForStrBlock(pStrBlock, pFunc, pUserData) ^ miniline.c:1538:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DoFuncOnStrSegForMiniLine(pMiniLine, pFunc, pUserData) ^ miniline.c:1551:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DoFuncOnStrSegForMiniLines(minilines, pFunc, pUserData) ^ miniline.c:1568:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ResetOnCursorKey(drag) ^ miniline.c:1613:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void GetCurTextBBoxes(pOBBox, pBBox) ^ miniline.c:1735:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void GetMinilineHomeXY(pMiniLine, pn_x, pn_baseline_y) ^ miniline.c:1749:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void GetMinilineEndXY(pMiniLine, pn_x, pn_baseline_y) ^ miniline.c:1843:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void GetPaintMode(pStrBlock, pnMode, pnFirstIndex, pnSecondIndex) ^ miniline.c:1877:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void PaintString(dpy, d, gc, depth, x, baseline_y, buf, len, color_pixel, ^ miniline.c:2044:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void PaintStrSeg(dpy, d, gc, depth, x, baseline_y, pStrSeg, use_highlight, ^ miniline.c:2116:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void PaintStrBlock(dpy, d, gc, depth, x, baseline_y, pStrBlock, use_highlight, ^ miniline.c:2187:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void PaintMiniLine(dpy, d, gc, depth, x, baseline_y, pMiniLine, use_highlight, ^ miniline.c:2213:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void PaintMiniLines(dpy, d, gc, depth, x, baseline_y, minilines, use_highlight, ^ miniline.c:2283:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DrawCurTextOutLine(x, y, w, h) ^ miniline.c:2367:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void UpdateHighLightedTextBBoxes(clean) ^ miniline.c:2433:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int DeleteHighlightedTextInStrSeg(pStrSeg, mode, first_index, second_index) ^ miniline.c:2479:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void MergeNextMiniLineWhileDeleting(pMiniLine) ^ miniline.c:2506:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int StrBlocksHasSameProperties(pStrBlock1, pStrBlock2) ^ miniline.c:2529:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void MergeNextStrBlockWhileDeleting(pStrBlock, pNextStrBlock) ^ miniline.c:2546:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int MergeStrBlocks(pStrBlock, pNextStrBlock) ^ miniline.c:2636:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DetermineWhatToDoForSpace(pnSplitAtIndex, pnInsertBefore) ^ miniline.c:2658:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DoInsertThinSpace(thin_space_w) ^ miniline.c:2716:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int InsertHighlightedThinSpaceInStrSeg(pStrSeg, mode, first_index, second_index) ^ miniline.c:2762:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void InsertHighlightedThinSpace(thin_space_w) ^ miniline.c:2836:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ShrinkMiniLine(pMiniLine, pn_retry) ^ miniline.c:2921:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ShrinkMiniLines(minilines, pn_retry) ^ miniline.c:2940:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int GetTextXYInStrSeg(pStrSeg, index_to_match, pn_dx) ^ miniline.c:2957:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int GetTextXYInStrBlock(pStrBlock, pStrBlockToMatch, index_to_match, ^ miniline.c:3045:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int GetTextXYInMiniLine(pMiniLine, pStrBlockToMatch, index_to_match, ^ miniline.c:3069:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int GetTextXYInMiniLines(minilines, pStrBlockToMatch, index_to_match, ^ miniline.c:3122:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void GetTextXY(pStrBlock, nIndex, pn_x, pn_baseline_y) ^ miniline.c:3160:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int CurStrBlockInStrBlock(pStrBlock) ^ miniline.c:3216:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int CurStrBlockInMiniLine(pMiniLine) ^ miniline.c:3230:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int CurStrBlockInMiniLines(minilines) ^ miniline.c:3247:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void GetCursorPositionInStrSeg(pStrSeg, dx, pn_dx, ppStrBlock, pnIndex) ^ miniline.c:3279:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void GetCursorPositionInStrBlock(pStrBlock, dx, dy, pn_dx, pn_dy, ppStrBlock, ^ miniline.c:3378:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void GetCursorPositionInMiniLine(pMiniLine, dx, dy, pn_dx, pn_dy, ppStrBlock, ^ miniline.c:3406:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int GetCursorPositionInMiniLines(minilines, dx, dy, pn_dx, pn_dy, ppStrBlock, ^ miniline.c:3461:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int SameProperty(lWhich, nValue, pStrSeg, nCheckDoubleByte) ^ miniline.c:3487:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int SetStrSegProperty(lWhich, nValue, pStrSeg) ^ miniline.c:3568:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int SetStrBlockProperty(lWhich, nValue, pStrBlock) ^ miniline.c:3607:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int SetMiniLineProperty(lWhich, nValue, pMiniLine) ^ miniline.c:3624:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int SetMiniLinesProperty(lWhich, nValue, minilines) ^ miniline.c:3644:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ChangeStrSegPropertyForTail(pStrBlock, first_index, lWhich, nValue) ^ miniline.c:3704:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ChangeStrSegPropertyForHead(pStrBlock, first_index, lWhich, nValue) ^ miniline.c:3764:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ChangeStrSegPropertyForMiddle(pStrBlock, first_index, second_index, lWhich, ^ miniline.c:3841:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ChangePropertyForHighlightedTextInStrSeg(pStrBlock, mode, first_index, ^ miniline.c:3909:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ChangeHighlightedTextProperty(lWhich, nValue) ^ miniline.c:3971:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int OnePropertyStrBlock(lWhich, nValue, pStrBlock, nCheckDoubleByte) ^ miniline.c:4009:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int OnePropertyMiniLine(lWhich, nValue, pMiniLine, nCheckDoubleByte) ^ miniline.c:4025:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int OnePropertyMiniLines(lWhich, nValue, minilines, nCheckDoubleByte) ^ miniline.c:4044:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int SingleFontStrSeg(pStrSeg, pnSzUnit, pnDoubleByte, pnFont, pnStyle, ^ miniline.c:4068:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int SingleFontStrBlock(pStrBlock, pnSzUnit, pnDoubleByte, pnFont, pnStyle, ^ miniline.c:4104:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int SingleFontMiniLine(pMiniLine, pnSzUnit, pnDoubleByte, pnFont, pnStyle, ^ miniline.c:4122:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int SingleFontMiniLines(minilines, pnSzUnit, pnDoubleByte, pnFont, pnStyle, ^ miniline.c:4140:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int SingleFontText(text_ptr, pnSzUnit, pnDoubleByte, pnFont, pnStyle, ^ miniline.c:4160:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int SingleColorStrSeg(pStrSeg, pnColorIndex) ^ miniline.c:4172:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int SingleColorStrBlock(pStrBlock, pnColorIndex) ^ miniline.c:4202:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int SingleColorMiniLine(pMiniLine, pnColorIndex) ^ miniline.c:4217:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int SingleColorMiniLines(minilines, pnColorIndex) ^ miniline.c:4232:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int SingleColorText(text_ptr, pnColorIndex) ^ miniline.c:4248:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int HighlightedStrSegHasSameProperty(pStrBlock, mode, lWhich, nValue, ^ miniline.c:4270:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int HighlightedTextHasSameProperty(lWhich, nValue, nCheckDoubleByte) ^ miniline.c:4332:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int CheckStrSegProperties(pStrSeg, pn_valid, pn_font, pn_style, pn_sz_unit, ^ miniline.c:4359:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int CheckStrBlockProperties(pStrBlock, pn_valid, pn_font, pn_style, ^ miniline.c:4404:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int CheckMiniLineProperties(pMiniLine, pn_valid, pn_font, pn_style, ^ miniline.c:4423:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int CheckMiniLinesProperties(minilines, pn_valid, pn_font, pn_style, ^ miniline.c:4445:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int CheckHighlightedStrSegProperties(pStrBlock, mode, pn_valid, pn_font, ^ miniline.c:4544:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void CheckHighlightedStrSegPropertiesForCopyHighLightedTextAsUTF8Strings(mode) ^ miniline.c:4558:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int CheckDoubleByteFontForCopyHighLightedTextAsUTF8Strings(mode, pStrSeg, ^ miniline.c:4595:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int CanCopyHighLightedTextAsUTF8Strings(pn_double_byte_font_index) ^ miniline.c:4677:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int CanPasteUTF8StringIntoText(pssi) ^ miniline.c:4712:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void GatherString(buf, len, ppsz_buf, pn_buf_sz) ^ miniline.c:4731:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void GatherStrSeg(pStrSeg, ppsz_buf, pn_buf_sz) ^ miniline.c:4741:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void GatherHighlightedStrSeg(pStrBlock, mode, first_index, second_index, ^ miniline.c:4817:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void GatherHighLightedTextAsStrings(ppsz_buf, pn_buf_sz) ^ miniline.c:4873:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void CopyHighlightedStrSeg(pStrBlock, mode, first_index, ^ miniline.c:5056:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int CaseDependentStrNCmp(buf1, buf2, str_len, case_sensitive) ^ miniline.c:5065:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int MatchStringInOnlyThisStrBlock(pStrBlock, nIndex, str_to_match, ^ miniline.c:5093:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int MatchStringFromCursor(pStrBlock, nIndex, str_to_match, str_len_to_match, ^ miniline.c:5173:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int FindStringInStrBlock(pStrBlock, pn_found_starting_point, str_to_match, ^ miniline.c:5250:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int FindStringInMiniLine(pMiniLine, pn_found_starting_point, str_to_match, ^ miniline.c:5273:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int FindStringInMiniLines(minilines, pn_found_starting_point, str_to_match, ^ miniline.c:5299:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int CanBreakStrSegIntoWords(pStrSeg) ^ miniline.c:5306:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int CanBreakStrBlockIntoWords(pStrBlock) ^ miniline.c:5339:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int CanBreakMiniLineIntoWords(pMiniLine) ^ miniline.c:5356:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int CanBreakMiniLinesIntoWords(minilines) ^ miniline.c:5376:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void FinalizeBreakStrSeg(new_obj, x, baseline_y, prototype, tx_to_move, ^ miniline.c:5441:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void BreakStrSeg(pSrcStrSeg, into_words, x, baseline_y, prototype, tx_to_move, ^ miniline.c:5527:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void BreakStrBlock(pStrBlock, into_words, x, baseline_y, prototype, tx_to_move, ^ miniline.c:5584:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void BreakMiniLine(pMiniLine, into_words, x, baseline_y, prototype, tx_to_move, ^ miniline.c:5607:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void BreakMiniLines(minilines, how, x, baseline_y, prototype, tx_to_move, ^ miniline.c:5655:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DumpGSave(FP, do_dump, indent) ^ miniline.c:5666:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DumpGRestore(FP, do_dump, indent) ^ miniline.c:5677:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DumpSetFont(FP, font, font_name, double_byte, style, sz_unit) ^ miniline.c:5762:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DumpStrSeg(pStrSeg, just, x, baseline_y, FP, pBBox, do_dump, indent) ^ miniline.c:5872:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DumpSupSubBlock(pStrBlock, x, baseline_y, FP, pBBox, do_dump, indent) ^ miniline.c:5955:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DumpStrBlock(pStrBlock, x, baseline_y, FP, pBBox, do_dump, indent) ^ miniline.c:6052:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DumpMiniLine(pMiniLine, x, baseline_y, FP, pBBox, do_dump, indent) ^ miniline.c:6088:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DumpMiniLines(minilines, x, baseline_y, FP, pBBox, do_dump, indent) ^ miniline.c:6159:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int SimpleTextObj(text_ptr) ^ miniline.c:6184:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DumpSimpleTextPath(FP, ObjPtr) ^ miniline.c:6209:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DumpStrSegInAscii(FP, pStrSeg, pnSomethingPrinted) ^ miniline.c:6223:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DumpStrBlockInAscii(FP, pStrBlock, pnSomethingPrinted) ^ miniline.c:6260:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DumpMiniLineInAscii(FP, pMiniLine, pnSomethingPrinted) ^ miniline.c:6273:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DumpMiniLinesInAscii(FP, minilines, pnSomethingPrinted) ^ miniline.c:6290:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ConvertStrSegToString(pStrSeg, ppsz_buf, pn_len) ^ miniline.c:6307:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ConvertStrBlockToString(pStrBlock, ppsz_buf, pn_len) ^ miniline.c:6344:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *ConvertMiniLineToString(pMiniLine, pnNeedToFree) ^ miniline.c:6373:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *ConvertAttrNameFirstMiniLineToString(attr_ptr, pnNeedToFree) ^ miniline.c:6398:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int StrSegInVisibleLayer(pStrSeg) ^ miniline.c:6405:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int StrBlockInVisibleLayer(pStrBlock) ^ miniline.c:6436:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int MiniLineInVisibleLayer(pMiniLine) ^ miniline.c:6450:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int MiniLinesInVisibleLayer(minilines) ^ 162 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 -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c move.c move.c:70:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void MovePoly(ObjPtr, Dx, Dy) ^ move.c:83:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void MovePolygon(ObjPtr, Dx, Dy) ^ move.c:96:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void MoveArc(ObjPtr, Dx, Dy) ^ move.c:108:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void MoveObj(ObjPtr, Dx, Dy) ^ move.c:176:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void MoveAllSelObjects(Dx, Dy) ^ move.c:204:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int EndPtInObjList(XOff, YOff, FirstObjPtr) ^ move.c:287:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int EndPtInSelected(XOff, YOff) ^ move.c:375:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ConstrainedMoveAllSel(Dx, Dy, ltx, lty, rbx, rby) ^ move.c:573:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void MoveAllSel(Dx, Dy) ^ move.c:619:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void MoveAnObj(ObjPtr, TopOwner, Dx, Dy) ^ move.c:708:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void FreeRubberInfo(pInnerObj, pRubberInfo) ^ move.c:742:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetRubberInfo(pInnerObj, pRubberInfo) ^ move.c:964:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DrawInnerRubberObj(pInnerObj, pRubberInfo, dx, dy) ^ move.c:1080:13: warning: variable 'n' set but not used [-Wunused-but-set-variable] int i=0, n=0; ^ move.c:1075:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void UpdateInnerRubberObj(pInnerObj, pRubberInfo, dx, dy) ^ move.c:1181:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void MoveSubObjEventCheck(ev, pn_move_sub_obj) ^ move.c:1199:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void MoveAnAttr(attr_ptr, attr_owner_obj, dx, dy) ^ move.c:1227:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void MoveSel(OrigX, OrigY, ObjPtr, down_button_ev) ^ move.c:1447:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int IsSmoothForStructuredSpline(vlist_index, n, vlist) ^ move.c:1479:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void FinishMoveVertexForStretchStructSpline(vsel_ptr, abs_dx, abs_dy, psssi) ^ move.c:1544:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void MoveAllSelVs(abs_dx, abs_dy) ^ move.c:1684:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void EndMoveVsForStructuredSpline(obj_ptr, abs_dx, abs_dy) ^ move.c:1709:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void EndMoveVs(abs_dx, abs_dy) ^ move.c:2052:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void MarkVsForStructuredSplines(Dir, abs_dx, abs_dy) ^ move.c:2131:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void HighLightVs(Dir, abs_dx, abs_dy) ^ move.c:2232:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void MarkVs(Dir, Dx, Dy) ^ move.c:2294:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void GetSelectedVsBBox(pBBox) ^ move.c:2329:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void MoveSelVs(OrigX, OrigY) ^ 28 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 -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c msg.c msg.c:98:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ShowOrPrintMsg(buf, use_msgbox) ^ msg.c:119:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int FailAllocBitmapMessage(w, h) ^ msg.c:128:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int FailAllocPixmapMessage(w, h) ^ msg.c:137:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int FailToWriteFileMessage(file_name) ^ msg.c:152:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int FailToOpenMessage(file_name, rwa, extra_msg) ^ msg.c:185:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int FailToCreateWindowMessage(where, win_name, do_exit) ^ msg.c:204:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int FatalUnexpectedError(msg1, msg2) ^ msg.c:228:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TgAssert(must_be_true, msg1, msg2) ^ msg.c:238:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int BoldMsgCharBytes(pszStr) ^ msg.c:251:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *BoldMsgNextChar(pszStr) ^ msg.c:264:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *BoldMsgLastChar(pszStr) ^ msg.c:301:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *BoldMsgStrChr(pszStr, c) ^ msg.c:338:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int MenuTextWidth(font_ptr, psz_str, len) ^ msg.c:351:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int MsgTextWidth(font_ptr, psz_str, len) ^ msg.c:364:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int BoldMsgTextWidth(font_ptr, psz_str, len) ^ msg.c:377:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ItalicMsgTextWidth(font_ptr, psz_str, len) ^ msg.c:390:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int BoldItalicMsgTextWidth(font_ptr, psz_str, len) ^ msg.c:403:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DrawMenuString(dpy, win, gc, x, baseline_y, menu_str, len) ^ msg.c:419:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DrawMsgString(dpy, win, gc, x, baseline_y, msg_str, len) ^ msg.c:435:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DrawBoldMsgString(dpy, win, gc, x, baseline_y, msg_str, len) ^ msg.c:451:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DrawItalicMsgString(dpy, win, gc, x, baseline_y, msg_str, len) ^ msg.c:468:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DrawBoldItalicMsgString(dpy, win, gc, x, baseline_y, msg_str, len) ^ msg.c:486:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void AddMsg(Msg) ^ msg.c:532:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] struct MsgRec *FindMsg(Number) ^ msg.c:552:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RedrawMsg(erase_background) ^ msg.c:618:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void Msg(Message) ^ msg.c:625:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void TwoLineMsg(Msg1, Msg2) ^ msg.c:733:11: warning: variable 'left' set but not used [-Wunused-but-set-variable] int left=0, w=(int)(statusWindowW/3), right=0; ^ msg.c:810:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetMouseStatus(Left, Middle, Right) ^ msg.c:880:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetStringStatus(StatusStr) ^ msg.c:957:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SaveStatusStringsIntoBuf(ppsz_buf, pn_one_line) ^ msg.c:972:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RestoreStatusStringsFromBuf(ppsz_buf, one_line) ^ msg.c:995:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void BeginProgress(ppi, total_size) ^ msg.c:1004:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void UpdateProgress(ppi, cur_size) ^ msg.c:1020:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void EndProgress(ppi) ^ msg.c:1026:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void MsgEventHandler(input) ^ msg.c:1113:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void StatusEventHandler(input) ^ msg.c:1174:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void UserRedrawEventHandler(input) ^ msg.c:1223:8: warning: comparison of array 'redraw_bits' equal to a null pointer is always false [-Wtautological-pointer-compare] if (redraw_bits == NULL) { } ^~~~~~~~~~~ ~~~~ msg.c:1224:8: warning: comparison of array 'btn1_bits' equal to a null pointer is always false [-Wtautological-pointer-compare] if (btn1_bits == NULL) { } ^~~~~~~~~ ~~~~ msg.c:1230:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void InitScan(s, pat) ^ msg.c:1253:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ScanValue(fmt, v, item, stype) ^ msg.c:1298:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ScanDynStrValue(v, item, stype) ^ msg.c:1382:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void EmergencySave(sig) ^ msg.c:1428:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int EmergencySaveForXCont(s) ^ msg.c:1458:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int EmergencySaveForX(dsp, ev) ^ msg.c:1471:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int IOEmergencySaveForX(dsp) ^ msg.c:1477:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void Error(where, msg) ^ msg.c:1489:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void GetTgifVersionAndPatchLevel(buf, buf_sz) ^ msg.c:1527:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void Usage(tool_name) ^ msg.c:1603:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ProcessPrTgifOptions(argc, argv, from_prtgif) ^ msg.c:2070:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ProcessTgifOptions(argc, argv, file_name, name_sz) ^ 52 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 -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c names.c names.c:115:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *ReadPath(path_str, dir_str) ^ names.c:157:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ParseSymPath(path_str) ^ names.c:194:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int LargerStr(S1, S2) ^ names.c:344:8: warning: variable 'len' set but not used [-Wunused-but-set-variable] int len, ext_len, count = 0; ^ names.c:338:10: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] DspList *DirListing(Path, ExtStr, OtherExtStr) ^ names.c:766:8: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char **MakeNameDspItemArray(Entries, DLPtr) ^ names.c:797:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int DirInSymPath(DirName) ^ names.c:815:8: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char **MakeLongNameDspItemArray(Entries, DLPtr) ^ names.c:846:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int GetNamesEntries(p_dsp_ptr, p_entries, pn_num_entries, pn_marked_index, ^ names.c:898:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int NamesAfterLoop(p_dsp_ptr, p_entries, pn_num_entries, pn_marked_index, ^ names.c:933:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int DirNames(TopStr, ExtStr, SelStr, JustSetDir) ^ names.c:1050:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ChooseAName(TopStr, entries, num_entries, marked_index) ^ names.c:1070:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int SelectFileName(MsgStr, SelStr) ^ names.c:1115:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int SelectFileNameToPaste(MsgStr, SelStr) ^ names.c:1160:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int SelectFileNameToImport(MsgStr, ExtStr, SelStr) ^ names.c:1189:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int GetSymbolPath(SymName, Pin, PathName) ^ names.c:1211:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int NameInCurDir(FileName) ^ names.c:1247:10: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] DspList *DomainListing(pn_num_entries, name_only) ^ names.c:1463:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int SelectDomain(SelStr) ^ names.c:1573:10: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] DspList *SymDirListing(pn_marked_index, pn_num_entries) ^ names.c:1606:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int SelectSymDir(SelStr) ^ names.c:1645:10: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] DspList *BitmapListing(ExtStr, OtherExtStr) ^ names.c:1729:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int SelectFromLibrary(MsgStr, ExtStr, SelStr, PathStr) ^ names.c:1789:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetCurDir(FileName) ^ names.c:1821:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetCurSymDir(FileName) ^ names.c:1842:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetCurImportDir(FileName) ^ names.c:1864:10: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] DspList *FreeDspLinkedList(dsp_ptr) ^ names.c:1900:10: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] DspList *DomainListToDomainArray(dsp_ptr, num_entries, set_directory) ^ names.c:1924:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int EditDomainPathsAfterLoop(pp_dsp_ptr, ppsz_entries, pn_num_entries, ^ names.c:1971:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int DoEditDomainPaths(psz_title, dsp_ptr, entries, num_entries, ^ names.c:2038:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int DoSelectDefaultDomain(psz_title, dsp_ptr, entries, num_entries, ^ names.c:2214:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int RefreshDomainMenu(menu) ^ names.c:2233:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] TgMenu *CreateDomainMenu(parent_menu, x, y, menu_info, status_str_xlated) ^ 33 warnings generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c navigate.c navigate.c:115:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ParseXYSpec(spec, pnx, pny) ^ navigate.c:153:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ParseWHSpecError(spec, psz_dup_spec, rc) ^ navigate.c:167:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ParseWHSpec(spec, pnw, pnh) ^ navigate.c:211:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void InsertNavigate(pnr_prev, pnr_next, pnr) ^ navigate.c:231:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DeleteNavigate(pnr) ^ navigate.c:240:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ClearNavigateRecords(pnr) ^ navigate.c:268:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void FreeAnURLCache(url_cache) ^ navigate.c:408:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *SimpleURLName(psz_url) ^ navigate.c:425:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void UnlinkURLCache(url_cache) ^ navigate.c:444:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void InsertURLCache(prev_url, next_url, url_cache) ^ navigate.c:462:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void UpdateLRU(url_cache) ^ navigate.c:469:21: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] struct URLCacheRec *FindURLCache(psz_url, update_lru) ^ navigate.c:497:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void UpdateURLCache(psz_url, psz_remote_buf, psz_content_type, remote_buf_sz, ^ navigate.c:576:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void AddToSessionHistory(cur_pnr) ^ navigate.c:644:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void PostNavigate(pnr) ^ navigate.c:660:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void NavigateTo(full_fname, do_not_save, force_load) ^ navigate.c:827:8: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char **ReadHotListFile(pn_count) ^ navigate.c:870:10: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] DspList *HotListListing(ppsz_buf, pn_count) ^ navigate.c:901:10: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] DspList *HistoryListing(pn_count) ^ navigate.c:941:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int GetHotListEntries(p_dsp_ptr, p_entries, pn_num_entries, pn_marked_index, ^ navigate.c:971:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int HotListAfterLoop(p_dsp_ptr, p_entries, pn_num_entries, pn_marked_index, ^ navigate.c:1086:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int GetHistoryEntries(p_dsp_ptr, p_entries, pn_num_entries, pn_marked_index, ^ navigate.c:1110:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int HistoryAfterLoop(p_dsp_ptr, p_entries, pn_num_entries, pn_marked_index, ^ navigate.c:1163:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SelectForNavigate(TopStr, Which) ^ navigate.c:1278:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ToggleHyperSpace(KeepSelected) ^ navigate.c:1656:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int RefreshSlideShowModeMenu(menu) ^ navigate.c:1675:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] TgMenu *CreateSlideShowModeMenu(parent_menu, X, Y, menu_info, status_str_xlated) ^ navigate.c:1693:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int SlideShowModeMenu(X, Y, TrackMenubar) ^ navigate.c:1710:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int RefreshSlideShowMenu(menu) ^ navigate.c:1733:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] TgMenu *CreateSlideShowMenu(parent_menu, x, y, menu_info, status_str_xlated) ^ navigate.c:1749:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ReadSlideShowInfo(buf) ^ navigate.c:1781:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RefreshNavigateMenu(menu) ^ navigate.c:1794:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] TgMenu *CreateNavigateMenu(parent_menu, x, y, menu_info, status_str_xlated) ^ navigate.c:1818:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int NavigateMenu(X, Y, TrackMenubar) ^ 34 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 -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c nkf.c 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 -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c obj.c obj.c:63:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void AddObj(PrevPtr, NextPtr, ObjPtr) ^ obj.c:82:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void UnlinkObj(ObjPtr) ^ obj.c:97:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ReplaceObj(old_obj, new_obj) ^ obj.c:116:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void FreeObj(ObjPtr) ^ obj.c:146:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DelObj(ObjPtr) ^ obj.c:188:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void AdjObjOBBox(ObjPtr) ^ obj.c:230:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void AdjObjBBox(ObjPtr) ^ obj.c:337:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RecursivelyAdjAnObjBBox(target_obj, owner_obj) ^ obj.c:361:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RecursivelyAdjObjBBox(sub_obj, owner_obj, top_owner) ^ obj.c:375:18: warning: variable 'num_rows' set but not used [-Wunused-but-set-variable] int w=0, h=0, num_rows=0, num_cols=0; ^ obj.c:375:30: warning: variable 'num_cols' set but not used [-Wunused-but-set-variable] int w=0, h=0, num_rows=0, num_cols=0; ^ obj.c:372:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void InvalidateObjCache(ObjPtr) ^ obj.c:508:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void AdjObjCache(ObjPtr) ^ obj.c:572:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void AdjArcCache(ObjPtr) ^ obj.c:589:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void AdjPolyCache(ObjPtr) ^ obj.c:748:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void AdjPolygonCache(ObjPtr) ^ obj.c:810:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void AdjObjSplineVs(ObjPtr) ^ obj.c:894:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void MoveRotatedObjCache(ObjPtr, AbsDx, AbsDy) ^ obj.c:982:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int IsTopLevelObject(ObjPtr) ^ obj.c:995:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] struct ObjRec *GetTopOwner(ObjPtr) ^ 20 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 -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c oval.c oval.c:71:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void GetPSEllipseStr(xc, yc, a, b, s) ^ oval.c:87:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void MyOval(window, gc, bbox) ^ oval.c:108:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DumpOvalPath(FP, ObjPtr, Xc, Yc, A, B, Width, Pen, Dash, TransPat) ^ oval.c:166:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DumpOvalObj(FP, ObjPtr) ^ oval.c:275:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int NeedsToCacheOvalObj(ObjPtr) ^ oval.c:285:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void MakeCachedOval(ObjPtr) ^ oval.c:366:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DrawOvalObj(window, XOff, YOff, ObjPtr) ^ oval.c:445:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void CreateOvalObj(BBox, CreateAbsolute) ^ oval.c:505:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void AdjContinueOvalBBox(pBBoxIn, pBBoxOut) ^ oval.c:539:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void MyContinueOval(d, gc, pBBox) ^ oval.c:551:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ContinueOval(OrigX, OrigY) ^ oval.c:704:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DrawOval(input) ^ oval.c:746:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SaveOvalObj(FP, ObjPtr) ^ oval.c:779:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ReadOvalObj(FP, Inbuf, ObjPtr) ^ oval.c:1012:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetOvalPropMask(ObjPtr, plMask, plSkip, pProp) ^ oval.c:1036:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void FreeOvalObj(ObjPtr) ^ 16 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 -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c page.c page.c:96:37: warning: variable 'y_offset' set but not used [-Wunused-but-set-variable] int w=0, num_digits=0, x_offset, y_offset; ^ page.c:90:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int DrawAHorizontalTab(page_num, page_ptr, x, y, on_top, skip) ^ page.c:149:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int PageTabsVisible(pn_last_tab_visible) ^ page.c:173:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void MakePageTabsVisible(last_tab_visible) ^ page.c:278:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void GotoPageNum(new_page_num) ^ page.c:314:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetCurPage(page_number) ^ page.c:368:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void HandleClickInPageWindow(button_ev) ^ page.c:448:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void HandleMotionInPageWindow(motion_ev) ^ page.c:528:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void PageDummyEventHandler(input) ^ page.c:542:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void FreePage(page_ptr) ^ page.c:640:10: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] DspList *PageNameListing(pn_entries) ^ page.c:669:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int EditOrSelectPageNames(TopStr, Which, entries, num_entries) ^ page.c:703:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void GotoPage(psz_page_num) ^ page.c:814:10: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] DspList *PageFileNameListing(pn_entries) ^ page.c:934:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int OkToFlushUndoBuffer(msg_prefix) ^ page.c:965:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void AddPage(AfterCurPage, papcai) ^ page.c:1304:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int GetDimension(Spec, nNonPosReturnOK, pnNumPixels) ^ page.c:1334:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int GetDimensionInDouble(Spec, nNonPosReturnOK, pd_num_pixels) ^ page.c:1365:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int SetPaperSize(Spec) ^ page.c:1427:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void GetCurPaperSizeSpec(buf) ^ page.c:1483:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void FreePageSpec(pspi) ^ page.c:1489:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ParsePagesSpec(spec, pspi) ^ page.c:1599:26: warning: format string is not a string literal (potentially insecure) [-Wformat-security] sprintf(gszMsgBox, TgLoadString(spi.num_pages_specified > 1 ? ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^~~~~~~~~~~ page.c:1599:26: note: treat the string as an argument to avoid this sprintf(gszMsgBox, TgLoadString(spi.num_pages_specified > 1 ? ^ "%s", /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^ page.c:1748:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int StackedPageMenu(X, Y, TrackMenubar) ^ page.c:1765:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TiledPageMenu(X, Y, TrackMenubar) ^ page.c:1782:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int RefreshPageMenu(menu) ^ page.c:1794:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] TgMenu *CreatePageMenu(parent_menu, x, y, menu_info, status_str_xlated) ^ page.c:1811:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int PageMenu(X, Y, TrackMenubar) ^ page.c:1865:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int CalcStackPageNum(obj_ptr) ^ page.c:1885:19: warning: variable 'saved_top_obj' set but not used [-Wunused-but-set-variable] struct ObjRec *saved_top_obj, *saved_bot_obj; ^ page.c:1986:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void PageLayoutSubMenu(index) ^ page.c:2043:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RefreshPageLayoutMenu(menu) ^ page.c:2061:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] TgMenu *CreatePageLayoutMenu(parent_menu, x, y, menu_info, status_str_xlated) ^ page.c:2088:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int PageLayoutMenu(X, Y, TrackMenubar) ^ page.c:2105:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void PageEventHandler(input) ^ page.c:2144:8: warning: comparison of array 'leftend_bits' equal to a null pointer is always false [-Wtautological-pointer-compare] if (leftend_bits == NULL) { } ^~~~~~~~~~~~ ~~~~ page.c:2173:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void GetPageInfo(pPageInfo) ^ page.c:2189:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int FixPageNumInStrSeg(pStrSeg, attr_ptr, just_checking) ^ page.c:2238:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int FixPageNumInStrBlock(pStrBlock, attr_ptr, just_checking) ^ page.c:2289:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int FixPageNumInMiniLine(pMiniLine, attr_ptr, just_checking) ^ page.c:2309:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int FixPageNumInMiniLines(minilines, attr_ptr, just_checking) ^ page.c:2330:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int FixPageNumInAttr(AttrPtr, just_checking) ^ page.c:2357:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int FixPageNumInObj(ObjPtr, just_checking) ^ 43 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 -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c pattern.c pattern.c:92:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *GrayStr(index) ^ pattern.c:138:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void GrayCheck(index) ^ pattern.c:185:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int RefreshModeMenu(menu) ^ pattern.c:211:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] TgMenu *CreateModeMenu(parent_menu, x, y, menu_info, status_str_xlated) ^ pattern.c:240:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ModeMenu(X, Y, TrackMenubar) ^ pattern.c:258:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ChangeObjTransPat(ObjPtr, TransPat) ^ pattern.c:269:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ChangeAllSelTransPat(TransPat, HighLight) ^ pattern.c:334:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ChangeObjFill(ObjPtr, FillIndex) ^ pattern.c:422:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ChangeAllSelFill(FillIndex, HighLight) ^ pattern.c:476:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RefreshFillMenu(menu) ^ pattern.c:494:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] TgMenu *CreateFillMenu(parent_menu, x, y, menu_info, status_str_xlated) ^ pattern.c:560:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int FillMenu(X, Y, TrackMenubar) ^ pattern.c:579:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ChangeObjLineStyle(ObjPtr, StyleIndex) ^ pattern.c:622:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ChangeAllSelLineStyle(StyleIndex, HighLight) ^ pattern.c:660:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RefreshLineStyleMenu(menu) ^ pattern.c:678:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] TgMenu *CreateLineStyleMenu(parent_menu, x, y, menu_info, status_str_xlated) ^ pattern.c:703:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int LineStyleMenu(X, Y, TrackMenubar) ^ pattern.c:722:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int GetPolyOrPolygonControlPoints(obj_ptr, pp_poly, pp_polygon, pn_curved, ^ pattern.c:770:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int CanConvertSplineToStructuredSpline(ObjPtr, pn_hinge_count, vlist_updated) ^ pattern.c:953:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int CanConvertClosedSplineToStructuredSpline(ObjPtr, pn_hinge_count, ^ pattern.c:1159:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int CanConvertObjLineType(ObjPtr, TypeIndex, pn_failed_count, pn_hinge_count) ^ pattern.c:1269:11: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] IntPoint *GetNumUsableStraightVs(pn_num_usable_vs, num_pts, vs) ^ pattern.c:1298:11: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] IntPoint *GetNumUsableSplineVs(pn_num_usable_vs, ppsz_smooth, num_pts, vs, ^ pattern.c:1338:11: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] IntPoint *GetNumUsableIntSplineVsFromStructuredSpline(pn_num_usable_vs, num_pts, ^ pattern.c:1368:11: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] IntPoint *GetNumUsableIntSplineVs(pn_num_usable_vs, num_pts, vs, smooth) ^ pattern.c:1398:11: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] IntPoint *GetNumUsableStructuredSplineVs(pn_num_usable_vs, ppsz_smooth, ^ pattern.c:1488:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetObjSmooth(ObjPtr, TypeIndex, hinge_count) ^ pattern.c:1682:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ChangeObjLineType(ObjPtr, TypeIndex, pn_failed_count) ^ pattern.c:1739:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ChangeAllSelLineType(TypeIndex, HighLight) ^ pattern.c:1754:26: warning: format string is not a string literal (potentially insecure) [-Wformat-security] sprintf(gszMsgBox, TgLoadString(STID_LINE_TYPE_IS_STRAIGHT)); ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^~~~~~~~~~~ pattern.c:1754:26: note: treat the string as an argument to avoid this sprintf(gszMsgBox, TgLoadString(STID_LINE_TYPE_IS_STRAIGHT)); ^ "%s", /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^ pattern.c:1757:26: warning: format string is not a string literal (potentially insecure) [-Wformat-security] sprintf(gszMsgBox, TgLoadString(STID_LINE_TYPE_IS_SPLINE)); ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^~~~~~~~~~~ pattern.c:1757:26: note: treat the string as an argument to avoid this sprintf(gszMsgBox, TgLoadString(STID_LINE_TYPE_IS_SPLINE)); ^ "%s", /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^ pattern.c:1760:26: warning: format string is not a string literal (potentially insecure) [-Wformat-security] sprintf(gszMsgBox, TgLoadString(STID_LINE_TYPE_IS_INTSPLINE)); ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^~~~~~~~~~~ pattern.c:1760:26: note: treat the string as an argument to avoid this sprintf(gszMsgBox, TgLoadString(STID_LINE_TYPE_IS_INTSPLINE)); ^ "%s", /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^ pattern.c:1763:26: warning: format string is not a string literal (potentially insecure) [-Wformat-security] sprintf(gszMsgBox, TgLoadString(STID_LINE_TYPE_IS_STRUCT_SPLINE)); ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^~~~~~~~~~~ pattern.c:1763:26: note: treat the string as an argument to avoid this sprintf(gszMsgBox, TgLoadString(STID_LINE_TYPE_IS_STRUCT_SPLINE)); ^ "%s", /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^ pattern.c:1802:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RefreshLineTypeMenu(menu) ^ pattern.c:1820:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] TgMenu *CreateLineTypeMenu(parent_menu, x, y, menu_info, status_str_xlated) ^ pattern.c:1845:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int LineTypeMenu(X, Y, TrackMenubar) ^ pattern.c:1865:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ChangeObjLineWidth(ObjPtr, nMask, W, AW, AH, width_spec, aw_spec, ah_spec) ^ pattern.c:1999:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ChangeAllSelLineWidth(WidthIndex, HighLight) ^ pattern.c:2051:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int GetLineWidthMatch(index, width, aw, ah) ^ pattern.c:2068:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int GetBestLineWidthIndex(width, aw, ah) ^ pattern.c:2085:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RefreshLineWidthMenu(menu) ^ pattern.c:2103:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] TgMenu *CreateLineWidthMenu(parent_menu, x, y, menu_info, status_str_xlated) ^ pattern.c:2156:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int LineWidthMenu(X, Y, TrackMenubar) ^ pattern.c:2176:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ChangeObjLineDash(ObjPtr, DashIndex) ^ pattern.c:2234:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ChangeAllSelLineDash(DashIndex, HighLight) ^ pattern.c:2268:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RefreshLineDashMenu(menu) ^ pattern.c:2286:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] TgMenu *CreateLineDashMenu(parent_menu, x, y, menu_info, status_str_xlated) ^ pattern.c:2306:29: warning: format string is not a string literal (potentially insecure) [-Wformat-security] sprintf(gszMsgBox, TgLoadCachedString(CSTID_SET_PEN_DASH_PAT_NO_DASH)); ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^~~~~~~~~~~ pattern.c:2306:29: note: treat the string as an argument to avoid this sprintf(gszMsgBox, TgLoadCachedString(CSTID_SET_PEN_DASH_PAT_NO_DASH)); ^ "%s", /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^ pattern.c:2343:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int LineDashMenu(X, Y, TrackMenubar) ^ pattern.c:2362:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ChangeObjPen(ObjPtr, PenIndex) ^ pattern.c:2434:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ChangeAllSelPen(PenIndex, HighLight) ^ pattern.c:2484:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RefreshPenMenu(menu) ^ pattern.c:2502:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] TgMenu *CreatePenMenu(parent_menu, x, y, menu_info, status_str_xlated) ^ pattern.c:2523:29: warning: format string is not a string literal (potentially insecure) [-Wformat-security] sprintf(gszMsgBox, TgLoadCachedString(CSTID_SET_PEN_TO_NONE)); ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^~~~~~~~~~~ pattern.c:2523:29: note: treat the string as an argument to avoid this sprintf(gszMsgBox, TgLoadCachedString(CSTID_SET_PEN_TO_NONE)); ^ "%s", /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^ pattern.c:2526:29: warning: format string is not a string literal (potentially insecure) [-Wformat-security] sprintf(gszMsgBox, TgLoadCachedString(CSTID_SET_PEN_TO_SOLID)); ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^~~~~~~~~~~ pattern.c:2526:29: note: treat the string as an argument to avoid this sprintf(gszMsgBox, TgLoadCachedString(CSTID_SET_PEN_TO_SOLID)); ^ "%s", /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^ pattern.c:2529:29: warning: format string is not a string literal (potentially insecure) [-Wformat-security] sprintf(gszMsgBox, TgLoadCachedString(CSTID_SET_PEN_TO_BACKGROUND)); ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^~~~~~~~~~~ pattern.c:2529:29: note: treat the string as an argument to avoid this sprintf(gszMsgBox, TgLoadCachedString(CSTID_SET_PEN_TO_BACKGROUND)); ^ "%s", /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^ pattern.c:2567:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int PenMenu(X, Y, TrackMenubar) ^ pattern.c:2586:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ToggleObjLineType(ObjPtr) ^ pattern.c:2666:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ChangeObjRCBRadius(ObjPtr, Radius) ^ pattern.c:2695:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ChangeAllSelRCBRadius(Radius) ^ pattern.c:2750:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ChangeAllSelRealLineWidth(nMask, Width, AW, AH, ^ pattern.c:2789:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetSelLineWidth(pszBuf) ^ 62 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 -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c pin.c pin.c:77:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void CachePin(ObjPtr) ^ pin.c:96:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void PreparePinInfoForAnObject(ObjPtr, nInsideAnIcon) ^ pin.c:147:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int GetPins(pObj, ppTopSel, ppBotSel) ^ pin.c:179:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int AddObjToSorted(pObj, ppTopSel, ppBotSel) ^ pin.c:195:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int FindExtraPoly(pTopSel, pBotSel, ppTopSel, ppBotSel, pnCount, pBBox) ^ pin.c:276:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] struct ObjRec *FindPinObj(AbsX, AbsY) ^ pin.c:289:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void HighLightAPin(forward) ^ pin.c:306:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void HandlePinHighlights(MouseX, MouseY) ^ pin.c:309:33: warning: variable 'something_changed' set but not used [-Wunused-but-set-variable] int need_to_highlight=FALSE, something_changed=FALSE; ^ pin.c:343:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void AppendConnToPin(pPinObj, pConn, pPolyObj) ^ pin.c:363:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void CreateConnection(pStartPin, pEndPin) ^ pin.c:461:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void FreeConn(pConn) ^ pin.c:468:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void UnlinkConn(pConn) ^ pin.c:487:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DelConnFromPoly(pConn) ^ pin.c:495:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DelConnFromPin(pConn) ^ 15 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 -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c pngtrans.c pngtrans.c:53:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int PngShowOrPrintMsg(buf, use_msgbox) ^ pngtrans.c:64:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int VerifyPngHeader(fp) ^ pngtrans.c:81:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ReadPngDWord(pvalue32, fp) ^ pngtrans.c:106:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ReadPngShortWord(pvalue16, fp) ^ pngtrans.c:127:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void PngHexDump(buf, len, pn_index, pn_line_num) ^ pngtrans.c:155:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int DoInflateForPng(in_buf, v32_length) ^ pngtrans.c:230:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetPngFileTransColor(pphi, red, green, blue) ^ pngtrans.c:241:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ReadChunk(pphi, psz_chunk_type, v32_length, fp) ^ pngtrans.c:418:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ProcessChunk(pphi) ^ pngtrans.c:488:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ResetPngHeaderInfo(pphi) ^ pngtrans.c:496:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetPngHeaderInfoForTransColor(pphi, trans_color_pixel_r, ^ pngtrans.c:499:18: warning: promoted type 'int' of K&R function parameter is not compatible with the parameter type 'unsigned char' declared in a previous prototype [-Wknr-promoted-parameter] unsigned char trans_color_pixel_r, trans_color_pixel_g, trans_color_pixel_b; ^ ./pngtrans.e:48:19: note: previous declaration is here unsigned char trans_color_pixel_r, ^ pngtrans.c:499:39: warning: promoted type 'int' of K&R function parameter is not compatible with the parameter type 'unsigned char' declared in a previous prototype [-Wknr-promoted-parameter] unsigned char trans_color_pixel_r, trans_color_pixel_g, trans_color_pixel_b; ^ ./pngtrans.e:49:19: note: previous declaration is here unsigned char trans_color_pixel_g, ^ pngtrans.c:499:60: warning: promoted type 'int' of K&R function parameter is not compatible with the parameter type 'unsigned char' declared in a previous prototype [-Wknr-promoted-parameter] unsigned char trans_color_pixel_r, trans_color_pixel_g, trans_color_pixel_b; ^ ./pngtrans.e:50:19: note: previous declaration is here unsigned char trans_color_pixel_b)); ^ pngtrans.c:512:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int PngFileGetTransColorInit(pphi, fname) ^ pngtrans.c:527:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int PngFileGetTransColor(pphi) ^ 16 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 -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c poly.c poly.c:103:11: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] IntPoint *GetPolyOrPolygonAbsVs(pn_return, pn_allocated, ObjPtr) ^ poly.c:156:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] XPoint *MakePolyVertex(XOff, YOff, NumVs, Vs) ^ poly.c:176:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void CalcPolyBBox(ObjPtr) ^ poly.c:285:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void UpdPolyBBox(ObjPtr, NumPts, V) ^ poly.c:327:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void UpdNonIntSplinePolyBBox(obj_ptr, num_pts, v) ^ poly.c:362:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void UpdPolyOrPolygonBBox(obj_ptr) ^ poly.c:398:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void CreatePolyObj(NumPts, CreateAbsolute) ^ poly.c:599:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void AddPtToCreatePoly(AbsX, AbsY) ^ poly.c:639:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetXorDrawGCForPoly(color_index, line_width_index) ^ poly.c:685:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DoPolyMeasureCursor(ppmci, start, num_pts, x, y, dx, dy, erase, drag) ^ poly.c:737:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void FreePointsForCont(pn_ltx, pn_lty, pn_rbx, pn_rby) ^ poly.c:798:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int SetFirstPoint(grid_x, grid_y, pipt_first) ^ poly.c:828:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int AddPointForCont(grid_x, grid_y, pipt) ^ poly.c:851:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void UpdateLastPointForCont(pipt) ^ poly.c:860:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DrawAllStructSplinePointsForCont(num_pts) ^ poly.c:913:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void UpdatePrevToLastPointForCont(pipt_prev) ^ poly.c:925:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ContinueForStructSplinePolyControlPoints(OrigX, OrigY, LastX, LastY, psv, ^ poly.c:1402:48: warning: variable 'obj_ptr' set but not used [-Wunused-but-set-variable] struct ObjRec *owner_obj=NULL, *obj_ptr, *obj_under_cursor=NULL; ^ poly.c:1120:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ContinuePoly(OrigX, OrigY) ^ poly.c:1871:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DrawPoly(input) ^ poly.c:1932:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetWiringNodeInfo(port_obj, port_owner_obj, port_name, first) ^ poly.c:2082:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void FinishJoinPoly(obj_ptr1, obj_ptr2, poly_ptr1, vs, smooth, num_pts) ^ poly.c:2203:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DoJoinPoly(obj_ptr1, obj_ptr2, poly_ptr1, poly_ptr2, min_index, coincide, ^ poly.c:2534:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void FinishCloseOnePoly(obj_ptr, poly_ptr, vs, smooth, num_pts) ^ poly.c:2589:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void CloseOnePoly(obj_ptr) ^ poly.c:2793:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int JoinPolyCompatCheck(poly_ptr1, poly_ptr2) ^ poly.c:2991:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void FinishCutPoly(obj_ptr1, poly_ptr1, vs1, smooth1, vs2, smooth2, ^ poly.c:3101:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DoCutPoly(obj_ptr, index, poly_ptr) ^ poly.c:3205:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void FinishCutPolygon(obj_ptr1, polygon_ptr1, vs, smooth, num_pts) ^ poly.c:3328:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DoCutPolygon(obj_ptr, index, polygon_ptr) ^ poly.c:3425:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void CopyPolySegmentProperties(obj_ptr, poly_ptr, curved) ^ poly.c:3456:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void CopyPolygonSegmentProperties(obj_ptr, polygon_ptr, curved) ^ poly.c:3489:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int CreateSegmentsFromObject(obj_ptr, pp_top_obj, pp_bot_obj) ^ poly.c:3761:8: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] double GetWidthInDouble(nVal, pszSpec, pnIsInt) ^ poly.c:3780:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetWidthAndSpec(dWidth, pnWidth, pszWidthSpec) ^ poly.c:3793:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ScaleWidthAndSpec(dScale, pnWidth, pszWidthSpec) ^ poly.c:3806:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DumpArrow(FP, TailV, HeadV, ArrowW, ArrowH, aw_spec, ah_spec, Pen, ^ poly.c:3911:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int CalcArrowRetreatPoint(TailV, HeadV, ArrowW, aw_spec, ReturnV) ^ poly.c:3937:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DumpPolyPath(FP, ObjPtr, Vs, NumPts, Smooth, Style, Width, ArrowW, ArrowH, ^ poly.c:4164:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DumpPolyObj(FP, ObjPtr) ^ poly.c:4170:23: warning: variable 'rotation' set but not used [-Wunused-but-set-variable] int style, aw, ah, rotation, intn, retracted_arrow; ^ poly.c:4454:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int NeedsToCachePolyObj(ObjPtr) ^ poly.c:4463:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void MakeCachedPoly(ObjPtr) ^ poly.c:4598:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetArrowVsForDraw(obj_ptr, retracted_arrow, real_x_off, real_y_off, ^ poly.c:4752:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DrawPolyObj(Win, XOff, YOff, ObjPtr) ^ poly.c:4760:44: warning: variable 'n' set but not used [-Wunused-but-set-variable] int trans_pat, pen, width, pixel, fill, n, dash, real_x_off, real_y_off; ^ poly.c:4939:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SaveSmoothHinge(FP, Curved, NumPts, Smooth) ^ poly.c:4976:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SaveArrowSpec(FP, arrow_style, aw, ah, aindent, aw_spec, ah_spec, ^ poly.c:4988:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SavePolyObj(FP, ObjPtr) ^ poly.c:5056:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ReadSmoothHinge(FP, Curved, NumPts, Smooth) ^ poly.c:5107:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ReadPolyObj(FP, Inbuf, ObjPtr) ^ poly.c:5522:26: warning: format string is not a string literal (potentially insecure) [-Wformat-security] sprintf(gszMsgBox, TgLoadCachedString(CSTID_BAD_SMOOTHHINGE_POLY_FIXED)); ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^~~~~~~~~~~ poly.c:5522:26: note: treat the string as an argument to avoid this sprintf(gszMsgBox, TgLoadCachedString(CSTID_BAD_SMOOTHHINGE_POLY_FIXED)); ^ "%s", /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^ poly.c:5652:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetPolyPropMask(ObjPtr, plMask, plSkip, pProp) ^ poly.c:5686:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void FreePolyObj(ObjPtr) ^ 54 warnings generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c polygon.c polygon.c:72:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] XPoint *MakePolygonVertex(XOff, YOff, NumVs, Vs) ^ polygon.c:92:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DumpPoints(FP, NumPts, V, Indent) ^ polygon.c:106:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DumpJustPolygonPath(FP, Vs, NumPts, Smooth, Curved) ^ polygon.c:122:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DumpPolygonPath(FP, ObjPtr, Vs, NumPts, Width, Pen, Fill, Dash, TransPat) ^ polygon.c:201:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DumpPolygonObj(FP, ObjPtr) ^ polygon.c:308:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int NeedsToCachePolygonObj(ObjPtr) ^ polygon.c:315:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void MakeCachedPolygon(ObjPtr) ^ polygon.c:368:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DrawPolygonObj(Win, XOff, YOff, ObjPtr) ^ polygon.c:448:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void CreatePolygonObj(NumPts, CreateAbsolute) ^ polygon.c:639:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void AddPtToCreatePolygon(AbsX, AbsY) ^ polygon.c:669:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DoPolygonMeasureCursor(ppmci, start, num_pts, x, y, dx, dy, erase, drag, ^ polygon.c:730:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void EraseStructSplineLinesForCont(OrigX, OrigY, grid_x, grid_y, sv, sn, sv2, ^ polygon.c:806:58: warning: too few arguments in call to 'DoPolygonMeasureCursor' ABS_Y(grid_y), 0, 0, POLYGON_ERASE, POLYGON_DRAG); ^ polygon.c:846:72: warning: too few arguments in call to 'DoPolygonMeasureCursor' ABS_SIZE(abs(grid_y-LastY)), POLYGON_ERASE, POLYGON_DRAG); ^ polygon.c:941:71: warning: too few arguments in call to 'DoPolygonMeasureCursor' ABS_SIZE(abs(grid_y-LastY)), POLYGON_DRAW, POLYGON_DRAG); ^ polygon.c:947:75: warning: too few arguments in call to 'DoPolygonMeasureCursor' ABS_SIZE(abs(grid_y-LastY)), POLYGON_ERASE, POLYGON_DRAG); ^ polygon.c:963:72: warning: too few arguments in call to 'DoPolygonMeasureCursor' ABS_SIZE(abs(grid_y-LastY)), POLYGON_ERASE, POLYGON_DRAG); ^ polygon.c:748:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ContinueForStructSplinePolygonControlPoints(OrigX, OrigY, LastX, LastY, ^ polygon.c:1021:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void EraseStructSplineLinesForContAndUpdateSvs(OrigX, OrigY, grid_x, grid_y, ^ polygon.c:1094:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ContinuePolygon(OrigX, OrigY) ^ polygon.c:1797:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DrawPolygon(input) ^ polygon.c:1814:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SelectAndHighLightNewObjects(PrevTopObj) ^ polygon.c:1958:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void AddToLastPoint(XOff, YOff) ^ polygon.c:1974:8: warning: variable 'num_created' set but not used [-Wunused-but-set-variable] int num_created=0, saved_cur_spline=curSpline; ^ polygon.c:2043:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SavePolygonObj(FP, ObjPtr) ^ polygon.c:2097:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ReadPolygonObj(FP, Inbuf, ObjPtr) ^ polygon.c:2513:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetPolygonPropMask(ObjPtr, plMask, plSkip, pProp) ^ polygon.c:2539:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void FreePolygonObj(ObjPtr) ^ 28 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 -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c ps.c ps.c:178:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void PSUseReencode(font_str) ^ ps.c:804:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void psDynamicPrintPatternDef(FP, index) ^ ps.c:1010:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DumpPSMacro(FP) ^ ps.c:1127:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ParsePsAdobeString(buf, use_ps_adobe_string, adobe_str, epsf_str) ^ 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 -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c raster.c raster.c:1326:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int UpgradePenFill(pen_or_fill) ^ raster.c:1336:15: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] unsigned char ByteReverse(byte) ^ raster.c:1337:18: warning: promoted type 'int' of K&R function parameter is not compatible with the parameter type 'unsigned char' declared in a previous prototype [-Wknr-promoted-parameter] unsigned char byte; ^ ./raster.e:114:58: note: previous declaration is here extern unsigned char ByteReverse ARGS_DECL((unsigned char)); ^ raster.c:1350:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void GetPatternCellsize(fill_or_pen, pn_cell_w, pn_cell_h) ^ raster.c:1372:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetBit(buf, bit_offset, ival) ^ raster.c:1388:15: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] unsigned char GetBit(buf, bit_offset) ^ raster.c:1399:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] unsigned char *GetPatternBytes(fill_or_pen, pn_num_bytes, pn_need_to_free) ^ 7 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 -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c rcbox.c rcbox.c:75:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetRCBoxVertex(x1, y1, x2, y2, r) ^ rcbox.c:129:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void MyRCBox(window, gc, x1, y1, x2, y2, r) ^ rcbox.c:143:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void MyFillRCBox(window, gc, x1, y1, x2, y2, r) ^ rcbox.c:158:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DumpRCBoxPSPath(FP, ltx, lty, rbx, rby, r, blank1, blank2) ^ rcbox.c:187:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DumpRCBoxPath(FP, ObjPtr, ltx, lty, rbx, rby, r, width, pen, dash, ^ rcbox.c:243:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DumpRCBoxObj(FP, ObjPtr) ^ rcbox.c:347:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int NeedsToCacheRCBoxObj(ObjPtr) ^ rcbox.c:354:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void MakeCachedRCBox(ObjPtr) ^ rcbox.c:430:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DrawRCBoxObj(win, XOff, YOff, ObjPtr) ^ rcbox.c:512:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void CreateRCBoxObj(X1, Y1, X2, Y2, CreateAbsolute) ^ rcbox.c:586:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ContinueRCBox(OrigX, OrigY) ^ rcbox.c:701:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DrawRCBox(input) ^ rcbox.c:737:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SaveRCBoxObj(FP, ObjPtr) ^ rcbox.c:770:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ReadRCBoxObj(FP, Inbuf, ObjPtr) ^ rcbox.c:979:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetRCBoxPropMask(ObjPtr, plMask, plSkip, pProp) ^ rcbox.c:1005:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void FreeRCBoxObj(ObjPtr) ^ 16 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 -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c rect.c rect.c:51:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DumpRectPath(FP, LtX, LtY, RbX, RbY, Indent, LastLF) ^ rect.c:78:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetPoint(pt, x, y) ^ rect.c:86:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ClipRect(bbox, w, h) ^ rect.c:106:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int CompareRect(pBBox1, pBBox2) ^ rect.c:112:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetRotateVs(vs, ltx, lty, rbx, rby) ^ rect.c:122:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetBBRec(bbox, ltx, lty, rbx, rby) ^ rect.c:142:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ConcatCTM(ctm, orig_ctm, new_ctm) ^ rect.c:161:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void TransformDoublePointThroughCTM(X, Y, ctm, NewX, NewY) ^ rect.c:171:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void TransformPointThroughCTM(X, Y, ctm, NewX, NewY) ^ rect.c:185:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ReverseTransformDoublePointThroughCTM(X, Y, ctm, NewDx, NewDy) ^ rect.c:212:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ReverseTransformPointThroughCTM(X, Y, ctm, NewX, NewY) ^ rect.c:223:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void TransformObjectV(ObjPtr, VIn, VOut) ^ rect.c:235:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ReversedTransformObjectV(ObjPtr, VIn, VOut) ^ rect.c:247:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void TransformOffsetBBoxThroughCTM(bbox, ctm, vs) ^ rect.c:264:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void GetTransformedOBBoxOffsetVs(ObjPtr, Vs) ^ rect.c:293:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void GetTransformedOBBoxAbsVs(ObjPtr, Vs) ^ rect.c:318:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetCTM(ObjPtr, ctm) ^ rect.c:361:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ExpandExtents(pBBox, pnLtX, pnLtY, pnRbX, pnRbY) ^ rect.c:371:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ExpandBBox(pBBox, pBBoxToExpand) ^ rect.c:380:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void InflateBBox(pBBoxIn, dx, dy, pBBoxOut) ^ rect.c:390:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void OffsetBBox(pBBoxIn, dx, dy, pBBoxOut) ^ rect.c:400:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int BBoxIntersect(Rect1, Rect2) ^ rect.c:418:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int IntersectRect(BBox1, BBox2, BBox3) ^ rect.c:432:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void UnionRect(p_bbox1, p_bbox2, p_union_bbox) ^ rect.c:441:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int Inside(BBox1, BBox2) ^ rect.c:449:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int PointInBBox(X, Y, Rect) ^ rect.c:456:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int PointInIntPolygon(X, Y, NumPts, IV) ^ rect.c:495:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int PointInPolygon(X, Y, NumPts, V) ^ rect.c:534:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int PointOnPoly(X, Y, NumPts, V, W) ^ rect.c:585:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int FindGoodText(XOff, YOff, TextObj) ^ rect.c:601:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int FindGoodXBm(XOff, YOff, XBmObj) ^ rect.c:623:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int FindGoodXPm(XOff, YOff, XPmObj) ^ rect.c:645:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int FindGoodBox(XOff, YOff, BoxObj) ^ rect.c:686:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int FindGoodRCBox(XOff, YOff, RCBoxObj) ^ rect.c:742:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int FindGoodOval(XOff, YOff, OvalObj) ^ rect.c:807:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int FindGoodPoly(XOff, YOff, PolyObj) ^ rect.c:905:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int FindGoodPolygon(XOff, YOff, PolygonObj) ^ rect.c:939:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int PointInFlatPie(Y,dir,angle,ov_int_y1,ov_int_y2,rad_int_y1,rad_int_y2) ^ rect.c:1013:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int PointInTallPie(X,dir,angle,ov_int_x1,ov_int_x2,rad_int_x1,rad_int_x2) ^ rect.c:1087:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int XInPieRange(X, dir, angle, cx, rx) ^ rect.c:1115:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int YInPieRange(Y, dir, angle, cy, ry) ^ rect.c:1142:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int FindGoodArc(XOff, YOff, ArcObj) ^ rect.c:1898:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int FindGoodObj(XOff, YOff, FirstObj, SubObj, ImmediateChildObj) ^ 43 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 -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c remote.c remote.c:96:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int UpdateDownloadStats(bytes, psz_buf) ^ remote.c:175:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int GetClientID(psz_buf, buf_sz) ^ remote.c:197:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void GetUserAgent(buf, buf_sz) ^ remote.c:207:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetUserAgent(buf) ^ remote.c:219:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int GetUserID(psz_buf, buf_sz) ^ remote.c:297:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int GetPageNumFromPageSpec(psz_spec, pn_page_num) ^ remote.c:325:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void FreeRemoteBuf(psz_buf) ^ remote.c:332:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ParseURL(url, protocol, host, port, path) ^ remote.c:373:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DumpURL(host, port, path) ^ remote.c:384:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int DirIsRemote(psz_dir) ^ remote.c:403:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int FileIsRemote(psz_file) ^ remote.c:409:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int UrlIsHtml(psz_url) ^ remote.c:421:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int FormLocalName(psz_file, psz_def_ext, psz_return) ^ remote.c:447:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int FormRemoteName(psz_file, psz_def_ext, psz_return) ^ remote.c:469:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int FormNewFileName(psz_dir, psz_file, psz_def_ext, psz_return, ppsz_page_spec) ^ remote.c:539:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ShowRemoteStatus(psz_msg) ^ remote.c:549:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *WriteRemoteFileIntoTemp(psz_buf, buf_sz, psz_ext) ^ remote.c:603:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TgifCompressedUrl(url) ^ remote.c:647:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void UncompressTgifFile(url, ppsz_buf, pn_buf_sz, pn_html) ^ remote.c:725:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *GetProxyHostAndPort(proxy_spec, def_port, pn_port) ^ remote.c:758:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int LoadHttpIntoMem(url, host, port, path, ppsz_buf, ppsz_content_type, ^ remote.c:878:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int LoadFtpIntoMem(url, host, port, path, ppsz_buf, ppsz_content_type, ^ remote.c:984:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ResetRemoteBuf(ppsz_buf, ppsz_content_type, pn_buf_sz, pn_html) ^ remote.c:1004:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int LoadForwardedFileInMem(url, ppsz_buf, ppsz_content_type, pn_buf_sz, ^ remote.c:1051:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *ParseAuthFields(psz_scheme) ^ remote.c:1073:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int LoadAuthenticatedFileInMem(url, host, port, ppsz_buf, ppsz_content_type, ^ remote.c:1178:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int LoadRemoteFileInMem(url, ppsz_buf, ppsz_content_type, pn_buf_sz, pn_html, ^ remote.c:1277:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void LaunchViewer(launch_remote_file, psz_viewer, psz_url, ^ remote.c:1328:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void AddAMimeType(main_type, sub_type) ^ remote.c:1343:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void AddAMailCap(main_type, sub_type, cmd, params) ^ remote.c:1553:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void MalformedMailCapEntryMessage(mail_cap_ptr) ^ remote.c:1568:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *GetContentValue(name, params) ^ remote.c:1601:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *GetMimeViewer(psz_content_type) ^ remote.c:1746:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int SaveTmpURLToFile(psz_url, no_viewer_found, tmp_fname, new_file_name) ^ remote.c:1798:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int UseMimeViewer(psz_url, psz_content_type, tmp_fname) ^ remote.c:1874:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *GetViewer(ext_str) ^ remote.c:1956:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int UseViewer(psz_url, psz_content_type, tmp_fname) ^ remote.c:2011:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int UseExternalViewer(is_html, psz_url, psz_content_type, tmp_fname) ^ remote.c:2059:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int LoadRemoteFileFromMem(psz_url, psz_buf, psz_content_type, buf_sz, is_html) ^ remote.c:2097:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ModifyProxy(proxy_host) ^ 40 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 -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c rm_intrf.c rm_intrf.c:83:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int GetEntryPointFailed(psz_funcname) ^ rm_intrf.c:106:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ParseInterfaceVersion(buf, pivi) ^ rm_intrf.c:144:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int RMCastInterface1Init(pivi) ^ rm_intrf.c:369:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RM_getVersion(buf, buf_sz) ^ rm_intrf.c:393:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int RM_joinGroup(group, port) ^ rm_intrf.c:406:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RM_leaveGroup(sock, group) ^ rm_intrf.c:428:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int RM_sendto(socket, buffer, buffsize) ^ rm_intrf.c:441:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int RM_recv(socket, buffer, buffsize) ^ rm_intrf.c:454:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int RM_getCurStatus(group, port, c) ^ rm_intrf.c:468:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int RM_sendCurStatus(connfd, buff, buffsize) ^ rm_intrf.c:481:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int RM_readConfigFile(filename, show_config_file) ^ rm_intrf.c:482:20: warning: promoted type 'int' of K&R function parameter is not compatible with the parameter type 'char' declared in a previous prototype [-Wknr-promoted-parameter] char *filename, show_config_file; ^ ./rm_intrf.e:113:51: note: previous declaration is here char show_config_file)); ^ rm_intrf.c:494:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RM_getOption(opt, return_value) ^ rm_intrf.c:506:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RM_setOption(opt, optvalue) ^ rm_intrf.c:518:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int RM_setHostDelay(hostname, estimated_one_way_delay) ^ rm_intrf.c:532:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int RM_getHostDelay(hostname, estimated_one_way_delay) ^ rm_intrf.c:546:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RMDEBUG_setpidip(pid, ip) ^ rm_intrf.c:558:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RMDEBUG_setsn(sn) ^ 18 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 -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c ruler.c ruler.c:90:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void GetUnitSpec(buf) ^ ruler.c:119:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int BadUnit(spec) ^ ruler.c:130:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int VerifyFormatUnitStr(format_unit_str) ^ ruler.c:167:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int SetUnit(spec) ^ ruler.c:284:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void PixelToMeasurementUnit(Buf, NumPixels) ^ ruler.c:310:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SquarePixelToMeasurementUnit(Buf, NumSquarePixels) ^ ruler.c:337:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void PixelToCurrentUnit(Buf, NumPixels) ^ ruler.c:381:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void GetRightMarginMarkVs(vs) ^ ruler.c:398:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int PtInRightMarginMark(button_x, button_y) ^ ruler.c:409:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RedrawRightMargin(dpy, win) ^ ruler.c:448:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RedrawHRuler(dpy, win) ^ ruler.c:518:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DrawHRuleTick(XOff) ^ ruler.c:525:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DrawVRuleTick(YOff) ^ ruler.c:548:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RedrawVRuler(dpy, win) ^ ruler.c:642:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void MarkRulers(XOff, YOff) ^ ruler.c:729:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void GetCrossHairPosition(pnXOff, pnYOff, pnShown) ^ ruler.c:773:33: warning: variable 'orig_grid_y' set but not used [-Wunused-but-set-variable] int prev_x=0, orig_grid_x=0, orig_grid_y=0, orig_right_margin=0; ^ ruler.c:768:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ContinueMoveRightMarginMark(dpy, OrigX, OrigY) ^ ruler.c:859:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RulersEventHandler(input) ^ ruler.c:970:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void BeginIntervalRulers(ltx, lty, rbx, rby) ^ ruler.c:990:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DrawIntervalRulers(ltx, lty, rbx, rby, delta_str) ^ ruler.c:1006:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void EndIntervalRulers(x, y) ^ ruler.c:1027:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void StartShowMeasureCursor(XOff, YOff, Str, ExtraSpace) ^ ruler.c:1060:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ShowMeasureCursor(XOff, YOff, Str, ExtraSpace) ^ ruler.c:1100:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void EndShowMeasureCursor(XOff, YOff, Str, ExtraSpace) ^ ruler.c:1216:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetMeasureTooltipBBox(msg) ^ ruler.c:1260:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DoIntervalMeasureTooltip(ltx, lty, rbx, rby, mdx, mdy, delta_str) ^ ruler.c:1287:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void StartMeasureTooltip(msg) ^ ruler.c:1293:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetMeasureTooltip(msg) ^ ruler.c:1337:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void EndMeasureTooltip(force) ^ 30 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 -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c scroll.c scroll.c:73:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TgAnyButtonDown(dpy, win) ^ scroll.c:86:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TgPressButtonLoop(dpy, win, pbbox, psbci) ^ scroll.c:166:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TgGetScrollHit(x, y, orientation, scroll_area_w, scroll_area_h, ^ scroll.c:223:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void TgDrawScrollBar(dpy, win, orientation, x_off, y_off, scroll_area_w, ^ scroll.c:434:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void GetMaxScrollOrigin(pn_orig_x, pn_orig_y) ^ scroll.c:507:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ScrollTo(XOff, YOff) ^ scroll.c:609:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ScrollUp(button_ev) ^ scroll.c:665:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ForceScrollDown(ScrollAFullWindow) ^ scroll.c:703:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ScrollDown(button_ev) ^ scroll.c:719:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ScrollBtnCallback(pv_userdata) ^ scroll.c:737:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int DoSBarBtnScroll(dpy, win, scroll_page, scroll_dir, pbbox) ^ scroll.c:770:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DragToInVSBar(lty, block_start, block_h) ^ scroll.c:824:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DoDragInVSBar(btn_y, btn_offset) ^ scroll.c:943:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void VSBarHandler(button_ev) ^ scroll.c:1001:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ScrollLeft(button_ev) ^ scroll.c:1059:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ScrollRight(button_ev) ^ scroll.c:1104:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DragToInHSBar(ltx, block_start, block_w) ^ scroll.c:1158:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DoDragInHSBar(btn_x, btn_offset) ^ scroll.c:1277:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void HSBarHandler(button_ev) ^ scroll.c:1335:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ScrollEventHandler(input) ^ scroll.c:1441:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ScrollToSpecifiedOrigin(cur_page_num, orig_x, orig_y, zoom_scale, ^ scroll.c:1512:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetOrigin(x, y, zoom_scale, zoomed_in) ^ scroll.c:1521:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void GetOrigin(pn_x, pn_y, pn_zoom_scale, pn_zoomed_in) ^ scroll.c:1532:8: warning: comparison of array 'scrl_up_bits' equal to a null pointer is always false [-Wtautological-pointer-compare] if (scrl_up_bits == NULL) { } ^~~~~~~~~~~~ ~~~~ scroll.c:1569:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ChangeScrollMode(ModeIndex) ^ scroll.c:1576:26: warning: format string is not a string literal (potentially insecure) [-Wformat-security] sprintf(gszMsgBox, TgLoadString(STID_WILL_UPD_WIN_SMOOTH_SCROLL)); ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^~~~~~~~~~~ scroll.c:1576:26: note: treat the string as an argument to avoid this sprintf(gszMsgBox, TgLoadString(STID_WILL_UPD_WIN_SMOOTH_SCROLL)); ^ "%s", /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^ scroll.c:1579:26: warning: format string is not a string literal (potentially insecure) [-Wformat-security] sprintf(gszMsgBox, TgLoadString(STID_WILL_UPD_WIN_JUMP_SCROLL)); ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^~~~~~~~~~~ scroll.c:1579:26: note: treat the string as an argument to avoid this sprintf(gszMsgBox, TgLoadString(STID_WILL_UPD_WIN_JUMP_SCROLL)); ^ "%s", /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^ scroll.c:1582:26: warning: format string is not a string literal (potentially insecure) [-Wformat-security] sprintf(gszMsgBox, TgLoadString(STID_WILL_NOT_UPD_WIN_SCROLL)); ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^~~~~~~~~~~ scroll.c:1582:26: note: treat the string as an argument to avoid this sprintf(gszMsgBox, TgLoadString(STID_WILL_NOT_UPD_WIN_SCROLL)); ^ "%s", /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^ scroll.c:1588:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int RefreshScrollModeMenu(menu) ^ scroll.c:1609:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] TgMenu *CreateScrollModeMenu(parent_menu, x, y, menu_info, status_str_xlated) ^ 30 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 -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c select.c select.c:93:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int GetObjCurved(ObjPtr) ^ select.c:106:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] struct SelRec *SelectThisObject(ObjPtr) ^ select.c:147:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void CalcBBox(X1, Y1, X2, Y2, LtX, LtY, RbX, RbY) ^ select.c:165:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void CalcVertexBBox(LtX, LtY, RbX, RbY) ^ select.c:184:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void UnSelNonVertexObjs(highlight, no_locked_obj_only) ^ select.c:229:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void JustFreeSel(pTopSel, pBotSel) ^ select.c:240:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void UnlinkSel(pSel, ppTopSel, ppBotSel) ^ select.c:255:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] struct SelRec *FindObjInSel(pObj, pTopSel, pBotSel) ^ select.c:267:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int PrependObjToSel(pObj, ppTopSel, ppBotSel) ^ select.c:291:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] struct SelRec *AddObjIntoSel(pObj, pPrevSel, pNextSel, ppTopSel, ppBotSel) ^ select.c:357:17: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] struct AttrRec *FindObjAttrWithName(ObjPtr, AttrName) ^ select.c:423:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] struct ObjRec *FindAVertex(XOff, YOff, VIndex, AbsX, AbsY) ^ select.c:499:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int CandidatePortOwner(obj_ptr) ^ select.c:515:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] struct ObjRec *FindAnObj(XOff, YOff, OwnerObj, ConnectObj, ReturnedObjName) ^ select.c:525:8: warning: variable 'found_attr' set but not used [-Wunused-but-set-variable] int found_attr=FALSE; ^ select.c:707:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int VertexAlreadySelected(ObjPtr, VIndex, VSelPtr) ^ select.c:727:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] struct SelRec *AlreadySelected(ObjPtr) ^ select.c:740:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void AddSel(PrevPtr, NextPtr, SelPtr) ^ select.c:760:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void AddNewSelObj(ObjPtr) ^ select.c:799:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ExpandCurSelBBoxes(obj_ptr) ^ select.c:821:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetNoLockBBox(ObjPtr) ^ select.c:908:17: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] struct VSelRec *SelectOneVertex(XOff, YOff) ^ select.c:949:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] struct SelRec *SelectOneObj(XOff, YOff, ppInnerObj) ^ select.c:978:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int FindVertices(X1, Y1, X2, Y2, TopVSel, BotVSel, pn_struct_spline_msg) ^ select.c:1101:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] struct SelRec *FindObjects(X1, Y1, X2, Y2, TopSel, BotSel) ^ select.c:1124:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SelBox(window, gc, x1, y1, x2, y2) ^ select.c:1144:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] struct ObjRec *PtInObjList(XOff, YOff, FirstObjPtr) ^ select.c:1204:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] struct ObjRec *PtInSelected(XOff, YOff) ^ select.c:1266:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ToggleVertexSelection(ObjPtr, VIndex, AbsX, AbsY, pn_struct_spline_msg) ^ select.c:1404:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ToggleSelectedObjIfSelectedAlready(ObjPtr) ^ select.c:1433:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ContinueSel(XOff, YOff, ShiftKeyDown) ^ select.c:1630:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void KeyPressInSelect(key_ev) ^ select.c:1733:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int PtInObjAboveSelected(XOff, YOff) ^ select.c:1760:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void Select(input) ^ select.c:1871:17: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] struct AttrRec *FindFileAttrWithName(AttrName) ^ select.c:1928:17: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] struct AttrRec *FindAttrWithName(ObjPtr, AttrName, pp_top_owner) ^ select.c:2025:17: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] struct AttrRec *ValidAttrArg(c_ptr, obj_ptr, new_c_ptr) ^ select.c:2060:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int DoTeleport(teleport_attr) ^ select.c:2219:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int DoPageTeleport(teleport_attr, do_by_page_name) ^ select.c:2272:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DoExecLoop(obj_ptr, exec_attr) ^ select.c:2341:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void Teleport(button_ev) ^ select.c:2405:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SelAllObj(high_light, ignore_slideshow) ^ select.c:2435:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void PushTmpObj(ObjPtr) ^ select.c:2511:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DeleteObjectInsteadOfVertex(obj_ptr) ^ select.c:2563:64: warning: variable 'ssn' set but not used [-Wunused-but-set-variable] int delete_it=FALSE, extra_vertex=FALSE, curved=(-1), ssn=0; ^ select.c:2564:30: warning: variable 'ssmooth' set but not used [-Wunused-but-set-variable] char *smooth=NULL, *ssmooth=NULL; ^ select.c:2565:20: warning: variable 'ssvlist' set but not used [-Wunused-but-set-variable] IntPoint *ssvlist=NULL; ^ select.c:2737:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void GroupSingleObj(ForcePromoteAttrs) ^ select.c:2765:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void GroupSelObj(highlight, record_cmd, redraw) ^ 49 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 -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c setup.c setup.c:295:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RegisterWM_DELETE_WINDOW(win) ^ setup.c:303:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int IsWM_DELETE_WINDOW(pXEvent) ^ setup.c:445:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ComputeMainWinXY(MainWinX, MainWinY) ^ setup.c:585:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void Reconfigure(Forced) ^ setup.c:672:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TgHandleCmdEvent(pXEv) ^ setup.c:680:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TgIsCmdEvent(pXEv) ^ setup.c:696:11: warning: variable 'win' set but not used [-Wunused-but-set-variable] Window win=(Window)0; ^ setup.c:693:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void HandleSelectionClear(input) ^ setup.c:722:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DebugSelectRequest(property, target, level, msg) ^ setup.c:750:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void HandleSelectionRequest(input) ^ setup.c:755:9: warning: variable 'time' set but not used [-Wunused-but-set-variable] Time time=(Time)0; ^ setup.c:869:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int mainWinEventHandler(input) ^ setup.c:1043:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int GetWMIconPixmap(pPixmap, pPixmapMask) ^ setup.c:2571:8: warning: comparison of array 'btn1_bits' equal to a null pointer is always false [-Wtautological-pointer-compare] if (btn1_bits == NULL) { } ^~~~~~~~~ ~~~~ setup.c:2594:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetFileModified(modified) ^ 15 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 -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c shape.c shape.c:120:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *GetShapeDesc(index) ^ shape.c:146:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int CreatePolygonShape(num_pts, has_smooth) ^ shape.c:188:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int StartCreateShape(orig_x, orig_y) ^ shape.c:248:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void CalcRegularPolygonVs(sides, vertex_at_right, start_degree, scale, ^ shape.c:622:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int CalcCreateShapeVs(end_x, end_y) ^ shape.c:691:35: warning: variable 'side_h' set but not used [-Wunused-but-set-variable] int w, h, diam_y, radius_y, side_h; ^ shape.c:658:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void HighLightCreateShape(end_x, end_y, generate, pn_need_to_draw) ^ shape.c:880:32: warning: variable 'side_h' set but not used [-Wunused-but-set-variable] int w, h, diam_y, radius_y, side_h, saved_cur_spline, saved_line_style; ^ shape.c:992:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DoCursor(x, y, w, h, which) ^ shape.c:1010:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ContinueCreateShape(orig_x, orig_y) ^ shape.c:1127:26: warning: format string is not a string literal (potentially insecure) [-Wformat-security] sprintf(gszMsgBox, TgLoadString(objFill==NONEPAT ? ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^~~~~~~~~~~ shape.c:1127:26: note: treat the string as an argument to avoid this sprintf(gszMsgBox, TgLoadString(objFill==NONEPAT ? ^ "%s", /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^ shape.c:1170:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ShapeSubMenu(nIndex) ^ shape.c:1179:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RefreshShapeMenu(menu) ^ shape.c:1184:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] TgMenu *CreateShapeMenu(parent_menu, x, y, menu_info, status_str_xlated) ^ shape.c:1226:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ShapeMenu(X, Y, TrackMenubar) ^ 15 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 -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c shortcut.c shortcut.c:506:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int FunctionKeySpec(buf, pn_code, pn_index_return) ^ shortcut.c:784:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int FetchShortCut(c, code, state, name, args, args_sz) ^ shortcut.c:816:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int FetchFuncKeyShortCut(c, code, state, name, args, args_sz) ^ shortcut.c:859:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int FetchCmdById(nCmdId, code, state, name, args) ^ shortcut.c:880:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ValidShortCut(name, num_args, code, state) ^ 5 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 -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c special.c special.c:98:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] struct ObjRec *CreatePinObj(obj_ptr1, obj_ptr2, sym_count) ^ special.c:156:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] struct ObjRec *ReadSymbol(FP, FileType) ^ special.c:223:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] struct ObjRec *GetObjRepresentation(PathName, SymName, FileType) ^ special.c:270:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] unsigned int PlaceTopObj(ObjPtr, savedTopObj, savedBotObj) ^ special.c:390:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int UnMakeIconicOnInstantiate(obj_ptr) ^ special.c:407:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int UnMakeIconicOnInstantiateDeleteAttrs(obj_ptr) ^ special.c:612:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ObjIsAPort(obj_ptr) ^ special.c:719:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void AddWireAttributes(poly_obj_ptr, signal_name, p_obbox, auto_center) ^ special.c:764:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ChangeConnectionView(pravci) ^ special.c:792:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int HasConnAndDisConnViewObjSubObjs(obj_ptr, pccvi) ^ special.c:844:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int SetPortSignalName(port_obj, attr_ptr, attr_owner_obj, new_signal_name) ^ special.c:881:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DoNameWire(automatic) ^ special.c:1060:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void AddObjToAnchor(anchor, obj_ptr) ^ special.c:1072:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void AddBroadcastWireAttributes(poly_obj_ptr, signal_name, p_obbox, auto_center) ^ special.c:1101:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DoNameBroadcastWire(signal_name, signal_name_diff) ^ special.c:1197:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void TrySetCommonSignalName(attr_ptr, pszSignalName, szSignalName, ^ special.c:1216:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int CheckPortsAndBroadcastObj(ppAnchor, pnAnchorIsPoly, pnNumPorts, ^ special.c:1308:29: warning: format string is not a string literal (potentially insecure) [-Wformat-security] sprintf(gszMsgBox, TgLoadString(STID_CONFLICT_SIG_NAME_ENT_NEW)); ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^~~~~~~~~~~ special.c:1308:29: note: treat the string as an argument to avoid this sprintf(gszMsgBox, TgLoadString(STID_CONFLICT_SIG_NAME_ENT_NEW)); ^ "%s", /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^ special.c:1311:29: warning: format string is not a string literal (potentially insecure) [-Wformat-security] sprintf(gszMsgBox, TgLoadString(STID_PLS_ENT_SIG_NAME)); ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^~~~~~~~~~~ special.c:1311:29: note: treat the string as an argument to avoid this sprintf(gszMsgBox, TgLoadString(STID_PLS_ENT_SIG_NAME)); ^ "%s", /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^ special.c:1316:26: warning: format string is not a string literal (potentially insecure) [-Wformat-security] sprintf(gszMsgBox, TgLoadString(STID_PLS_ENT_SIG_NAME)); ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^~~~~~~~~~~ special.c:1316:26: note: treat the string as an argument to avoid this sprintf(gszMsgBox, TgLoadString(STID_PLS_ENT_SIG_NAME)); ^ "%s", /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^ special.c:1413:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DoNameOrClearAPort(which) ^ special.c:1490:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DoRenameOrClearSignalNameForAPort(which) ^ special.c:1538:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RenameOrClearSignalNameForAPort(which) ^ special.c:1579:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int CheckPortsAndObj(ppAnchor, pnNumPorts) ^ special.c:1667:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RenumberObjId(obj_ptr) ^ special.c:1805:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int MakeIconic(sym_path, record_cmd) ^ special.c:1813:8: warning: variable 'len' set but not used [-Wunused-but-set-variable] int len, short_name, sym_ext_len, ltx, lty, rbx, rby, no_name=FALSE; ^ special.c:1813:25: warning: variable 'sym_ext_len' set but not used [-Wunused-but-set-variable] int len, short_name, sym_ext_len, ltx, lty, rbx, rby, no_name=FALSE; ^ special.c:1996:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void AddLine(buf) ^ special.c:2031:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ImportAnAttr(obj_ptr, attr_line_num, fname) ^ special.c:2227:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int OkayToImportNamedAttr(num_restricted, ppsz_restricted) ^ special.c:2278:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void CreateLineInfo(status, attr_line_num) ^ special.c:2299:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DoImportNamedAttrs(fp, num_restricted, ppsz_restricted, pn_ok_count, ^ special.c:2346:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ImportNamedAttrs(fp, obj_ptr, num_restricted, ppsz_restricted, fname) ^ special.c:2512:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int GetMergeSpec(obj_ptr, attr_name, pn_val, distance) ^ special.c:3106:36: warning: format string is not a string literal (potentially insecure) [-Wformat-security] sprintf(&buf[cur_len], gszMsgBox); ^~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^~~~~~~~~~~ special.c:3106:36: note: treat the string as an argument to avoid this sprintf(&buf[cur_len], gszMsgBox); ^ "%s", /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^ special.c:3143:23: warning: format string is not a string literal (potentially insecure) [-Wformat-security] sprintf(gszMsgBox, TgLoadString(showWireSignalName ? ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^~~~~~~~~~~ special.c:3143:23: note: treat the string as an argument to avoid this sprintf(gszMsgBox, TgLoadString(showWireSignalName ? ^ "%s", /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^ special.c:3148:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int RefreshPortMenu(menu) ^ special.c:3160:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] TgMenu *CreatePortMenu(parent_menu, x, y, menu_info, status_str_xlated) ^ special.c:3177:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RefreshSpecialMenu(menu) ^ special.c:3182:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int SpecialMenu(X, Y, TrackMenubar) ^ 41 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 -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c spline.c spline.c:62:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ReadSplineTightness(buf) ^ spline.c:80:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void CalcAutoRetractedArrowAttrBend(Style, X0, Y0, X2, Y2, X1, Y1) ^ spline.c:83:19: warning: variable 'len' set but not used [-Wunused-but-set-variable] double dx, dy, len, new_x, new_y; ^ spline.c:100:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void MidPoint(X1, Y1, X2, Y2, pd_mx, pd_my) ^ spline.c:108:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetAStructuredSplineTickMark(vs, num_pts, target_vs) ^ spline.c:147:11: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] IntPoint *GetStructuredSplinePolyTickMarkVs(pn_N, obj_ptr, poly_ptr, ^ spline.c:340:11: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] IntPoint *MakeStructuredSplinePolyVertex(pn_N, ppszSmooth, NumVs, Vs) ^ spline.c:427:11: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] IntPoint *MakeStructuredSplinePolygonVertex(pn_N, ppszSmooth, NumVs, Vs) ^ spline.c:521:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int AddSplinePt(N, MaxN, X, Y) ^ spline.c:538:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int AddDoubleSplinePt(N, MaxN, X, Y) ^ spline.c:557:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetSplineVs(N, MaxN, X1, Y1, X2, Y2, X3, Y3, X4, Y4) ^ spline.c:605:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetDoubleSplineVs(N, MaxN, X1, Y1, X2, Y2, X3, Y3, X4, Y4) ^ spline.c:652:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] XPoint *MakeSplinePolyVertex(Level, Curved, N, XOff, YOff, NumVs, Vs) ^ spline.c:810:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] XPoint *MakeMultiSplinePolyVertex(Curved, N, Smooth, XOff, YOff, NumVs, Vs) ^ spline.c:885:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] XPoint *MakeSplinePolygonVertex(Level, Curved, N, XOff, YOff, NumVs, Vs) ^ spline.c:955:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] XPoint *DoMakeDoubleIntSplinePolygonVertex(N, XOff, YOff, NumVs, Vs) ^ spline.c:1038:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] XPoint *MakeMultiSplinePolygonVertex(Curved, N, Smooth, XOff, YOff, NumVs, Vs) ^ spline.c:1133:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void OpenSetupMatrix(NumPts, Vs) ^ spline.c:1170:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void TriGaussian(NumPts) ^ spline.c:1195:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void FreeMtxInfo(NumPts) ^ spline.c:1214:11: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] IntPoint *OpenControlPts(NumPts, N) ^ spline.c:1254:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] XPoint *MakeIntSplinePolyVertex(N, CntrlN, CntrlVs, XOff, YOff, NumVs, Vs) ^ spline.c:1302:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ClosedSetupMatrix(NumPts, Vs) ^ spline.c:1358:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DoubleClosedSetupMatrix(NumPts, Vs) ^ spline.c:1464:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void Gaussian(NumPts) ^ spline.c:1534:11: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] IntPoint *ClosedControlPts(NumPts, N) ^ spline.c:1565:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] DoublePoint *DoubleClosedControlPts(NumPts, N) ^ spline.c:1595:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] XPoint *MakeIntSplinePolygonVertex(N, CntrlN, CntrlVs, XOff, YOff, NumVs, Vs) ^ spline.c:1631:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] XPoint *MakeDoubleIntSplinePolygonVertex(N, CntrlN, CntrlVs, XOff, YOff, ^ spline.c:1681:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DumpCurvedPolyPoints(FP, Curved, NumPts, V, Indent) ^ spline.c:1761:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DumpCurvedPolygonPoints(FP, Curved, NumPts, V, Indent) ^ spline.c:1802:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DumpMultiCurvedPolyPoints(FP, Smooth, Style, Curved, NumPts, V, Indent) ^ spline.c:1877:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DumpMultiCurvedPolygonPoints(FP, Smooth, Curved, NumPts, V, Indent) ^ 33 warnings generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c stk.c stk.c:380:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RestoreFileInfo(StkPtr) ^ 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 -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c stream.c stream.c:172:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ResetMultipartReplace(redraw) ^ stream.c:190:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int IsJustLF(buf) ^ stream.c:201:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *GetHeaderLine(psz_start, just_lf) ^ stream.c:218:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ValidMultipartReplace(buf, pn_multipart) ^ stream.c:274:7: warning: variable 'ppsz' is incremented both in the loop header and in the loop body [-Wfor-loop-analysis] ppsz++; ^ stream.c:268:27: note: incremented here for ( ; *ppsz != NULL; ppsz++) { ^ stream.c:258:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ValidImageContentType(buf, ppsz_filter) ^ stream.c:286:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void UpdateBoundary(buf) ^ stream.c:311:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int FindBoundary(buf) ^ stream.c:342:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int GetContentLength(buf) ^ stream.c:421:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ScanHeader(buf) ^ stream.c:462:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int GetContent(buf, buf_len, start_index, pici) ^ stream.c:596:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ScanBody(buf, pn_buf_len) ^ stream.c:653:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void HandleMultipartReplace(buf, pn_buf_len) ^ stream.c:669:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void FakeUserAgent(buf) ^ stream.c:685:29: warning: format string is not a string literal (potentially insecure) [-Wformat-security] sprintf(gszMsgBox, TgLoadString(STID_ENTER_USERAGENT_FOR_HTTP)); ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^~~~~~~~~~~ stream.c:685:29: note: treat the string as an argument to avoid this sprintf(gszMsgBox, TgLoadString(STID_ENTER_USERAGENT_FOR_HTTP)); ^ "%s", /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^ stream.c:701:26: warning: format string is not a string literal (potentially insecure) [-Wformat-security] sprintf(gszMsgBox, TgLoadString(STID_WILL_USE_DEF_USERAGENT_HTTP)); ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^~~~~~~~~~~ stream.c:701:26: note: treat the string as an argument to avoid this sprintf(gszMsgBox, TgLoadString(STID_WILL_USE_DEF_USERAGENT_HTTP)); ^ "%s", /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^ stream.c:709:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void FakeReferer(buf) ^ stream.c:724:29: warning: format string is not a string literal (potentially insecure) [-Wformat-security] sprintf(gszMsgBox, TgLoadString(STID_ENTER_REFERRER_FOR_HTTP)); ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^~~~~~~~~~~ stream.c:724:29: note: treat the string as an argument to avoid this sprintf(gszMsgBox, TgLoadString(STID_ENTER_REFERRER_FOR_HTTP)); ^ "%s", /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^ stream.c:743:26: warning: format string is not a string literal (potentially insecure) [-Wformat-security] sprintf(gszMsgBox, TgLoadString(STID_WILL_NOT_USE_REFERRER_HTTP)); ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^~~~~~~~~~~ stream.c:743:26: note: treat the string as an argument to avoid this sprintf(gszMsgBox, TgLoadString(STID_WILL_NOT_USE_REFERRER_HTTP)); ^ "%s", /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^ stream.c:754:23: warning: format string is not a string literal (potentially insecure) [-Wformat-security] sprintf(gszMsgBox, TgLoadString(gnHttpKeepAlive ? ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^~~~~~~~~~~ stream.c:754:23: note: treat the string as an argument to avoid this sprintf(gszMsgBox, TgLoadString(gnHttpKeepAlive ? ^ "%s", /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^ 20 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 -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c stretch.c stretch.c:91:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int PtIn4Corners(XOff, YOff, BBox, Corner) ^ stretch.c:115:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int PtIn8Places(XOff, YOff, BBox, Corner) ^ stretch.c:144:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int PtInPolyMark(ObjPtr, XOff, YOff, NumPts, V, Index) ^ stretch.c:174:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int RetractedArrowAttr(obj_ptr) ^ stretch.c:191:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int AutoRetractedArrowAttr(obj_ptr, check_v_count) ^ stretch.c:218:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int AutoCenterAttr(obj_ptr) ^ stretch.c:232:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void CenterObjInOBBox(TextObjPtr, OBBox, BBoxReturn) ^ stretch.c:275:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] struct SelRec *PtInSelMark(XOff, YOff, Corner) ^ stretch.c:346:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int HasOnReshape(obj_ptr, pp_name_attr) ^ stretch.c:367:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int SkipOnResize(obj_ptr) ^ stretch.c:394:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int HasOnResize(obj_ptr, pp_name_attr) ^ stretch.c:414:8: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char **NeedToProcessOnResize(pn_num_to_resize) ^ stretch.c:444:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] struct ObjRec *FindObjWithOID(oid) ^ stretch.c:458:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DoOnResize(ppsz_names, num_to_resize) ^ stretch.c:505:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int GetVlistIndexFromStretchStructuredSplineInfo(psssi, ss_index) ^ stretch.c:519:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DoStretchPolyMeasureCursor(start, num_pts, vs, index, dx, dy, erase, drag, ^ stretch.c:608:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DoStretchStructSplineMeasureCursor(start, start_v, dx, dy, grid_x, grid_y) ^ stretch.c:632:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetIPTInfoForStretchPoly(index, n, vs, psssi) ^ stretch.c:817:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetIPTInfoForStretchPolygon(index, n, vs, psssi) ^ stretch.c:1024:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetVsAndVs2ForHinge(psssi, dx, dy, pn_num_vs, vs, pn_num_vs2, vs2) ^ stretch.c:1139:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetVsAndVs2ForSmooth(psssi, dx, dy, pn_num_vs, vs, pn_num_vs2, vs2) ^ stretch.c:1288:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetVsAndVs2ForStretchStructSpline(psssi, dx, dy, pn_num_vs, vs, pn_num_vs2, ^ stretch.c:1301:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void FixUpSmoothAndSmooth2ForStretchStructSpline(num_vs, smooth, num_vs2, ^ stretch.c:1317:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void EraseHighLightForHinge(psssi, dx, dy, draw_dashed_line, draw_vertices) ^ stretch.c:1421:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void EraseHighLightForSmooth(psssi, dx, dy, draw_dashed_line, draw_vertices) ^ stretch.c:1571:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void EraseHighLightForStretchStructSpline(psssi, dx, dy, draw_dashed_line, ^ stretch.c:1583:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] XPoint *DupVs(pn_return, vs, n) ^ stretch.c:1596:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void MoveATransformedPoint(obj_ptr, vs, abs_dx, abs_dy) ^ stretch.c:1613:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void UpdateObjForStretchStructSpline(obj_ptr, n, vs, abs_dx, abs_dy, psssi) ^ stretch.c:1799:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void StretchStructSpline(XGridOff, YGridOff, ObjPtr, Index) ^ stretch.c:2073:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void StretchPoly(XGridOff, YGridOff, ObjPtr, NumPts, V, Index) ^ stretch.c:2414:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void StretchedXY(X, Y, NewX, NewY) ^ stretch.c:2426:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void StretchedAbsXY(X, Y, NewX, NewY) ^ stretch.c:2438:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ShearedXY(Corner, x, y, dx_shear, dy_shear, dx_scale, dy_scale, ^ stretch.c:2472:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ShearedAbsXY(Corner, abs_x, abs_y, dx_shear, dy_shear, dx_scale, dy_scale, ^ stretch.c:2506:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetPivot(Corner, pOBBox) ^ stretch.c:2568:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ShearObj(ObjPtr, Corner, dxShear, dyShear, dxScale, dyScale, ^ stretch.c:2701:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void StretchSimpleText(ObjPtr, Corner) ^ stretch.c:2765:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int CompoundObjHasTextSubObj(ObjPtr) ^ stretch.c:2786:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void JustMoveSimpleCompoundObj(ObjPtr, Corner) ^ stretch.c:2845:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void StretchAttr(ObjPtr, Corner, dxScale, dyScale, AutoCenterAttr) ^ stretch.c:2910:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void StretchSimpleArc(ObjPtr) ^ stretch.c:2950:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void StretchSimplePoly(ObjPtr) ^ stretch.c:2982:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void StretchSimplePolygon(ObjPtr) ^ stretch.c:3014:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void StretchSimpleObj(ObjPtr, Corner, dxScale, dyScale, FinalOBBox, ^ stretch.c:3040:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ScaleLineWidth(ObjPtr, dScale) ^ stretch.c:3085:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void StretchObj(ObjPtr, Corner, dxScale, dyScale, ForceToUseCTM) ^ stretch.c:3174:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void StretchAllSelObjects(Corner, dxScale, dyScale) ^ stretch.c:3205:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ConstrainedStretchAllSel(Corner, ltx, lty, rbx, rby) ^ stretch.c:3382:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void StretchAllSel(Corner, dxScale, dyScale) ^ stretch.c:3431:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int DiagonalDistance(dx, dy) ^ stretch.c:3440:8: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] double DiagonalAngle(dx, dy) ^ stretch.c:3450:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void GetMeasurement(ObjPtr, buf, buf1) ^ stretch.c:3473:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void PointsToShearScale(Corner, x_pivot, y_pivot, x_move, y_move, ^ stretch.c:3529:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void StretchBox(XGridOff, YGridOff, ObjPtr, Corner) ^ stretch.c:3733:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void StretchSel(XGridOff, YGridOff, ObjPtr, Corner) ^ stretch.c:3774:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ScaleAnEPSObj(ObjPtr, ScalingFactor) ^ stretch.c:3793:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ScaleAllSelObjects(Corner, dxScale, dyScale) ^ stretch.c:3816:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ScaleAllSel(Corner, dxScale, dyScale, redraw) ^ stretch.c:3869:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *FindColon(s) ^ stretch.c:3948:39: warning: variable 'prev_page_num' set but not used [-Wunused-but-set-variable] int saved_cur_page_num=curPageNum, prev_page_num=curPageNum; ^ stretch.c:4063:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ScaleObjLikeScaleEverything(obj_ptr, scale, redraw) ^ stretch.c:4137:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SizeAllSelObj(AbsW, AbsH) ^ stretch.c:4181:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SizeAnObj(ObjPtr, TopOwner, AbsW, AbsH) ^ stretch.c:4262:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DoSizeAllSelToGivenWidthHeight(abs_w, abs_h, do_width, do_height) ^ stretch.c:4324:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SizeAllSelToGivenWidthHeight(AbsW, AbsH) ^ stretch.c:4330:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SizeAllSelToGivenWidth(AbsW) ^ stretch.c:4336:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SizeAllSelToGivenHeight(AbsH) ^ stretch.c:4342:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void FlipObjHorizontal(ObjPtr) ^ stretch.c:4497:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void FlipIconHorizontal(ObjPtr) ^ stretch.c:4525:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void FlipObjVertical(ObjPtr) ^ stretch.c:4664:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void FlipIconVertical(ObjPtr) ^ stretch.c:4698:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int OkToTransform(obj_ptr, stid) ^ stretch.c:4729:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetRotatePivotByObject(ObjPtr) ^ stretch.c:4737:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RotatePtClockWise(X, Y, NewX, NewY) ^ stretch.c:4745:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RotatedXY(X, Y, AngleDelta, NewX, NewY) ^ stretch.c:4764:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RotatedAbsXY(X, Y, AngleDelta, NewX, NewY) ^ stretch.c:4782:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RotateObj(ObjPtr, Corner, AngleDelta, RealLtX, RealLtY) ^ stretch.c:4889:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RotateObjForLayout(ObjPtr, AngleInRadian, Corner) ^ stretch.c:4900:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RotateObjClockWise(ObjPtr) ^ stretch.c:4922:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RotateIconClockWise(ObjPtr) ^ stretch.c:4949:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RotatePtCounter(X, Y, NewX, NewY) ^ stretch.c:4956:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RotateObjCounter(ObjPtr) ^ stretch.c:4978:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RotateIconCounter(ObjPtr) ^ stretch.c:5006:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void FlipAllSelHorizontal(saved_ltx, saved_lty, saved_rbx, saved_rby) ^ stretch.c:5066:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void FlipAllSelVertical(saved_ltx, saved_lty, saved_rbx, saved_rby) ^ stretch.c:5231:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetTextRotation(pszBuf) ^ stretch.c:5270:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetRotationIncrement(pszBuf) ^ stretch.c:5309:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int IdentCTM(ctm1, ctm2) ^ stretch.c:5319:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int SetObjCTM(ObjPtr, nTransformed, ctm) ^ stretch.c:5386:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetSelCTM(nTransformed, ctm) ^ stretch.c:5434:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RotateBBoxByAnAngle(bbox, d_angle, vs) ^ stretch.c:5452:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RotateVsByAnAngle(InVs, NumPts, d_angle, OutVs) ^ stretch.c:5468:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RotateAllSelObjects(Corner, AngleDelta) ^ stretch.c:5484:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ConstrainedRotateAllSel(Corner, AngleDelta, ltx, lty, rbx, rby) ^ stretch.c:5661:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RotateAllSel(Corner, AngleDelta) ^ stretch.c:5710:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void FormatAngleForRotate(buf, angle) ^ stretch.c:5720:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RotateSel(XGridOff, YGridOff, ObjPtr, Corner) ^ stretch.c:5967:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ShearBBox(Corner, bbox, dx_shear, dy_shear, dx_scale, dy_scale, vs) ^ stretch.c:6032:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ShearVs(Corner, InVs, NumPts, dx_shear, dy_shear, dx_scale, dy_scale, ^ stretch.c:6074:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ShearAllSelObjects(Corner, dxShear, dyShear, dxScale, dyScale) ^ stretch.c:6092:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ConstrainedShearAllSel(Corner, dxShear, dyShear, dxScale, dyScale, ^ stretch.c:6275:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ShearAllSel(Corner, dxShear, dyShear, dxScale, dyScale) ^ stretch.c:6333:23: warning: variable 'shear_hori' set but not used [-Wunused-but-set-variable] int shearing=TRUE, shear_hori=FALSE; ^ stretch.c:6325:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ShearSel(XGridOff, YGridOff, ObjPtr, Corner) ^ stretch.c:6465:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RotateShearSel(XGridOff, YGridOff, ObjPtr, Corner) ^ stretch.c:6482:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int RefreshFlipRotateMenu(menu) ^ stretch.c:6514:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] TgMenu *CreateFlipRotateMenu(parent_menu, x, y, menu_info, status_str_xlated) ^ stretch.c:6532:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void HighLightRotatePivotXY(abs_x, abs_y, Dir) ^ stretch.c:6559:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void HighLightRotatePivot(Dir) ^ stretch.c:6600:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int PtInRotatePivot(mouse_x, mouse_y) ^ stretch.c:6620:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int RefreshMoveStdRotatePivotMenu(menu) ^ stretch.c:6656:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] TgMenu *CreateMoveStdRotatePivotMenu(parent_menu, x, y, menu_info, ^ stretch.c:6674:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RefreshAutoRotatePivotMenu(menu) ^ stretch.c:6692:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] TgMenu *CreateAutoRotatePivotMenu(parent_menu, x, y, menu_info, ^ stretch.c:6719:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int AutoRotatePivotMenu(X, Y, TrackMenubar) ^ stretch.c:6743:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ReadRotatePivotInfo(buf) ^ stretch.c:6771:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ContinueMoveRotatePivot(OrigX, OrigY) ^ stretch.c:6926:11: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] IntPoint *GetPolyVertices(N, ObjPtr, NumPts, V, Curved, pn_need_to_free) ^ stretch.c:7085:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void MoveRotatePivot(Corner) ^ stretch.c:7138:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void AutoRotatePivotSubMenu(index) ^ stretch.c:7141:8: warning: logical not is only applied to the left hand side of this comparison [-Wlogical-not-parentheses] if (!autoRotatePivot == index) return; ^ ~~ stretch.c:7141:8: note: add parentheses after the '!' to evaluate the comparison first if (!autoRotatePivot == index) return; ^ ( ) stretch.c:7141:8: note: add parentheses around left hand side expression to silence this warning if (!autoRotatePivot == index) return; ^ ( ) 122 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 -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c strtbl.c strtbl.c:512:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *SetAndLoadCachedString(index) ^ strtbl.c:529:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *TgLoadCachedString(nID) ^ strtbl.c:3682:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *TgLoadString(nID) ^ strtbl.c:3754:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *DistrDirectLoadString(nIndex) ^ strtbl.c:3761:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *AlignedLoadString(hori_align, vert_align) ^ strtbl.c:3794:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *HoriAlignLoadString(hori_align) ^ strtbl.c:3807:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *VertAlignLoadString(vert_align) ^ strtbl.c:3840:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *AlignDirectLoadString(nIndex) ^ strtbl.c:3867:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *AlignDirectToGridLoadString(nIndex) ^ strtbl.c:3894:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *AlignDirectToPageLoadString(nIndex) ^ strtbl.c:3921:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *AlignVerticesDirectToPageLoadString(nIndex) ^ strtbl.c:3962:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetCurChoiceMouseStatusStrings(choice, left_is_none, obj_under_mouse, ^ strtbl.c:4156:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void FreeChoiceQuickMouseStatusStrings(pmssr) ^ strtbl.c:4201:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void QuickSetMouseStatus(pmssr, index) ^ strtbl.c:4261:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetColorMouseStatusStrings(shift_or_cntrl_down, index) ^ strtbl.c:4334:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *PropLoadString(lWhich) ^ strtbl.c:4399:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *ExportFormatMenuLoadString(where_to_print, color_dump) ^ 17 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 -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c tangram2.c tangram2.c:129:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ValidTangram2CmdName(buf, len, pn_num_args) ^ tangram2.c:150:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ValidTangram2CmdId(nCmdId) ^ tangram2.c:166:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int DoTangram2Cmd(nCmdId, args) ^ tangram2.c:182:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int FetchTangram2ShortCutNumArgs(index, pn_num_args) ^ tangram2.c:190:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int DoTangram2ShortCut(index, args) ^ tangram2.c:220:11: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ExecInfo *Tangram2GetExecInfo(func_name) ^ tangram2.c:396:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int BadAttr_Simulator(attr_name, cmd_name) ^ tangram2.c:407:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ExecStartSimulator(obj_ptr, orig_cmd) ^ tangram2.c:534:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ExecEndSimulator(obj_ptr, orig_cmd) ^ tangram2.c:557:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void AppendLinesToAttr(attr_ptr, ppsz_lines) ^ tangram2.c:578:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static void UpdateStateVars( soc, obj_ptr, ct_pack_in ) ^ tangram2.c:754:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ParseFormat( format ) ^ tangram2.c:797:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ParseStateVariable( buffer, symname, symvalue, symformat, ^ tangram2.c:969:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SendStepInfo( soc, ct_pack_out ) ^ tangram2.c:1143:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ExecSimulateStep(obj_ptr, orig_cmd) ^ tangram2.c:1243:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int RefreshTangram2Menu(menu) ^ tangram2.c:1251:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] TgMenu *CreateTangram2Menu(parent_menu, x, y, menu_info, status_str_xlated) ^ tangram2.c:1267:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int Tangram2Menu(X, Y, TrackMenubar) ^ tangram2.c:1529:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] struct ObjRec *createGenerateChainButton( dbglevel, maxstates, output ) ^ tangram2.c:1595:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] struct ObjRec *createStartSimulatorButton( runs, event, trans, time, mode ) ^ tangram2.c:1660:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] struct ObjRec *createSimulationStepButton( time, anim, delay, step ) ^ tangram2.c:1756:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int parseArgs( args, dst, no_args, max_arg_length ) ^ tangram2.c:1803:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void Tangram2GenerateChain( args ) ^ tangram2.c:1812:26: warning: incompatible pointer types passing 'char[3][1024]' to parameter of type 'char *' [-Wincompatible-pointer-types] if( !parseArgs( args, arg, 3, 1024 ) ) ^~~ tangram2.c:1841:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void Tangram2StartSimulator( args ) ^ tangram2.c:1860:26: warning: incompatible pointer types passing 'char[12][1024]' to parameter of type 'char *' [-Wincompatible-pointer-types] if( !parseArgs( args, arg, 12, 1024 ) ) ^~~ tangram2.c:1955:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void Tangram2UpdateInitAttr(port_obj, signal_name) ^ 27 warnings generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c tdgtbase.c tdgtbase.c:66:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RedrawTdgtBase(pti) ^ tdgtbase.c:104:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TdgtBaseEventHandler(pti, input, handling_pti) ^ tdgtbase.c:151:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int IsTdgtBaseEvent(pti, input, ppti_handler_tidget_return) ^ tdgtbase.c:185:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DestroyTdgtBase(pti) ^ tdgtbase.c:198:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void MapTdgtBase(pti) ^ tdgtbase.c:228:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void TdgtBaseMoveResize(pti, x, y, w, h) ^ tdgtbase.c:245:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TdgtBaseSendCmd(pti, cmd_type, cmd_arg, pv_cmd_userdata) ^ tdgtbase.c:266:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void TdgtBaseReset(pTdgtBase) ^ tdgtbase.c:286:11: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] TdgtBase *CreateTdgtBase(parent_win, parent_tidgetinfo, ctl_id, x, y, w, h, ^ tdgtbase.c:340:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TdgtBaseSetText(pTdgtBase, str) ^ tdgtbase.c:354:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *TdgtBaseGetText(pTdgtBase) ^ tdgtbase.c:362:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TdgtBaseSetState(pTdgtBase, new_state) ^ tdgtbase.c:377:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TdgtBaseGetState(pTdgtBase) ^ tdgtbase.c:385:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TdgtBaseAddChild(pTdgtBase, pChildTidgetInfo) ^ tdgtbase.c:394:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void TdgtBaseWillHandleKeyPressEvents(pTdgtBase, ^ tdgtbase.c:405:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void TdgtBaseSetWmDeleteCallback(pTdgtBase, ^ tdgtbase.c:416:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void TdgtBaseSetFocusCallback(pTdgtBase, pf_focus_callback) ^ 17 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 -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c tdgtbmpl.c tdgtbmpl.c:96:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void FreeBmpListItemInfo(pblii) ^ tdgtbmpl.c:111:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TdgtBmpListGetNumRows(pTdgtBmpList) ^ tdgtbmpl.c:127:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RedrawTdgtBmpListItem(pTdgtBmpList, index, x, y, pblii) ^ tdgtbmpl.c:174:8: warning: variable 'block_h' set but not used [-Wunused-but-set-variable] int block_h=0, block_start=0, scr_area_h=pTdgtBmpList->scr_win_info.h; ^ tdgtbmpl.c:170:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RedrawTdgtBmpListScrollWindow(pTdgtBmpList) ^ tdgtbmpl.c:219:24: warning: variable 'pblii_next' set but not used [-Wunused-but-set-variable] BmpListItemInfo *pblii_next=NULL; ^ tdgtbmpl.c:200:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RedrawTdgtBmpListDspWindow(pTdgtBmpList) ^ tdgtbmpl.c:239:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RedrawTdgtBmpListBaseWindow(pTdgtBmpList) ^ tdgtbmpl.c:254:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RedrawTdgtBmpList(pti) ^ tdgtbmpl.c:271:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TdgtBmpListScrollItemCallback(pv_userdata) ^ tdgtbmpl.c:297:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TdgtBmpListScrollPageCallback(pv_userdata) ^ tdgtbmpl.c:326:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int DoTdgtBmpListBtnScroll(pTdgtBmpList, scroll_page, scr_dir, pbbox) ^ tdgtbmpl.c:386:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DoDragInTdgtBmpList(pTdgtBmpList, button_ev, btn_y, btn_offset) ^ tdgtbmpl.c:490:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void TdgtBmpListScrollHandler(pTdgtBmpList, button_ev) ^ tdgtbmpl.c:560:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TdgtBmpListControlChar(pTdgtBmpList, key_ev, key_sym) ^ tdgtbmpl.c:676:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SpecialKeyInTdgtBmpList(pTdgtBmpList, key_ev, key_sym, pn_changing, ^ tdgtbmpl.c:698:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int KeyPressInTdgtBmpList(pTdgtBmpList, key_ev, pn_changing, ^ tdgtbmpl.c:763:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TdgtBmpListDspHandler(pTdgtBmpList, button_ev) ^ tdgtbmpl.c:804:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ButtonPressInTdgtBmpList(pTdgtBmpList, button_ev) ^ tdgtbmpl.c:827:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TdgtBmpListEventHandler(pti, input, handling_pti) ^ tdgtbmpl.c:867:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int IsTdgtBmpListEvent(pti, input, ppti_handler_tidget_return) ^ tdgtbmpl.c:884:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DestroyTdgtBmpList(pti) ^ tdgtbmpl.c:897:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void MapTdgtBmpList(pti) ^ tdgtbmpl.c:932:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void TdgtBmpListMoveResize(pti, x, y, w, h) ^ tdgtbmpl.c:964:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int HandleSelectNext(pTdgtBmpList, cmd_arg) ^ tdgtbmpl.c:1053:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int HandleGetCurSel(pTdgtBmpList, pn_selected_index) ^ tdgtbmpl.c:1064:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int HandleGetItem(pTdgtBmpList, index, ppblii) ^ tdgtbmpl.c:1090:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TdgtBmpListSendCmd(pti, cmd_type, cmd_arg, pv_cmd_userdata) ^ tdgtbmpl.c:1115:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void TdgtBmpListReset(pTdgtBmpList) ^ tdgtbmpl.c:1126:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void TdgtBmpListCalcGeom(bmp_w, bmp_h, num_cols, num_visible_lines, gap, ^ tdgtbmpl.c:1146:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] TdgtBmpList *CreateTdgtBmpList(parent_win, parent_tidgetinfo, ctl_id, x, y, ^ tdgtbmpl.c:1231:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TdgtBmpListCleanUpEntries(pTdgtBmpList) ^ tdgtbmpl.c:1255:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TdgtBmpListScrollToBottom(pTdgtBmpList) ^ tdgtbmpl.c:1270:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TdgtBmpListAddItem(pTdgtBmpList, pblii) ^ 34 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 -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c tdgtbrow.c tdgtbrow.c:65:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void GetContentWH(pTdgtBtnRow, pn_content_w, pn_content_h) ^ tdgtbrow.c:92:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RedrawTdgtBtnRow(pti) ^ tdgtbrow.c:133:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TdgtBtnRowEventHandler(pti, input, handling_pti) ^ tdgtbrow.c:164:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int IsTdgtBtnRowEvent(pti, input, ppti_handler_tidget_return) ^ tdgtbrow.c:187:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DestroyTdgtBtnRow(pti) ^ tdgtbrow.c:200:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void MapTdgtBtnRow(pti) ^ tdgtbrow.c:231:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void TdgtBtnRowMoveResize(pti, x, y, w, h) ^ tdgtbrow.c:269:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TdgtBtnRowSendCmd(pti, cmd_type, cmd_arg, pv_cmd_userdata) ^ tdgtbrow.c:283:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void TdgtBtnRowReset(pTdgtBtnRow) ^ tdgtbrow.c:301:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void TdgtBtnRowCalcGeom(pTdgtBtnRow, pn_content_w, pn_content_h) ^ tdgtbrow.c:316:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] TdgtBtnRow *CreateTdgtBtnRow(parent_win, parent_tidgetinfo, ctl_id, x, y, h_pad, ^ tdgtbrow.c:366:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TdgtBtnRowAddBtn(pTdgtBtnRow, pTdgtBtn) ^ 12 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 -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c tdgtbtn.c tdgtbtn.c:73:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void CalcTdgtBtnDim(text, min_len, h_pad, v_pad, pn_width, pn_height) ^ tdgtbtn.c:95:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DrawTdgtTextBtn(pTdgtBtn, pBBRec, str, len, down, pButtonFontInfo) ^ tdgtbtn.c:121:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RedrawTdgtBtn(pti) ^ tdgtbtn.c:233:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ButtonPressInTdgtBtn(pTdgtBtn, button_ev, pn_changing, ^ tdgtbtn.c:322:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TdgtBtnEventHandler(pti, input, handling_pti) ^ tdgtbtn.c:411:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int IsTdgtBtnEvent(pti, input, ppti_handler_tidget_return) ^ tdgtbtn.c:425:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DestroyTdgtBtn(pti) ^ tdgtbtn.c:438:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void MapTdgtBtn(pti) ^ tdgtbtn.c:459:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void TdgtBtnMoveResize(pti, x, y, w, h) ^ tdgtbtn.c:476:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TdgtBtnSendCmd(pti, cmd_type, cmd_arg, pv_cmd_userdata) ^ tdgtbtn.c:490:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void TdgtBtnReset(pTdgtBtn) ^ tdgtbtn.c:503:10: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] TdgtBtn *CreateTdgtBtn(parent_win, parent_tidgetinfo, ctl_id, x, y, w, h, h_pad, ^ tdgtbtn.c:555:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TdgtBtnSetText(pTdgtBtn, str, pmosi) ^ tdgtbtn.c:581:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *TdgtBtnGetText(pTdgtBtn) ^ tdgtbtn.c:589:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TdgtBtnSetState(pTdgtBtn, new_state) ^ tdgtbtn.c:604:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TdgtBtnGetState(pTdgtBtn) ^ 16 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 -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c tdgtdraw.c tdgtdraw.c:68:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RedrawTdgtDraw(pti) ^ tdgtdraw.c:105:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TdgtDrawEventHandler(pti, input, handling_pti) ^ tdgtdraw.c:128:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int IsTdgtDrawEvent(pti, input, ppti_handler_tidget_return) ^ tdgtdraw.c:144:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DestroyTdgtDraw(pti) ^ tdgtdraw.c:157:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void MapTdgtDraw(pti) ^ tdgtdraw.c:178:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void TdgtDrawMoveResize(pti, x, y, w, h) ^ tdgtdraw.c:195:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TdgtDrawSendCmd(pti, cmd_type, cmd_arg, pv_cmd_userdata) ^ tdgtdraw.c:211:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void TdgtDrawReset(pTdgtDraw) ^ tdgtdraw.c:223:11: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] TdgtDraw *CreateTdgtDraw(parent_win, parent_tidgetinfo, ctl_id, x, y, client_w, ^ tdgtdraw.c:265:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TdgtDrawSetUserData(pTdgtDraw, pv_userdata) ^ tdgtdraw.c:277:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *TdgtDrawGetUserData(pTdgtDraw) ^ tdgtdraw.c:285:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TdgtDrawSetState(pTdgtDraw, new_state) ^ tdgtdraw.c:300:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TdgtDrawGetState(pTdgtDraw) ^ tdgtdraw.c:308:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void TdgtDrawSetRedrawCallback(pTdgtDraw, pf_redraw_callback) ^ tdgtdraw.c:317:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void TdgtDrawSetEvHandlerCallback(pTdgtDraw, pf_ev_handler_callback) ^ tdgtdraw.c:326:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void TdgtDrawSetResetCallback(pTdgtDraw, pf_reset_callback) ^ tdgtdraw.c:335:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void TdgtDrawSetSendCmdCallback(pTdgtDraw, pf_sendcmd_callback) ^ 17 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 -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c tdgtlist.c tdgtlist.c:80:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void FreeListItemInfo(pListItemInfo) ^ tdgtlist.c:96:22: warning: variable 'end' set but not used [-Wunused-but-set-variable] int len=0, top=0, end=0, checkbox_cols=0, text_left=0, box_offset=0, box_w=0; ^ tdgtlist.c:90:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RedrawTdgtListItem(pTdgtList, index, pListItemInfo) ^ tdgtlist.c:241:8: warning: variable 'block_h' set but not used [-Wunused-but-set-variable] int block_h=0, block_start=0; ^ tdgtlist.c:236:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RedrawTdgtListScrollWindow(pTdgtList) ^ tdgtlist.c:265:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RedrawTdgtListDspWindow(pTdgtList) ^ tdgtlist.c:309:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RedrawTdgtListBaseWindow(pTdgtList) ^ tdgtlist.c:324:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RedrawTdgtList(pti) ^ tdgtlist.c:342:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TdgtListScrollItemCallback(pv_userdata) ^ tdgtlist.c:368:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TdgtListScrollPageCallback(pv_userdata) ^ tdgtlist.c:398:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int DoTdgtListBtnScroll(pTdgtList, scroll_page, scr_dir, pbbox) ^ tdgtlist.c:454:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DoDragInTdgtList(pTdgtList, button_ev, btn_y, btn_offset) ^ tdgtlist.c:550:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void TdgtListScrollHandler(pTdgtList, button_ev) ^ tdgtlist.c:620:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TdgtListDspHandler(pTdgtList, button_ev) ^ tdgtlist.c:649:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TdgtListControlChar(pTdgtList, key_ev, key_sym) ^ tdgtlist.c:765:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SpecialKeyInTdgtList(pTdgtList, key_ev, key_sym, pn_changing, ^ tdgtlist.c:788:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int KeyPressInTdgtList(pTdgtList, key_ev, pn_changing, pn_selected_btn_index) ^ tdgtlist.c:858:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ButtonPressInTdgtList(pTdgtList, button_ev, pn_changing, ^ tdgtlist.c:879:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TdgtListEventHandler(pti, input, handling_pti) ^ tdgtlist.c:908:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int IsTdgtListEvent(pti, input, ppti_handler_tidget_return) ^ tdgtlist.c:926:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DestroyTdgtList(pti) ^ tdgtlist.c:939:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void MapTdgtList(pti) ^ tdgtlist.c:972:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void TdgtListMoveResize(pti, x, y, w, h) ^ tdgtlist.c:1009:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TdgtListSendCmd(pti, cmd_type, cmd_arg, pv_cmd_userdata) ^ tdgtlist.c:1023:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void TdgtListReset(pTdgtList) ^ tdgtlist.c:1043:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void TdgtListCalcHeight(num_visible_lines, pn_content_h) ^ tdgtlist.c:1051:11: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] TdgtList *CreateTdgtList(parent_win, parent_tidgetinfo, ctl_id, x, y, w, h_pad, ^ tdgtlist.c:1123:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TdgtListCleanUpEntries(pTdgtList) ^ tdgtlist.c:1143:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TdgtListUpdateEntries(pTdgtList) ^ tdgtlist.c:1169:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TdgtListScrollToBottom(pTdgtList) ^ tdgtlist.c:1185:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TdgtListInsertString(pTdgtList, buf) ^ tdgtlist.c:1213:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TdgtListInsertListItemInfo(pTdgtList, pListItemInfo) ^ tdgtlist.c:1231:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TdgtListSetAutoScrollOnInsert(pTdgtList, auto_scroll_on_insert) ^ tdgtlist.c:1239:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TdgtListGetAutoScrollOnInsert(pTdgtList) ^ 34 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 -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c tdgtmsg.c tdgtmsg.c:68:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void TdgtMsgDrawCaption(pTdgtMsg) ^ tdgtmsg.c:133:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RedrawTdgtMsg(pti) ^ tdgtmsg.c:166:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TdgtMsgEventHandler(pti, input, handling_pti) ^ tdgtmsg.c:187:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int IsTdgtMsgEvent(pti, input, ppti_handler_tidget_return) ^ tdgtmsg.c:203:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DestroyTdgtMsg(pti) ^ tdgtmsg.c:216:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void MapTdgtMsg(pti) ^ tdgtmsg.c:237:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void TdgtMsgMoveResize(pti, x, y, w, h) ^ tdgtmsg.c:254:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TdgtMsgSendCmd(pti, cmd_type, cmd_arg, pv_cmd_userdata) ^ tdgtmsg.c:268:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void TdgtMsgReset(pTdgtMsg) ^ tdgtmsg.c:277:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void TdgtMsgCalcGeom(caption, pn_w, pn_h) ^ tdgtmsg.c:315:10: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] TdgtMsg *CreateTdgtMsg(parent_win, parent_tidgetinfo, ctl_id, x, y, h_pad, ^ tdgtmsg.c:359:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TdgtMsgSetText(pTdgtMsg, str) ^ tdgtmsg.c:373:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *TdgtMsgGetText(pTdgtMsg) ^ tdgtmsg.c:381:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TdgtMsgSetState(pTdgtMsg, new_state) ^ tdgtmsg.c:396:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TdgtMsgGetState(pTdgtMsg) ^ 15 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 -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c tdgtsedt.c tdgtsedt.c:88:8: warning: variable 'prev_too_long' set but not used [-Wunused-but-set-variable] int prev_too_long=INVALID, too_long=0, too_short=len, found=FALSE; ^ tdgtsedt.c:77:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *TdgtSmplEditBinarySearch(caption, len, max_w, font_ptr, ^ tdgtsedt.c:122:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void TdgtSmplEditDrawCaption(pTdgtSmplEdit) ^ tdgtsedt.c:196:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RedrawTdgtSmplEdit(pti) ^ tdgtsedt.c:232:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TdgtSmplEditEventHandler(pti, input, handling_pti) ^ tdgtsedt.c:313:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int IsTdgtSmplEditEvent(pti, input, ppti_handler_tidget_return) ^ tdgtsedt.c:329:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DestroyTdgtSmplEdit(pti) ^ tdgtsedt.c:342:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void MapTdgtSmplEdit(pti) ^ tdgtsedt.c:363:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void TdgtSmplEditMoveResize(pti, x, y, w, h) ^ tdgtsedt.c:386:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TdgtSmplEditSendCmd(pti, cmd_type, cmd_arg, pv_cmd_userdata) ^ tdgtsedt.c:400:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void TdgtSmplEditReset(pTdgtSmplEdit) ^ tdgtsedt.c:409:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void TdgtSmplEditCalcHeight(font_style, pn_content_h) ^ tdgtsedt.c:420:15: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] TdgtSmplEdit *CreateTdgtSmplEdit(parent_win, parent_tidgetinfo, ctl_id, x, y, ^ tdgtsedt.c:468:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TdgtSmplEditSetText(pTdgtSmplEdit, str) ^ tdgtsedt.c:491:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *TdgtSmplEditGetText(pTdgtSmplEdit) ^ tdgtsedt.c:499:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void TdgtSmplEditGetTextFormatInfo(pTdgtSmplEdit, pTextFormatInfo) ^ tdgtsedt.c:518:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TdgtSmplEditSetColorIndex(pTdgtSmplEdit, color_index) ^ tdgtsedt.c:533:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TdgtSmplEditGetColorIndex(pTdgtSmplEdit) ^ tdgtsedt.c:541:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TdgtSmplEditSetFontStyle(pTdgtSmplEdit, font_style) ^ tdgtsedt.c:556:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TdgtSmplEditGetFontStyle(pTdgtSmplEdit) ^ tdgtsedt.c:564:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TdgtSmplEditAppendStr(pTdgtSmplEdit, buf, len) ^ tdgtsedt.c:592:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TdgtSmplEditDelLastChar(pTdgtSmplEdit) ^ tdgtsedt.c:611:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TdgtSmplEditShowCursor(pTdgtSmplEdit, show) ^ tdgtsedt.c:623:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void TdgtSmplEditSetFocus(pTdgtSmplEdit, nSet) ^ 24 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 -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c tgif_dbg.c 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 -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c tgcwheel.c tgcwheel.c:52:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void TgColorWheel_CleanUp(dpy, win) ^ tgcwheel.c:73:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TgColorWheel_Init(dpy, win, arg) ^ tgcwheel.c:120:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TgColorWheel_SendKey(dpy, win, key_ev, buf) ^ tgcwheel.c:127:8: warning: variable 'has_ch' set but not used [-Wunused-but-set-variable] int has_ch=0; ^ tgcwheel.c:139:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TgColorWheel_HandleCntrlSpace(dpy, win) ^ tgcwheel.c:166:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TgColorWheel_HandleCreateText(dpy, win) ^ 6 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 -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c tgcwdl.c tgcwdl.c:133:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ClearAllControls(pTdgtBase) ^ tgcwdl.c:155:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int RGBtoPixel(pcwdi, r, g, b) ^ tgcwdl.c:165:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void PixeltoRGB(pcwdi, pixel, pn_r, pn_g, pn_b) ^ tgcwdl.c:193:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void HStoXY(pcwdi, h, s, pn_x, pn_y) ^ tgcwdl.c:214:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void XYtoHS(pcwdi, x, y, pn_h, pn_s) ^ tgcwdl.c:235:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void VtoY(pcwdi, v, pn_y) ^ tgcwdl.c:249:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void YtoV(pcwdi, y, pn_v) ^ tgcwdl.c:264:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int SetupVPixmap(pcwdi) ^ tgcwdl.c:316:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetHSVFromRGB(pcwdi) ^ tgcwdl.c:349:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetRGBFromHSV(pcwdi) ^ tgcwdl.c:383:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetColorNameFromRGB(pcwdi) ^ tgcwdl.c:391:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetPixelFromRGB(pcwdi) ^ tgcwdl.c:401:47: warning: incompatible pointer types passing 'unsigned char *' to parameter of type 'unsigned int *' [-Wincompatible-pointer-types] PixeltoRGB(pcwdi, colorPixels[colorIndex], &pcwdi->r, &pcwdi->g, &pcwdi->b); ^~~~~~~~~ tgcwdl.c:401:58: warning: incompatible pointer types passing 'unsigned char *' to parameter of type 'unsigned int *' [-Wincompatible-pointer-types] PixeltoRGB(pcwdi, colorPixels[colorIndex], &pcwdi->r, &pcwdi->g, &pcwdi->b); ^~~~~~~~~ tgcwdl.c:401:69: warning: incompatible pointer types passing 'unsigned char *' to parameter of type 'unsigned int *' [-Wincompatible-pointer-types] PixeltoRGB(pcwdi, colorPixels[colorIndex], &pcwdi->r, &pcwdi->g, &pcwdi->b); ^~~~~~~~~ tgcwdl.c:398:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int SetupColorsFromCurrentColor(pcwdi) ^ tgcwdl.c:413:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int AllHexChars(buf) ^ tgcwdl.c:432:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int SetColorInAppl(pTdgtBase) ^ tgcwdl.c:458:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ColorWheelDlgRemoveFocus(pTdgtBase) ^ tgcwdl.c:505:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetRGBControlValues(pTdgtBase) ^ tgcwdl.c:520:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetHSVControlValues(pTdgtBase) ^ tgcwdl.c:535:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetColorNameControlValue(pTdgtBase) ^ tgcwdl.c:544:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetupControls(pTdgtBase) ^ tgcwdl.c:553:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RedrawHSPixmapControlValues(pTdgtBase) ^ tgcwdl.c:562:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RedrawVPixmapControlValues(pTdgtBase) ^ tgcwdl.c:571:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RedrawRGBControlValues(pTdgtBase) ^ tgcwdl.c:582:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RedrawHSVControlValues(pTdgtBase) ^ tgcwdl.c:593:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RedrawColorNameControlValue(pTdgtBase) ^ tgcwdl.c:602:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RedrawColorSampleControlValue(pTdgtBase) ^ tgcwdl.c:615:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RedrawControls(pTdgtBase, skip) ^ tgcwdl.c:632:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void HSDrawSeg(dpy, win, gc, pTdgtDraw, vs) ^ tgcwdl.c:658:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void HSRedrawCrosshair(pcwdi, pTdgtDraw) ^ tgcwdl.c:698:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void VDrawSeg(dpy, win, gc, pTdgtDraw, vs) ^ tgcwdl.c:724:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void VRedrawLine(pcwdi, pTdgtDraw) ^ tgcwdl.c:746:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int HSRedrawCallback(pTdgtDraw) ^ tgcwdl.c:772:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ClickInColorWheelHSPixmap(pTdgtDraw, button_ev) ^ tgcwdl.c:811:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int HSEvHandlerCallback(pTdgtDraw, pXEv) ^ tgcwdl.c:828:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int VRedrawCallback(pTdgtDraw) ^ tgcwdl.c:854:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ClickInColorWheelVPixmap(pTdgtDraw, button_ev) ^ tgcwdl.c:888:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int VEvHandlerCallback(pTdgtDraw, pXEv) ^ tgcwdl.c:905:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int CSampleRedrawCallback(pTdgtDraw) ^ tgcwdl.c:927:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ValidateNumber(buf, max, pn_val) ^ tgcwdl.c:945:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ValidateRGB(pcwdi, pn_r, pn_g, pn_b) ^ tgcwdl.c:971:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ValidateHSV(pcwdi, pn_h, pn_s, pn_v) ^ tgcwdl.c:997:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ValidateColorName(pcwdi, pn_pixel) ^ tgcwdl.c:1107:39: warning: incompatible pointer types passing 'unsigned char *' to parameter of type 'unsigned int *' [-Wincompatible-pointer-types] PixeltoRGB(pcwdi, pcwdi->pixel, &pcwdi->r, &pcwdi->g, &pcwdi->b); ^~~~~~~~~ tgcwdl.c:1107:50: warning: incompatible pointer types passing 'unsigned char *' to parameter of type 'unsigned int *' [-Wincompatible-pointer-types] PixeltoRGB(pcwdi, pcwdi->pixel, &pcwdi->r, &pcwdi->g, &pcwdi->b); ^~~~~~~~~ tgcwdl.c:1107:61: warning: incompatible pointer types passing 'unsigned char *' to parameter of type 'unsigned int *' [-Wincompatible-pointer-types] PixeltoRGB(pcwdi, pcwdi->pixel, &pcwdi->r, &pcwdi->g, &pcwdi->b); ^~~~~~~~~ tgcwdl.c:1023:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int HandleCRorLF(pTdgtBase) ^ tgcwdl.c:1120:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int HandleTab(pTdgtBase) ^ tgcwdl.c:1173:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int HandleBackSpace(pTdgtBase) ^ tgcwdl.c:1200:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int HandleCursorKey(pTdgtBase, key_sym) ^ tgcwdl.c:1369:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int HandleChar(pTdgtBase, key_sym, buf, has_ch) ^ tgcwdl.c:1420:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TdgtColorWheelDlgKeyPressEvHandlerCallback(pTdgtBase, pXEv) ^ tgcwdl.c:1495:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TdgtColorWheelDlgSetEntries(pti, dsp_ptr, entries, num_entries, marked_index) ^ tgcwdl.c:1505:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TdgtColorWheelDlgSetMsg(pti, msg) ^ tgcwdl.c:1513:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void InitTdgtColorWheelDlgInfo(pti) ^ tgcwdl.c:1543:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int CreateColorWheelButtons(pTdgtBase) ^ tgcwdl.c:1578:60: warning: variable 'cur_x' set but not used [-Wunused-but-set-variable] int max_w=0, bottom=0, h_pad=pTdgtBase->pti->tci.h_pad, cur_x=0, cur_y=0; ^ tgcwdl.c:1578:69: warning: variable 'cur_y' set but not used [-Wunused-but-set-variable] int max_w=0, bottom=0, h_pad=pTdgtBase->pti->tci.h_pad, cur_x=0, cur_y=0; ^ tgcwdl.c:1579:41: warning: variable 'end_y' set but not used [-Wunused-but-set-variable] int v_pad=pTdgtBase->pti->tci.v_pad, end_y=0; ^ tgcwdl.c:1573:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void AdjustDialogBoxWidth(dpy, pTdgtBase) ^ tgcwdl.c:1609:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void TdgtColorWheelDlgWmDeleteCallback(pTdgtBase) ^ tgcwdl.c:1620:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TdgtColorWheelDlgFocusCallback(pTdgtBase, cmd_type, cmd_arg, ^ tgcwdl.c:1638:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void AdjustDialogBoxSize(dpy, pTdgtBase) ^ tgcwdl.c:1683:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int SetupHSPixmap(pcwdi) ^ tgcwdl.c:1731:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] TidgetInfo *CreateTdgtColorWheelDialogBox(dpy, parent_win) ^ tgcwdl.c:1743:26: warning: format string is not a string literal (potentially insecure) [-Wformat-security] sprintf(gszMsgBox, TgLoadString(STID_COLOR_WHEEL_NOT_AVAIL)); ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^~~~~~~~~~~ tgcwdl.c:1743:26: note: treat the string as an argument to avoid this sprintf(gszMsgBox, TgLoadString(STID_COLOR_WHEEL_NOT_AVAIL)); ^ "%s", /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^ tgcwdl.c:1735:36: warning: variable 'h_pad' set but not used [-Wunused-but-set-variable] int cur_x=0, cur_y=0, v_gap=20, h_pad=0, v_pad=0; ^ tgcwdl.c:1735:45: warning: variable 'v_pad' set but not used [-Wunused-but-set-variable] int cur_x=0, cur_y=0, v_gap=20, h_pad=0, v_pad=0; ^ tgcwdl.c:2058:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DestroyTdgtColorWheelDialogBox(dpy, pti) ^ tgcwdl.c:2076:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int HandleTdgtNotifyEvent(pTdgtBase, pTdgtNtfy) ^ tgcwdl.c:2092:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TdgtColorWheelDlgLoop(pti) ^ 73 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 -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c tginssym.c tginssym.c:52:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void TgInsertSymbol_CleanUp(dpy, win) ^ tginssym.c:76:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TgInsertSymbol_Init(dpy, win, arg) ^ tginssym.c:146:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TgInsertSymbol_SendKey(dpy, win, key_ev, buf) ^ tginssym.c:153:8: warning: variable 'has_ch' set but not used [-Wunused-but-set-variable] int has_ch=0; ^ tginssym.c:165:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TgInsertSymbol_HandleCntrlSpace(dpy, win) ^ tginssym.c:192:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TgInsertSymbol_HandleCreateText(dpy, win) ^ 6 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 -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c tgisdl.c tgisdl.c:91:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ClearAllControls(pTdgtBase) ^ tgisdl.c:117:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int InsertSymbolInAppl(pTdgtBase) ^ tgisdl.c:130:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void InsertSymbolToggleSelected(pTdgtDraw) ^ tgisdl.c:144:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int InsertSymbolSelectedValid(row, col) ^ tgisdl.c:160:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void InsertSymbolDlgRemoveFocus(pTdgtBase) ^ tgisdl.c:176:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetupControls(pTdgtBase) ^ tgisdl.c:182:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RedrawInsertSymbolPixmapControlValues(pTdgtBase) ^ tgisdl.c:195:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RedrawControls(pTdgtBase, skip) ^ tgisdl.c:208:14: warning: variable 'pTdgtBase' set but not used [-Wunused-but-set-variable] TdgtBase *pTdgtBase=NULL; ^ tgisdl.c:205:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int HSRedrawCallback(pTdgtDraw) ^ tgisdl.c:231:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int GetRowCol(x, y, pn_row, pn_col) ^ tgisdl.c:254:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ClickInInsertSymbolPixmap(pTdgtDraw, button_ev) ^ tgisdl.c:311:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int HSEvHandlerCallback(pTdgtDraw, pXEv) ^ tgisdl.c:328:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int HSSendCmdCallback(pTdgtDraw, cmd_type, cmd_arg, pv_cmd_userdata) ^ tgisdl.c:355:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int HandleCRorLF(pTdgtBase) ^ tgisdl.c:365:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int HandleTab(pTdgtBase) ^ tgisdl.c:379:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int HandleBackSpace(pTdgtBase) ^ tgisdl.c:386:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int HandleCursorKey(pTdgtBase, key_sym) ^ tgisdl.c:493:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int HandleChar(pTdgtBase, key_sym, buf, has_ch) ^ tgisdl.c:507:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TdgtInsertSymbolDlgKeyPressEvHandlerCallback(pTdgtBase, pXEv) ^ tgisdl.c:581:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TdgtInsertSymbolDlgSetEntries(pti, dsp_ptr, entries, num_entries, marked_index) ^ tgisdl.c:591:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TdgtInsertSymbolDlgSetMsg(pti, msg) ^ tgisdl.c:599:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void InitTdgtInsertSymbolDlgInfo(pti) ^ tgisdl.c:629:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int CreateInsertSymbolButtons(pTdgtBase) ^ tgisdl.c:664:60: warning: variable 'cur_x' set but not used [-Wunused-but-set-variable] int max_w=0, bottom=0, h_pad=pTdgtBase->pti->tci.h_pad, cur_x=0, cur_y=0; ^ tgisdl.c:664:69: warning: variable 'cur_y' set but not used [-Wunused-but-set-variable] int max_w=0, bottom=0, h_pad=pTdgtBase->pti->tci.h_pad, cur_x=0, cur_y=0; ^ tgisdl.c:665:41: warning: variable 'end_y' set but not used [-Wunused-but-set-variable] int v_pad=pTdgtBase->pti->tci.v_pad, end_y=0; ^ tgisdl.c:659:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void AdjustDialogBoxWidth(dpy, pTdgtBase) ^ tgisdl.c:695:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void TdgtInsertSymbolDlgWmDeleteCallback(pTdgtBase) ^ tgisdl.c:706:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TdgtInsertSymbolDlgFocusCallback(pTdgtBase, cmd_type, cmd_arg, ^ tgisdl.c:724:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void AdjustDialogBoxSize(dpy, pTdgtBase) ^ tgisdl.c:769:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int SetupInsertSymbolPixmap(pisdi) ^ tgisdl.c:812:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] TidgetInfo *CreateTdgtInsertSymbolDialogBox(dpy, parent_win) ^ tgisdl.c:824:26: warning: format string is not a string literal (potentially insecure) [-Wformat-security] sprintf(gszMsgBox, TgLoadString(STID_COLOR_WHEEL_NOT_AVAIL)); ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^~~~~~~~~~~ tgisdl.c:824:26: note: treat the string as an argument to avoid this sprintf(gszMsgBox, TgLoadString(STID_COLOR_WHEEL_NOT_AVAIL)); ^ "%s", /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^ tgisdl.c:816:36: warning: variable 'h_pad' set but not used [-Wunused-but-set-variable] int cur_x=0, cur_y=0, v_gap=20, h_pad=0, v_pad=0; ^ tgisdl.c:816:45: warning: variable 'v_pad' set but not used [-Wunused-but-set-variable] int cur_x=0, cur_y=0, v_gap=20, h_pad=0, v_pad=0; ^ tgisdl.c:817:41: warning: variable 'rgbhsv_width' set but not used [-Wunused-but-set-variable] int vh_padding=0, h_gap=14, end_y=0, rgbhsv_width=0; ^ tgisdl.c:926:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DestroyTdgtInsertSymbolDialogBox(dpy, pti) ^ tgisdl.c:944:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int HandleTdgtNotifyEvent(pTdgtBase, pTdgtNtfy) ^ tgisdl.c:960:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TdgtInsertSymbolDlgLoop(pti) ^ 40 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 -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c tgtwb5.c tgtwb5.c:58:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void Tgtwb5_CleanUp(dpy, win) ^ tgtwb5.c:85:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int Tgtwb5_Init(dpy, win, arg) ^ tgtwb5.c:156:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int Tgtwb5_SendKey(dpy, win, key_ev, buf) ^ tgtwb5.c:163:8: warning: variable 'has_ch' set but not used [-Wunused-but-set-variable] int has_ch=0; ^ tgtwb5.c:175:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int Tgtwb5_HandleCntrlSpace(dpy, win) ^ tgtwb5.c:201:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int Tgtwb5_HandleCreateText(dpy, win) ^ 6 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 -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c tgtwb5dl.c tgtwb5dl.c:118:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ClearAllControls(pTdgtBase) ^ tgtwb5dl.c:135:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int SendSelectedCharToClient(pTdgtBase) ^ tgtwb5dl.c:165:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int SendCRToClient(pTdgtBase) ^ tgtwb5dl.c:181:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int InvalidSequence(pTdgtBase) ^ tgtwb5dl.c:196:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int Fill2ByteCharFromHexStringBuf(buf, pch16) ^ tgtwb5dl.c:218:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void FreeBitmapItemCallback(pblii) ^ tgtwb5dl.c:300:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int DoLoadChars(pTdgtBase, buf, str16, num_char2bs) ^ tgtwb5dl.c:395:10: warning: variable 'ppsz' is incremented both in the loop header and in the loop body [-Wfor-loop-analysis] ppsz++; ^ tgtwb5dl.c:390:45: note: incremented here for (ppsz=pinyin_gb2312; *ppsz!=NULL; ppsz++) { ^ tgtwb5dl.c:404:10: warning: variable 'ppsz' is incremented both in the loop header and in the loop body [-Wfor-loop-analysis] ppsz++; ^ tgtwb5dl.c:399:46: note: incremented here for (ppsz=pinyin_et_big5; *ppsz!=NULL; ppsz++) { ^ tgtwb5dl.c:379:8: warning: variable 'len' set but not used [-Wunused-but-set-variable] int len=0, str16_index=0, ok=TRUE; ^ tgtwb5dl.c:374:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int LoadChars(pTdgtBase, buf) ^ tgtwb5dl.c:459:11: warning: variable 'ok' set but not used [-Wunused-but-set-variable] int ok=FALSE; ^ tgtwb5dl.c:451:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int FetchChars(pTdgtBase) ^ tgtwb5dl.c:477:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ReverseZhuYenFuHao(index, pn_symbol_ltx, pn_symbol_lty) ^ tgtwb5dl.c:495:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ComposePinYin(pTdgtBase, buf, buf_sz) ^ tgtwb5dl.c:569:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void UpdateSpellingAndDpyControls(pTdgtBase) ^ tgtwb5dl.c:595:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int HandleBackSpace(pTdgtBase) ^ tgtwb5dl.c:628:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ZyfhRedrawCallback(pTdgtDraw) ^ tgtwb5dl.c:655:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int GetZhuYenFuHao(pTdgtDraw, button_x, button_y, pn_symbol_ltx, pn_symbol_lty) ^ tgtwb5dl.c:684:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ClickInZyfh(pTdgtDraw, button_ev) ^ tgtwb5dl.c:770:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ZyfhEvHandlerCallback(pTdgtDraw, pXEv) ^ tgtwb5dl.c:823:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ZyfhDpyRedrawCallback(pTdgtDraw) ^ tgtwb5dl.c:875:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ZyfhDpySendCmdCallback(pTdgtDraw, cmd_type, cmd_arg, pv_cmd_userdata) ^ tgtwb5dl.c:903:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int HandleCursorKey(pTdgtBase, key_sym) ^ tgtwb5dl.c:939:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int HandleChar(pTdgtBase, key_sym, buf, has_ch) ^ tgtwb5dl.c:962:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int Tdgtb5DlgKeyPressEvHandlerCallback(pTdgtBase, pXEv) ^ tgtwb5dl.c:1006:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void Tdgtb5DlgWmDeleteCallback(pTdgtBase) ^ tgtwb5dl.c:1019:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int Tdgtb5DlgSetMsg(pti, msg) ^ tgtwb5dl.c:1029:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int Tdgtb5DlgSetEntries(pti, dsp_ptr, entries, num_entries, marked_index) ^ tgtwb5dl.c:1041:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void InitTdgtb5DlgInfo(pti) ^ tgtwb5dl.c:1113:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int CreateTgtwb5Buttons(pTdgtBase) ^ tgtwb5dl.c:1150:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void AdjustDialogBoxWidth(dpy, pTdgtBase) ^ tgtwb5dl.c:1198:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void AdjustDialogBoxSize(dpy, pTdgtBase) ^ tgtwb5dl.c:1242:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] TidgetInfo *CreateTdgtb5DialogBox(dpy, parent_win) ^ tgtwb5dl.c:1387:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DestroyTdgtb5DialogBox(dpy, pti) ^ tgtwb5dl.c:1405:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int HandleTdgtNotifyEvent(pTdgtBase, pTdgtNtfy) ^ tgtwb5dl.c:1429:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int Tdgtb5DlgLoop(pti) ^ 37 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 -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c tgtwb5xl.c 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 -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c tidget.c tidget.c:60:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void TidgetWindowNotify(win, ctl_id, nf_type, nf_arg, nf_arg2) ^ tidget.c:81:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void TidgetNotify(pti, ctl_id, nf_type, nf_arg, nf_arg2) ^ tidget.c:91:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DoTidgetControlNotify(pti, ctl_id, nf_type, nf_arg, nf_arg2) ^ tidget.c:105:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void TidgetControlNotify(pti, nf_type, nf_arg, nf_arg2) ^ tidget.c:114:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int IsTdgtWindowNotifyEvent(win, pXEv, pTdgtNtfy) ^ tidget.c:139:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int IsTdgtNotifyEvent(pti, pXEv, pTdgtNtfy) ^ tidget.c:149:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void TidgetDrawFocusRect(pti, pswi) ^ tidget.c:169:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RedrawTidget(pti) ^ tidget.c:182:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TidgetEventHandler(pti, input, pti_handler_tidget) ^ tidget.c:255:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int IsTidgetEvent(pti, input, ppti_handler_tidget_return) ^ tidget.c:290:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DestroyTidget(ppti) ^ tidget.c:316:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetTidgetInfoBasic(pti, tidget_type, tidget, parent_win, x, y, w, h, h_pad, ^ tidget.c:345:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void TidgetCanHaveChildren(pti, can_have_children) ^ tidget.c:354:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void TidgetSetCallbacks(pti, pf_redraw_callback, pf_ev_handler_callback, ^ tidget.c:377:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] TidgetInfo *NewTidgetInfo(parent_tidgetinfo, type, tidget, ctl_id, userdata) ^ tidget.c:409:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void MapTidget(pti) ^ tidget.c:419:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void TidgetMoveResize(pti, x, y, w, h) ^ tidget.c:430:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ResetTidgetCommon(ptci) ^ tidget.c:450:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TidgetSendCmd(pti, cmd_type, cmd_arg, pv_cmd_userdata) ^ tidget.c:464:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TidgetDisableRedraw(pti, redraw_disabled) ^ tidget.c:480:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TidgetSetDirty(pti, dirty) ^ tidget.c:502:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TidgetSetHasFocus(has_focus) ^ tidget.c:523:8: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Window TidgetSetFocusWindow(win) ^ tidget.c:535:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TidgetIsFocus(pti) ^ tidget.c:545:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void TidgetGetFontInfo(pnFontIndex, pnSzUnit) ^ tidget.c:554:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void TidgetGetFontInfoGivenStyle(font_style, pp_font_ptr, pn_font_width, ^ tidget.c:638:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TidgetManagerHandleEvent(pXEv) ^ tidget.c:662:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TidgetManagerHandleAllKeyPressEvent(pXEv) ^ tidget.c:692:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TidgetManagerSetWantAllKeyPressEvents(pti, want_all_key_press_events) ^ 29 warnings generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c tcp.c tcp.c:48:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetSocketBlockingState(pn_socket, n_blocking) ^ tcp.c:69:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void TcpFreeBuf(buf) ^ tcp.c:78:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void BrokenPipe(nSig) ^ tcp.c:87:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TcpDoConnect(psz_host, us_port, pn_socket) ^ tcp.c:182:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TcpDoWrite(n_socket, buf, buf_sz) ^ tcp.c:205:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TcpDoRead(n_socket, ppsz_buf, pn_buf_sz) ^ 6 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 -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c text.c text.c:128:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void FreeDynStrBuf(dyn_str) ^ text.c:136:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DynStrCpy(dest_dyn_str, src_dyn_str) ^ text.c:171:19: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] struct DynStrRec *DynStrDup(dyn_str) ^ text.c:183:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DynStrSet(dest_dyn_str, buf) ^ text.c:200:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void FreeStr(str_ptr) ^ text.c:207:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void FreeStrList(str_ptr) ^ text.c:264:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void InvalidateTextCache(text_ptr) ^ text.c:282:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void TellTextCursorPosition(pnX, pnY) ^ text.c:291:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void BlurText(Win, gc, XOff, YOff, W, H) ^ text.c:391:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetEditTextArea(w, h, min_lbearing, max_rextra) ^ text.c:404:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void UpdateEditTextArea(w, h, min_lbearing, max_rextra) ^ text.c:437:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void AdjTextVerticalShift(clean_bbox) ^ text.c:556:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void FreeTextObj(ObjPtr) ^ text.c:588:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetEditTextSizeValue(new_edit_text_size) ^ text.c:595:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void UpdateTextInfoChoices(forced) ^ text.c:706:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RestoreStrSegFromUsingEditTextSize(pStrSeg, pUserData) ^ text.c:714:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SaveStrSegToUseEditTextSize(pStrSeg, pUserData) ^ text.c:722:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int RestoreEditTextSize(obj_ptr, restore) ^ text.c:779:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void EndChangeCurText(clean_bbox) ^ text.c:963:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RedrawAreasInCreateText(ltx1, lty1, rbx1, rby1, ltx2, lty2, rbx2, rby2) ^ text.c:984:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int CreateTextObj(nDeactivateIM, nRedraw) ^ text.c:992:49: warning: variable 'scr_ltx' set but not used [-Wunused-but-set-variable] int num_lines=0, ltx=0, lty=0, rbx=0, rby=0, scr_ltx=0, scr_lty=0; ^ text.c:992:60: warning: variable 'scr_lty' set but not used [-Wunused-but-set-variable] int num_lines=0, ltx=0, lty=0, rbx=0, rby=0, scr_ltx=0, scr_lty=0; ^ text.c:1325:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int CanAdvanceRight(pStrBlock, nIndex) ^ text.c:1354:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int CanAdvanceLeft(pStrBlock, nIndex) ^ text.c:1382:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int AtBeginningOfInheritedAttrValue(obj_ptr, pStrBlock, nIndex) ^ text.c:1423:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int PrepareEditExistingText(obj_ptr, abs_x, abs_y, x_off, y_off) ^ text.c:1565:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int BeginAdvance(drag, dir, ppStrBlock, pnCurIndex) ^ text.c:1597:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void EndAdvance(position_end, pStrBlock, nCurIndex) ^ text.c:1613:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int PartOfAWord(double_byte, ch) ^ text.c:1652:11: warning: comparison of array 'text_cur_bits' equal to a null pointer is always false [-Wtautological-pointer-compare] if (text_cur_bits == NULL) { } /* no compiler warning */ ^~~~~~~~~~~~~ ~~~~ text.c:1627:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int GetCursorPositionInCurText(x_off, y_off, use_abs, pn_abs_dx, ^ text.c:1668:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void HandleClickOnCanvas(x_off, y_off) ^ text.c:1721:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void AdvanceForDoubleClickOnWord(double_byte) ^ text.c:1765:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetTextIndices(drag, x_off, y_off, pressed_in_same_text) ^ text.c:1819:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void AdvanceStrBlockToParentBlock(advance_left, position_end) ^ text.c:1868:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int FindStrBlockPosInMiniline(pMiniline, pStrBlockTarget, pnPos) ^ text.c:1887:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int FindStrBlockPosInMinilines(pMinilines, pStrBlockTarget) ^ text.c:2038:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void AdjustTextHighlight(drag, saved_text_highlight, ^ text.c:2070:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void HandleClickOnText(drag, from_cursor_keys, x_off, y_off, ^ text.c:2109:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void HandleButton(Button_Ev) ^ text.c:2196:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void AdvanceRight(drag) ^ text.c:2257:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void AdvanceLeft(drag) ^ text.c:2396:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void HandleCRLF(key_ev) ^ text.c:2437:20: warning: variable 'attr_ptr' set but not used [-Wunused-but-set-variable] struct AttrRec *attr_ptr=NULL; ^ text.c:2431:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void HandleBS(key_ev, buf, key_sym, pn_has_char) ^ text.c:2522:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int InsertSingleByteCharIntoCurText(Str) ^ text.c:2584:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int InsertCharIntoCurText(Str, double_byte) ^ text.c:2645:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int SwitchToSingleOrDoubleByteFont(pStrSeg) ^ text.c:2712:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int SwitchToSingleByteFont(pStrSeg) ^ text.c:2718:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int SwitchToDoubleByteFont(pStrSeg) ^ text.c:2725:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void AdvanceEnd(drag) ^ text.c:2756:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void HandleEnd(drag) ^ text.c:2847:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void HandleChar(Str) ^ text.c:2954:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void HandleTAB(key_ev) ^ text.c:3014:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void AdvanceHome(drag) ^ text.c:3040:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void HandleHome(drag) ^ text.c:3098:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void HandleLeft(key_ev) ^ text.c:3134:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DoCycleTextCursorInScripts(direction) ^ text.c:3227:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void HandleUp(key_ev) ^ text.c:3322:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void HandleRight(key_ev) ^ text.c:3356:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void HandleDown(key_ev) ^ text.c:3414:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DoHandleInputFromBuffer(cut_buffer) ^ text.c:3468:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void HandleInputFromBuffer(cut_buffer) ^ text.c:3500:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void HandleTextFromBuffer(key_ev, s, key_sym, has_ch) ^ text.c:3765:26: warning: format string is not a string literal (potentially insecure) [-Wformat-security] sprintf(gszMsgBox, TgLoadString(STID_COPY_FAIL_SEL_STR_MAY_TOO_LNG)); ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^~~~~~~~~~~ text.c:3765:26: note: treat the string as an argument to avoid this sprintf(gszMsgBox, TgLoadString(STID_COPY_FAIL_SEL_STR_MAY_TOO_LNG)); ^ "%s", /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^ text.c:3767:26: warning: format string is not a string literal (potentially insecure) [-Wformat-security] sprintf(gszMsgBox, TgLoadString(STID_COPY_BUFFER_UPDATED)); ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^~~~~~~~~~~ text.c:3767:26: note: treat the string as an argument to avoid this sprintf(gszMsgBox, TgLoadString(STID_COPY_BUFFER_UPDATED)); ^ "%s", /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^ text.c:3774:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int HandleFunctionKey(key_sym) ^ text.c:3818:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int HandleDoubleByteUTF8Chars(s, has_ch) ^ text.c:3862:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DrawText(input) ^ text.c:3981:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void EditTextInAttr(attr_ptr) ^ text.c:4017:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DumpOneStr(FP, FontIndex, DoubleByte, DoubleByteModBytes, Str) ^ text.c:4081:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DrawTextObj(Win, XOff, YOff, ObjPtr) ^ text.c:4087:11: warning: variable 'y' set but not used [-Wunused-but-set-variable] int x, y, xinc=0, yinc=0, trans_pat=0, fill=0, pen=0; ^ text.c:4087:14: warning: variable 'xinc' set but not used [-Wunused-but-set-variable] int x, y, xinc=0, yinc=0, trans_pat=0, fill=0, pen=0; ^ text.c:4087:22: warning: variable 'yinc' set but not used [-Wunused-but-set-variable] int x, y, xinc=0, yinc=0, trans_pat=0, fill=0, pen=0; ^ text.c:4221:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int OldFontIndex(dpi_index, font_index, size_index, style_index) ^ text.c:4235:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ReadTextSetFontStyleSzUnit(font_str, sb_font_str, style, sz_unit, ^ text.c:4318:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ReadTextSetCanvasFont(text_ptr, dpi, size, asc, des, double_byte, ^ text.c:4371:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ReadStrSeg(FP, ppStrSeg) ^ text.c:4491:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ReadStrBlock(FP, pOwnerMiniLine, ppStrBlock) ^ text.c:4615:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ReadMiniLine(FP, pOwnerMiniLines, ppMiniLine) ^ text.c:4688:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ReadMiniLines(FP, pOwnerBlock, ppMiniLines) ^ text.c:4766:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ReadTextLines(FP, ObjPtr, text_ptr, color_str, num_lines, has_ps_bitmap, ^ text.c:5000:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void OldStyleRotateGetFinalOBBoxLtXY(ObjPtr, rotate, text_just, pnFinalLtX, ^ text.c:5049:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ReadTextObj(FP, Inbuf, ObjPtr) ^ text.c:5799:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void AdjustCurText(XOff, YOff) ^ text.c:5813:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void PrepareZoomCurText(AbsXc, AbsYc) ^ text.c:5829:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void PostZoomCurText(AbsXc, AbsYc) ^ text.c:5875:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void HighLightText(obj_ptr, pStartStrBlock, start_index, pEndStrBlock, ^ text.c:5932:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int FindTextInCurTextObj(str_to_match, str_len, case_sensitive, ^ text.c:5972:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int SetScriptFractionValue(spec) ^ text.c:6084:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DoInsertVerticalOffset(baseline_offset) ^ text.c:6191:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] MiniLinesInfo *CreateMinilinesForInsertScripts(type) ^ text.c:6213:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DetermineWhatToDoForLeftRightScripts(type, pnJustMove, ^ text.c:6263:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void GetNewSize(pStrSeg, pn_new_size) ^ text.c:6282:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int DoInsertLeftRightScripts(type, superscript) ^ text.c:6401:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void InsertLeftRightScripts(type, superscript) ^ text.c:6458:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int DoInsertCenterScripts(superscript) ^ text.c:6572:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void InsertCenterScripts(superscript) ^ text.c:6599:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int RefreshEditTextMenu(menu) ^ text.c:6628:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] TgMenu *CreateEditTextMenu(parent_menu, x, y, menu_info, status_str_xlated) ^ text.c:6645:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DetermineWhatToDoForChangeProperty(lWhich, nValue, pStrBlock, nIndex, ^ text.c:6682:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ChangeEditTextPropertyAtCursor(lWhich, nValue) ^ text.c:6773:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ChangeEditTextProperty(lWhich, nValue) ^ text.c:6895:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void PasteMiniLinesAtCursor(partial_text_obj_ptr) ^ text.c:6982:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DoMoveEditText(dx, dy) ^ text.c:7011:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ContinueMoveEditText(OrigX, OrigY) ^ text.c:7086:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int MouseInCurText(input) ^ text.c:7103:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int MouseOnCurTextBoundary(input) ^ text.c:7118:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void MoveEditText(input) ^ 111 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 -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c util.c util.c:44:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void UtilFree(pszStr) ^ util.c:50:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *UtilFreeStringArray(ppsz, nItems) ^ util.c:64:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *UtilStrDup(pszStr) ^ util.c:76:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int UtilStrCpyN(pszDest, nMaxDestSz, pszSrc) ^ util.c:92:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int UtilStrCpy(pszDest, pszSrc) ^ util.c:106:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void UtilLeftTrim(pszStr) ^ util.c:124:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void UtilRightTrim(pszStr) ^ util.c:141:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void UtilTrimBlanks(pszStr) ^ util.c:169:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void UtilStrUpper(psz) ^ util.c:179:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void UtilStrLower(psz) ^ util.c:189:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int UtilStrNCaseCmp(pszStr1, pszStr2, nCount) ^ util.c:208:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int UtilStrICmp(pszStr1, pszStr2) ^ util.c:228:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *UtilStrRChr(pszStr, int_ch) ^ util.c:243:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *UtilStrTok(pszStr, pszDelim, ppszState) ^ util.c:307:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int UtilShrinkName(pszFile) ^ util.c:370:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void UtilRemoveQuotes(pszStr) ^ util.c:396:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *UtilGetALine(pFile) ^ util.c:439:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *UtilGetAContinuedLine(pFile) ^ util.c:470:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int UtilCopyFile(pszFromFile, pszToFile) ^ util.c:508:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int UtilConcatFile(pszFromFile1, pszFromFile2, pszToFile) ^ util.c:561:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int UtilPathExists(pszPath) ^ util.c:569:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int UtilPathIsLink(pszPath) ^ util.c:588:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int UtilIsDirectory(pszPath) ^ util.c:597:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int UtilCreateDirHier(pszDir) ^ util.c:636:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] long ms_time(tv) ^ util.c:643:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] long UtilGetMilliSecTime(pl_sec, pl_msec) ^ 26 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 -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c version.c 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 -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c vms_comp.c 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 -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c wb.c wb.c:231:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void PrintFullIDsOfObjects(psz_prefix) ^ wb.c:297:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int RecvWBData(flag, ppsz_buf, pn_buf_sz) ^ wb.c:310:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ProcessWBInputData(buf) ^ wb.c:331:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int WBHasReadData(pn_flag, pn_retry) ^ wb.c:369:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int SendWBData(pszWBData, logical_clock) ^ wb.c:398:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int SaveCmd(FP, CmdType, psi) ^ wb.c:545:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void PrepareExtendedSerializationInfo(CmdPtr, psi) ^ wb.c:567:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int SaveExtendedCmd(FP, CmdPtr, psi) ^ wb.c:626:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int SaveExtendedCmdInfo(FP, nNumCmds, nCurCmdPos) ^ wb.c:652:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *SerializeCmd(CmdType, psi, pnAssignedLogicalClock, ppszPlainWBData, ^ wb.c:801:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SerializeFreeBuf(pszWBData) ^ wb.c:904:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ReadExtendedCmd(FP, Inbuf) ^ wb.c:995:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ReadExtendedCmdInfo(FP, Inbuf) ^ wb.c:1013:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ReadCmd(FP, Inbuf) ^ wb.c:1103:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ReadBeforeImage(FP, Inbuf) ^ wb.c:1157:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ReadAfterPositions(FP, Inbuf) ^ wb.c:1208:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ReadAfterImage(FP, Inbuf) ^ wb.c:1246:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SelectObjects(top_obj, bot_obj) ^ wb.c:1259:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] struct CmdRec *DeserializeCmd(psz_content_type, psz_buf, buf_sz, ppsz_plain_buf, ^ wb.c:1465:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TotalOrderForTwo(older_cmd, newer_cmd) ^ wb.c:1512:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void FindCmdInsertionPoint(cmd_to_insert, pp_immed_right_cmd) ^ wb.c:1530:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void FindShadowCmdInsertionPoint(cmd_to_insert, pp_immed_right_cmd) ^ wb.c:1570:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void CleanUpObsoletedWBCmds(stopped_cmd_ptr) ^ wb.c:1601:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void HandleChatLine(cmd_ptr) ^ wb.c:1624:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ProcessRemoteCmd(psz_content_type, psz_buf, buf_sz) ^ wb.c:1845:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void PackCurrentTGWBState(p_cur_state) ^ wb.c:2021:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int CheckUnpackState(read_status) ^ wb.c:2050:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] struct CmdRec *CreateCmdFromSerializedData(saved_top_obj, saved_bot_obj) ^ wb.c:2100:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int GetContentInfoFromBuf(buf, content_type_buf, content_type_buf_sz, ^ wb.c:2147:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ReadPastWrapper(fp, pn_file_pos) ^ wb.c:2167:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ReadPastHeader(fp, pn_file_pos) ^ wb.c:2215:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ReadAheadOverACmd(fp, pn_file_pos) ^ wb.c:2235:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *ReReadCmd(fp, start_file_pos, end_file_pos, pn_buf_len) ^ wb.c:2299:26: warning: format string is not a string literal (potentially insecure) [-Wformat-security] sprintf(gszMsgBox, TgLoadString(STID_JOIN_WB_IN_FAILED_NO_CONTTYPE)); ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^~~~~~~~~~~ wb.c:2299:26: note: treat the string as an argument to avoid this sprintf(gszMsgBox, TgLoadString(STID_JOIN_WB_IN_FAILED_NO_CONTTYPE)); ^ "%s", /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^ wb.c:2528:26: warning: format string is not a string literal (potentially insecure) [-Wformat-security] sprintf(gszMsgBox, TgLoadString(STID_JOIN_WB_IN_PROGRESS_FAILED)); ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^~~~~~~~~~~ wb.c:2528:26: note: treat the string as an argument to avoid this sprintf(gszMsgBox, TgLoadString(STID_JOIN_WB_IN_PROGRESS_FAILED)); ^ "%s", /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^ wb.c:2284:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void UnpackCurrentTGWBState(p_cur_state) ^ 36 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 -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c wb1.c 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 -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c wb2.c 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 -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c wb3.c 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 -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c wb_buff.c wb_buff.c:355:7: warning: variable 'i' set but not used [-Wunused-but-set-variable] int i; ^ 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 -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c wb_mcast.c 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 -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c wb_seg.c 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 -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c xbitmap.c xbitmap.c:163:26: warning: format string is not a string literal (potentially insecure) [-Wformat-security] sprintf(gszMsgBox, TgLoadString(STID_ENTER_HTML_TEMPLATE)); ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^~~~~~~~~~~ xbitmap.c:163:26: note: treat the string as an argument to avoid this sprintf(gszMsgBox, TgLoadString(STID_ENTER_HTML_TEMPLATE)); ^ "%s", /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^ xbitmap.c:188:26: warning: format string is not a string literal (potentially insecure) [-Wformat-security] sprintf(gszMsgBox, TgLoadString(STID_NO_HTML_TEMPLATE_FILE)); ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^~~~~~~~~~~ xbitmap.c:188:26: note: treat the string as an argument to avoid this sprintf(gszMsgBox, TgLoadString(STID_NO_HTML_TEMPLATE_FILE)); ^ "%s", /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^ xbitmap.c:197:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ReadHtmlExportTemplate(buf) ^ xbitmap.c:237:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ParseExportPixelTrim(pszSpec, nInit) ^ xbitmap.c:275:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetExportPixelTrim(cur_val_is_too_large) ^ xbitmap.c:294:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetXpmOutputVersion(xpm_output_version) ^ xbitmap.c:437:26: warning: format string is not a string literal (potentially insecure) [-Wformat-security] sprintf(gszMsgBox, TgLoadString(STID_WILL_NOT_USE_SIMPLE_THRESHOLD)); ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^~~~~~~~~~~ xbitmap.c:437:26: note: treat the string as an argument to avoid this sprintf(gszMsgBox, TgLoadString(STID_WILL_NOT_USE_SIMPLE_THRESHOLD)); ^ "%s", /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^ xbitmap.c:442:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetExportBitmapThreshold(buf) ^ xbitmap.c:481:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int RefreshBitPixmapMenu(menu) ^ xbitmap.c:503:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] TgMenu *CreateBitPixmapMenu(parent_menu, x, y, menu_info, status_str_xlated) ^ xbitmap.c:560:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void MultiplyTwoByTwo(m1, m2) ^ xbitmap.c:573:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void CalcTransform(mtrx) ^ xbitmap.c:703:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void MakeCachedBitmap(ObjPtr) ^ xbitmap.c:889:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExtractBitmap(OrigBitmap, OrigImage, X, Y, W, H, Bitmap, Image) ^ xbitmap.c:944:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int AutoTrimBitmap(OrigBitmap, pnImageW, pnImageH, pBitmap, pImage, ^ xbitmap.c:1010:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void InvertXBmObject(ObjPtr) ^ xbitmap.c:1064:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ObjListInvertable(LastObjPtr) ^ xbitmap.c:1087:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void InvertObjListXBitmap(LastObjPtr) ^ xbitmap.c:1154:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ParseGeomSpec(geom_spec, image_w, image_h, src_x, src_y, src_w, src_h) ^ xbitmap.c:1209:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *FindEqual(s) ^ xbitmap.c:1216:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ParseCutSpec(spec, image_w, image_h, mag, src_x, src_y, src_w, src_h) ^ xbitmap.c:1349:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void UpdateColorsLookupTable(color_index) ^ xbitmap.c:1368:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void BuildStrSegColors(pStrSeg, pUserData) ^ xbitmap.c:1376:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void BuildObjXPmColors(ObjPtr) ^ xbitmap.c:1499:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int SetTmpShift(mask, pn_shifts) ^ xbitmap.c:1517:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int BadMask(cWhich, mask) ^ xbitmap.c:1569:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int TmpPixelHash(pixel) ^ xbitmap.c:1576:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void GetTmpValue(pixel, mask, shift, pn_value) ^ xbitmap.c:1594:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void GetTmpColorStr(pixel, color_str) ^ xbitmap.c:1625:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void UpdateColorsLookupTableForPixel(pixel, can_alloc) ^ xbitmap.c:1657:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void BuildXPmColors(image, w, h, left, top, right, bottom, use_pixels) ^ xbitmap.c:1761:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ColorStrToXPmStr(index, color_str) ^ xbitmap.c:1814:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DumpXPmColors(FP) ^ xbitmap.c:1881:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int SetupTrueColorInfoFromImage(image, ptci) ^ xbitmap.c:1948:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int InitTrueColorInfo(image, ptci, image_w) ^ xbitmap.c:1996:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void MapEPSIToPix(DestX, DestY, DestW, DestH, SrcW, SrcH, SrcX, SrcY) ^ xbitmap.c:2010:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void GenPreviewBitmap(FP, llxPage, llyPage, urxPage, uryPage) ^ xbitmap.c:2416:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *ModifyToGenerateHtmlHref(value_str) ^ xbitmap.c:2486:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int GenerateObjImageMap(FP, ObjPtr, LtX, LtY) ^ xbitmap.c:2644:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void GenerateHtmlHeader(map_fp) ^ xbitmap.c:2671:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void GenerateUseMapHeader(map_fp, gif_fname, map_fname) ^ xbitmap.c:2699:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void GenerateUseMapTrailer(map_fp, W, H) ^ xbitmap.c:2718:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void GenerateHtmlTrailer(map_fp) ^ xbitmap.c:2725:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] FILE *OpenMapFile(pszMapFile) ^ xbitmap.c:2740:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DumpCommentInBitmapExport(fp) ^ xbitmap.c:2751:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ColorNameToXPmStr(color_name, s) ^ xbitmap.c:2780:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int Xpm3ToXpm1(gif_fname) ^ xbitmap.c:2932:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ConvertXpmToGif(xpm_fname, gif_fname, src_is_ppm, where_to_print) ^ xbitmap.c:3107:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int FindTgVarType(buf) ^ xbitmap.c:3169:26: warning: format string is not a string literal (potentially insecure) [-Wformat-security] fprintf(map_fp, TgLoadCachedString(CSTID_PARANED_UNKNOWN)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xbitmap.c:3169:26: note: treat the string as an argument to avoid this fprintf(map_fp, TgLoadCachedString(CSTID_PARANED_UNKNOWN)); ^ "%s", xbitmap.c:3121:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void GenerateTemplateHtmlVar(map_fp, var_type, gif_fname, map_fname, fname, ^ xbitmap.c:3191:8: warning: variable 'line_num' set but not used [-Wunused-but-set-variable] int line_num=0; ^ xbitmap.c:3184:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void GenerateTemplateHtmlFile(map_fp, tmpl_fp, gif_fname, map_fname, ^ xbitmap.c:3241:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void GenerateImageMap(XpmFileName, src_is_ppm, LtX, LtY, RbX, RbY, ^ xbitmap.c:3510:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void AdjustForRealBaseName(fname, gzipped, no_name) ^ xbitmap.c:3527:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void GetRealBaseName(fname) ^ xbitmap.c:3549:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] XImage *RotateImageForLandscape(src_image, p_w, p_h, p_left, p_top, p_right, ^ xbitmap.c:3590:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DumpXpmHeader(fp, w, h, name, left, top, right, bottom) ^ xbitmap.c:3629:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DumpXbmHeader(fp, w, h, name, left, top, right, bottom) ^ xbitmap.c:3648:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetAColorByteInfo(pcb, pXColor) ^ xbitmap.c:3679:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetColorBytes(pcb, index, table_size) ^ xbitmap.c:3693:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int DumpPpmBody(fp, image, bitmap_image, w, h, left, top, right, ^ xbitmap.c:3774:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int DumpXpmBody(fp, image, bitmap_image, w, h, left, top, right, ^ xbitmap.c:3865:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DumpXbmHalfToneBody(fp, image, w, h, left, top, right, bottom, bg_pixel) ^ xbitmap.c:4056:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DumpXbmNoneHalfToneBody(fp, image, w, h, left, top, right, bottom, ^ xbitmap.c:4220:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DumpXbmBody(fp, image, w, h, left, top, right, bottom, bg_pixel) ^ xbitmap.c:4234:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void GetPixelTrims(w, h, pnLeft, pnTop, pnRight, pnBottom) ^ xbitmap.c:4261:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void BuildXPmColorsFromImage(image, w, h) ^ xbitmap.c:4353:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int DumpXImageToXpmFile(image, w, h, fname) ^ xbitmap.c:4411:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int DumpXImageToPpmFile(image, w, h, fname, deflate) ^ xbitmap.c:4482:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int DumpXImageToPpm6(fp, image, bitmap_image, w, h, left, top, right, bottom) ^ xbitmap.c:4534:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DumpXBitmapFile(nInImageProc, nDumpPpmPreferred, nPageNumInFileName) ^ xbitmap.c:4840:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int DumpXImageToFile(image, w, h, fname, ext) ^ xbitmap.c:4857:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void FailedExportXPixmapDeckToGIF(count, gif_fp, gif_fname, tmp_fnames) ^ xbitmap.c:5078:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DumpBitmap(FP, image, data, image_w, image_h, transformed, orig_x, orig_y, ^ xbitmap.c:5214:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DumpXBmObj(FP, ObjPtr) ^ xbitmap.c:5338:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int NeedsToCacheXBmObj(ObjPtr) ^ xbitmap.c:5353:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DrawHiddenXBm(win, ctm, vs, x, y, w, h, s) ^ xbitmap.c:5393:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DrawXBmObj(win, XOff, YOff, ObjPtr) ^ xbitmap.c:5482:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] struct ObjRec *CreateXBmObj(ImageW, ImageH, W, H, bitmap, image) ^ xbitmap.c:5542:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void CopyXBmProperties(DestXbmObj, SrcXbmObj) ^ xbitmap.c:5556:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int FinishBreakUpXBitmap(obj_ptr, cols_and_rows, cols, rows) ^ xbitmap.c:5609:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void BreakUpXBitmap(obj_ptr, cols_and_rows, cols, rows) ^ xbitmap.c:5632:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DumpXBmData(FP, bitmap, image, W, H) ^ xbitmap.c:5680:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SaveXBmObj(FP, ObjPtr) ^ xbitmap.c:5760:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ReadTransformAndAdjustForXBm(FP, ObjPtr, xbm_ptr, transformed, rotate, flip) ^ xbitmap.c:5860:43: warning: shifting a negative signed value is undefined [-Wshift-negative-value] RotateObj(*ObjPtr, CORNER_LT, COUNTER90, <x, <y); ^~~~~~~~~ ./const.h:514:25: note: expanded from macro 'COUNTER90' #define COUNTER90 ((-90)<<6) ~~~~~^ xbitmap.c:5907:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ReadXBmObj(FP, Inbuf, ObjPtr) ^ xbitmap.c:6418:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetXBmPropMask(ObjPtr, plMask, plSkip, pProp) ^ xbitmap.c:6433:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void FreeXBmObj(ObjPtr) ^ 90 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 -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c xpixmap.c xpixmap.c:201:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int IsLinkedJpegObj(obj_ptr) ^ xpixmap.c:212:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int IsPpmTrueObj(real_type, ppm_data_compress, ppm_data) ^ xpixmap.c:221:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ObjHasIndexedTransPixel(obj_ptr, pn_index) ^ xpixmap.c:243:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ObjHasTrueColorTransPixel(obj_ptr, puch_trans_color_r, puch_trans_color_g, ^ xpixmap.c:265:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ObjHasTransPixel(obj_ptr) ^ xpixmap.c:281:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int xpmcharhash(chars_per_pixel, color_char) ^ xpixmap.c:291:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int BuildXPmBuckets(ncolors, pixels, dump_index_to_color_index, chars_per_pixel, ^ xpixmap.c:393:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int XPmLookUp(pixel, chars_per_pixel, color_char, pn_color_index_return) ^ xpixmap.c:430:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void MakeCachedPixmap(ObjPtr) ^ xpixmap.c:659:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExtractPixmap(orig_pixmap, orig_image, orig_bitmap, orig_bitmap_image, ^ xpixmap.c:736:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] struct ObjRec *CutXPixmap(ObjPtrToCut, pAbsX, pAbsY, pAbsW, pAbsH) ^ xpixmap.c:969:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SaveXPmColors(FP, def_color_index, xpm_ptr, ncolors, chars_per_pixel, ^ xpixmap.c:1048:8: warning: variable 'ncolors' set but not used [-Wunused-but-set-variable] int ncolors=0, *pixels=NULL, flip=0, orig_x=0, orig_y=0; ^ xpixmap.c:1048:20: warning: variable 'pixels' set but not used [-Wunused-but-set-variable] int ncolors=0, *pixels=NULL, flip=0, orig_x=0, orig_y=0; ^ xpixmap.c:1048:33: warning: variable 'flip' set but not used [-Wunused-but-set-variable] int ncolors=0, *pixels=NULL, flip=0, orig_x=0, orig_y=0; ^ xpixmap.c:1052:11: warning: variable 'pixmap' set but not used [-Wunused-but-set-variable] Pixmap pixmap, bitmap=(Pixmap)0; ^ xpixmap.c:1052:19: warning: variable 'bitmap' set but not used [-Wunused-but-set-variable] Pixmap pixmap, bitmap=(Pixmap)0; ^ xpixmap.c:1041:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void PrTgifDumpOldXPmObj(FP, ObjPtr, pmtrx) ^ xpixmap.c:1179:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int MalformedPpmMessage(tmp_fname) ^ xpixmap.c:1193:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ReadPpmHeaderStr(ppm_fp, tmp_fname, buf, sz_buf) ^ xpixmap.c:1230:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ReadPpmHeader(ppm_fp, tmp_fname, pn_format, pn_w, pn_h, pn_max_val) ^ xpixmap.c:1271:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DumpPpm6File(FP, image_w, image_h, tmp_fname) ^ xpixmap.c:1399:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ObjHasXpmObj(ObjPtr) ^ xpixmap.c:1440:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int PageHasXpmObj(page_ptr) ^ xpixmap.c:1512:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void FreeImagePixels(pipi) ^ xpixmap.c:1540:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetAColorByteInfoByXpmRGB(pcb, xpm_ptr, pixel_index) ^ xpixmap.c:1575:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetAColorByteByXpmRGB(pcb, xpm_ptr, index, table_size) ^ xpixmap.c:1590:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetAColorByteByMaxRGB(pcb, xpm_color_index, global_color_index, table_size) ^ xpixmap.c:1603:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ConvertPpmTrueToPpm6(ppm_data, ppm_data_size, ppm_data_compress, ^ xpixmap.c:1712:14: warning: variable 'transparent_pixel' set but not used [-Wunused-but-set-variable] int transparent_pixel=INVALID; ^ xpixmap.c:1658:26: warning: variable 'color_char' set but not used [-Wunused-but-set-variable] char *xpm_data=NULL, *color_char=NULL; ^ xpixmap.c:1644:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int GetImagePixels(ObjPtr, xpm_ptr, pipi, pxtii, pcb) ^ xpixmap.c:1821:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int PrepareColorsForConvertObjToPpm6(xpm_ptr, pxtii) ^ xpixmap.c:1892:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ConvertObjToPpm6(ObjPtr, xpm_ptr, psz_ppm6_path, ppm6_path_sz, pxtii) ^ xpixmap.c:1959:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DumpXPmObj(FP, ObjPtr) ^ xpixmap.c:1965:41: warning: variable 'orig_x' set but not used [-Wunused-but-set-variable] int ncolors=0, *pixels=NULL, flip=0, orig_x=0, orig_y=0; ^ xpixmap.c:1965:51: warning: variable 'orig_y' set but not used [-Wunused-but-set-variable] int ncolors=0, *pixels=NULL, flip=0, orig_x=0, orig_y=0; ^ xpixmap.c:2382:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int NeedsToCacheXPmObj(ObjPtr) ^ xpixmap.c:2397:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DrawHiddenXPm(win, ctm, vs, x, y, w, h, s) ^ xpixmap.c:2444:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RecolorXPmObj(obj_ptr, color_index) ^ xpixmap.c:2494:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DrawXPmObj(win, XOff, YOff, ObjPtr) ^ xpixmap.c:2616:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int PrTgifFindColorIndex(ObjPtr, s) ^ xpixmap.c:2648:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int QuickFindColorIndex(ObjPtr, s, new_alloc, use_default) ^ xpixmap.c:2815:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] struct ObjRec *CreateXPmObj(ImageW, ImageH, W, H, pixmap, image, bitmap, ^ xpixmap.c:2908:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void CopyXPmProperties(DestXpmObj, SrcXpmObj) ^ xpixmap.c:2921:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int FinishBreakUpXPixmap(obj_ptr, cols_and_rows, cols, rows) ^ xpixmap.c:3034:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void BreakUpXPixmap(obj_ptr, cols_and_rows, cols, rows) ^ xpixmap.c:3052:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SaveXPmPixels(FP, xpm_ptr, pixmap, image, bitmap, bitmap_image, w, h, ^ xpixmap.c:3126:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int WritePpmTrueData(FP, xpm_ptr) ^ xpixmap.c:3167:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *ReadPpmTrueData(fp, ppm_data_size) ^ xpixmap.c:3239:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *ReadPpmTrueMask(fp, ppm_mask_size) ^ xpixmap.c:3252:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SaveXPmObj(FP, ObjPtr) ^ xpixmap.c:3393:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void FreeAuxData(fp, ncolors, color_char, color_str, ^ xpixmap.c:3422:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int MyReadPixmapFile(file_name, image_w_return, image_h_return, w_return, ^ xpixmap.c:3987:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ReadXPmObj(FP, Inbuf, ObjPtr) ^ xpixmap.c:4415:43: warning: shifting a negative signed value is undefined [-Wshift-negative-value] RotateObj(*ObjPtr, CORNER_LT, COUNTER90, <x, <y); ^~~~~~~~~ ./const.h:514:25: note: expanded from macro 'COUNTER90' #define COUNTER90 ((-90)<<6) ~~~~~^ xpixmap.c:4456:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] struct ObjRec *MyReadJpegFileSkipData(jpeg_filename, expected_image_w, ^ xpixmap.c:4504:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] struct ObjRec *MyReadJpegFile(jpeg_filename, expected_image_w, expected_image_h) ^ xpixmap.c:4589:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ReadJpegObj(FP, Inbuf, ObjPtr) ^ xpixmap.c:4600:27: warning: variable 'first_pixel_maybe_bg' set but not used [-Wunused-but-set-variable] int first_pixel_is_bg, first_pixel_maybe_bg, new_alloc; ^ xpixmap.c:4748:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] struct ObjRec *MyReadPpmTrueFileSkipData(ppm_fname, expected_image_w, ^ xpixmap.c:4790:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] struct ObjRec *MyReadPpmFile(ppm_fname, expected_image_w, expected_image_h) ^ xpixmap.c:4842:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int SetupTrueColorInfo(ptci) ^ xpixmap.c:4903:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] struct ObjRec *MyReadPpmTrueFile2(ppm_fname, expected_image_w, expected_image_h) ^ xpixmap.c:5135:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] struct ObjRec *MyReadPpmTrueFile(ppm_fname, expected_image_w, expected_image_h) ^ xpixmap.c:5169:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] struct ObjRec *CreatePpmTrueObjFromFile(ppm_fname) ^ xpixmap.c:5175:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ReadPpmTrueObj(FP, Inbuf, ObjPtr) ^ xpixmap.c:5181:53: warning: variable 'ppm_mask_data' set but not used [-Wunused-but-set-variable] char *s=NULL, inbuf[MAXSTRING], *ppm_data=NULL, *ppm_mask_data=NULL; ^ xpixmap.c:5366:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SetXPmPropMask(ObjPtr, plMask, plSkip, pProp) ^ xpixmap.c:5374:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void FreeXPmObj(ObjPtr) ^ 70 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 -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c xprtfltr.c xprtfltr.c:82:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int GetSharedLibVersion(pszPath) ^ xprtfltr.c:106:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] long TgEFSendMsg(pTgEFInfo, nUserInfo, nMsg, nArg, pvArg) ^ xprtfltr.c:157:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int SharedLibLoadFailed(pTgEFInfo, pszSharedLibPath, nNeedUnload) ^ xprtfltr.c:174:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int LoadSharedLib(pszSharedLibPath) ^ xprtfltr.c:370:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int GetExportIndex(nWhereToPrint, nMode) ^ xprtfltr.c:382:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *GetExportName(nWhereToPrint, nMode) ^ xprtfltr.c:414:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *GetExportExt(nWhereToPrint) ^ xprtfltr.c:443:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int GetExportFilterCapability(nWhereToPrint) ^ xprtfltr.c:456:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExportVectorFile_1(pTgEFInfo, pDumpFile, nPageNumInFileName, ^ xprtfltr.c:493:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ExportVectorFile(pDumpFile, nPageNumInFileName, nPrintingPageNum, ^ 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 -DTGIF_PATH=\"/opt/pkg/lib/X11/tgif\" -DPSFILE_MOD=0664 -DLOCALEDIR=\"/usr/share/locale\" -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" -DNETLIST_FILE_EXT=\"net\" -DCOMP_FILE_EXT=\"cmp\" -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\" -D_NO_NKF -D_NO_CHINPUT -D_NO_XCIN -D_NO_DL_SUPPORT -D_NO_IDNLIB -DHAVE_STDINT_H -DTGIF_DISTR_VER=\"4.2.5\" -I/opt/pkg/include -c z_intrf.c z_intrf.c:53:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ByteStuff(buf_in, buf_len, buf_out, pn_buf_out) ^ z_intrf.c:81:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ByteUnStuff(buf_in, buf_len, buf_out, pn_buf_out, pn_has_left_over) ^ z_intrf.c:147:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int DeflateFile(fname, deflated_fname) ^ z_intrf.c:247:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int DoDeflate(in_fp, in_buf, bytes_left, out_fp, use_def_compression, use_byte_stuffing, pn_rc) ^ z_intrf.c:353:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int DoInflate(in_buf, bytes_left, out_fp, use_byte_unstuffing, pn_rc) ^ z_intrf.c:460:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ZlibError(status, deflate) ^ 6 warnings generated. rm -f tgif._man if test -z "" ; then cd `dirname tgif` && ln -s `basename tgif.man` `basename tgif._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" < tgif.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/\@\@$/\/' >tgif._man; fi rm -f tgif clang -o tgif -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -L/opt/pkg/lib -L/opt/pkg/lib tgif.o align.o animate.o arc.o attr.o auxtext.o box.o button.o chat.o chinput.o choice.o choose.o cli_xcin.o convkinput.o convxim.o cmd.o color.o cutpaste.o cursor.o dialog.o drawing.o dup.o edit.o eps.o exec.o expr.o file.o font.o ftp.o grid.o group.o hash.o help.o http.o imgproc.o import.o ini.o inmethod.o list.o mainloop.o mainmenu.o mark.o markup.o menu.o menuinfo.o miniline.o move.o msg.o names.o navigate.o nkf.o obj.o oval.o page.o pattern.o pin.o pngtrans.o poly.o polygon.o ps.o raster.o rcbox.o rect.o remote.o rm_intrf.o ruler.o scroll.o select.o setup.o shape.o shortcut.o special.o spline.o stk.o stream.o stretch.o strtbl.o tangram2.o tdgtbase.o tdgtbmpl.o tdgtbrow.o tdgtbtn.o tdgtdraw.o tdgtlist.o tdgtmsg.o tdgtsedt.o tgif_dbg.o tgcwheel.o tgcwdl.o tginssym.o tgisdl.o tgtwb5.o tgtwb5dl.o tgtwb5xl.o tidget.o tcp.o text.o util.o version.o vms_comp.o wb.o wb1.o wb2.o wb3.o wb_buff.o wb_mcast.o wb_seg.o xbitmap.o xpixmap.o xprtfltr.o z_intrf.o -lXext -lX11 -lm -lz