WARNING: [license.mk] Every package should define a LICENSE. ===> Building for kdrill-6.5 + rm -f Makefile.bak + mv -f Makefile Makefile.bak + set -v + + echo $'imake -DUseInstalled -I/opt/pkg/lib/X11/config \t\t -Wundef -DTOPDIR=. -DCURDIR=.' imake -DUseInstalled -I/opt/pkg/lib/X11/config -Wundef -DTOPDIR=. -DCURDIR=. + imake -DUseInstalled -I/opt/pkg/lib/X11/config -Wundef '-DTOPDIR=.' '-DCURDIR=.' /opt/pkg/bin/imake: Warning: cleaning Imakefile imake: executing: /opt/pkg/bin/tradcpp -I. -D__aarch64__ -traditional -D__APPLE__ -D__DARWIN__ -debuglog .imake.cpplog -DUseInstalled -I/opt/pkg/lib/X11/config -Wundef -DTOPDIR=. -DCURDIR=. -DBuildHtmlManPages=NO .imake.start.c In file included from .imake.start.c:14:2: In file included from /opt/pkg/lib/X11/config/Imake.tmpl:109:2: /opt/pkg/lib/X11/config/darwin.cf:255:11: Warning: non-identical redefinition of OptimizedCDebugFlags In file included from .imake.start.c:14:2: In file included from /opt/pkg/lib/X11/config/Imake.tmpl:109:2: /opt/pkg/lib/X11/config/darwin.cf:236:11: Previous definition was here In file included from .imake.start.c:14:2: /opt/pkg/lib/X11/config/Imake.tmpl:1075:16: Warning: value of undefined symbol HasGnuAr is 0 In file included from .imake.start.c:14:2: /opt/pkg/lib/X11/config/Imake.tmpl:1082:16: Warning: value of undefined symbol HasGnuAr is 0 In file included from .imake.start.c:14:2: /opt/pkg/lib/X11/config/Imake.tmpl:1089:16: Warning: value of undefined symbol HasGnuAr is 0 In file included from .imake.start.c:14:2: In file included from /opt/pkg/lib/X11/config/Imake.tmpl:2133:2: /opt/pkg/lib/X11/config/X11.tmpl:382:13: Warning: value of undefined symbol XF86Server is 0 In file included from .imake.start.c:14:2: In file included from /opt/pkg/lib/X11/config/Imake.tmpl:2133:2: /opt/pkg/lib/X11/config/X11.tmpl:783:10: Warning: value of undefined symbol HasCThreads is 0 In file included from .imake.start.c:14:2: In file included from /opt/pkg/lib/X11/config/Imake.tmpl:2133:2: /opt/pkg/lib/X11/config/X11.tmpl:3864:18: Warning: value of undefined symbol UseInstalledOnCrossCompile is 0 In file included from .imake.start.c:14:2: In file included from /opt/pkg/lib/X11/config/Imake.tmpl:2133:2: /opt/pkg/lib/X11/config/X11.tmpl:4081:13: Warning: value of undefined symbol UseInstalledOnCrossCompile is 0 In file included from .imake.start.c:14:2: In file included from /opt/pkg/lib/X11/config/Imake.tmpl:2133:2: /opt/pkg/lib/X11/config/X11.tmpl:4102:13: Warning: value of undefined symbol UseInstalledOnCrossCompile is 0 In file included from .imake.start.c:14:2: In file included from /opt/pkg/lib/X11/config/Imake.tmpl:2133:2: /opt/pkg/lib/X11/config/X11.tmpl:4124:12: Warning: value of undefined symbol UseInstalledOnCrossCompile is 0 In file included from .imake.start.c:14:2: In file included from /opt/pkg/lib/X11/config/Imake.tmpl:2133:2: /opt/pkg/lib/X11/config/X11.tmpl:4142:13: Warning: value of undefined symbol UseInstalledOnCrossCompile is 0 In file included from .imake.start.c:14:2: In file included from /opt/pkg/lib/X11/config/Imake.tmpl:2133:2: /opt/pkg/lib/X11/config/X11.tmpl:4163:12: Warning: value of undefined symbol UseInstalledOnCrossCompile is 0 In file included from .imake.start.c:14:2: In file included from /opt/pkg/lib/X11/config/Imake.tmpl:2133:2: /opt/pkg/lib/X11/config/X11.tmpl:4215:12: Warning: value of undefined symbol UseInstalledOnCrossCompile is 0 In file included from .imake.start.c:14:2: In file included from /opt/pkg/lib/X11/config/Imake.tmpl:2133:2: /opt/pkg/lib/X11/config/X11.tmpl:4234:12: Warning: value of undefined symbol UseInstalledOnCrossCompile is 0 In file included from .imake.start.c:14:2: In file included from /opt/pkg/lib/X11/config/Imake.tmpl:2133:2: /opt/pkg/lib/X11/config/X11.tmpl:4306:12: Warning: value of undefined symbol UseInstalledOnCrossCompile is 0 In file included from .imake.start.c:14:2: In file included from /opt/pkg/lib/X11/config/Imake.tmpl:2133:2: /opt/pkg/lib/X11/config/X11.tmpl:4336:12: Warning: value of undefined symbol UseInstalledOnCrossCompile is 0 In file included from .imake.start.c:14:2: In file included from /opt/pkg/lib/X11/config/Imake.tmpl:2133:2: /opt/pkg/lib/X11/config/X11.tmpl:4352:12: Warning: value of undefined symbol UseInstalledOnCrossCompile is 0 In file included from .imake.start.c:14:2: In file included from /opt/pkg/lib/X11/config/Imake.tmpl:2133:2: /opt/pkg/lib/X11/config/X11.tmpl:4423:12: Warning: value of undefined symbol UseInstalledOnCrossCompile is 0 + set -v sed "s/version-sed/6.5/" patchlevel.h-dist >patchlevel.h clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include/X11 -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -I/opt/pkg/include -c options.c In file included from options.c:21: ./grades.h:1:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] extern void MakeGradeSelect(),CountKanji(); ^ options.c:200:6: note: conflicting prototype is here void MakeGradeSelect(Widget parent){ ^ options.c:241:24: warning: cast to 'XtPointer' (aka 'void *') from smaller integer type 'int' [-Wint-to-void-pointer-cast] GradeCallback,(XtPointer) widgetcount); ^~~~~~~~~~~~~~~~~~~~~~~ 2 warnings generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include/X11 -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -I/opt/pkg/include -c readfile.c readfile.c:58:12: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] val=fgets(s,MAXLINELEN,fp); ^ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/stdio.h:141:30: note: passing argument to parameter here char *fgets(char * __restrict, int, FILE *); ^ readfile.c:63:22: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] endparse=& s[strlen(s)-1]; ^ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/string.h:82:28: note: passing argument to parameter '__s' here size_t strlen(const char *__s); ^ readfile.c:63:10: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] endparse=& s[strlen(s)-1]; ^~~~~~~~~~~~~~~~~ readfile.c:133:13: warning: expression which evaluates to zero treated as a null pointer constant of type 'char *' [-Wnon-literal-null-conversion] topdest = '\0'; ^~~~ readfile.c:136:16: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] parse=strrchr(source, '/'); ^~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/string.h:87:27: note: passing argument to parameter '__s' here char *strrchr(const char *__s, int __c); ^ readfile.c:136:7: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] parse=strrchr(source, '/'); ^~~~~~~~~~~~~~~~~~~~~ readfile.c:143:19: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strncpy(topdest, &source[1], parse- source - 1); ^~~~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_string.h:128:34: note: expanded from macro 'strncpy' __builtin___strncpy_chk (dest, __VA_ARGS__, __darwin_obsz (dest)) ^~~~~~~~~~~ 7 warnings generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include/X11 -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -I/opt/pkg/include -c game.c rm -f init.o clang -c -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include/X11 -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDICTLOCATION='"KDrill*kdictfile: /opt/pkg/share/kdrill/kanjidic.gz"' -DEDICTLOCATION='"KDrill*edictfile: /opt/pkg/share/kdrill/edict.gz"' -DRADLOCATION='"KDrill*radkfile: /opt/pkg/share/kdrill/radkfile"' init.c init.c:171:5: warning: call to undeclared function 'isMapped'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if(isMapped(w)){ ^ 1 warning generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include/X11 -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -I/opt/pkg/include -c widgets.c widgets.c:294:9: warning: variable 'gradelabel' set but not used [-Wunused-but-set-variable] Widget gradelabel,freqlabel,numlabel; ^ widgets.c:294:20: warning: variable 'freqlabel' set but not used [-Wunused-but-set-variable] Widget gradelabel,freqlabel,numlabel; ^ widgets.c:294:30: warning: variable 'numlabel' set but not used [-Wunused-but-set-variable] Widget gradelabel,freqlabel,numlabel; ^ widgets.c:364:19: warning: unused variable 'qthrowaway' [-Wunused-variable] Widget tmplabel, qthrowaway; ^ widgets.c:509:38: warning: cast to 'XtPointer' (aka 'void *') from smaller integer type 'int' [-Wint-to-void-pointer-cast] XtNcallback,choicescallback,(XtPointer) i); ^~~~~~~~~~~~~ widgets.c:792:11: warning: cast to 'XtPointer' (aka 'void *') from smaller integer type 'int' [-Wint-to-void-pointer-cast] (XtPointer) int_store,NULL); ^~~~~~~~~~~~~~~~~~~~~ widgets.c:860:21: warning: incompatible function pointer types initializing 'XtActionProc' (aka 'void (*)(struct _WidgetRec *, union _XEvent *, char **, unsigned int *)') with an expression of type 'void (Widget, XtPointer, XtPointer)' (aka 'void (struct _WidgetRec *, void *, void *)') [-Wincompatible-function-pointer-types] { "stroke-search", DoStrokeSearch}, /* ignore warning*/ ^~~~~~~~~~~~~~ 7 warnings generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include/X11 -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -I/opt/pkg/include -c grades.c grades.c:101:19: warning: cast to smaller integer type 'int' from 'XtPointer' (aka 'void *') [-Wvoid-pointer-to-int-cast] grademask = 1 << (int) data; ^~~~~~~~~~ grades.c:103:9: warning: cast to smaller integer type 'int' from 'XtPointer' (aka 'void *') [-Wvoid-pointer-to-int-cast] switch((int) data){ ^~~~~~~~~~ grades.c:127:9: warning: cast to smaller integer type 'int' from 'XtPointer' (aka 'void *') [-Wvoid-pointer-to-int-cast] if((int) data <=6) ^~~~~~~~~~ grades.c:128:47: warning: cast to smaller integer type 'int' from 'XtPointer' (aka 'void *') [-Wvoid-pointer-to-int-cast] sprintf(statusprefix,"Grade %d unset: ",(int) data); ^~~~~~~~~~ /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__) ^~~~~~~~~~~ grades.c:137:9: warning: cast to smaller integer type 'int' from 'XtPointer' (aka 'void *') [-Wvoid-pointer-to-int-cast] if((int) data <=6) ^~~~~~~~~~ grades.c:138:45: warning: cast to smaller integer type 'int' from 'XtPointer' (aka 'void *') [-Wvoid-pointer-to-int-cast] sprintf(statusprefix,"Grade %d set: ",(int) data); ^~~~~~~~~~ /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__) ^~~~~~~~~~~ 6 warnings generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include/X11 -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -I/opt/pkg/include -c frequency.c clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include/X11 -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -I/opt/pkg/include -c mainwindow.c mainwindow.c:66:22: warning: cast to smaller integer type 'int' from 'XtPointer' (aka 'void *') [-Wvoid-pointer-to-int-cast] int buttonpressed = (int) data; ^~~~~~~~~~ mainwindow.c:99:22: warning: cast to smaller integer type 'int' from 'XtPointer' (aka 'void *') [-Wvoid-pointer-to-int-cast] int buttonpressed = (int) data; ^~~~~~~~~~ mainwindow.c:173:13: warning: cast to smaller integer type 'int' from 'XtPointer' (aka 'void *') [-Wvoid-pointer-to-int-cast] guessvalue((int) data); ^~~~~~~~~~ 3 warnings generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include/X11 -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -I/opt/pkg/include -c search.c search.c:813:16: warning: variable 'tptr' set but not used [-Wunused-but-set-variable] TRANSLATION tptr; ^ 1 warning generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include/X11 -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -I/opt/pkg/include -c log.c rm -f utils.o clang -c -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include/X11 -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DUNCOMPRESS='"gzip -d -c"' -DUNCOMPRESSEXT='".gz"' utils.c utils.c:100:17: warning: comparing a pointer to a null character constant; did you mean to compare to NULL? [-Wpointer-compare] if(stringp == '\0') ^~~~ (void *)0 utils.c:106:17: warning: comparing a pointer to a null character constant; did you mean to compare to NULL? [-Wpointer-compare] if(stringp == '\0') ^~~~ (void *)0 utils.c:311:6: warning: variable 'height' set but not used [-Wunused-but-set-variable] int height, bwidth; ^ utils.c:311:14: warning: variable 'bwidth' set but not used [-Wunused-but-set-variable] int height, bwidth; ^ 4 warnings generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include/X11 -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -I/opt/pkg/include -c kanasearch.c kanasearch.c:230:16: warning: cast to smaller integer type 'int' from 'XtPointer' (aka 'void *') [-Wvoid-pointer-to-int-cast] CHAR.byte1 = ((int) data & 0xff00) >>8; ^~~~~~~~~~ kanasearch.c:231:16: warning: cast to smaller integer type 'int' from 'XtPointer' (aka 'void *') [-Wvoid-pointer-to-int-cast] CHAR.byte2 = ((int) data & 0x00ff); ^~~~~~~~~~ kanasearch.c:264:5: warning: cast to smaller integer type 'int' from 'XtPointer' (aka 'void *') [-Wvoid-pointer-to-int-cast] if((int)data == 2){ ^~~~~~~~~ kanasearch.c:372:10: warning: cast to 'XtPointer' (aka 'void *') from smaller integer type 'int' [-Wint-to-void-pointer-cast] (XtPointer) kvalue); ^~~~~~~~~~~~~~~~~~ 4 warnings generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include/X11 -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -I/opt/pkg/include -c convert.c convert.c:634:13: warning: variable 'key_event' set but not used [-Wunused-but-set-variable] XKeyEvent *key_event; ^ 1 warning generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include/X11 -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -I/opt/pkg/include -c multikanji.c multikanji.c:207:30: warning: cast to smaller integer type 'int' from 'XtPointer' (aka 'void *') [-Wvoid-pointer-to-int-cast] TRANSLATION trans=transptrs[(int)data]; ^~~~~~~~~ multikanji.c:279:52: warning: cast to 'XtPointer' (aka 'void *') from smaller integer type 'int' [-Wint-to-void-pointer-cast] XtAddCallback(newu, XtNcallback, multiUcallback, (XtPointer)transcount); ^~~~~~~~~~~~~~~~~~~~~ 2 warnings generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include/X11 -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -I/opt/pkg/include -c kanjisearch.c kanjisearch.c:62:8: warning: cast to smaller integer type 'int' from 'XtPointer' (aka 'void *') [-Wvoid-pointer-to-int-cast] num = (int)data; ^~~~~~~~~ kanjisearch.c:84:32: warning: cast to smaller integer type 'int' from 'XtPointer' (aka 'void *') [-Wvoid-pointer-to-int-cast] XtNlabel, quarterchars[(int)data], ^~~~~~~~~ kanjisearch.c:110:4: warning: call to undeclared library function 'exit' with type 'void (int) __attribute__((noreturn))'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] exit(1); ^ kanjisearch.c:110:4: note: include the header or explicitly provide a declaration for 'exit' kanjisearch.c:201:10: warning: cast to 'XtPointer' (aka 'void *') from smaller integer type 'int' [-Wint-to-void-pointer-cast] (XtPointer) kcount); ^~~~~~~~~~~~~~~~~~ kanjisearch.c:287:10: warning: cast to 'XtPointer' (aka 'void *') from smaller integer type 'int' [-Wint-to-void-pointer-cast] (XtPointer) kcount); ^~~~~~~~~~~~~~~~~~ 5 warnings generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include/X11 -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -I/opt/pkg/include -c strokesearch.c rm -f radsearch.o clang -c -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include/X11 -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DRADLOCATION='"KDrill*radkfile: /opt/pkg/share/kdrill/radkfile"' radsearch.c radsearch.c:152:10: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] (newcount+1)*sizeof(XChar2b),newactivelist,activelist); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ radsearch.c:98:10: warning: unused variable 'searchstr' [-Wunused-variable] XChar2b searchstr[2]; ^ radsearch.c:525:4: warning: call to undeclared library function 'exit' with type 'void (int) __attribute__((noreturn))'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] exit(1); ^ radsearch.c:525:4: note: include the header or explicitly provide a declaration for 'exit' 3 warnings generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include/X11 -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -I/opt/pkg/include -c searchwidgets.c searchwidgets.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] long TextLength (w) ^ 1 warning generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include/X11 -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -I/opt/pkg/include -c prefs.c prefs.c:206:21: warning: format string is not a string literal (potentially insecure) [-Wformat-security] sprintf(classbuff,*rname); ^~~~~~ /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__) ^~~~~~~~~~~ prefs.c:206:21: note: treat the string as an argument to avoid this sprintf(classbuff,*rname); ^ "%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__) ^ 1 warning generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include/X11 -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -I/opt/pkg/include -c badguess.c clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include/X11 -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -I/opt/pkg/include -c skipsearch.c skipsearch.c:104:25: warning: cast to smaller integer type 'int' from 'XtPointer' (aka 'void *') [-Wvoid-pointer-to-int-cast] sprintf(newlabel,"%1d",(int)client_data); ^~~~~~~~~~~~~~~~ /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__) ^~~~~~~~~~~ skipsearch.c:117:14: warning: cast to smaller integer type 'int' from 'XtPointer' (aka 'void *') [-Wvoid-pointer-to-int-cast] int skipnum=(int)client_data; ^~~~~~~~~~~~~~~~ skipsearch.c:131:9: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] if((s1==0)) { ~~^~~ skipsearch.c:131:9: note: remove extraneous parentheses around the comparison to silence this warning if((s1==0)) { ~ ^ ~ skipsearch.c:131:9: note: use '=' to turn this equality comparison into an assignment if((s1==0)) { ^~ = skipsearch.c:341:10: warning: cast to 'XtPointer' (aka 'void *') from smaller integer type 'int' [-Wint-to-void-pointer-cast] (XtPointer) scount); ^~~~~~~~~~~~~~~~~~ 4 warnings generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include/X11 -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -I/opt/pkg/include -c learn.c learn.c:158:24: warning: cast to smaller integer type 'int' from 'XtPointer' (aka 'void *') [-Wvoid-pointer-to-int-cast] showinorder=(Boolean)((int)client_data & 0xff); ^~~~~~~~~~~~~~~~ 1 warning generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include/X11 -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -I/opt/pkg/include -c timeout.c rm -f kdrill._man if test -z "" ; then cd `dirname kdrill` && ln -s `basename kdrill.man` `basename kdrill._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" < kdrill.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/\@\@$/\/' >kdrill._man; fi sed -e "s:EDICTLOCATION:/opt/pkg/share/kdrill/edict.gz:" -e "s:KDICTLOCATION:/opt/pkg/share/kdrill/kanjidic.gz:" -e "s:RADLOCATION:/opt/pkg/share/kdrill/radkfile:" < KDrill.ad-dist > KDrill.ad clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include/X11 -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -I/opt/pkg/include -c main.c rm -f kdrill clang -o kdrill -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -L/opt/pkg/lib -L/opt/pkg/lib main.o options.o readfile.o game.o init.o widgets.o grades.o frequency.o mainwindow.o search.o log.o utils.o kanasearch.o convert.o multikanji.o kanjisearch.o strokesearch.o radsearch.o searchwidgets.o prefs.o badguess.o skipsearch.o learn.o timeout.o -lXaw -lXmu -lXt -lSM -lICE -lXpm -lXext -lX11