=> "/opt/pkg/bin/bmake" ["-C", "/Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-arm64/graphics/xli", "all", "BATCH=1", "DEPENDS_TARGET=/nonexistent"] WARNING: [license.mk] Every package should define a LICENSE. ===> Building for xli-1.17.0nb15 --- bright.o --- --- clip.o --- --- cmuwmrast.o --- --- bright.o --- clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/include -I/include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DHAS_MEMCPY -DHAVE_GUNZIP -DHAVE_BUNZIP2 -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include -c bright.c --- clip.o --- clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/include -I/include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DHAS_MEMCPY -DHAVE_GUNZIP -DHAVE_BUNZIP2 -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include -c clip.c --- cmuwmrast.o --- clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/include -I/include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DHAS_MEMCPY -DHAVE_GUNZIP -DHAVE_BUNZIP2 -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include -c cmuwmrast.c --- compress.o --- clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/include -I/include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DHAS_MEMCPY -DHAVE_GUNZIP -DHAVE_BUNZIP2 -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include -c compress.c --- dither.o --- clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/include -I/include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DHAS_MEMCPY -DHAVE_GUNZIP -DHAVE_BUNZIP2 -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include -c dither.c --- faces.o --- clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/include -I/include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DHAS_MEMCPY -DHAVE_GUNZIP -DHAVE_BUNZIP2 -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include -c faces.c --- compress.o --- compress.c:145:3: warning: add explicit braces to avoid dangling else [-Wdangling-else] 145 | else | ^ 1 warning generated. --- fbm.o --- clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/include -I/include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DHAS_MEMCPY -DHAVE_GUNZIP -DHAVE_BUNZIP2 -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include -c fbm.c --- faces.o --- faces.c:53:16: warning: passing 'byte *' (aka '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] 53 | while (zgets((byte *)buf, BUFSIZ - 1, zf)) { | ^~~~~~~~~~~ ./xli.h:348:19: note: passing argument to parameter 'buf' here 348 | char *zgets(char *buf, unsigned int size, ZFILE *zf); | ^ faces.c:126:15: warning: '&&' within '||' [-Wlogical-op-parentheses] 126 | if (!*fname && !*lname || ('\n' == *fname && '\n' == *lname)) { | ~~~~~~~~^~~~~~~~~~ ~~ faces.c:126:15: note: place parentheses around the '&&' expression to silence this warning 126 | if (!*fname && !*lname || ('\n' == *fname && '\n' == *lname)) { | ^ | ( ) --- fill.o --- clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/include -I/include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DHAS_MEMCPY -DHAVE_GUNZIP -DHAVE_BUNZIP2 -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include -c fill.c --- faces.o --- 2 warnings generated. --- g3.o --- clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/include -I/include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DHAS_MEMCPY -DHAVE_GUNZIP -DHAVE_BUNZIP2 -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include -c g3.c --- gif.o --- clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/include -I/include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DHAS_MEMCPY -DHAVE_GUNZIP -DHAVE_BUNZIP2 -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include -c gif.c --- halftone.o --- clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/include -I/include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DHAS_MEMCPY -DHAVE_GUNZIP -DHAVE_BUNZIP2 -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include -c halftone.c --- imagetypes.o --- clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/include -I/include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DHAS_MEMCPY -DHAVE_GUNZIP -DHAVE_BUNZIP2 -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include -c imagetypes.c --- img.o --- clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/include -I/include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DHAS_MEMCPY -DHAVE_GUNZIP -DHAVE_BUNZIP2 -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include -c img.c --- halftone.o --- halftone.c:140:2: warning: suggest braces around initialization of subobject [-Wmissing-braces] 140 | 0xf, 0xf, 0xf, 0xf, | ^~~~~~~~~~~~~~~~~~ | { } halftone.c:141:2: warning: suggest braces around initialization of subobject [-Wmissing-braces] 141 | 0xe, 0xf, 0xf, 0xf, | ^~~~~~~~~~~~~~~~~~ | { } halftone.c:142:2: warning: suggest braces around initialization of subobject [-Wmissing-braces] 142 | 0xe, 0xf, 0xb, 0xf, | ^~~~~~~~~~~~~~~~~~ | { } halftone.c:143:2: warning: suggest braces around initialization of subobject [-Wmissing-braces] 143 | 0xa, 0xf, 0xb, 0xf, | ^~~~~~~~~~~~~~~~~~ | { } halftone.c:144:2: warning: suggest braces around initialization of subobject [-Wmissing-braces] 144 | 0xa, 0xf, 0xa, 0xf, | ^~~~~~~~~~~~~~~~~~ | { } halftone.c:145:2: warning: suggest braces around initialization of subobject [-Wmissing-braces] 145 | 0xa, 0xd, 0xa, 0xf, | ^~~~~~~~~~~~~~~~~~ | { } halftone.c:146:2: warning: suggest braces around initialization of subobject [-Wmissing-braces] 146 | 0xa, 0xd, 0xa, 0x7, | ^~~~~~~~~~~~~~~~~~ | { } halftone.c:147:2: warning: suggest braces around initialization of subobject [-Wmissing-braces] 147 | 0xa, 0x5, 0xa, 0x7, | ^~~~~~~~~~~~~~~~~~ | { } halftone.c:148:2: warning: suggest braces around initialization of subobject [-Wmissing-braces] 148 | 0xa, 0x5, 0xa, 0x5, | ^~~~~~~~~~~~~~~~~~ | { } halftone.c:149:2: warning: suggest braces around initialization of subobject [-Wmissing-braces] 149 | 0x8, 0x5, 0xa, 0x5, | ^~~~~~~~~~~~~~~~~~ | { } halftone.c:150:2: warning: suggest braces around initialization of subobject [-Wmissing-braces] 150 | 0x8, 0x5, 0x2, 0x5, | ^~~~~~~~~~~~~~~~~~ | { } halftone.c:151:2: warning: suggest braces around initialization of subobject [-Wmissing-braces] 151 | 0x0, 0x5, 0x2, 0x5, | ^~~~~~~~~~~~~~~~~~ | { } halftone.c:152:2: warning: suggest braces around initialization of subobject [-Wmissing-braces] 152 | 0x0, 0x5, 0x0, 0x5, | ^~~~~~~~~~~~~~~~~~ | { } halftone.c:153:2: warning: suggest braces around initialization of subobject [-Wmissing-braces] 153 | 0x0, 0x4, 0x0, 0x5, | ^~~~~~~~~~~~~~~~~~ | { } halftone.c:154:2: warning: suggest braces around initialization of subobject [-Wmissing-braces] 154 | 0x0, 0x4, 0x0, 0x1, | ^~~~~~~~~~~~~~~~~~ | { } halftone.c:155:2: warning: suggest braces around initialization of subobject [-Wmissing-braces] 155 | 0x0, 0x0, 0x0, 0x1, | ^~~~~~~~~~~~~~~~~~ | { } halftone.c:156:2: warning: suggest braces around initialization of subobject [-Wmissing-braces] 156 | 0x0, 0x0, 0x0, 0x0 | ^~~~~~~~~~~~~~~~~~ | { } 17 warnings generated. --- mac.o --- clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/include -I/include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DHAS_MEMCPY -DHAVE_GUNZIP -DHAVE_BUNZIP2 -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include -c mac.c --- imagetypes.o --- imagetypes.c:23:2: warning: suggest braces around initialization of subobject [-Wmissing-braces] 23 | fbmIdent, fbmLoad, "FBM Image", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | { } imagetypes.c:24:2: warning: suggest braces around initialization of subobject [-Wmissing-braces] 24 | sunRasterIdent, sunRasterLoad, "Sun Rasterfile", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | { } imagetypes.c:25:2: warning: suggest braces around initialization of subobject [-Wmissing-braces] 25 | cmuwmIdent, cmuwmLoad, "CMU WM Raster", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | { } imagetypes.c:26:2: warning: suggest braces around initialization of subobject [-Wmissing-braces] 26 | pbmIdent, pbmLoad, "Portable Bit Map (PBM, PGM, PPM)", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | { } imagetypes.c:27:2: warning: suggest braces around initialization of subobject [-Wmissing-braces] 27 | facesIdent, facesLoad, "Faces Project", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | { } imagetypes.c:28:2: warning: suggest braces around initialization of subobject [-Wmissing-braces] 28 | pngIdent, pngLoad, "Portable Network Graphics (PNG)", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | { } imagetypes.c:29:2: warning: suggest braces around initialization of subobject [-Wmissing-braces] 29 | gifIdent, gifLoad, "GIF Image", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | { } imagetypes.c:30:2: warning: suggest braces around initialization of subobject [-Wmissing-braces] 30 | jpegIdent, jpegLoad, "JFIF style jpeg Image", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | { } imagetypes.c:31:2: warning: suggest braces around initialization of subobject [-Wmissing-braces] 31 | rleIdent, rleLoad, "Utah RLE Image", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | { } imagetypes.c:32:2: warning: suggest braces around initialization of subobject [-Wmissing-braces] 32 | bmpIdent, bmpLoad, "Windows, OS/2 RLE Image", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | { } imagetypes.c:33:2: warning: suggest braces around initialization of subobject [-Wmissing-braces] 33 | pcdIdent, pcdLoad, "Photograph on CD Image", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | { } imagetypes.c:34:2: warning: suggest braces around initialization of subobject [-Wmissing-braces] 34 | xwdIdent, xwdLoad, "X Window Dump", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | { } imagetypes.c:35:2: warning: suggest braces around initialization of subobject [-Wmissing-braces] 35 | tgaIdent, tgaLoad, "Targa Image", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | { } imagetypes.c:36:2: warning: suggest braces around initialization of subobject [-Wmissing-braces] 36 | mcidasIdent, mcidasLoad, "McIDAS areafile", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | { } imagetypes.c:37:2: warning: suggest braces around initialization of subobject [-Wmissing-braces] 37 | g3Ident, g3Load, "G3 FAX Image", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | { } imagetypes.c:38:2: warning: suggest braces around initialization of subobject [-Wmissing-braces] 38 | pcxIdent, pcxLoad, "PC Paintbrush Image", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | { } imagetypes.c:39:2: warning: suggest braces around initialization of subobject [-Wmissing-braces] 39 | imgIdent, imgLoad, "GEM Bit Image", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | { } imagetypes.c:40:2: warning: suggest braces around initialization of subobject [-Wmissing-braces] 40 | macIdent, macLoad, "MacPaint Image", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | { } imagetypes.c:41:2: warning: suggest braces around initialization of subobject [-Wmissing-braces] 41 | xpixmapIdent, xpixmapLoad, "X Pixmap", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | { } imagetypes.c:42:2: warning: suggest braces around initialization of subobject [-Wmissing-braces] 42 | xbitmapIdent, xbitmapLoad, "X Bitmap", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | { } imagetypes.c:43:2: warning: suggest braces around initialization of subobject [-Wmissing-braces] 43 | NULL, NULL, NULL | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | { } /System/Volumes/Data/Applications/Xcode-16.4.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/17/include/__stddef_null.h:26:14: note: expanded from macro 'NULL' 26 | #define NULL ((void*)0) | ^ imagetypes.c:64:22: warning: assigning to 'char *' from 'byte *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 64 | image_ops->fullname = lmalloc(strlen(fullname) + 1); | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 22 warnings generated. --- mcidas.o --- clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/include -I/include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DHAS_MEMCPY -DHAVE_GUNZIP -DHAVE_BUNZIP2 -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include -c mcidas.c --- mc_tables.o --- clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/include -I/include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DHAS_MEMCPY -DHAVE_GUNZIP -DHAVE_BUNZIP2 -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include -c mc_tables.c --- merge.o --- clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/include -I/include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DHAS_MEMCPY -DHAVE_GUNZIP -DHAVE_BUNZIP2 -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include -c merge.c --- misc.o --- clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/include -I/include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DHAS_MEMCPY -DHAVE_GUNZIP -DHAVE_BUNZIP2 -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include -c misc.c --- new.o --- clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/include -I/include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DHAS_MEMCPY -DHAVE_GUNZIP -DHAVE_BUNZIP2 -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include -c new.c --- options.o --- clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/include -I/include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DHAS_MEMCPY -DHAVE_GUNZIP -DHAVE_BUNZIP2 -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include -c options.c --- path.o --- --- pbm.o --- --- path.o --- clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/include -I/include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DHAS_MEMCPY -DHAVE_GUNZIP -DHAVE_BUNZIP2 -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include -c path.c --- pbm.o --- clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/include -I/include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DHAS_MEMCPY -DHAVE_GUNZIP -DHAVE_BUNZIP2 -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include -c pbm.c --- options.o --- options.c:776:21: warning: passing 'char[1024]' to parameter of type 'byte *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 776 | nib = zread(file, buf, TOBUFSZ); | ^~~ ./xli.h:345:28: note: passing argument to parameter 'buf' here 345 | int zread(ZFILE *zf, byte *buf, int len); | ^ options.c:791:22: warning: passing 'char[1024]' to parameter of type 'byte *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 791 | nib += zread(file, buf, TOBUFSZ - nib); | ^~~ ./xli.h:345:28: note: passing argument to parameter 'buf' here 345 | int zread(ZFILE *zf, byte *buf, int len); | ^ options.c:900:2: warning: suggest braces around initialization of subobject [-Wmissing-braces] 900 | TrueColor, "TrueColor", | ^~~~~~~~~~~~~~~~~~~~~~ | { } /var/tmp/work/graphics/xli/work/.buildlink/include/X11/X.h:708:20: note: expanded from macro 'TrueColor' 708 | #define TrueColor 4 | ^ options.c:901:6: warning: suggest braces around initialization of subobject [-Wmissing-braces] 901 | DirectColor, "DirectColor", | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | { } /var/tmp/work/graphics/xli/work/.buildlink/include/X11/X.h:709:22: note: expanded from macro 'DirectColor' 709 | #define DirectColor 5 | ^ options.c:902:6: warning: suggest braces around initialization of subobject [-Wmissing-braces] 902 | PseudoColor, "PseudoColor", | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | { } /var/tmp/work/graphics/xli/work/.buildlink/include/X11/X.h:707:22: note: expanded from macro 'PseudoColor' 707 | #define PseudoColor 3 | ^ options.c:903:6: warning: suggest braces around initialization of subobject [-Wmissing-braces] 903 | StaticColor, "StaticColor", | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | { } /var/tmp/work/graphics/xli/work/.buildlink/include/X11/X.h:706:22: note: expanded from macro 'StaticColor' 706 | #define StaticColor 2 | ^ options.c:904:6: warning: suggest braces around initialization of subobject [-Wmissing-braces] 904 | GrayScale, "GrayScale", | ^~~~~~~~~~~~~~~~~~~~~~ | { } /var/tmp/work/graphics/xli/work/.buildlink/include/X11/X.h:705:20: note: expanded from macro 'GrayScale' 705 | #define GrayScale 1 | ^ options.c:905:6: warning: suggest braces around initialization of subobject [-Wmissing-braces] 905 | StaticGray, "StaticGray", | ^~~~~~~~~~~~~~~~~~~~~~~~ | { } /var/tmp/work/graphics/xli/work/.buildlink/include/X11/X.h:704:21: note: expanded from macro 'StaticGray' 704 | #define StaticGray 0 | ^ options.c:906:6: warning: suggest braces around initialization of subobject [-Wmissing-braces] 906 | StaticGray, "StaticGrey", | ^~~~~~~~~~~~~~~~~~~~~~~~ | { } /var/tmp/work/graphics/xli/work/.buildlink/include/X11/X.h:704:21: note: expanded from macro 'StaticGray' 704 | #define StaticGray 0 | ^ options.c:907:6: warning: suggest braces around initialization of subobject [-Wmissing-braces] 907 | -1, NULL | ^~~~~~~~ | { } 10 warnings generated. --- pcx.o --- clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/include -I/include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DHAS_MEMCPY -DHAVE_GUNZIP -DHAVE_BUNZIP2 -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include -c pcx.c --- reduce.o --- clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/include -I/include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DHAS_MEMCPY -DHAVE_GUNZIP -DHAVE_BUNZIP2 -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include -c reduce.c --- jpeg.o --- clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/include -I/include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DHAS_MEMCPY -DHAVE_GUNZIP -DHAVE_BUNZIP2 -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include -c jpeg.c --- reduce.o --- reduce.c:164:10: warning: passing 'char *' to parameter of type 'byte *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 164 | lfree((char *) Histogram); | ^~~~~~~~~~~~~~~~~~ ./xli.h:298:18: note: passing argument to parameter 'area' here 298 | void lfree(byte *area); | ^ reduce.c:165:10: warning: passing 'char *' to parameter of type 'byte *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 165 | lfree((char *) Boxes); | ^~~~~~~~~~~~~~ ./xli.h:298:18: note: passing argument to parameter 'area' here 298 | void lfree(byte *area); | ^ reduce.c:166:10: warning: passing 'char *' to parameter of type 'byte *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 166 | lfree((char *) rgbmap); | ^~~~~~~~~~~~~~~ ./xli.h:298:18: note: passing argument to parameter 'area' here 298 | void lfree(byte *area); | ^ reduce.c:198:8: warning: passing 'char *' to parameter of type 'byte *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 198 | lfree((char *) Histogram); | ^~~~~~~~~~~~~~~~~~ ./xli.h:298:18: note: passing argument to parameter 'area' here 298 | void lfree(byte *area); | ^ reduce.c:199:8: warning: passing 'char *' to parameter of type 'byte *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 199 | lfree((char *) Boxes); | ^~~~~~~~~~~~~~ ./xli.h:298:18: note: passing argument to parameter 'area' here 298 | void lfree(byte *area); | ^ reduce.c:205:8: warning: passing 'char *' to parameter of type 'byte *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 205 | lfree((char *) rgbmap); | ^~~~~~~~~~~~~~~ ./xli.h:298:18: note: passing argument to parameter 'area' here 298 | void lfree(byte *area); | ^ reduce.c:1282:9: warning: passing 'char *' to parameter of type 'byte *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 1282 | lfree((char *) nna); | ^~~~~~~~~~~~ ./xli.h:298:18: note: passing argument to parameter 'area' here 298 | void lfree(byte *area); | ^ --- rle.o --- clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/include -I/include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DHAS_MEMCPY -DHAVE_GUNZIP -DHAVE_BUNZIP2 -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include -c rle.c --- rlelib.o --- clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/include -I/include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DHAS_MEMCPY -DHAVE_GUNZIP -DHAVE_BUNZIP2 -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include -c rlelib.c rlelib.c:331:12: warning: cast to 'rle_pixel *' (aka 'unsigned char *') from smaller integer type 'int' [-Wint-to-pointer-cast] 331 | cmap[0] = (rle_pixel *)(nmap +1); | ^~~~~~~~~~~~~~~~~~~~~~ rlelib.c:355:16: warning: cast to 'rle_pixel *' (aka 'unsigned char *') from smaller integer type 'int' [-Wint-to-pointer-cast] 355 | cmap[0] = (rle_pixel *)(nmap+1); | ^~~~~~~~~~~~~~~~~~~~~ rlelib.c:371:16: warning: cast to 'rle_pixel *' (aka 'unsigned char *') from smaller integer type 'int' [-Wint-to-pointer-cast] 371 | cmap[0] = (rle_pixel *)(nmap+1); | ^~~~~~~~~~~~~~~~~~~~~ rlelib.c:391:16: warning: cast to 'rle_pixel *' (aka 'unsigned char *') from smaller integer type 'int' [-Wint-to-pointer-cast] 391 | cmap[0] = (rle_pixel *)(nmap+1); | ^~~~~~~~~~~~~~~~~~~~~ rlelib.c:425:8: warning: passing 'char *' to parameter of type 'byte *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 425 | lfree((char *) gammap); /* clean up */ | ^~~~~~~~~~~~~~~ ./xli.h:298:18: note: passing argument to parameter 'area' here 298 | void lfree(byte *area); | ^ rlelib.c:437:6: warning: cast to smaller integer type 'int' from 'rle_pixel *' (aka 'unsigned char *') [-Wpointer-to-int-cast] 437 | j = (int)cmap[-1]-1; /* recover size of cmap */ | ^~~~~~~~~~~~~ rlelib.c:440:12: warning: passing 'char *' to parameter of type 'byte *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 440 | lfree((char *)cmap[i]); /* free all its elements */ | ^~~~~~~~~~~~~~~ ./xli.h:298:18: note: passing argument to parameter 'area' here 298 | void lfree(byte *area); | ^ rlelib.c:441:8: warning: passing 'char *' to parameter of type 'byte *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 441 | lfree((char *) (--cmap)); /* free it */ | ^~~~~~~~~~~~~~~~~ ./xli.h:298:18: note: passing argument to parameter 'area' here 298 | void lfree(byte *area); | ^ rlelib.c:498:2: warning: add explicit braces to avoid dangling else [-Wdangling-else] 498 | else if ( *v == '=' ) | ^ rlelib.c:764:8: warning: passing 'char *' to parameter of type 'byte *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 764 | lfree((char *)globals->sv_bg_color); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./xli.h:298:18: note: passing argument to parameter 'area' here 298 | void lfree(byte *area); | ^ rlelib.c:766:8: warning: passing 'char *' to parameter of type 'byte *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 766 | lfree((char *)globals->sv_cmap); | ^~~~~~~~~~~~~~~~~~~~~~~~ ./xli.h:298:18: note: passing argument to parameter 'area' here 298 | void lfree(byte *area); | ^ rlelib.c:770:12: warning: passing 'char *' to parameter of type 'byte *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 770 | lfree((char *)*globals->sv_comments); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./xli.h:298:18: note: passing argument to parameter 'area' here 298 | void lfree(byte *area); | ^ rlelib.c:771:8: warning: passing 'char *' to parameter of type 'byte *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 771 | lfree((char *)globals->sv_comments); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./xli.h:298:18: note: passing argument to parameter 'area' here 298 | void lfree(byte *area); | ^ rlelib.c:968:6: warning: add explicit braces to avoid dangling else [-Wdangling-else] 968 | else | ^ --- root.o --- clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/include -I/include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DHAS_MEMCPY -DHAVE_GUNZIP -DHAVE_BUNZIP2 -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include -c root.c --- reduce.o --- 7 warnings generated. --- rotate.o --- clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/include -I/include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DHAS_MEMCPY -DHAVE_GUNZIP -DHAVE_BUNZIP2 -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include -c rotate.c --- rlelib.o --- 14 warnings generated. --- send.o --- clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/include -I/include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DHAS_MEMCPY -DHAVE_GUNZIP -DHAVE_BUNZIP2 -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include -c send.c --- root.o --- root.c:75:5: warning: add explicit braces to avoid dangling else [-Wdangling-else] 75 | } else if (actual_type != None) { | ^ 1 warning generated. --- smooth.o --- clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/include -I/include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DHAS_MEMCPY -DHAVE_GUNZIP -DHAVE_BUNZIP2 -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include -c smooth.c --- send.o --- send.c:139:20: warning: assigning to 'char *' from 'byte *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 139 | xii->ximage->data = | ^ 140 | lmalloc(image->height * xii->ximage->bytes_per_line); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ send.c:395:4: warning: add explicit braces to avoid dangling else [-Wdangling-else] 395 | else { | ^ send.c:588:11: warning: assigning to 'byte *' (aka '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] 588 | dst = xii->ximage->data; | ^ ~~~~~~~~~~~~~~~~~ send.c:641:7: warning: assigning to 'byte *' (aka '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] 641 | data = xii->ximage->data; | ^ ~~~~~~~~~~~~~~~~~ send.c:700:14: warning: assigning to 'byte *' (aka '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] 700 | data = xii->ximage->data; | ^ ~~~~~~~~~~~~~~~~~ --- sunraster.o --- clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/include -I/include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DHAS_MEMCPY -DHAVE_GUNZIP -DHAVE_BUNZIP2 -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include -c sunraster.c --- value.o --- clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/include -I/include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DHAS_MEMCPY -DHAVE_GUNZIP -DHAVE_BUNZIP2 -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include -c value.c --- send.o --- 5 warnings generated. --- window.o --- clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/include -I/include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DHAS_MEMCPY -DHAVE_GUNZIP -DHAVE_BUNZIP2 -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include -c window.c --- xbitmap.o --- clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/include -I/include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DHAS_MEMCPY -DHAVE_GUNZIP -DHAVE_BUNZIP2 -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include -c xbitmap.c --- xli.o --- clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/include -I/include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DHAS_MEMCPY -DHAVE_GUNZIP -DHAVE_BUNZIP2 -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include -c xli.c --- window.o --- window.c:66:23: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] 66 | while ((AlarmWentOff == 0)) { | ~~~~~~~~~~~~~^~~~ window.c:66:23: note: remove extraneous parentheses around the comparison to silence this warning 66 | while ((AlarmWentOff == 0)) { | ~ ^ ~ window.c:66:23: note: use '=' to turn this equality comparison into an assignment 66 | while ((AlarmWentOff == 0)) { | ^~ | = 1 warning generated. --- xpixmap.o --- --- xbitmap.o --- xbitmap.c:74:16: warning: passing 'byte *' (aka '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] 74 | while (zgets((byte *)line, MAX_SIZE, zf) && maxlines-- > 0) { | ^~~~~~~~~~~~ ./xli.h:348:19: note: passing argument to parameter 'buf' here 348 | char *zgets(char *buf, unsigned int size, ZFILE *zf); | ^ xbitmap.c:231:9: warning: passing 'char *' to parameter of type 'byte *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 231 | lfree(title); | ^~~~~ ./xli.h:298:18: note: passing argument to parameter 'area' here 298 | void lfree(byte *area); | ^ --- xpixmap.o --- clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/include -I/include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DHAS_MEMCPY -DHAVE_GUNZIP -DHAVE_BUNZIP2 -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include -c xpixmap.c --- xbitmap.o --- 2 warnings generated. --- xwd.o --- clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/include -I/include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DHAS_MEMCPY -DHAVE_GUNZIP -DHAVE_BUNZIP2 -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include -c xwd.c --- zio.o --- clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/include -I/include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DHAS_MEMCPY -DHAVE_GUNZIP -DHAVE_BUNZIP2 -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include -c zio.c --- xpixmap.o --- xpixmap.c:33:10: warning: passing 'char *' to parameter of type 'byte *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 33 | lfree(ctable[i]); | ^~~~~~~~~ ./xli.h:298:18: note: passing argument to parameter 'area' here 298 | void lfree(byte *area); | ^ xpixmap.c:111:14: warning: passing 'byte *' (aka '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] 111 | if (!zgets((byte *) buf, BUFSIZ - 1, zf)) { | ^~~~~~~~~~~~ ./xli.h:348:19: note: passing argument to parameter 'buf' here 348 | char *zgets(char *buf, unsigned int size, ZFILE *zf); | ^ xpixmap.c:113:11: warning: passing 'char *' to parameter of type 'byte *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 113 | lfree(*imagetitle); | ^~~~~~~~~~~ ./xli.h:298:18: note: passing argument to parameter 'area' here 298 | void lfree(byte *area); | ^ xpixmap.c:119:12: warning: passing 'char *' to parameter of type 'byte *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 119 | lfree(*imagetitle); | ^~~~~~~~~~~ ./xli.h:298:18: note: passing argument to parameter 'area' here 298 | void lfree(byte *area); | ^ xpixmap.c:153:16: warning: passing 'char[1024]' to parameter of type 'const byte *' (aka 'const unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 153 | zunread(zf, buf, strlen(buf)); /* stuff it back so we can read it again */ | ^~~ ./xli.h:347:37: note: passing argument to parameter 'buf' here 347 | void zunread(ZFILE *zf, byte const *buf, int len); | ^ xpixmap.c:168:10: warning: passing 'char *' to parameter of type 'byte *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 168 | lfree(*imagetitle); | ^~~~~~~~~~~ ./xli.h:298:18: note: passing argument to parameter 'area' here 298 | void lfree(byte *area); | ^ xpixmap.c:173:15: warning: passing 'byte *' (aka '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] 173 | if (!zgets((byte *) buf, BUFSIZ - 1, zf)) { | ^~~~~~~~~~~~ ./xli.h:348:19: note: passing argument to parameter 'buf' here 348 | char *zgets(char *buf, unsigned int size, ZFILE *zf); | ^ xpixmap.c:175:12: warning: passing 'char *' to parameter of type 'byte *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 175 | lfree(*imagetitle); | ^~~~~~~~~~~ ./xli.h:298:18: note: passing argument to parameter 'area' here 298 | void lfree(byte *area); | ^ xpixmap.c:189:11: warning: passing 'char *' to parameter of type 'byte *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 189 | lfree(*imagetitle); | ^~~~~~~~~~~ ./xli.h:298:18: note: passing argument to parameter 'area' here 298 | void lfree(byte *area); | ^ xpixmap.c:196:11: warning: passing 'char *' to parameter of type 'byte *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 196 | lfree(*imagetitle); | ^~~~~~~~~~~ ./xli.h:298:18: note: passing argument to parameter 'area' here 298 | void lfree(byte *area); | ^ xpixmap.c:205:12: warning: passing 'char *' to parameter of type 'byte *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 205 | lfree(*imagetitle); | ^~~~~~~~~~~ ./xli.h:298:18: note: passing argument to parameter 'area' here 298 | void lfree(byte *area); | ^ xpixmap.c:213:11: warning: passing 'char *' to parameter of type 'byte *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 213 | lfree(*imagetitle); | ^~~~~~~~~~~ ./xli.h:298:18: note: passing argument to parameter 'area' here 298 | void lfree(byte *area); | ^ xpixmap.c:216:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 216 | } else if (p = rindex(what, '_')) { /* get the name in the image if there is */ | ~~^~~~~~~~~~~~~~~~~~~ xpixmap.c:216:15: note: place parentheses around the assignment to silence this warning 216 | } else if (p = rindex(what, '_')) { /* get the name in the image if there is */ | ^ | ( ) xpixmap.c:216:15: note: use '==' to turn this assignment into an equality comparison 216 | } else if (p = rindex(what, '_')) { /* get the name in the image if there is */ | ^ | == xpixmap.c:222:10: warning: passing 'char *' to parameter of type 'byte *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 222 | lfree(*imagetitle); | ^~~~~~~~~~~ ./xli.h:298:18: note: passing argument to parameter 'area' here 298 | void lfree(byte *area); | ^ xpixmap.c:311:16: warning: passing 'byte *' (aka '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] 311 | if (!zgets((byte *) buf, BUFSIZ - 1, zf)) { | ^~~~~~~~~~~~ ./xli.h:348:19: note: passing argument to parameter 'buf' here 348 | char *zgets(char *buf, unsigned int size, ZFILE *zf); | ^ xpixmap.c:567:8: warning: passing 'char *' to parameter of type 'byte *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 567 | lfree(imagetitle); | ^~~~~~~~~~ ./xli.h:298:18: note: passing argument to parameter 'area' here 298 | void lfree(byte *area); | ^ --- xwd.o --- xwd.c:161:4: warning: add explicit braces to avoid dangling else [-Wdangling-else] 161 | else | ^ xwd.c:391:6: warning: variable 'pixlen' set but not used [-Wunused-but-set-variable] 391 | int pixlen; /* length of pixel in bytes */ | ^ --- xpixmap.o --- 16 warnings generated. --- zoom.o --- clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/include -I/include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DHAS_MEMCPY -DHAVE_GUNZIP -DHAVE_BUNZIP2 -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include -c zoom.c --- xwd.o --- 2 warnings generated. --- ddxli.o --- clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/include -I/include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DHAS_MEMCPY -DHAVE_GUNZIP -DHAVE_BUNZIP2 -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include -c ddxli.c --- zio.o --- zio.c:330:9: warning: passing 'char *' to parameter of type 'byte *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 330 | lfree(zf->filename); | ^~~~~~~~~~~~ ./xli.h:298:18: note: passing argument to parameter 'area' here 298 | void lfree(byte *area); | ^ zio.c:419:10: warning: passing 'char *' to parameter of type 'byte *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 419 | lfree(buf); | ^~~ ./xli.h:298:18: note: passing argument to parameter 'area' here 298 | void lfree(byte *area); | ^ zio.c:441:18: warning: passing 'char[128]' to parameter of type 'byte *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 441 | blen = buflen(uuibuf, UULEN); | ^~~~~~ zio.c:39:25: note: passing argument to parameter 'buf' here 39 | static int buflen(byte *buf, int len); | ^ zio.c:342:7: warning: unused variable 'buf' [-Wunused-variable] 342 | char buf[BUFSIZ]; | ^~~ zio.c:529:6: warning: variable 'sizeaxb' set but not used [-Wunused-but-set-variable] 529 | int sizeaxb; /* size of aux buffer */ | ^ zio.c:606:9: warning: passing 'char *' to parameter of type 'byte *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 606 | lfree(zf->filename); | ^~~~~~~~~~~~ ./xli.h:298:18: note: passing argument to parameter 'area' here 298 | void lfree(byte *area); | ^ 6 warnings generated. --- tga.o --- clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/include -I/include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DHAS_MEMCPY -DHAVE_GUNZIP -DHAVE_BUNZIP2 -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include -c tga.c --- ddxli.o --- ddxli.c:144:15: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 144 | r = hstoi(spec + 1, 1); | ^~~~~~~~ ./xli.h:227:26: note: passing argument to parameter 's' here 227 | int hstoi(unsigned char *s, int n); | ^ ddxli.c:145:15: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 145 | g = hstoi(spec + 2, 1); | ^~~~~~~~ ./xli.h:227:26: note: passing argument to parameter 's' here 227 | int hstoi(unsigned char *s, int n); | ^ ddxli.c:146:15: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 146 | b = hstoi(spec + 3, 1); | ^~~~~~~~ ./xli.h:227:26: note: passing argument to parameter 's' here 227 | int hstoi(unsigned char *s, int n); | ^ ddxli.c:156:15: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 156 | r = hstoi(spec + 1, 2); | ^~~~~~~~ ./xli.h:227:26: note: passing argument to parameter 's' here 227 | int hstoi(unsigned char *s, int n); | ^ ddxli.c:157:15: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 157 | g = hstoi(spec + 3, 2); | ^~~~~~~~ ./xli.h:227:26: note: passing argument to parameter 's' here 227 | int hstoi(unsigned char *s, int n); | ^ ddxli.c:158:15: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 158 | b = hstoi(spec + 5, 2); | ^~~~~~~~ ./xli.h:227:26: note: passing argument to parameter 's' here 227 | int hstoi(unsigned char *s, int n); | ^ ddxli.c:168:15: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 168 | r = hstoi(spec + 1, 3); | ^~~~~~~~ ./xli.h:227:26: note: passing argument to parameter 's' here 227 | int hstoi(unsigned char *s, int n); | ^ ddxli.c:169:15: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 169 | g = hstoi(spec + 4, 3); | ^~~~~~~~ ./xli.h:227:26: note: passing argument to parameter 's' here 227 | int hstoi(unsigned char *s, int n); | ^ ddxli.c:170:15: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 170 | b = hstoi(spec + 7, 3); | ^~~~~~~~ ./xli.h:227:26: note: passing argument to parameter 's' here 227 | int hstoi(unsigned char *s, int n); | ^ ddxli.c:180:15: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 180 | r = hstoi(spec + 1, 4); | ^~~~~~~~ ./xli.h:227:26: note: passing argument to parameter 's' here 227 | int hstoi(unsigned char *s, int n); | ^ ddxli.c:181:15: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 181 | g = hstoi(spec + 5, 4); | ^~~~~~~~ ./xli.h:227:26: note: passing argument to parameter 's' here 227 | int hstoi(unsigned char *s, int n); | ^ ddxli.c:182:15: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 182 | b = hstoi(spec + 9, 4); | ^~~~~~~~ ./xli.h:227:26: note: passing argument to parameter 's' here 227 | int hstoi(unsigned char *s, int n); | ^ --- bmp.o --- clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/include -I/include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DHAS_MEMCPY -DHAVE_GUNZIP -DHAVE_BUNZIP2 -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include -c bmp.c --- ddxli.o --- 12 warnings generated. --- pcd.o --- clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/include -I/include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DHAS_MEMCPY -DHAVE_GUNZIP -DHAVE_BUNZIP2 -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include -c pcd.c --- png.o --- clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/include -I/include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DHAS_MEMCPY -DHAVE_GUNZIP -DHAVE_BUNZIP2 -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include -c png.c --- pcd.o --- pcd.c:987:12: warning: variable 'dp' is uninitialized when used here [-Wuninitialized] 987 | sum += *dp; | ^~ pcd.c:938:11: note: initialize the variable 'dp' to silence this warning 938 | byte *dp; | ^ | = NULL pcd.c:973:7: warning: variable 'col' is uninitialized when used here [-Wuninitialized] 973 | if (col >= w) { | ^~~ pcd.c:940:15: note: initialize the variable 'col' to silence this warning 940 | int row, col; | ^ | = 0 pcd.c:990:11: warning: variable 'wsf' is uninitialized when used here [-Wuninitialized] 990 | col += wsf; | ^~~ pcd.c:939:10: note: initialize the variable 'wsf' to silence this warning 939 | int wsf, wvi; | ^ | = 0 pcd.c:980:9: warning: variable 'hufft' is uninitialized when used here [-Wuninitialized] 980 | sh = hufft[bits].l; | ^~~~~ pcd.c:936:14: note: initialize the variable 'hufft' to silence this warning 936 | huff *hufft; | ^ | = NULL pcd.c:977:7: warning: variable 'huffsz' is uninitialized when used here [-Wuninitialized] 977 | if (huffsz == 12) { | ^~~~~~ pcd.c:937:13: note: initialize the variable 'huffsz' to silence this warning 937 | int huffsz; | ^ | = 0 --- xlito.o --- clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/include -I/include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DHAS_MEMCPY -DHAVE_GUNZIP -DHAVE_BUNZIP2 -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include -c xlito.c --- pcd.o --- 5 warnings generated. --- xli._man --- rm -f xli._man if test -z "" ; then cd `dirname xli` && ln -s `basename xli.man` `basename xli._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" < xli.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/\@\@$/\/' >xli._man; fi --- png.o --- png.c:28:19: warning: passing 'char[8]' to parameter of type 'byte *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 28 | ret = zread(zfp, buf, 8); | ^~~ ./xli.h:345:28: note: passing argument to parameter 'buf' here 345 | int zread(ZFILE *zf, byte *buf, int len); | ^ png.c:34:8: warning: passing 'char[8]' to parameter of type 'png_const_bytep' (aka 'const unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 34 | ret = png_check_sig(buf, 8); | ^~~~~~~~~~~~~~~~~~~~~ /var/tmp/work/graphics/xli/work/.buildlink/include/png.h:940:44: note: expanded from macro 'png_check_sig' 940 | #define png_check_sig(sig, n) (png_sig_cmp((sig), 0, (n)) == 0) /* DEPRECATED */ | ^~~~~ /var/tmp/work/graphics/xli/work/.buildlink/include/png.h:935:21: note: passing argument to parameter 'sig' here 935 | (png_const_bytep sig, size_t start, size_t num_to_check)); | ^ png.c:50:3: warning: format specifies type 'unsigned long' but the argument has type 'png_uint_32' (aka 'unsigned int') [-Wformat] 47 | printf("%s is a%s %lux%lu %d bit deep %s PNG image", | ~~~ | %u 48 | name, 49 | png_get_interlace_type(png, info) ? "n interlaced" : "", 50 | png_get_image_width(png, info), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ png.c:51:3: warning: format specifies type 'unsigned long' but the argument has type 'png_uint_32' (aka 'unsigned int') [-Wformat] 47 | printf("%s is a%s %lux%lu %d bit deep %s PNG image", | ~~~ | %u 48 | name, 49 | png_get_interlace_type(png, info) ? "n interlaced" : "", 50 | png_get_image_width(png, info), 51 | png_get_image_height(png, info), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- xlito._man --- rm -f xlito._man if test -z "" ; then cd `dirname xlito` && ln -s `basename xlito.man` `basename xlito._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" < xlito.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/\@\@$/\/' >xlito._man; fi --- png.o --- 4 warnings generated. --- xli --- rm -f xli clang -o xli -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -L/opt/pkg/lib -L/opt/pkg/lib bright.o clip.o cmuwmrast.o compress.o dither.o faces.o fbm.o fill.o g3.o gif.o halftone.o imagetypes.o img.o mac.o mcidas.o mc_tables.o merge.o misc.o new.o options.o path.o pbm.o pcx.o reduce.o jpeg.o rle.o rlelib.o root.o rotate.o send.o smooth.o sunraster.o value.o window.o xbitmap.o xli.o xpixmap.o xwd.o zio.o zoom.o ddxli.o tga.o bmp.o pcd.o png.o -DHAS_MEMCPY -DHAVE_GUNZIP -DHAVE_BUNZIP2 -lXext -lX11 -L/lib -Wl,-R/opt/pkg/lib -L/lib -Wl,-R/opt/pkg/lib -ljpeg -lpng -lz -lm ld: warning: duplicate -rpath '/opt/pkg/lib' ignored --- xlito --- rm -f xlito clang -o xlito -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -L/opt/pkg/lib -L/opt/pkg/lib xlito.o -lm