=> "/opt/pkg/bin/bmake" ["-C", "/Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-arm64/x11/xmx", "all", "BATCH=1", "DEPENDS_TARGET=/nonexistent"] WARNING: [license.mk] Every package should define a LICENSE. ===> Building for xmx-2.1a7nb9 making all in ./include... making all in ./lib... making all in lib/Xmc... rm -f auth.o debugger/auth.o clang -c -Wall -Wpointer-arith -no-cpp-precomp -fno-common -I../../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -g auth.c -o debugger/auth.o rm -f auth.o clang -c -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -fno-common -I../../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -dynamic auth.c rm -f common.o debugger/common.o clang -c -Wall -Wpointer-arith -no-cpp-precomp -fno-common -I../../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -g -DHASXDMAUTH -DTCPCONN -DUNIXCONN common.c -o debugger/common.o common.c:90:7: warning: call to undeclared function 'warn'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 90 | warn("Xmc_event_push: cannot get a new eventlist element!\n"); | ^ common.c:199:10: warning: call to undeclared function 'warn'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 199 | warn("Xmc_event_convert: not an event!\n"); | ^ common.c:414:16: warning: call to undeclared function 'Xmc_io_error'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 414 | Xmc_io_error(muxp); | ^ common.c:418:13: warning: call to undeclared function 'Xmc_io_error'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 418 | Xmc_io_error(muxp); | ^ common.c:386:19: warning: unused variable 'cp' [-Wunused-variable] 386 | register char *cp; | ^~ common.c:462:13: warning: call to undeclared function 'Xmc_io_error'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 462 | Xmc_io_error(muxp); | ^ common.c:526:10: warning: call to undeclared function 'warn'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 526 | warn("lost XMC sequence number in reply type 0x%x\n", rp->reply); | ^ common.c:535:13: warning: call to undeclared function 'Xmc_error'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 535 | Xmc_error(muxp, (xmcError *)rp); | ^ common.c:593:10: warning: call to undeclared function 'warn'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 593 | warn("Xmc_event: got a reply - can't happen!\n"); | ^ 9 warnings generated. rm -f common.o clang -c -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -fno-common -I../../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -DHASXDMAUTH -DTCPCONN -DUNIXCONN -dynamic common.c common.c:90:7: warning: call to undeclared function 'warn'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 90 | warn("Xmc_event_push: cannot get a new eventlist element!\n"); | ^ common.c:199:10: warning: call to undeclared function 'warn'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 199 | warn("Xmc_event_convert: not an event!\n"); | ^ common.c:414:16: warning: call to undeclared function 'Xmc_io_error'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 414 | Xmc_io_error(muxp); | ^ common.c:418:13: warning: call to undeclared function 'Xmc_io_error'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 418 | Xmc_io_error(muxp); | ^ common.c:386:19: warning: unused variable 'cp' [-Wunused-variable] 386 | register char *cp; | ^~ common.c:462:13: warning: call to undeclared function 'Xmc_io_error'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 462 | Xmc_io_error(muxp); | ^ common.c:526:10: warning: call to undeclared function 'warn'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 526 | warn("lost XMC sequence number in reply type 0x%x\n", rp->reply); | ^ common.c:535:13: warning: call to undeclared function 'Xmc_error'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 535 | Xmc_error(muxp, (xmcError *)rp); | ^ common.c:593:10: warning: call to undeclared function 'warn'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 593 | warn("Xmc_event: got a reply - can't happen!\n"); | ^ 9 warnings generated. rm -f AddDis.o debugger/AddDis.o clang -c -Wall -Wpointer-arith -no-cpp-precomp -fno-common -I../../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -g AddDis.c -o debugger/AddDis.o rm -f AddDis.o clang -c -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -fno-common -I../../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -dynamic AddDis.c rm -f AsgnTptr.o debugger/AsgnTptr.o clang -c -Wall -Wpointer-arith -no-cpp-precomp -fno-common -I../../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -g AsgnTptr.c -o debugger/AsgnTptr.o rm -f AsgnTptr.o clang -c -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -fno-common -I../../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -dynamic AsgnTptr.c rm -f ChMode.o debugger/ChMode.o clang -c -Wall -Wpointer-arith -no-cpp-precomp -fno-common -I../../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -g ChMode.c -o debugger/ChMode.o rm -f ChMode.o clang -c -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -fno-common -I../../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -dynamic ChMode.c rm -f Close.o debugger/Close.o clang -c -Wall -Wpointer-arith -no-cpp-precomp -fno-common -I../../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -g Close.c -o debugger/Close.o Close.c:37:4: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 37 | close(muxp->fd); | ^ Close.c:40:7: warning: call to undeclared library function 'free' with type 'void (void *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 40 | free(muxp->hostname); | ^ Close.c:40:7: note: include the header or explicitly provide a declaration for 'free' Close.c:42:4: warning: call to undeclared function 'Xmc_freebuf'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 42 | Xmc_freebuf(&muxp->inbuf); | ^ 3 warnings generated. rm -f Close.o clang -c -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -fno-common -I../../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -dynamic Close.c Close.c:37:4: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 37 | close(muxp->fd); | ^ Close.c:40:7: warning: call to undeclared library function 'free' with type 'void (void *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 40 | free(muxp->hostname); | ^ Close.c:40:7: note: include the header or explicitly provide a declaration for 'free' Close.c:42:4: warning: call to undeclared function 'Xmc_freebuf'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 42 | Xmc_freebuf(&muxp->inbuf); | ^ 3 warnings generated. rm -f CrGlTptr.o debugger/CrGlTptr.o clang -c -Wall -Wpointer-arith -no-cpp-precomp -fno-common -I../../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -g CrGlTptr.c -o debugger/CrGlTptr.o CrGlTptr.c:64:1: warning: non-void function does not return a value [-Wreturn-type] 64 | } | ^ 1 warning generated. rm -f CrGlTptr.o clang -c -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -fno-common -I../../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -dynamic CrGlTptr.c CrGlTptr.c:64:1: warning: non-void function does not return a value [-Wreturn-type] 64 | } | ^ 1 warning generated. rm -f CrTptr.o debugger/CrTptr.o clang -c -Wall -Wpointer-arith -no-cpp-precomp -fno-common -I../../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -g CrTptr.c -o debugger/CrTptr.o CrTptr.c:63:1: warning: non-void function does not return a value [-Wreturn-type] 63 | } | ^ 1 warning generated. rm -f CrTptr.o clang -c -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -fno-common -I../../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -dynamic CrTptr.c CrTptr.c:63:1: warning: non-void function does not return a value [-Wreturn-type] 63 | } | ^ 1 warning generated. rm -f DestTptr.o debugger/DestTptr.o clang -c -Wall -Wpointer-arith -no-cpp-precomp -fno-common -I../../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -g DestTptr.c -o debugger/DestTptr.o rm -f DestTptr.o clang -c -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -fno-common -I../../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -dynamic DestTptr.c rm -f DispInfo.o debugger/DispInfo.o clang -c -Wall -Wpointer-arith -no-cpp-precomp -fno-common -I../../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -g DispInfo.c -o debugger/DispInfo.o rm -f DispInfo.o clang -c -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -fno-common -I../../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -dynamic DispInfo.c rm -f DropDis.o debugger/DropDis.o clang -c -Wall -Wpointer-arith -no-cpp-precomp -fno-common -I../../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -g DropDis.c -o debugger/DropDis.o rm -f DropDis.o clang -c -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -fno-common -I../../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -dynamic DropDis.c rm -f ErrHndlr.o debugger/ErrHndlr.o clang -c -Wall -Wpointer-arith -no-cpp-precomp -fno-common -I../../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -g ErrHndlr.c -o debugger/ErrHndlr.o rm -f ErrHndlr.o clang -c -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -fno-common -I../../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -dynamic ErrHndlr.c rm -f EvQueued.o debugger/EvQueued.o clang -c -Wall -Wpointer-arith -no-cpp-precomp -fno-common -I../../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -g EvQueued.c -o debugger/EvQueued.o rm -f EvQueued.o clang -c -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -fno-common -I../../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -dynamic EvQueued.c rm -f Flush.o debugger/Flush.o clang -c -Wall -Wpointer-arith -no-cpp-precomp -fno-common -I../../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -g Flush.c -o debugger/Flush.o rm -f Flush.o clang -c -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -fno-common -I../../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -dynamic Flush.c rm -f GetAuth.o debugger/GetAuth.o clang -c -Wall -Wpointer-arith -no-cpp-precomp -fno-common -I../../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -g GetAuth.c -o debugger/GetAuth.o rm -f GetAuth.o clang -c -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -fno-common -I../../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -dynamic GetAuth.c rm -f GetConf.o debugger/GetConf.o clang -c -Wall -Wpointer-arith -no-cpp-precomp -fno-common -I../../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -g GetConf.c -o debugger/GetConf.o rm -f GetConf.o clang -c -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -fno-common -I../../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -dynamic GetConf.c rm -f GetEvent.o debugger/GetEvent.o clang -c -Wall -Wpointer-arith -no-cpp-precomp -fno-common -I../../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -g GetEvent.c -o debugger/GetEvent.o rm -f GetEvent.o clang -c -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -fno-common -I../../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -dynamic GetEvent.c rm -f GetMask.o debugger/GetMask.o clang -c -Wall -Wpointer-arith -no-cpp-precomp -fno-common -I../../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -g GetMask.c -o debugger/GetMask.o rm -f GetMask.o clang -c -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -fno-common -I../../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -dynamic GetMask.c rm -f GetXMask.o debugger/GetXMask.o clang -c -Wall -Wpointer-arith -no-cpp-precomp -fno-common -I../../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -g GetXMask.c -o debugger/GetXMask.o rm -f GetXMask.o clang -c -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -fno-common -I../../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -dynamic GetXMask.c rm -f GrabKbd.o debugger/GrabKbd.o clang -c -Wall -Wpointer-arith -no-cpp-precomp -fno-common -I../../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -g GrabKbd.c -o debugger/GrabKbd.o rm -f GrabKbd.o clang -c -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -fno-common -I../../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -dynamic GrabKbd.c rm -f GrabPtr.o debugger/GrabPtr.o clang -c -Wall -Wpointer-arith -no-cpp-precomp -fno-common -I../../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -g GrabPtr.c -o debugger/GrabPtr.o rm -f GrabPtr.o clang -c -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -fno-common -I../../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -dynamic GrabPtr.c rm -f HideTptr.o debugger/HideTptr.o clang -c -Wall -Wpointer-arith -no-cpp-precomp -fno-common -I../../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -g HideTptr.c -o debugger/HideTptr.o rm -f HideTptr.o clang -c -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -fno-common -I../../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -dynamic HideTptr.c rm -f ListDis.o debugger/ListDis.o clang -c -Wall -Wpointer-arith -no-cpp-precomp -fno-common -I../../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -g ListDis.c -o debugger/ListDis.o rm -f ListDis.o clang -c -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -fno-common -I../../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -dynamic ListDis.c rm -f Open.o debugger/Open.o clang -c -Wall -Wpointer-arith -no-cpp-precomp -fno-common -I../../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -g -DHASXDMAUTH -DTCPCONN -DUNIXCONN Open.c -o debugger/Open.o rm -f Open.o clang -c -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -fno-common -I../../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -DHASXDMAUTH -DTCPCONN -DUNIXCONN -dynamic Open.c rm -f QueryDis.o debugger/QueryDis.o clang -c -Wall -Wpointer-arith -no-cpp-precomp -fno-common -I../../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -g QueryDis.c -o debugger/QueryDis.o rm -f QueryDis.o clang -c -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -fno-common -I../../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -dynamic QueryDis.c rm -f Register.o debugger/Register.o clang -c -Wall -Wpointer-arith -no-cpp-precomp -fno-common -I../../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -g Register.c -o debugger/Register.o rm -f Register.o clang -c -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -fno-common -I../../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -dynamic Register.c rm -f SetAuth.o debugger/SetAuth.o clang -c -Wall -Wpointer-arith -no-cpp-precomp -fno-common -I../../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -g SetAuth.c -o debugger/SetAuth.o rm -f SetAuth.o clang -c -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -fno-common -I../../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -dynamic SetAuth.c rm -f SetCfgMode.o debugger/SetCfgMode.o clang -c -Wall -Wpointer-arith -no-cpp-precomp -fno-common -I../../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -g SetCfgMode.c -o debugger/SetCfgMode.o rm -f SetCfgMode.o clang -c -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -fno-common -I../../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -dynamic SetCfgMode.c rm -f SetConf.o debugger/SetConf.o clang -c -Wall -Wpointer-arith -no-cpp-precomp -fno-common -I../../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -g SetConf.c -o debugger/SetConf.o rm -f SetConf.o clang -c -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -fno-common -I../../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -dynamic SetConf.c rm -f SetDispTag.o debugger/SetDispTag.o clang -c -Wall -Wpointer-arith -no-cpp-precomp -fno-common -I../../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -g SetDispTag.c -o debugger/SetDispTag.o rm -f SetDispTag.o clang -c -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -fno-common -I../../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -dynamic SetDispTag.c rm -f SetMask.o debugger/SetMask.o clang -c -Wall -Wpointer-arith -no-cpp-precomp -fno-common -I../../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -g SetMask.c -o debugger/SetMask.o rm -f SetMask.o clang -c -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -fno-common -I../../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -dynamic SetMask.c rm -f SetXMask.o debugger/SetXMask.o clang -c -Wall -Wpointer-arith -no-cpp-precomp -fno-common -I../../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -g SetXMask.c -o debugger/SetXMask.o rm -f SetXMask.o clang -c -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -fno-common -I../../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -dynamic SetXMask.c rm -f ShareSel.o debugger/ShareSel.o clang -c -Wall -Wpointer-arith -no-cpp-precomp -fno-common -I../../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -g ShareSel.c -o debugger/ShareSel.o rm -f ShareSel.o clang -c -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -fno-common -I../../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -dynamic ShareSel.c rm -f ShowTptr.o debugger/ShowTptr.o clang -c -Wall -Wpointer-arith -no-cpp-precomp -fno-common -I../../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -g ShowTptr.c -o debugger/ShowTptr.o rm -f ShowTptr.o clang -c -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -fno-common -I../../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -dynamic ShowTptr.c rm -f Sync.o debugger/Sync.o clang -c -Wall -Wpointer-arith -no-cpp-precomp -fno-common -I../../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -g Sync.c -o debugger/Sync.o rm -f Sync.o clang -c -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -fno-common -I../../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -dynamic Sync.c rm -f UngrabKbd.o debugger/UngrabKbd.o clang -c -Wall -Wpointer-arith -no-cpp-precomp -fno-common -I../../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -g UngrabKbd.c -o debugger/UngrabKbd.o rm -f UngrabKbd.o clang -c -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -fno-common -I../../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -dynamic UngrabKbd.c rm -f UngrabPtr.o debugger/UngrabPtr.o clang -c -Wall -Wpointer-arith -no-cpp-precomp -fno-common -I../../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -g UngrabPtr.c -o debugger/UngrabPtr.o rm -f UngrabPtr.o clang -c -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -fno-common -I../../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -dynamic UngrabPtr.c rm -f Unreg.o debugger/Unreg.o clang -c -Wall -Wpointer-arith -no-cpp-precomp -fno-common -I../../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -g Unreg.c -o debugger/Unreg.o rm -f Unreg.o clang -c -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -fno-common -I../../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -dynamic Unreg.c rm -f UnshareSel.o debugger/UnshareSel.o clang -c -Wall -Wpointer-arith -no-cpp-precomp -fno-common -I../../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -g UnshareSel.c -o debugger/UnshareSel.o rm -f UnshareSel.o clang -c -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -fno-common -I../../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -dynamic UnshareSel.c rm -f libXmc.2.0.dylib~ + cd . + clang -o ./libXmc.2.0.dylib~ -dynamiclib -L/opt/pkg/lib -install_name /opt/pkg/lib/libXmc.2.dylib -current_version 2.0 -compatibility_version 2.0 auth.o common.o AddDis.o AsgnTptr.o ChMode.o Close.o CrGlTptr.o CrTptr.o DestTptr.o DispInfo.o DropDis.o ErrHndlr.o EvQueued.o Flush.o GetAuth.o GetConf.o GetEvent.o GetMask.o GetXMask.o GrabKbd.o GrabPtr.o HideTptr.o ListDis.o Open.o QueryDis.o Register.o SetAuth.o SetCfgMode.o SetConf.o SetDispTag.o SetMask.o SetXMask.o ShareSel.o ShowTptr.o Sync.o UngrabKbd.o UngrabPtr.o Unreg.o UnshareSel.o + rm -f libXmc.2.dylib + ln -s libXmc.2.0.dylib libXmc.2.dylib + true rm -f libXmc.2.0.dylib mv -f libXmc.2.0.dylib~ libXmc.2.0.dylib + rm -f libXmc.dylib + ln -s libXmc.2.0.dylib libXmc.dylib rm -f libXmc_d.a cd debugger && ar clq ../libXmc_d.a auth.o common.o AddDis.o AsgnTptr.o ChMode.o Close.o CrGlTptr.o CrTptr.o DestTptr.o DispInfo.o DropDis.o ErrHndlr.o EvQueued.o Flush.o GetAuth.o GetConf.o GetEvent.o GetMask.o GetXMask.o GrabKbd.o GrabPtr.o HideTptr.o ListDis.o Open.o QueryDis.o Register.o SetAuth.o SetCfgMode.o SetConf.o SetDispTag.o SetMask.o SetXMask.o ShareSel.o ShowTptr.o Sync.o UngrabKbd.o UngrabPtr.o Unreg.o UnshareSel.o ranlib libXmc_d.a making all in ./server... clang -g -Wall -Wpointer-arith -no-cpp-precomp -I../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN -DRGB_DB=\"/opt/pkg/share/X11/rgb\" -I/opt/pkg/include -c access.c clang -g -Wall -Wpointer-arith -no-cpp-precomp -I../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN -DRGB_DB=\"/opt/pkg/share/X11/rgb\" -I/opt/pkg/include -c am.c am.c:122:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] 122 | } | ^ 1 warning generated. clang -g -Wall -Wpointer-arith -no-cpp-precomp -I../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN -DRGB_DB=\"/opt/pkg/share/X11/rgb\" -I/opt/pkg/include -c args.c args.c:530:7: warning: add explicit braces to avoid dangling else [-Wdangling-else] 530 | else { | ^ 1 warning generated. clang -g -Wall -Wpointer-arith -no-cpp-precomp -I../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN -DRGB_DB=\"/opt/pkg/share/X11/rgb\" -I/opt/pkg/include -c atom.c atom.c:236:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 236 | if (atom = atom_store((char *)(p+1), p->nbytes, p->onlyIfExists)) | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ atom.c:236:13: note: place parentheses around the assignment to silence this warning 236 | if (atom = atom_store((char *)(p+1), p->nbytes, p->onlyIfExists)) | ^ | ( ) atom.c:236:13: note: use '==' to turn this assignment into an equality comparison 236 | if (atom = atom_store((char *)(p+1), p->nbytes, p->onlyIfExists)) | ^ | == atom.c:277:9: warning: call to undeclared function 'err'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 277 | if ( MALLOC(ap, amap_t *, sizeof(amap_t)) || | ^ ./xmx.h:447:4: note: expanded from macro 'MALLOC' 447 | err(-1, "malloc returned zero [%d]\n",(size)) : 0) | ^ atom.c:388:8: warning: call to undeclared function 'err'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 388 | if (CALLOC(nnames, amap_t **, nsize, sizeof(amap_t *))) | ^ ./xmx.h:450:4: note: expanded from macro 'CALLOC' 450 | err(-1, "calloc returned zero [%d*%d]\n",(N),(size)):0) | ^ 3 warnings generated. clang -g -Wall -Wpointer-arith -no-cpp-precomp -I../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN -DRGB_DB=\"/opt/pkg/share/X11/rgb\" -I/opt/pkg/include -c auth.c auth.c:137:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 137 | if (filename = authfile()) | ~~~~~~~~~^~~~~~~~~~~~ auth.c:137:17: note: place parentheses around the assignment to silence this warning 137 | if (filename = authfile()) | ^ | ( ) auth.c:137:17: note: use '==' to turn this assignment into an equality comparison 137 | if (filename = authfile()) | ^ | == auth.c:384:18: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 384 | else if (file = (char *)getenv("XAUTHORITY")) | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ auth.c:384:18: note: place parentheses around the assignment to silence this warning 384 | else if (file = (char *)getenv("XAUTHORITY")) | ^ | ( ) auth.c:384:18: note: use '==' to turn this assignment into an equality comparison 384 | else if (file = (char *)getenv("XAUTHORITY")) | ^ | == auth.c:386:18: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 386 | else if (file = (char *)getenv("HOME")) { | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ auth.c:386:18: note: place parentheses around the assignment to silence this warning 386 | else if (file = (char *)getenv("HOME")) { | ^ | ( ) auth.c:386:18: note: use '==' to turn this assignment into an equality comparison 386 | else if (file = (char *)getenv("HOME")) { | ^ | == auth.c:420:7: warning: add explicit braces to avoid dangling else [-Wdangling-else] 420 | else | ^ auth.c:606:17: warning: unused variable 'i' [-Wunused-variable] 606 | register int i, len, incr; | ^ auth.c:606:25: warning: unused variable 'incr' [-Wunused-variable] 606 | register int i, len, incr; | ^~~~ auth.c:607:19: warning: unused variable 'fmt' [-Wunused-variable] 607 | register char *fmt; | ^~~ auth.c:564:1: warning: unused function 'print_list' [-Wunused-function] 564 | print_list | ^~~~~~~~~~ auth.c:575:1: warning: unused function 'print_rec' [-Wunused-function] 575 | print_rec | ^~~~~~~~~ 9 warnings generated. clang -g -Wall -Wpointer-arith -no-cpp-precomp -I../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN -DRGB_DB=\"/opt/pkg/share/X11/rgb\" -I/opt/pkg/include -c buf.c buf.c:131:27: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 131 | for (chp=bp->head; last=chp;) { /* free extra chunks */ | ~~~~^~~~ buf.c:131:27: note: place parentheses around the assignment to silence this warning 131 | for (chp=bp->head; last=chp;) { /* free extra chunks */ | ^ | ( ) buf.c:131:27: note: use '==' to turn this assignment into an equality comparison 131 | for (chp=bp->head; last=chp;) { /* free extra chunks */ | ^ | == buf.c:174:23: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 174 | for (bp=bfree; last=bp;) { | ~~~~^~~ buf.c:174:23: note: place parentheses around the assignment to silence this warning 174 | for (bp=bfree; last=bp;) { | ^ | ( ) buf.c:174:23: note: use '==' to turn this assignment into an equality comparison 174 | for (bp=bfree; last=bp;) { | ^ | == buf.c:208:11: warning: variable 'nsz' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized] 208 | if (off > chp->sz) | ^~~~~~~~~~~~~ buf.c:224:15: note: uninitialized use occurs here 224 | nchp->sz = nsz; | ^~~ buf.c:208:7: note: remove the 'if' if its condition is always false 208 | if (off > chp->sz) | ^~~~~~~~~~~~~~~~~~ 209 | quit(-1, "buf_split: sanity check - negative split (new)\n"); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 210 | else | ~~~~ 211 | nsz = chp->sz - off; buf.c:197:14: note: initialize the variable 'nsz' to silence this warning 197 | uint_t nsz; | ^ | = 0 buf.c:366:16: warning: call to undeclared function 'read'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 366 | if ((r = read(fd, cp+t, n-t)) < 0) | ^ buf.c:590:25: warning: add explicit braces to avoid dangling else [-Wdangling-else] 590 | else | ^ buf.c:726:17: warning: unused variable 'i' [-Wunused-variable] 726 | register int i, j, cnt; | ^ buf.c:726:20: warning: unused variable 'j' [-Wunused-variable] 726 | register int i, j, cnt; | ^ buf.c:726:23: warning: unused variable 'cnt' [-Wunused-variable] 726 | register int i, j, cnt; | ^~~ buf.c:788:25: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 788 | for (chp=chfree; last=chp;) { | ~~~~^~~~ buf.c:788:25: note: place parentheses around the assignment to silence this warning 788 | for (chp=chfree; last=chp;) { | ^ | ( ) buf.c:788:25: note: use '==' to turn this assignment into an equality comparison 788 | for (chp=chfree; last=chp;) { | ^ | == In file included from buf.c:37: In file included from ./ptc.h:172: ./incl/ptc.pvt.h:9:23: warning: unused function 'new_ptc' [-Wunused-function] 9 | static FUNC( ptc_t *, new_ptc, (void)); | ^~~~~~~ ./../include/funcproto.h:64:36: note: expanded from macro 'FUNC' 64 | #define FUNC(type,name,proto) type name proto | ^~~~ In file included from buf.c:37: In file included from ./ptc.h:172: ./incl/ptc.pvt.h:10:20: warning: unused function 'free_ptc' [-Wunused-function] 10 | static FUNC( void, free_ptc, (ptc_t *)); | ^~~~~~~~ ./../include/funcproto.h:64:36: note: expanded from macro 'FUNC' 64 | #define FUNC(type,name,proto) type name proto | ^~~~ In file included from buf.c:37: In file included from ./ptc.h:172: ./incl/ptc.pvt.h:11:20: warning: unused function 'free_block' [-Wunused-function] 11 | static FUNC( void, free_block, (char *)); | ^~~~~~~~~~ ./../include/funcproto.h:64:36: note: expanded from macro 'FUNC' 64 | #define FUNC(type,name,proto) type name proto | ^~~~ 12 warnings generated. clang -g -Wall -Wpointer-arith -no-cpp-precomp -I../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN -DRGB_DB=\"/opt/pkg/share/X11/rgb\" -I/opt/pkg/include -c cblock.c cblock.c:119:14: warning: call to undeclared function 'err'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 119 | if (MALLOC(cp, char *, vendor_len)) | ^ ./xmx.h:447:4: note: expanded from macro 'MALLOC' 447 | err(-1, "malloc returned zero [%d]\n",(size)) : 0) | ^ cblock.c:123:7: warning: add explicit braces to avoid dangling else [-Wdangling-else] 123 | else { | ^ 2 warnings generated. clang -g -Wall -Wpointer-arith -no-cpp-precomp -I../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN -DRGB_DB=\"/opt/pkg/share/X11/rgb\" -I/opt/pkg/include -c client.c clang -g -Wall -Wpointer-arith -no-cpp-precomp -I../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN -DRGB_DB=\"/opt/pkg/share/X11/rgb\" -I/opt/pkg/include -c cliz.c cliz.c:387:22: warning: unused variable 'chp' [-Wunused-variable] 387 | register chunk_t *chp; | ^~~ cliz.c:498:17: warning: unused variable 'i' [-Wunused-variable] 498 | register int i; | ^ cliz.c:670:19: warning: unused variable 'cxp' [-Wunused-variable] 670 | register cx_t *cxp; | ^~~ cliz.c:697:20: warning: unused variable 'xp' [-Wunused-variable] 697 | register xmc_t *xp = (xmc_t *)df_get_p(dfp); | ^~ cliz.c:727:22: warning: unused variable 'chp' [-Wunused-variable] 727 | register chunk_t *chp; | ^~~ cliz.c:747:19: warning: unused variable 'cxp' [-Wunused-variable] 747 | register cx_t *cxp; | ^~~ cliz.c:777:20: warning: unused variable 'xp' [-Wunused-variable] 777 | register xmc_t *xp = (xmc_t *)df_get_p(dfp); | ^~ cliz.c:807:22: warning: unused variable 'chp' [-Wunused-variable] 807 | register chunk_t *chp; | ^~~ cliz.c:1011:11: warning: unused variable 'atom' [-Wunused-variable] 1011 | atom_t atom; | ^~~~ In file included from cliz.c:57: In file included from ./ptc.h:172: ./incl/ptc.pvt.h:9:23: warning: unused function 'new_ptc' [-Wunused-function] 9 | static FUNC( ptc_t *, new_ptc, (void)); | ^~~~~~~ ./../include/funcproto.h:64:36: note: expanded from macro 'FUNC' 64 | #define FUNC(type,name,proto) type name proto | ^~~~ In file included from cliz.c:57: In file included from ./ptc.h:172: ./incl/ptc.pvt.h:10:20: warning: unused function 'free_ptc' [-Wunused-function] 10 | static FUNC( void, free_ptc, (ptc_t *)); | ^~~~~~~~ ./../include/funcproto.h:64:36: note: expanded from macro 'FUNC' 64 | #define FUNC(type,name,proto) type name proto | ^~~~ In file included from cliz.c:57: In file included from ./ptc.h:172: ./incl/ptc.pvt.h:11:20: warning: unused function 'free_block' [-Wunused-function] 11 | static FUNC( void, free_block, (char *)); | ^~~~~~~~~~ ./../include/funcproto.h:64:36: note: expanded from macro 'FUNC' 64 | #define FUNC(type,name,proto) type name proto | ^~~~ 12 warnings generated. clang -g -Wall -Wpointer-arith -no-cpp-precomp -I../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN -DRGB_DB=\"/opt/pkg/share/X11/rgb\" -I/opt/pkg/include -c cmap.c cmap.c:199:19: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 199 | if (ncmp = cmap_create(ocmp->class, | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ 200 | ocmp->u.pseudo.n, | ~~~~~~~~~~~~~~~~~ 201 | 0, 0, 0, | ~~~~~~~~ 202 | ocmp->alloc, 0)) | ~~~~~~~~~~~~~~~ cmap.c:199:19: note: place parentheses around the assignment to silence this warning 199 | if (ncmp = cmap_create(ocmp->class, | ^ | ( 200 | ocmp->u.pseudo.n, 201 | 0, 0, 0, 202 | ocmp->alloc, 0)) | | ) cmap.c:199:19: note: use '==' to turn this assignment into an equality comparison 199 | if (ncmp = cmap_create(ocmp->class, | ^ | == cmap.c:209:19: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 209 | if (ncmp = cmap_create(ocmp->class, 0, | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 210 | ocmp->u.direct.rmask, | ~~~~~~~~~~~~~~~~~~~~~ 211 | ocmp->u.direct.gmask, | ~~~~~~~~~~~~~~~~~~~~~ 212 | ocmp->u.direct.bmask, | ~~~~~~~~~~~~~~~~~~~~~ 213 | ocmp->alloc, 0)) { | ~~~~~~~~~~~~~~~ cmap.c:209:19: note: place parentheses around the assignment to silence this warning 209 | if (ncmp = cmap_create(ocmp->class, 0, | ^ | ( 210 | ocmp->u.direct.rmask, 211 | ocmp->u.direct.gmask, 212 | ocmp->u.direct.bmask, 213 | ocmp->alloc, 0)) { | | ) cmap.c:209:19: note: use '==' to turn this assignment into an equality comparison 209 | if (ncmp = cmap_create(ocmp->class, 0, | ^ | == cmap.c:975:13: warning: call to undeclared function 'list_bump'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 975 | list_put(lstp, u.longs.l[0]); | ^ ./xmx.h:611:3: note: expanded from macro 'list_put' 611 | list_bump(lp);\ | ^ cmap.c:976:13: warning: call to undeclared function 'list_bump'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 976 | list_put(lstp, u.longs.l[1]); | ^ ./xmx.h:611:3: note: expanded from macro 'list_put' 611 | list_bump(lp);\ | ^ cmap.c:984:13: warning: call to undeclared function 'list_bump'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 984 | list_put(lstp, u.longs.l[0]); | ^ ./xmx.h:611:3: note: expanded from macro 'list_put' 611 | list_bump(lp);\ | ^ cmap.c:985:13: warning: call to undeclared function 'list_bump'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 985 | list_put(lstp, u.longs.l[1]); | ^ ./xmx.h:611:3: note: expanded from macro 'list_put' 611 | list_bump(lp);\ | ^ cmap.c:996:13: warning: call to undeclared function 'list_bump'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 996 | list_put(lstp, u.longs.l[0]); | ^ ./xmx.h:611:3: note: expanded from macro 'list_put' 611 | list_bump(lp);\ | ^ cmap.c:997:13: warning: call to undeclared function 'list_bump'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 997 | list_put(lstp, u.longs.l[1]); | ^ ./xmx.h:611:3: note: expanded from macro 'list_put' 611 | list_bump(lp);\ | ^ cmap.c:1010:13: warning: call to undeclared function 'list_bump'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1010 | list_put(lstp, u.longs.l[0]); | ^ ./xmx.h:611:3: note: expanded from macro 'list_put' 611 | list_bump(lp);\ | ^ cmap.c:1011:13: warning: call to undeclared function 'list_bump'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1011 | list_put(lstp, u.longs.l[1]); | ^ ./xmx.h:611:3: note: expanded from macro 'list_put' 611 | list_bump(lp);\ | ^ cmap.c:1022:13: warning: call to undeclared function 'list_bump'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1022 | list_put(lstp, u.longs.l[0]); | ^ ./xmx.h:611:3: note: expanded from macro 'list_put' 611 | list_bump(lp);\ | ^ cmap.c:1023:13: warning: call to undeclared function 'list_bump'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1023 | list_put(lstp, u.longs.l[1]); | ^ ./xmx.h:611:3: note: expanded from macro 'list_put' 611 | list_bump(lp);\ | ^ cmap.c:1055:13: warning: call to undeclared function 'list_bump'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1055 | list_put(lstp, (u32_t)i); | ^ ./xmx.h:611:3: note: expanded from macro 'list_put' 611 | list_bump(lp);\ | ^ cmap.c:1069:13: warning: call to undeclared function 'list_bump'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1069 | list_put(lstp, (u32_t)pixel); | ^ ./xmx.h:611:3: note: expanded from macro 'list_put' 611 | list_bump(lp);\ | ^ cmap.c:1579:19: warning: unused variable 'diff' [-Wunused-variable] 1579 | register u32_t diff, mindiff; | ^~~~ cmap.c:1579:25: warning: unused variable 'mindiff' [-Wunused-variable] 1579 | register u32_t diff, mindiff; | ^~~~~~~ 16 warnings generated. clang -g -Wall -Wpointer-arith -no-cpp-precomp -I../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN -DRGB_DB=\"/opt/pkg/share/X11/rgb\" -I/opt/pkg/include -c cmapwin.c clang -g -Wall -Wpointer-arith -no-cpp-precomp -I../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN -DRGB_DB=\"/opt/pkg/share/X11/rgb\" -I/opt/pkg/include -c color.c color.c:74:8: warning: unused variable 'new' [-Wunused-variable] 74 | int new; | ^~~ color.c:75:10: warning: unused variable 't' [-Wunused-variable] 75 | u16_t t; | ^ color.c:352:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 352 | while (n = cmap_get_cells(nmp->cmap, CS_ALLOC, 256, cbuf)) | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ color.c:352:13: note: place parentheses around the assignment to silence this warning 352 | while (n = cmap_get_cells(nmp->cmap, CS_ALLOC, 256, cbuf)) | ^ | ( ) color.c:352:13: note: use '==' to turn this assignment into an equality comparison 352 | while (n = cmap_get_cells(nmp->cmap, CS_ALLOC, 256, cbuf)) | ^ | == color.c:283:22: warning: unused variable 'chp' [-Wunused-variable] 283 | register chunk_t *chp; | ^~~ color.c:456:8: warning: unused variable 'n' [-Wunused-variable] 456 | int n, new; | ^ color.c:575:19: warning: unused variable 'seqn' [-Wunused-variable] 575 | register u16_t seqn = (u16_t)df_get_i(dfp); | ^~~~ color.c:605:8: warning: unused variable 'n' [-Wunused-variable] 605 | int n, new; | ^ color.c:665:19: warning: unused variable 'seqn' [-Wunused-variable] 665 | register u16_t seqn = (u16_t)df_get_i(dfp); | ^~~~ color.c:847:19: warning: unused variable 'seqn' [-Wunused-variable] 847 | register u16_t seqn = (u16_t)df_get_i(dfp); | ^~~~ color.c:950:19: warning: unused variable 'seqn' [-Wunused-variable] 950 | register u16_t seqn = (u16_t)df_get_i(dfp); | ^~~~ color.c:1059:10: warning: unused variable 'max' [-Wunused-variable] 1059 | u16_t max, red, green, blue; | ^~~ color.c:1132:10: warning: unused variable 'max' [-Wunused-variable] 1132 | u16_t max, exr, exg, exb; | ^~~ color.c:1231:29: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 1231 | for (nmp=colormaps; mp=nmp;) { | ~~^~~~ color.c:1231:29: note: place parentheses around the assignment to silence this warning 1231 | for (nmp=colormaps; mp=nmp;) { | ^ | ( ) color.c:1231:29: note: use '==' to turn this assignment into an equality comparison 1231 | for (nmp=colormaps; mp=nmp;) { | ^ | == color.c:1292:22: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 1292 | while (n = cmap_get_cells(mp->cmap, CS_ALLOC, 256, cbuf)) | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ color.c:1292:22: note: place parentheses around the assignment to silence this warning 1292 | while (n = cmap_get_cells(mp->cmap, CS_ALLOC, 256, cbuf)) | ^ | ( ) color.c:1292:22: note: use '==' to turn this assignment into an equality comparison 1292 | while (n = cmap_get_cells(mp->cmap, CS_ALLOC, 256, cbuf)) | ^ | == color.c:1336:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 1336 | while (n = cmap_get_cells(mp->cmap, CS_READ, 256, cbuf)) | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ color.c:1336:13: note: place parentheses around the assignment to silence this warning 1336 | while (n = cmap_get_cells(mp->cmap, CS_READ, 256, cbuf)) | ^ | ( ) color.c:1336:13: note: use '==' to turn this assignment into an equality comparison 1336 | while (n = cmap_get_cells(mp->cmap, CS_READ, 256, cbuf)) | ^ | == color.c:1355:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 1355 | if (n = cmap_get_cells(mp->cmap, CS_WRITE, 256, cip)) { | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ color.c:1355:13: note: place parentheses around the assignment to silence this warning 1355 | if (n = cmap_get_cells(mp->cmap, CS_WRITE, 256, cip)) { | ^ | ( ) color.c:1355:13: note: use '==' to turn this assignment into an equality comparison 1355 | if (n = cmap_get_cells(mp->cmap, CS_WRITE, 256, cip)) { | ^ | == color.c:1396:17: warning: unused variable 'i' [-Wunused-variable] 1396 | register int i; | ^ color.c:1397:22: warning: unused variable 'nchp' [-Wunused-variable] 1397 | register chunk_t *nchp; | ^~~~ color.c:1471:17: warning: unused variable 'i' [-Wunused-variable] 1471 | register int i; | ^ color.c:1472:22: warning: unused variable 'nchp' [-Wunused-variable] 1472 | register chunk_t *nchp; | ^~~~ color.c:1475:11: warning: unused variable 'real_mask' [-Wunused-variable] 1475 | mask_t real_mask, *maskp; | ^~~~~~~~~ color.c:1475:23: warning: unused variable 'maskp' [-Wunused-variable] 1475 | mask_t real_mask, *maskp; | ^~~~~ 22 warnings generated. clang -g -Wall -Wpointer-arith -no-cpp-precomp -I../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN -DRGB_DB=\"/opt/pkg/share/X11/rgb\" -I/opt/pkg/include -c connect.c connect.c:80:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 80 | if (cp->swap = (prefix->byteOrder == endian) ? 0 : 1) | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ connect.c:80:17: note: place parentheses around the assignment to silence this warning 80 | if (cp->swap = (prefix->byteOrder == endian) ? 0 : 1) | ^ | ( ) connect.c:80:17: note: use '==' to turn this assignment into an equality comparison 80 | if (cp->swap = (prefix->byteOrder == endian) ? 0 : 1) | ^ | == connect.c:199:13: warning: unused variable 'chp' [-Wunused-variable] 199 | chunk_t *chp; | ^~~ 2 warnings generated. clang -g -Wall -Wpointer-arith -no-cpp-precomp -I../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN -DRGB_DB=\"/opt/pkg/share/X11/rgb\" -I/opt/pkg/include -c cookie.c cookie.c:49:8: warning: call to undeclared function 'err'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 49 | if (MALLOC(cookie, cookie_t *, sizeof(cookie_t))) | ^ ./xmx.h:447:4: note: expanded from macro 'MALLOC' 447 | err(-1, "malloc returned zero [%d]\n",(size)) : 0) | ^ 1 warning generated. clang -g -Wall -Wpointer-arith -no-cpp-precomp -I../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN -DRGB_DB=\"/opt/pkg/share/X11/rgb\" -I/opt/pkg/include -c cursor.c cursor.c:75:8: warning: call to undeclared function 'err'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 75 | if (MALLOC(crp, cursor_t *, sizeof(cursor_t))) { | ^ ./xmx.h:447:4: note: expanded from macro 'MALLOC' 447 | err(-1, "malloc returned zero [%d]\n",(size)) : 0) | ^ cursor.c:144:8: warning: call to undeclared function 'err'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 144 | if (MALLOC(crp, cursor_t *, sizeof(cursor_t))) { | ^ ./xmx.h:447:4: note: expanded from macro 'MALLOC' 447 | err(-1, "malloc returned zero [%d]\n",(size)) : 0) | ^ cursor.c:226:26: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 226 | for (ncrp=cursors; crp=ncrp;) { | ~~~^~~~~ cursor.c:226:26: note: place parentheses around the assignment to silence this warning 226 | for (ncrp=cursors; crp=ncrp;) { | ^ | ( ) cursor.c:226:26: note: use '==' to turn this assignment into an equality comparison 226 | for (ncrp=cursors; crp=ncrp;) { | ^ | == cursor.c:252:26: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 252 | for (ncrp=cursors; crp=ncrp;) { | ~~~^~~~~ cursor.c:252:26: note: place parentheses around the assignment to silence this warning 252 | for (ncrp=cursors; crp=ncrp;) { | ^ | ( ) cursor.c:252:26: note: use '==' to turn this assignment into an equality comparison 252 | for (ncrp=cursors; crp=ncrp;) { | ^ | == cursor.c:367:22: warning: unused variable 'chp' [-Wunused-variable] 367 | register chunk_t *chp; | ^~~ cursor.c:399:17: warning: unused variable 'i' [-Wunused-variable] 399 | register int i; | ^ 6 warnings generated. clang -g -Wall -Wpointer-arith -no-cpp-precomp -I../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN -DRGB_DB=\"/opt/pkg/share/X11/rgb\" -I/opt/pkg/include -c cx.c cx.c:151:25: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 151 | for (cxp=cxfree; last=cxp;) { | ~~~~^~~~ cx.c:151:25: note: place parentheses around the assignment to silence this warning 151 | for (cxp=cxfree; last=cxp;) { | ^ | ( ) cx.c:151:25: note: use '==' to turn this assignment into an equality comparison 151 | for (cxp=cxfree; last=cxp;) { | ^ | == 1 warning generated. clang -g -Wall -Wpointer-arith -no-cpp-precomp -I../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN -DRGB_DB=\"/opt/pkg/share/X11/rgb\" -I/opt/pkg/include -c debug.c debug.c:80:17: warning: unused variable 'i' [-Wunused-variable] 80 | register int i; | ^ debug.c:108:20: warning: unused variable 'len' [-Wunused-variable] 108 | register uint_t len; | ^~~ debug.c:109:25: warning: unused variable 'cp' [-Wunused-variable] 109 | register char *ptr, *cp; | ^~ debug.c:146:17: warning: unused variable 'len' [-Wunused-variable] 146 | register int len; | ^~~ debug.c:171:8: warning: unused variable 'n' [-Wunused-variable] 171 | int n; | ^ debug.c:208:17: warning: unused variable 'i' [-Wunused-variable] 208 | register int i; | ^ debug.c:234:19: warning: unused variable 'ptr' [-Wunused-variable] 234 | register char *ptr, *cp; | ^~~ debug.c:234:25: warning: unused variable 'cp' [-Wunused-variable] 234 | register char *ptr, *cp; | ^~ debug.c:257:17: warning: unused variable 'i' [-Wunused-variable] 257 | register int i; | ^ debug.c:276:8: warning: unused variable 'n' [-Wunused-variable] 276 | int n; | ^ debug.c:74:1: warning: unused function 'addheapmap' [-Wunused-function] 74 | addheapmap | ^~~~~~~~~~ debug.c:229:1: warning: unused function 'verify_block' [-Wunused-function] 229 | verify_block | ^~~~~~~~~~~~ 12 warnings generated. clang -g -Wall -Wpointer-arith -no-cpp-precomp -I../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN -DRGB_DB=\"/opt/pkg/share/X11/rgb\" -I/opt/pkg/include -c df.c df.c:82:30: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 82 | for (blkp=dfp->blkp; lastp=blkp;) { | ~~~~~^~~~~ df.c:82:30: note: place parentheses around the assignment to silence this warning 82 | for (blkp=dfp->blkp; lastp=blkp;) { | ^ | ( ) df.c:82:30: note: use '==' to turn this assignment into an equality comparison 82 | for (blkp=dfp->blkp; lastp=blkp;) { | ^ | == 1 warning generated. clang -g -Wall -Wpointer-arith -no-cpp-precomp -I../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN -DRGB_DB=\"/opt/pkg/share/X11/rgb\" -I/opt/pkg/include -c dprx.c dprx.c:754:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 754 | while (fp = cblock_format(0)) | ~~~^~~~~~~~~~~~~~~~~~ dprx.c:754:14: note: place parentheses around the assignment to silence this warning 754 | while (fp = cblock_format(0)) | ^ | ( ) dprx.c:754:14: note: use '==' to turn this assignment into an equality comparison 754 | while (fp = cblock_format(0)) | ^ | == dprx.c:756:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 756 | while (rp = cblock_root(0)) { | ~~~^~~~~~~~~~~~~~~~ dprx.c:756:14: note: place parentheses around the assignment to silence this warning 756 | while (rp = cblock_root(0)) { | ^ | ( ) dprx.c:756:14: note: use '==' to turn this assignment into an equality comparison 756 | while (rp = cblock_root(0)) { | ^ | == dprx.c:758:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 758 | while (dp = cblock_depth(0)) { | ~~~^~~~~~~~~~~~~~~~~ dprx.c:758:17: note: place parentheses around the assignment to silence this warning 758 | while (dp = cblock_depth(0)) { | ^ | ( ) dprx.c:758:17: note: use '==' to turn this assignment into an equality comparison 758 | while (dp = cblock_depth(0)) { | ^ | == dprx.c:760:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 760 | while (vp = cblock_visual(0)) | ~~~^~~~~~~~~~~~~~~~~~ dprx.c:760:20: note: place parentheses around the assignment to silence this warning 760 | while (vp = cblock_visual(0)) | ^ | ( ) dprx.c:760:20: note: use '==' to turn this assignment into an equality comparison 760 | while (vp = cblock_visual(0)) | ^ | == dprx.c:1798:18: warning: unused variable 'clinum' [-Wunused-variable] 1798 | register u8_t clinum; | ^~~~~~ dprx.c:1799:19: warning: unused variable 'cseq' [-Wunused-variable] 1799 | register u16_t cseq, sseq; | ^~~~ dprx.c:1801:19: warning: unused variable 'type' [-Wunused-variable] 1801 | register u32_t type; | ^~~~ dprx.c:2217:14: warning: call to undeclared library function 'isprint' with type 'int (int)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 2217 | if (isprint(ep->u.u.detail)) | ^ dprx.c:2217:14: note: include the header or explicitly provide a declaration for 'isprint' In file included from dprx.c:40: In file included from ./ptc.h:172: ./incl/ptc.pvt.h:9:23: warning: unused function 'new_ptc' [-Wunused-function] 9 | static FUNC( ptc_t *, new_ptc, (void)); | ^~~~~~~ ./../include/funcproto.h:64:36: note: expanded from macro 'FUNC' 64 | #define FUNC(type,name,proto) type name proto | ^~~~ In file included from dprx.c:40: In file included from ./ptc.h:172: ./incl/ptc.pvt.h:10:20: warning: unused function 'free_ptc' [-Wunused-function] 10 | static FUNC( void, free_ptc, (ptc_t *)); | ^~~~~~~~ ./../include/funcproto.h:64:36: note: expanded from macro 'FUNC' 64 | #define FUNC(type,name,proto) type name proto | ^~~~ In file included from dprx.c:40: In file included from ./ptc.h:172: ./incl/ptc.pvt.h:11:20: warning: unused function 'free_block' [-Wunused-function] 11 | static FUNC( void, free_block, (char *)); | ^~~~~~~~~~ ./../include/funcproto.h:64:36: note: expanded from macro 'FUNC' 64 | #define FUNC(type,name,proto) type name proto | ^~~~ 11 warnings generated. clang -g -Wall -Wpointer-arith -no-cpp-precomp -I../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN -DRGB_DB=\"/opt/pkg/share/X11/rgb\" -I/opt/pkg/include -c dprxmc.c clang -g -Wall -Wpointer-arith -no-cpp-precomp -I../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN -DRGB_DB=\"/opt/pkg/share/X11/rgb\" -I/opt/pkg/include -c ebuf.c ebuf.c:134:36: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 134 | for (nextp=headp->next; lastp=nextp;) { | ~~~~~^~~~~~ ebuf.c:134:36: note: place parentheses around the assignment to silence this warning 134 | for (nextp=headp->next; lastp=nextp;) { | ^ | ( ) ebuf.c:134:36: note: use '==' to turn this assignment into an equality comparison 134 | for (nextp=headp->next; lastp=nextp;) { | ^ | == ebuf.c:205:35: warning: '&&' within '||' [-Wlogical-op-parentheses] 205 | if ( mask & KeyPressMask && iskey || | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~ ~~ ebuf.c:205:35: note: place parentheses around the '&&' expression to silence this warning 205 | if ( mask & KeyPressMask && iskey || | ^ | ( ) ebuf.c:206:26: warning: '&&' within '||' [-Wlogical-op-parentheses] 205 | if ( mask & KeyPressMask && iskey || | ~~ 206 | mask & ButtonPressMask && isbutton) { | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ ebuf.c:206:26: note: place parentheses around the '&&' expression to silence this warning 206 | mask & ButtonPressMask && isbutton) { | ^ | ( ) ebuf.c:238:36: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 238 | for (lastp=0, nextp=headp; ebufp=nextp;) { | ~~~~~^~~~~~ ebuf.c:238:36: note: place parentheses around the assignment to silence this warning 238 | for (lastp=0, nextp=headp; ebufp=nextp;) { | ^ | ( ) ebuf.c:238:36: note: use '==' to turn this assignment into an equality comparison 238 | for (lastp=0, nextp=headp; ebufp=nextp;) { | ^ | == 4 warnings generated. clang -g -Wall -Wpointer-arith -no-cpp-precomp -I../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN -DRGB_DB=\"/opt/pkg/share/X11/rgb\" -I/opt/pkg/include -c error.c clang -g -Wall -Wpointer-arith -no-cpp-precomp -I../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN -DRGB_DB=\"/opt/pkg/share/X11/rgb\" -I/opt/pkg/include -c es.c clang -g -Wall -Wpointer-arith -no-cpp-precomp -I../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN -DRGB_DB=\"/opt/pkg/share/X11/rgb\" -I/opt/pkg/include -c event.c event.c:91:19: warning: call to undeclared function 'quit'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 91 | ep = (xEvent *)buf_data(chp); | ^ ./xmx.h:572:6: note: expanded from macro 'buf_data' 572 | (quit(-1, "invalid chunk"), (char *)0)) | ^ event.c:130:18: warning: call to undeclared function 'quit'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 130 | p = (xEvent *)buf_data(chp); | ^ ./xmx.h:572:6: note: expanded from macro 'buf_data' 572 | (quit(-1, "invalid chunk"), (char *)0)) | ^ event.c:124:17: warning: unused variable 'i' [-Wunused-variable] 124 | register int i, n; | ^ event.c:582:22: warning: unused variable 'chp' [-Wunused-variable] 582 | register chunk_t *chp; | ^~~ 4 warnings generated. clang -g -Wall -Wpointer-arith -no-cpp-precomp -I../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN -DRGB_DB=\"/opt/pkg/share/X11/rgb\" -I/opt/pkg/include -c expos.c expos.c:91:23: warning: call to undeclared function 'quit'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 91 | nep = (xEvent *)buf_data(chp); | ^ ./xmx.h:572:6: note: expanded from macro 'buf_data' 572 | (quit(-1, "invalid chunk"), (char *)0)) | ^ expos.c:103:19: warning: call to undeclared function 'warn'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 103 | DEBUG0(D_EXPOS, "expos_queue: duplicate chunk - ignored\n"); | ^ ./xmx.h:453:45: note: expanded from macro 'DEBUG0' 453 | #define DEBUG0(lev,fmt) if (debug & (lev)) warn(fmt) | ^ expos.c:138:4: warning: call to undeclared function 'warn'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 138 | DEBUG2(D_EXPOS, "expos_queue: queueing %d events for window 0x%x\n", n, wp); | ^ ./xmx.h:455:48: note: expanded from macro 'DEBUG2' 455 | #define DEBUG2(lev,fmt,A,B) if (debug & (lev)) warn(fmt,A,B) | ^ expos.c:81:27: warning: unused variable 'nevents' [-Wunused-variable] 81 | register int nc, i, j, nevents; | ^~~~~~~ expos.c:177:4: warning: call to undeclared function 'warn'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 177 | DEBUG0(D_EXPOS, "expos_timeout: invoked\n"); | ^ ./xmx.h:453:45: note: expanded from macro 'DEBUG0' 453 | #define DEBUG0(lev,fmt) if (debug & (lev)) warn(fmt) | ^ expos.c:178:26: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 178 | for (evp=exphead; last=evp;) { | ~~~~^~~~ expos.c:178:26: note: place parentheses around the assignment to silence this warning 178 | for (evp=exphead; last=evp;) { | ^ | ( ) expos.c:178:26: note: use '==' to turn this assignment into an equality comparison 178 | for (evp=exphead; last=evp;) { | ^ | == expos.c:181:28: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 181 | for (wevp=last; wlast=wevp;) { | ~~~~~^~~~~ expos.c:181:28: note: place parentheses around the assignment to silence this warning 181 | for (wevp=last; wlast=wevp;) { | ^ | ( ) expos.c:181:28: note: use '==' to turn this assignment into an equality comparison 181 | for (wevp=last; wlast=wevp;) { | ^ | == expos.c:228:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 228 | while (last=evp) { | ~~~~^~~~ expos.c:228:15: note: place parentheses around the assignment to silence this warning 228 | while (last=evp) { | ^ | ( ) expos.c:228:15: note: use '==' to turn this assignment into an equality comparison 228 | while (last=evp) { | ^ | == expos.c:251:13: warning: call to undeclared function 'err'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 251 | else if (MALLOC(evp, expvec_t *, sizeof(expvec_t))) | ^ ./xmx.h:447:4: note: expanded from macro 'MALLOC' 447 | err(-1, "malloc returned zero [%d]\n",(size)) : 0) | ^ expos.c:273:25: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 273 | for (evp=evfree; last=evp;) { | ~~~~^~~~ expos.c:273:25: note: place parentheses around the assignment to silence this warning 273 | for (evp=evfree; last=evp;) { | ^ | ( ) expos.c:273:25: note: use '==' to turn this assignment into an equality comparison 273 | for (evp=evfree; last=evp;) { | ^ | == expos.c:268:1: warning: unused function 'free_expvec_freelist' [-Wunused-function] 268 | free_expvec_freelist | ^~~~~~~~~~~~~~~~~~~~ 11 warnings generated. clang -g -Wall -Wpointer-arith -no-cpp-precomp -I../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN -DRGB_DB=\"/opt/pkg/share/X11/rgb\" -I/opt/pkg/include -c ext.c ext.c:196:1: warning: non-void function does not return a value [-Wreturn-type] 196 | } | ^ In file included from ext.c:34: In file included from ./ptc.h:172: ./incl/ptc.pvt.h:9:23: warning: unused function 'new_ptc' [-Wunused-function] 9 | static FUNC( ptc_t *, new_ptc, (void)); | ^~~~~~~ ./../include/funcproto.h:64:36: note: expanded from macro 'FUNC' 64 | #define FUNC(type,name,proto) type name proto | ^~~~ In file included from ext.c:34: In file included from ./ptc.h:172: ./incl/ptc.pvt.h:10:20: warning: unused function 'free_ptc' [-Wunused-function] 10 | static FUNC( void, free_ptc, (ptc_t *)); | ^~~~~~~~ ./../include/funcproto.h:64:36: note: expanded from macro 'FUNC' 64 | #define FUNC(type,name,proto) type name proto | ^~~~ In file included from ext.c:34: In file included from ./ptc.h:172: ./incl/ptc.pvt.h:11:20: warning: unused function 'free_block' [-Wunused-function] 11 | static FUNC( void, free_block, (char *)); | ^~~~~~~~~~ ./../include/funcproto.h:64:36: note: expanded from macro 'FUNC' 64 | #define FUNC(type,name,proto) type name proto | ^~~~ 4 warnings generated. clang -g -Wall -Wpointer-arith -no-cpp-precomp -I../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN -DRGB_DB=\"/opt/pkg/share/X11/rgb\" -I/opt/pkg/include -c focus.c focus.c:161:23: warning: unused variable 'ow' [-Wunused-variable] 161 | register window_t *ow; | ^~ focus.c:413:10: warning: add explicit braces to avoid dangling else [-Wdangling-else] 413 | else | ^ focus.c:452:10: warning: add explicit braces to avoid dangling else [-Wdangling-else] 452 | else | ^ focus.c:443:17: warning: unused variable 'i' [-Wunused-variable] 443 | register int i; | ^ In file included from focus.c:33: In file included from ./ptc.h:172: ./incl/ptc.pvt.h:9:23: warning: unused function 'new_ptc' [-Wunused-function] 9 | static FUNC( ptc_t *, new_ptc, (void)); | ^~~~~~~ ./../include/funcproto.h:64:36: note: expanded from macro 'FUNC' 64 | #define FUNC(type,name,proto) type name proto | ^~~~ In file included from focus.c:33: In file included from ./ptc.h:172: ./incl/ptc.pvt.h:10:20: warning: unused function 'free_ptc' [-Wunused-function] 10 | static FUNC( void, free_ptc, (ptc_t *)); | ^~~~~~~~ ./../include/funcproto.h:64:36: note: expanded from macro 'FUNC' 64 | #define FUNC(type,name,proto) type name proto | ^~~~ In file included from focus.c:33: In file included from ./ptc.h:172: ./incl/ptc.pvt.h:11:20: warning: unused function 'free_block' [-Wunused-function] 11 | static FUNC( void, free_block, (char *)); | ^~~~~~~~~~ ./../include/funcproto.h:64:36: note: expanded from macro 'FUNC' 64 | #define FUNC(type,name,proto) type name proto | ^~~~ 7 warnings generated. clang -g -Wall -Wpointer-arith -no-cpp-precomp -I../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN -DRGB_DB=\"/opt/pkg/share/X11/rgb\" -I/opt/pkg/include -c font.c font.c:59:8: warning: call to undeclared function 'err'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 59 | if (MALLOC(fp, font_t *, sizeof(font_t))) { | ^ ./xmx.h:447:4: note: expanded from macro 'MALLOC' 447 | err(-1, "malloc returned zero [%d]\n",(size)) : 0) | ^ font.c:148:58: warning: call to undeclared function 'quit'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 148 | register xGetFontPathReply *rp = (xGetFontPathReply *)buf_data(chp); | ^ ./xmx.h:572:6: note: expanded from macro 'buf_data' 572 | (quit(-1, "invalid chunk"), (char *)0)) | ^ font.c:148:32: warning: unused variable 'rp' [-Wunused-variable] 148 | register xGetFontPathReply *rp = (xGetFontPathReply *)buf_data(chp); | ^~ font.c:198:11: warning: call to undeclared function 'err'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 198 | if (MALLOC(path, char **, len * sizeof(char *))) { | ^ ./xmx.h:447:4: note: expanded from macro 'MALLOC' 447 | err(-1, "malloc returned zero [%d]\n",(size)) : 0) | ^ font.c:211:11: warning: call to undeclared function 'err'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 211 | if (MALLOC(path[i], char *, len + 2)) { | ^ ./xmx.h:447:4: note: expanded from macro 'MALLOC' 447 | err(-1, "malloc returned zero [%d]\n",(size)) : 0) | ^ font.c:238:22: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 238 | for (nfp=fonts; fp=nfp;) { | ~~^~~~ font.c:238:22: note: place parentheses around the assignment to silence this warning 238 | for (nfp=fonts; fp=nfp;) { | ^ | ( ) font.c:238:22: note: use '==' to turn this assignment into an equality comparison 238 | for (nfp=fonts; fp=nfp;) { | ^ | == font.c:264:22: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 264 | for (nfp=fonts; fp=nfp;) { | ~~^~~~ font.c:264:22: note: place parentheses around the assignment to silence this warning 264 | for (nfp=fonts; fp=nfp;) { | ^ | ( ) font.c:264:22: note: use '==' to turn this assignment into an equality comparison 264 | for (nfp=fonts; fp=nfp;) { | ^ | == font.c:314:22: warning: unused variable 'chp' [-Wunused-variable] 314 | register chunk_t *chp; | ^~~ 8 warnings generated. clang -g -Wall -Wpointer-arith -no-cpp-precomp -I../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN -DRGB_DB=\"/opt/pkg/share/X11/rgb\" -I/opt/pkg/include -c gc.c gc.c:91:24: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 91 | if (pxp = (pixmap_t *)hash_data(vmap, *vp)) | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gc.c:91:24: note: place parentheses around the assignment to silence this warning 91 | if (pxp = (pixmap_t *)hash_data(vmap, *vp)) | ^ | ( ) gc.c:91:24: note: use '==' to turn this assignment into an equality comparison 91 | if (pxp = (pixmap_t *)hash_data(vmap, *vp)) | ^ | == gc.c:99:24: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 99 | if (pxp = (pixmap_t *)hash_data(vmap, *vp)) | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gc.c:99:24: note: place parentheses around the assignment to silence this warning 99 | if (pxp = (pixmap_t *)hash_data(vmap, *vp)) | ^ | ( ) gc.c:99:24: note: use '==' to turn this assignment into an equality comparison 99 | if (pxp = (pixmap_t *)hash_data(vmap, *vp)) | ^ | == gc.c:108:27: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 108 | if (pxp = (pixmap_t *)hash_data(vmap, *vp)) | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gc.c:108:27: note: place parentheses around the assignment to silence this warning 108 | if (pxp = (pixmap_t *)hash_data(vmap, *vp)) | ^ | ( ) gc.c:108:27: note: use '==' to turn this assignment into an equality comparison 108 | if (pxp = (pixmap_t *)hash_data(vmap, *vp)) | ^ | == gc.c:110:19: warning: add explicit braces to avoid dangling else [-Wdangling-else] 110 | else { | ^ gc.c:116:23: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 116 | if (fp = (font_t *)hash_data(vmap, *vp)) | ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gc.c:116:23: note: place parentheses around the assignment to silence this warning 116 | if (fp = (font_t *)hash_data(vmap, *vp)) | ^ | ( ) gc.c:116:23: note: use '==' to turn this assignment into an equality comparison 116 | if (fp = (font_t *)hash_data(vmap, *vp)) | ^ | == gc.c:54:22: warning: unused variable 'chp' [-Wunused-variable] 54 | register chunk_t *chp; | ^~~ gc.c:186:24: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 186 | if (pxp = (pixmap_t *)hash_data(vmap, *vp)) | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gc.c:186:24: note: place parentheses around the assignment to silence this warning 186 | if (pxp = (pixmap_t *)hash_data(vmap, *vp)) | ^ | ( ) gc.c:186:24: note: use '==' to turn this assignment into an equality comparison 186 | if (pxp = (pixmap_t *)hash_data(vmap, *vp)) | ^ | == gc.c:194:24: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 194 | if (pxp = (pixmap_t *)hash_data(vmap, *vp)) | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gc.c:194:24: note: place parentheses around the assignment to silence this warning 194 | if (pxp = (pixmap_t *)hash_data(vmap, *vp)) | ^ | ( ) gc.c:194:24: note: use '==' to turn this assignment into an equality comparison 194 | if (pxp = (pixmap_t *)hash_data(vmap, *vp)) | ^ | == gc.c:204:29: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 204 | else if (pxp = (pixmap_t *)hash_data(vmap, *vp)) | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gc.c:204:29: note: place parentheses around the assignment to silence this warning 204 | else if (pxp = (pixmap_t *)hash_data(vmap, *vp)) | ^ | ( ) gc.c:204:29: note: use '==' to turn this assignment into an equality comparison 204 | else if (pxp = (pixmap_t *)hash_data(vmap, *vp)) | ^ | == gc.c:212:23: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 212 | if (fp = (font_t *)hash_data(vmap, *vp)) | ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gc.c:212:23: note: place parentheses around the assignment to silence this warning 212 | if (fp = (font_t *)hash_data(vmap, *vp)) | ^ | ( ) gc.c:212:23: note: use '==' to turn this assignment into an equality comparison 212 | if (fp = (font_t *)hash_data(vmap, *vp)) | ^ | == gc.c:319:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 319 | for (ngp=gcs; gp=ngp;) { | ~~^~~~ gc.c:319:20: note: place parentheses around the assignment to silence this warning 319 | for (ngp=gcs; gp=ngp;) { | ^ | ( ) gc.c:319:20: note: use '==' to turn this assignment into an equality comparison 319 | for (ngp=gcs; gp=ngp;) { | ^ | == gc.c:393:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 393 | for (ngp=gcs; gp=ngp;) { | ~~^~~~ gc.c:393:20: note: place parentheses around the assignment to silence this warning 393 | for (ngp=gcs; gp=ngp;) { | ^ | ( ) gc.c:393:20: note: use '==' to turn this assignment into an equality comparison 393 | for (ngp=gcs; gp=ngp;) { | ^ | == 12 warnings generated. clang -g -Wall -Wpointer-arith -no-cpp-precomp -I../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN -DRGB_DB=\"/opt/pkg/share/X11/rgb\" -I/opt/pkg/include -c hash.c hash.c:133:13: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 133 | register keyhash, valhash; | ~~~~~~~~ ^ | int hash.c:133:22: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 133 | register keyhash, valhash; | ~~~~~~~~ ^ | int hash.c:155:19: warning: add explicit braces to avoid dangling else [-Wdangling-else] 155 | else | ^ hash.c:162:10: warning: add explicit braces to avoid dangling else [-Wdangling-else] 162 | else | ^ hash.c:214:13: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 214 | register keyhash, valhash; | ~~~~~~~~ ^ | int hash.c:214:22: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 214 | register keyhash, valhash; | ~~~~~~~~ ^ | int hash.c:476:28: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 476 | for (lp=map[i]; ep=lp;) { | ~~^~~ hash.c:476:28: note: place parentheses around the assignment to silence this warning 476 | for (lp=map[i]; ep=lp;) { | ^ | ( ) hash.c:476:28: note: use '==' to turn this assignment into an equality comparison 476 | for (lp=map[i]; ep=lp;) { | ^ | == hash.c:571:54: warning: format specifies type 'unsigned int' but the argument has type 'char *' [-Wformat] 571 | snprintf(dbuf, sizeof(dbuf), ",0x%x", ep->data); | ~~ ^~~~~~~~ | %s /System/Volumes/Data/Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/secure/_stdio.h:60:62: note: expanded from macro 'snprintf' 60 | __builtin___snprintf_chk (str, len, 0, __darwin_obsz(str), __VA_ARGS__) | ^~~~~~~~~~~ hash.c:585:54: warning: format specifies type 'unsigned int' but the argument has type 'char *' [-Wformat] 585 | snprintf(dbuf, sizeof(dbuf), ",0x%x", ep->data); | ~~ ^~~~~~~~ | %s /System/Volumes/Data/Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/secure/_stdio.h:60:62: note: expanded from macro 'snprintf' 60 | __builtin___snprintf_chk (str, len, 0, __darwin_obsz(str), __VA_ARGS__) | ^~~~~~~~~~~ 9 warnings generated. clang -g -Wall -Wpointer-arith -no-cpp-precomp -I../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN -DRGB_DB=\"/opt/pkg/share/X11/rgb\" -I/opt/pkg/include -c host.c host.c:57:8: warning: call to undeclared function 'gethostname'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 57 | if (gethostname(host, MAXHOSTNAMELEN)) | ^ host.c:115:17: warning: call to undeclared library function 'isdigit' with type 'int (int)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 115 | for (cp=pat; isdigit(*cp) || *cp == '.'; cp++); | ^ host.c:115:17: note: include the header or explicitly provide a declaration for 'isdigit' host.c:152:29: warning: call to undeclared function 'inet_addr'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 152 | if ((long)(iaddr = inet_addr(pattern)) != -1) { | ^ host.c:164:25: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 164 | else if (hp = gethostent()) { | ~~~^~~~~~~~~~~~~~ host.c:164:25: note: place parentheses around the assignment to silence this warning 164 | else if (hp = gethostent()) { | ^ | ( ) host.c:164:25: note: use '==' to turn this assignment into an equality comparison 164 | else if (hp = gethostent()) { | ^ | == host.c:182:19: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 182 | else if (hp = gethostbyname(pattern)) { | ~~~^~~~~~~~~~~~~~~~~~~~~~~~ host.c:182:19: note: place parentheses around the assignment to silence this warning 182 | else if (hp = gethostbyname(pattern)) { | ^ | ( ) host.c:182:19: note: use '==' to turn this assignment into an equality comparison 182 | else if (hp = gethostbyname(pattern)) { | ^ | == host.c:151:7: warning: add explicit braces to avoid dangling else [-Wdangling-else] 151 | else if (inetno) { | ^ 6 warnings generated. clang -g -Wall -Wpointer-arith -no-cpp-precomp -I../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN -DRGB_DB=\"/opt/pkg/share/X11/rgb\" -I/opt/pkg/include -c image.c image.c:340:20: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 340 | (*iswapfunc) ( buf_data(ilp->chp[src_imdex]), | ^ 1 warning generated. clang -g -Wall -Wpointer-arith -no-cpp-precomp -I../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN -DRGB_DB=\"/opt/pkg/share/X11/rgb\" -I/opt/pkg/include -c imask.c imask.c:54:8: warning: call to undeclared function 'err'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 54 | if (MALLOC(imp, inmask_t *, sizeof(inmask_t))) | ^ ./xmx.h:447:4: note: expanded from macro 'MALLOC' 447 | err(-1, "malloc returned zero [%d]\n",(size)) : 0) | ^ imask.c:90:11: warning: call to undeclared function 'err'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 90 | if (MALLOC(mp, masknode_t *, sizeof(masknode_t))) | ^ ./xmx.h:447:4: note: expanded from macro 'MALLOC' 447 | err(-1, "malloc returned zero [%d]\n",(size)) : 0) | ^ imask.c:244:24: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 244 | for (mp=imp->mnp; lp=mp;) { | ~~^~~ imask.c:244:24: note: place parentheses around the assignment to silence this warning 244 | for (mp=imp->mnp; lp=mp;) { | ^ | ( ) imask.c:244:24: note: use '==' to turn this assignment into an equality comparison 244 | for (mp=imp->mnp; lp=mp;) { | ^ | == 3 warnings generated. clang -g -Wall -Wpointer-arith -no-cpp-precomp -I../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN -DRGB_DB=\"/opt/pkg/share/X11/rgb\" -I/opt/pkg/include -c inp.c inp.c:326:21: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 326 | else if (gp=pgrabkey( p->u.u.detail, | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~ 327 | p->u.keyButtonPointer.state & MODMASKS)) { | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ inp.c:326:21: note: place parentheses around the assignment to silence this warning 326 | else if (gp=pgrabkey( p->u.u.detail, | ^ | ( 327 | p->u.keyButtonPointer.state & MODMASKS)) { | | ) inp.c:326:21: note: use '==' to turn this assignment into an equality comparison 326 | else if (gp=pgrabkey( p->u.u.detail, | ^ | == inp.c:308:19: warning: unused variable 'x' [-Wunused-variable] 308 | register s16_t x, y; | ^ inp.c:308:22: warning: unused variable 'y' [-Wunused-variable] 308 | register s16_t x, y; | ^ inp.c:474:22: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 474 | else if (gp = pgrabbutton(wp,p->u.u.detail,vkbstat & MODMASKS)) { | ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ inp.c:474:22: note: place parentheses around the assignment to silence this warning 474 | else if (gp = pgrabbutton(wp,p->u.u.detail,vkbstat & MODMASKS)) { | ^ | ( ) inp.c:474:22: note: use '==' to turn this assignment into an equality comparison 474 | else if (gp = pgrabbutton(wp,p->u.u.detail,vkbstat & MODMASKS)) { | ^ | == inp.c:537:20: warning: variable 'y' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized] 537 | if (vptr.cwp == vptr.grabwp) { | ^~~~~~~~~~~~~~~~~~~~~~~ inp.c:545:20: note: uninitialized use occurs here 545 | if (y < 0) | ^ inp.c:537:16: note: remove the 'if' if its condition is always true 537 | if (vptr.cwp == vptr.grabwp) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ inp.c:424:14: note: initialize the variable 'y' to silence this warning 424 | s16_t x, y; | ^ | = 0 inp.c:537:20: warning: variable 'x' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized] 537 | if (vptr.cwp == vptr.grabwp) { | ^~~~~~~~~~~~~~~~~~~~~~~ inp.c:541:20: note: uninitialized use occurs here 541 | if (x < 0) | ^ inp.c:537:16: note: remove the 'if' if its condition is always true 537 | if (vptr.cwp == vptr.grabwp) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ inp.c:424:11: note: initialize the variable 'x' to silence this warning 424 | s16_t x, y; | ^ | = 0 inp.c:679:18: warning: unused variable 'ss' [-Wunused-variable] 679 | register u8_t ss; | ^~ inp.c:902:7: warning: add explicit braces to avoid dangling else [-Wdangling-else] 902 | else if (vptr.sync && vkbd.grabcp && vkbd.grabcp != cp) { | ^ inp.c:1330:7: warning: add explicit braces to avoid dangling else [-Wdangling-else] 1330 | else if (vkbd.sync && vptr.grabcp && vptr.grabcp != cp) { | ^ inp.c:1912:27: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 1912 | for (gp=wp->buttons; lp=gp;) { | ~~^~~ inp.c:1912:27: note: place parentheses around the assignment to silence this warning 1912 | for (gp=wp->buttons; lp=gp;) { | ^ | ( ) inp.c:1912:27: note: use '==' to turn this assignment into an equality comparison 1912 | for (gp=wp->buttons; lp=gp;) { | ^ | == inp.c:1916:24: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 1916 | for (gp=wp->keys; lp=gp;) { | ~~^~~ inp.c:1916:24: note: place parentheses around the assignment to silence this warning 1916 | for (gp=wp->keys; lp=gp;) { | ^ | ( ) inp.c:1916:24: note: use '==' to turn this assignment into an equality comparison 1916 | for (gp=wp->keys; lp=gp;) { | ^ | == inp.c:2049:35: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 2049 | for (pgp=0, ngp=wp->buttons; gp=ngp;) { | ~~^~~~ inp.c:2049:35: note: place parentheses around the assignment to silence this warning 2049 | for (pgp=0, ngp=wp->buttons; gp=ngp;) { | ^ | ( ) inp.c:2049:35: note: use '==' to turn this assignment into an equality comparison 2049 | for (pgp=0, ngp=wp->buttons; gp=ngp;) { | ^ | == inp.c:2061:32: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 2061 | for (pgp=0, ngp=wp->keys; gp=ngp;) { | ~~^~~~ inp.c:2061:32: note: place parentheses around the assignment to silence this warning 2061 | for (pgp=0, ngp=wp->keys; gp=ngp;) { | ^ | ( ) inp.c:2061:32: note: use '==' to turn this assignment into an equality comparison 2061 | for (pgp=0, ngp=wp->keys; gp=ngp;) { | ^ | == inp.c:2035:22: warning: unused variable 'chp' [-Wunused-variable] 2035 | register chunk_t *chp; | ^~~ inp.c:2186:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 2186 | else if (gp = pkeytofocus(wp->parent, detail, mods, gotfocusp)) | ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ inp.c:2186:16: note: place parentheses around the assignment to silence this warning 2186 | else if (gp = pkeytofocus(wp->parent, detail, mods, gotfocusp)) | ^ | ( ) inp.c:2186:16: note: use '==' to turn this assignment into an equality comparison 2186 | else if (gp = pkeytofocus(wp->parent, detail, mods, gotfocusp)) | ^ | == inp.c:2310:22: warning: unused variable 'chp' [-Wunused-variable] 2310 | register chunk_t *chp; | ^~~ inp.c:2352:22: warning: unused variable 'chp' [-Wunused-variable] 2352 | register chunk_t *chp; | ^~~ 17 warnings generated. clang -g -Wall -Wpointer-arith -no-cpp-precomp -I../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN -DRGB_DB=\"/opt/pkg/share/X11/rgb\" -I/opt/pkg/include -c iswap.c In file included from iswap.c:35: ./iswap.h:105:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 105 | extern void iswap_cpy(); | ^ ./incl/iswap.pub.h:1:20: note: conflicting prototype is here 1 | extern FUNC( void, iswap_cpy, (u8_t *, u8_t *, int, int, int, int, int)); | ^ In file included from iswap.c:35: ./iswap.h:106:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 106 | extern void iswap_nib(); | ^ ./incl/iswap.pub.h:2:20: note: conflicting prototype is here 2 | extern FUNC( void, iswap_nib, (u8_t *, u8_t *, int, int, int, int, int)); | ^ In file included from iswap.c:35: ./iswap.h:107:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 107 | extern void iswap___w(); | ^ ./incl/iswap.pub.h:3:20: note: conflicting prototype is here 3 | extern FUNC( void, iswap___w, (u8_t *, u8_t *, int, int, int, int, int)); | ^ In file included from iswap.c:35: ./iswap.h:108:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 108 | extern void iswap__b_(); | ^ ./incl/iswap.pub.h:4:20: note: conflicting prototype is here 4 | extern FUNC( void, iswap__b_, (u8_t *, u8_t *, int, int, int, int, int)); | ^ In file included from iswap.c:35: ./iswap.h:109:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 109 | extern void iswap__b3(); | ^ ./incl/iswap.pub.h:5:20: note: conflicting prototype is here 5 | extern FUNC( void, iswap__b3, (u8_t *, u8_t *, int, int, int, int, int)); | ^ In file included from iswap.c:35: ./iswap.h:110:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 110 | extern void iswap__bw(); | ^ ./incl/iswap.pub.h:6:20: note: conflicting prototype is here 6 | extern FUNC( void, iswap__bw, (u8_t *, u8_t *, int, int, int, int, int)); | ^ In file included from iswap.c:35: ./iswap.h:111:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 111 | extern void iswap_r__(); | ^ ./incl/iswap.pub.h:7:20: note: conflicting prototype is here 7 | extern FUNC( void, iswap_r__, (u8_t *, u8_t *, int, int, int, int, int)); | ^ In file included from iswap.c:35: ./iswap.h:112:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 112 | extern void iswap_r_w(); | ^ ./incl/iswap.pub.h:8:20: note: conflicting prototype is here 8 | extern FUNC( void, iswap_r_w, (u8_t *, u8_t *, int, int, int, int, int)); | ^ In file included from iswap.c:35: ./iswap.h:113:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 113 | extern void iswap_rb_(); | ^ ./incl/iswap.pub.h:9:20: note: conflicting prototype is here 9 | extern FUNC( void, iswap_rb_, (u8_t *, u8_t *, int, int, int, int, int)); | ^ In file included from iswap.c:35: ./iswap.h:114:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 114 | extern void iswap_rbw(); | ^ ./incl/iswap.pub.h:10:20: note: conflicting prototype is here 10 | extern FUNC( void, iswap_rbw, (u8_t *, u8_t *, int, int, int, int, int)); | ^ 10 warnings generated. clang -g -Wall -Wpointer-arith -no-cpp-precomp -I../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN -DRGB_DB=\"/opt/pkg/share/X11/rgb\" -I/opt/pkg/include -c kpm.c kpm.c:45:8: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 45 | static vkeymap; /* index of current key mapping */ | ~~~~~~ ^ | int kpm.c:405:18: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 405 | if (vkc = ktmp->keymap[i]) { | ~~~~^~~~~~~~~~~~~~~~~ kpm.c:405:18: note: place parentheses around the assignment to silence this warning 405 | if (vkc = ktmp->keymap[i]) { | ^ | ( ) kpm.c:405:18: note: use '==' to turn this assignment into an equality comparison 405 | if (vkc = ktmp->keymap[i]) { | ^ | == kpm.c:561:18: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 561 | if (vkc = ktmp->keymap[skc]) { | ~~~~^~~~~~~~~~~~~~~~~~~ kpm.c:561:18: note: place parentheses around the assignment to silence this warning 561 | if (vkc = ktmp->keymap[skc]) { | ^ | ( ) kpm.c:561:18: note: use '==' to turn this assignment into an equality comparison 561 | if (vkc = ktmp->keymap[skc]) { | ^ | == kpm.c:570:18: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 570 | if (vkc = add_mapping(vkm, nspc, ksvec, modmask)) { | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ kpm.c:570:18: note: place parentheses around the assignment to silence this warning 570 | if (vkc = add_mapping(vkm, nspc, ksvec, modmask)) { | ^ | ( ) kpm.c:570:18: note: use '==' to turn this assignment into an equality comparison 570 | if (vkc = add_mapping(vkm, nspc, ksvec, modmask)) { | ^ | == kpm.c:632:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 632 | if (vkc = ktmp->keymap[skc]) { | ~~~~^~~~~~~~~~~~~~~~~~~ kpm.c:632:15: note: place parentheses around the assignment to silence this warning 632 | if (vkc = ktmp->keymap[skc]) { | ^ | ( ) kpm.c:632:15: note: use '==' to turn this assignment into an equality comparison 632 | if (vkc = ktmp->keymap[skc]) { | ^ | == kpm.c:633:19: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 633 | if (nvkc = add_mapping(vkm, nspc, &tmap->keymap[vkc*nspc], | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 634 | tmap->krefs[vkc].modmask)) | ~~~~~~~~~~~~~~~~~~~~~~~~~ kpm.c:633:19: note: place parentheses around the assignment to silence this warning 633 | if (nvkc = add_mapping(vkm, nspc, &tmap->keymap[vkc*nspc], | ^ | ( 634 | tmap->krefs[vkc].modmask)) | | ) kpm.c:633:19: note: use '==' to turn this assignment into an equality comparison 633 | if (nvkc = add_mapping(vkm, nspc, &tmap->keymap[vkc*nspc], | ^ | == kpm.c:641:25: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 641 | if (nvkc = keymap[skc]) | ~~~~~^~~~~~~~~~~~~ kpm.c:641:25: note: place parentheses around the assignment to silence this warning 641 | if (nvkc = keymap[skc]) | ^ | ( ) kpm.c:641:25: note: use '==' to turn this assignment into an equality comparison 641 | if (nvkc = keymap[skc]) | ^ | == kpm.c:912:13: warning: call to undeclared function 'isascii'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 912 | else if (isascii(ksvec[0]) && isascii(ksvec[1])) | ^ kpm.c:917:11: warning: call to undeclared library function 'isupper' with type 'int (int)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 917 | if (isupper(ksvec[1]) && ksvec[0] == tolower(ksvec[1])) | ^ kpm.c:917:11: note: include the header or explicitly provide a declaration for 'isupper' kpm.c:917:44: warning: call to undeclared library function 'tolower' with type 'int (int)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 917 | if (isupper(ksvec[1]) && ksvec[0] == tolower(ksvec[1])) | ^ kpm.c:917:44: note: include the header or explicitly provide a declaration for 'tolower' kpm.c:923:7: warning: add explicit braces to avoid dangling else [-Wdangling-else] 923 | else if (isupper(ksvec[0]) && ksvec[1] == 0) | ^ kpm.c:1147:18: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 1147 | if (vkc = khp->kc[i]) { | ~~~~^~~~~~~~~~~~ kpm.c:1147:18: note: place parentheses around the assignment to silence this warning 1147 | if (vkc = khp->kc[i]) { | ^ | ( ) kpm.c:1147:18: note: use '==' to turn this assignment into an equality comparison 1147 | if (vkc = khp->kc[i]) { | ^ | == kpm.c:1172:21: warning: unused variable 'kc' [-Wunused-variable] 1172 | register kcode_t kc; | ^~ kpm.c:1216:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 1216 | for (; lkhp=khp; khp=khp->next) { | ~~~~^~~~ kpm.c:1216:15: note: place parentheses around the assignment to silence this warning 1216 | for (; lkhp=khp; khp=khp->next) { | ^ | ( ) kpm.c:1216:15: note: use '==' to turn this assignment into an equality comparison 1216 | for (; lkhp=khp; khp=khp->next) { | ^ | == kpm.c:992:1: warning: unused function 'print_vkeymap' [-Wunused-function] 992 | print_vkeymap | ^~~~~~~~~~~~~ kpm.c:1014:1: warning: unused function 'print_modmap' [-Wunused-function] 1014 | print_modmap | ^~~~~~~~~~~~ kpm.c:57:17: warning: unused variable 'khash' [-Wunused-variable] 57 | static khash_t *khash[KEYCODESZ]; | ^~~~~ 17 warnings generated. clang -g -Wall -Wpointer-arith -no-cpp-precomp -I../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN -DRGB_DB=\"/opt/pkg/share/X11/rgb\" -I/opt/pkg/include -c list.c list.c:86:34: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 86 | for (blkp=lp->head->next; last=blkp;) { | ~~~~^~~~~ list.c:86:34: note: place parentheses around the assignment to silence this warning 86 | for (blkp=lp->head->next; last=blkp;) { | ^ | ( ) list.c:86:34: note: use '==' to turn this assignment into an equality comparison 86 | for (blkp=lp->head->next; last=blkp;) { | ^ | == list.c:109:28: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 109 | for (blkp=blkfree; lblkp=blkp;) { | ~~~~~^~~~~ list.c:109:28: note: place parentheses around the assignment to silence this warning 109 | for (blkp=blkfree; lblkp=blkp;) { | ^ | ( ) list.c:109:28: note: use '==' to turn this assignment into an equality comparison 109 | for (blkp=blkfree; lblkp=blkp;) { | ^ | == list.c:115:22: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 115 | for (lp=lfree; llp=lp;) { | ~~~^~~ list.c:115:22: note: place parentheses around the assignment to silence this warning 115 | for (lp=lfree; llp=lp;) { | ^ | ( ) list.c:115:22: note: use '==' to turn this assignment into an equality comparison 115 | for (lp=lfree; llp=lp;) { | ^ | == list.c:194:37: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 194 | for (blkp=lp->head->next; last=blkp;) { | ~~~~^~~~~ list.c:194:37: note: place parentheses around the assignment to silence this warning 194 | for (blkp=lp->head->next; last=blkp;) { | ^ | ( ) list.c:194:37: note: use '==' to turn this assignment into an equality comparison 194 | for (blkp=lp->head->next; last=blkp;) { | ^ | == list.c:318:30: warning: unused variable 'max' [-Wunused-variable] 318 | register int n, beg, cnt, max; | ^~~ 5 warnings generated. clang -g -Wall -Wpointer-arith -no-cpp-precomp -I../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN -DRGB_DB=\"/opt/pkg/share/X11/rgb\" -I/opt/pkg/include -c main.c main.c:79:19: warning: unused variable 'rxp' [-Wunused-variable] 79 | register rx_t *rxp; | ^~~ main.c:80:13: warning: unused variable 'vchp' [-Wunused-variable] 80 | chunk_t *vchp; | ^~~~ In file included from main.c:55: In file included from ./ptc.h:172: ./incl/ptc.pvt.h:9:23: warning: unused function 'new_ptc' [-Wunused-function] 9 | static FUNC( ptc_t *, new_ptc, (void)); | ^~~~~~~ ./../include/funcproto.h:64:36: note: expanded from macro 'FUNC' 64 | #define FUNC(type,name,proto) type name proto | ^~~~ In file included from main.c:55: In file included from ./ptc.h:172: ./incl/ptc.pvt.h:10:20: warning: unused function 'free_ptc' [-Wunused-function] 10 | static FUNC( void, free_ptc, (ptc_t *)); | ^~~~~~~~ ./../include/funcproto.h:64:36: note: expanded from macro 'FUNC' 64 | #define FUNC(type,name,proto) type name proto | ^~~~ In file included from main.c:55: In file included from ./ptc.h:172: ./incl/ptc.pvt.h:11:20: warning: unused function 'free_block' [-Wunused-function] 11 | static FUNC( void, free_block, (char *)); | ^~~~~~~~~~ ./../include/funcproto.h:64:36: note: expanded from macro 'FUNC' 64 | #define FUNC(type,name,proto) type name proto | ^~~~ 5 warnings generated. clang -g -Wall -Wpointer-arith -no-cpp-precomp -I../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN -DRGB_DB=\"/opt/pkg/share/X11/rgb\" -I/opt/pkg/include -c mitauth.c mitauth.c:52:8: warning: call to undeclared function 'err'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 52 | if (MALLOC(np, mit_t *, sizeof(mit_t))) | ^ ./xmx.h:447:4: note: expanded from macro 'MALLOC' 447 | err(-1, "malloc returned zero [%d]\n",(size)) : 0) | ^ 1 warning generated. clang -g -Wall -Wpointer-arith -no-cpp-precomp -I../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN -DRGB_DB=\"/opt/pkg/share/X11/rgb\" -I/opt/pkg/include -c pixmap.c pixmap.c:139:26: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 139 | for (npxp=pixmaps; pxp=npxp;) { | ~~~^~~~~ pixmap.c:139:26: note: place parentheses around the assignment to silence this warning 139 | for (npxp=pixmaps; pxp=npxp;) { | ^ | ( ) pixmap.c:139:26: note: use '==' to turn this assignment into an equality comparison 139 | for (npxp=pixmaps; pxp=npxp;) { | ^ | == pixmap.c:175:22: warning: unused variable 'chp' [-Wunused-variable] 175 | register chunk_t *chp; | ^~~ pixmap.c:231:26: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 231 | for (npxp=pixmaps; pxp=npxp;) { | ~~~^~~~~ pixmap.c:231:26: note: place parentheses around the assignment to silence this warning 231 | for (npxp=pixmaps; pxp=npxp;) { | ^ | ( ) pixmap.c:231:26: note: use '==' to turn this assignment into an equality comparison 231 | for (npxp=pixmaps; pxp=npxp;) { | ^ | == pixmap.c:278:19: warning: unused variable 'pp' [-Wunused-variable] 278 | register pp_t *pp; | ^~ pixmap.c:355:14: warning: variable 'gid' is used uninitialized whenever 'for' loop exits because its condition is false [-Wsometimes-uninitialized] 355 | for (i=0; icid, gid, x,y, width,height, 0, pxp->dwb.depth); | ^~~ pixmap.c:355:14: note: remove the condition if it is always true 355 | for (i=0; inmore, buf_active(bp))) | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pp.c:187:10: note: place parentheses around the assignment to silence this warning 187 | if (n = MIN(pp->nmore, buf_active(bp))) | ^ | ( ) pp.c:187:10: note: use '==' to turn this assignment into an equality comparison 187 | if (n = MIN(pp->nmore, buf_active(bp))) | ^ | == 2 warnings generated. clang -g -Wall -Wpointer-arith -no-cpp-precomp -I../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN -DRGB_DB=\"/opt/pkg/share/X11/rgb\" -I/opt/pkg/include -c prop.c prop.c:86:11: warning: call to undeclared function 'err'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 86 | if (MALLOC(pp, prop_t *, sizeof(prop_t))) | ^ ./xmx.h:447:4: note: expanded from macro 'MALLOC' 447 | err(-1, "malloc returned zero [%d]\n",(size)) : 0) | ^ prop.c:105:11: warning: call to undeclared function 'err'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 105 | if (MALLOC(strp, char *, sz)) | ^ ./xmx.h:447:4: note: expanded from macro 'MALLOC' 447 | err(-1, "malloc returned zero [%d]\n",(size)) : 0) | ^ prop.c:163:25: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 163 | for (np=wp->props; pp=np; lp=pp) { | ~~^~~ prop.c:163:25: note: place parentheses around the assignment to silence this warning 163 | for (np=wp->props; pp=np; lp=pp) { | ^ | ( ) prop.c:163:25: note: use '==' to turn this assignment into an equality comparison 163 | for (np=wp->props; pp=np; lp=pp) { | ^ | == prop.c:364:25: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 364 | for (np=wp->props; pp=np;) { | ~~^~~ prop.c:364:25: note: place parentheses around the assignment to silence this warning 364 | for (np=wp->props; pp=np;) { | ^ | ( ) prop.c:364:25: note: use '==' to turn this assignment into an equality comparison 364 | for (np=wp->props; pp=np;) { | ^ | == prop.c:424:10: warning: add explicit braces to avoid dangling else [-Wdangling-else] 424 | else if (pp->format == 8) { | ^ 5 warnings generated. clang -g -Wall -Wpointer-arith -no-cpp-precomp -I../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN -DRGB_DB=\"/opt/pkg/share/X11/rgb\" -I/opt/pkg/include -c proto.c In file included from proto.c:57: In file included from ./ptc.h:172: ./incl/ptc.pvt.h:9:23: warning: unused function 'new_ptc' [-Wunused-function] 9 | static FUNC( ptc_t *, new_ptc, (void)); | ^~~~~~~ ./../include/funcproto.h:64:36: note: expanded from macro 'FUNC' 64 | #define FUNC(type,name,proto) type name proto | ^~~~ In file included from proto.c:57: In file included from ./ptc.h:172: ./incl/ptc.pvt.h:10:20: warning: unused function 'free_ptc' [-Wunused-function] 10 | static FUNC( void, free_ptc, (ptc_t *)); | ^~~~~~~~ ./../include/funcproto.h:64:36: note: expanded from macro 'FUNC' 64 | #define FUNC(type,name,proto) type name proto | ^~~~ In file included from proto.c:57: In file included from ./ptc.h:172: ./incl/ptc.pvt.h:11:20: warning: unused function 'free_block' [-Wunused-function] 11 | static FUNC( void, free_block, (char *)); | ^~~~~~~~~~ ./../include/funcproto.h:64:36: note: expanded from macro 'FUNC' 64 | #define FUNC(type,name,proto) type name proto | ^~~~ 3 warnings generated. clang -g -Wall -Wpointer-arith -no-cpp-precomp -I../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN -DRGB_DB=\"/opt/pkg/share/X11/rgb\" -I/opt/pkg/include -c ptc.c clang -g -Wall -Wpointer-arith -no-cpp-precomp -I../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN -DRGB_DB=\"/opt/pkg/share/X11/rgb\" -I/opt/pkg/include -c queue.c queue.c:217:23: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 217 | for (qp=qfree; last=qp;) { | ~~~~^~~ queue.c:217:23: note: place parentheses around the assignment to silence this warning 217 | for (qp=qfree; last=qp;) { | ^ | ( ) queue.c:217:23: note: use '==' to turn this assignment into an equality comparison 217 | for (qp=qfree; last=qp;) { | ^ | == queue.c:346:16: warning: add explicit braces to avoid dangling else [-Wdangling-else] 346 | else if (skip < 0) | ^ queue.c:378:21: warning: variable 'ep' set but not used [-Wunused-but-set-variable] 378 | register xEvent *ep; | ^ queue.c:549:21: warning: '&&' within '||' [-Wlogical-op-parentheses] 548 | if ( debug & D_PROTO2 || | ~~ 549 | debug & D_PROTOq && qp->dst.sp == qservp) | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ queue.c:549:21: note: place parentheses around the '&&' expression to silence this warning 549 | debug & D_PROTOq && qp->dst.sp == qservp) | ^ | ( ) queue.c:737:29: warning: arithmetic on a pointer to void is a GNU extension [-Wgnu-pointer-arith] 737 | iov[i].iov_base += r; | ~~~~~~~~~~~~~~~ ^ In file included from queue.c:55: In file included from ./ptc.h:172: ./incl/ptc.pvt.h:9:23: warning: unused function 'new_ptc' [-Wunused-function] 9 | static FUNC( ptc_t *, new_ptc, (void)); | ^~~~~~~ ./../include/funcproto.h:64:36: note: expanded from macro 'FUNC' 64 | #define FUNC(type,name,proto) type name proto | ^~~~ In file included from queue.c:55: In file included from ./ptc.h:172: ./incl/ptc.pvt.h:10:20: warning: unused function 'free_ptc' [-Wunused-function] 10 | static FUNC( void, free_ptc, (ptc_t *)); | ^~~~~~~~ ./../include/funcproto.h:64:36: note: expanded from macro 'FUNC' 64 | #define FUNC(type,name,proto) type name proto | ^~~~ In file included from queue.c:55: In file included from ./ptc.h:172: ./incl/ptc.pvt.h:11:20: warning: unused function 'free_block' [-Wunused-function] 11 | static FUNC( void, free_block, (char *)); | ^~~~~~~~~~ ./../include/funcproto.h:64:36: note: expanded from macro 'FUNC' 64 | #define FUNC(type,name,proto) type name proto | ^~~~ 8 warnings generated. clang -g -Wall -Wpointer-arith -no-cpp-precomp -I../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN -DRGB_DB=\"/opt/pkg/share/X11/rgb\" -I/opt/pkg/include -c reply.c reply.c:101:24: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 101 | if (rxp = rx_get(zrxqp, 0)) | ~~~~^~~~~~~~~~~~~~~~~~ reply.c:101:24: note: place parentheses around the assignment to silence this warning 101 | if (rxp = rx_get(zrxqp, 0)) | ^ | ( ) reply.c:101:24: note: use '==' to turn this assignment into an equality comparison 101 | if (rxp = rx_get(zrxqp, 0)) | ^ | == reply.c:116:18: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 116 | if (chp = pp_process(bp, &sp->pp)) { | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ reply.c:116:18: note: place parentheses around the assignment to silence this warning 116 | if (chp = pp_process(bp, &sp->pp)) { | ^ | ( ) reply.c:116:18: note: use '==' to turn this assignment into an equality comparison 116 | if (chp = pp_process(bp, &sp->pp)) { | ^ | == reply.c:120:21: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 120 | if (rxp = rx_get(rxqp, seqno)) | ~~~~^~~~~~~~~~~~~~~~~~~~~ reply.c:120:21: note: place parentheses around the assignment to silence this warning 120 | if (rxp = rx_get(rxqp, seqno)) | ^ | ( ) reply.c:120:21: note: use '==' to turn this assignment into an equality comparison 120 | if (rxp = rx_get(rxqp, seqno)) | ^ | == reply.c:156:24: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 156 | if (rxp = rx_get(rxqp, seqno)) { | ~~~~^~~~~~~~~~~~~~~~~~~~~ reply.c:156:24: note: place parentheses around the assignment to silence this warning 156 | if (rxp = rx_get(rxqp, seqno)) { | ^ | ( ) reply.c:156:24: note: use '==' to turn this assignment into an equality comparison 156 | if (rxp = rx_get(rxqp, seqno)) { | ^ | == reply.c:157:27: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 157 | if (chp = unmap_error(bp, sp, seqno)) { | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ reply.c:157:27: note: place parentheses around the assignment to silence this warning 157 | if (chp = unmap_error(bp, sp, seqno)) { | ^ | ( ) reply.c:157:27: note: use '==' to turn this assignment into an equality comparison 157 | if (chp = unmap_error(bp, sp, seqno)) { | ^ | == reply.c:166:27: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 166 | if (chp = unmap_error(bp, sp, seqno)) | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ reply.c:166:27: note: place parentheses around the assignment to silence this warning 166 | if (chp = unmap_error(bp, sp, seqno)) | ^ | ( ) reply.c:166:27: note: use '==' to turn this assignment into an equality comparison 166 | if (chp = unmap_error(bp, sp, seqno)) | ^ | == reply.c:199:21: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 199 | if (rxp = rx_get(rxqp, seqno)) { | ~~~~^~~~~~~~~~~~~~~~~~~~~ reply.c:199:21: note: place parentheses around the assignment to silence this warning 199 | if (rxp = rx_get(rxqp, seqno)) { | ^ | ( ) reply.c:199:21: note: use '==' to turn this assignment into an equality comparison 199 | if (rxp = rx_get(rxqp, seqno)) { | ^ | == reply.c:200:24: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 200 | if (chp = unmap_reply(bp,sp,rx_major(rxp),rx_minor(rxp),seqno)){ | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ reply.c:200:24: note: place parentheses around the assignment to silence this warning 200 | if (chp = unmap_reply(bp,sp,rx_major(rxp),rx_minor(rxp),seqno)){ | ^ | ( ) reply.c:200:24: note: use '==' to turn this assignment into an equality comparison 200 | if (chp = unmap_reply(bp,sp,rx_major(rxp),rx_minor(rxp),seqno)){ | ^ | == reply.c:211:24: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 211 | if (chp = unmap_reply(bp, sp, 0, 0, seqno)) | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ reply.c:211:24: note: place parentheses around the assignment to silence this warning 211 | if (chp = unmap_reply(bp, sp, 0, 0, seqno)) | ^ | ( ) reply.c:211:24: note: use '==' to turn this assignment into an equality comparison 211 | if (chp = unmap_reply(bp, sp, 0, 0, seqno)) | ^ | == reply.c:294:26: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 294 | if (dp = (drawable_t *)hash_data(vmap,ev->u.expose.window)) | ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ reply.c:294:26: note: place parentheses around the assignment to silence this warning 294 | if (dp = (drawable_t *)hash_data(vmap,ev->u.expose.window)) | ^ | ( ) reply.c:294:26: note: use '==' to turn this assignment into an equality comparison 294 | if (dp = (drawable_t *)hash_data(vmap,ev->u.expose.window)) | ^ | == reply.c:76:20: warning: unused variable 'seq' [-Wunused-variable] 76 | register int i, seq; | ^~~ reply.c:77:17: warning: unused variable 'clearit' [-Wunused-variable] 77 | register int clearit; | ^~~~~~~ reply.c:86:19: warning: unused variable 'pp' [-Wunused-variable] 86 | register pp_t *pp; | ^~ reply.c:502:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 502 | if (rxp = rx_get(zrxqp, 0)) | ~~~~^~~~~~~~~~~~~~~~~~ reply.c:502:15: note: place parentheses around the assignment to silence this warning 502 | if (rxp = rx_get(zrxqp, 0)) | ^ | ( ) reply.c:502:15: note: use '==' to turn this assignment into an equality comparison 502 | if (rxp = rx_get(zrxqp, 0)) | ^ | == reply.c:519:27: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 519 | if (rxp = rx_get(rxqp, cseqno)) | ~~~~^~~~~~~~~~~~~~~~~~~~~~ reply.c:519:27: note: place parentheses around the assignment to silence this warning 519 | if (rxp = rx_get(rxqp, cseqno)) | ^ | ( ) reply.c:519:27: note: use '==' to turn this assignment into an equality comparison 519 | if (rxp = rx_get(rxqp, cseqno)) | ^ | == reply.c:588:40: warning: unused variable 'p' [-Wunused-variable] 588 | { register xInternAtomReply *p = (xInternAtomReply *)rp; | ^ reply.c:593:41: warning: unused variable 'p' [-Wunused-variable] 593 | { register xGetAtomNameReply *p = (xGetAtomNameReply *)rp; | ^ reply.c:598:41: warning: unused variable 'p' [-Wunused-variable] 598 | { register xGetPropertyReply *p = (xGetPropertyReply *)rp; | ^ reply.c:603:44: warning: unused variable 'p' [-Wunused-variable] 603 | { register xListPropertiesReply *p = | ^ reply.c:616:41: warning: unused variable 'p' [-Wunused-variable] 616 | { register xGrabPointerReply *p = (xGrabPointerReply *)rp; | ^ reply.c:621:42: warning: unused variable 'p' [-Wunused-variable] 621 | { register xGrabKeyboardReply *p = | ^ reply.c:635:45: warning: unused variable 'p' [-Wunused-variable] 635 | { register xGetMotionEventsReply *p = | ^ reply.c:656:41: warning: unused variable 'p' [-Wunused-variable] 656 | { register xQueryKeymapReply *p = (xQueryKeymapReply *)rp; | ^ reply.c:661:39: warning: unused variable 'p' [-Wunused-variable] 661 | { register xQueryFontReply *p = (xQueryFontReply *)rp; | ^ reply.c:667:46: warning: unused variable 'p' [-Wunused-variable] 667 | { register xQueryTextExtentsReply *p = | ^ reply.c:673:39: warning: unused variable 'p' [-Wunused-variable] 673 | { register xListFontsReply *p = (xListFontsReply *)rp; | ^ reply.c:679:47: warning: unused variable 'p' [-Wunused-variable] 679 | { register xListFontsWithInfoReply *p = | ^ reply.c:686:41: warning: unused variable 'p' [-Wunused-variable] 686 | { register xGetFontPathReply *p = | ^ reply.c:708:40: warning: unused variable 'p' [-Wunused-variable] 708 | { register xAllocColorReply *p = (xAllocColorReply *)rp; | ^ reply.c:713:45: warning: unused variable 'p' [-Wunused-variable] 713 | { register xAllocNamedColorReply *p = | ^ reply.c:719:45: warning: unused variable 'p' [-Wunused-variable] 719 | { register xAllocColorCellsReply *p = | ^ reply.c:725:46: warning: unused variable 'p' [-Wunused-variable] 725 | { register xAllocColorPlanesReply *p = | ^ reply.c:731:41: warning: unused variable 'p' [-Wunused-variable] 731 | { register xQueryColorsReply *p = | ^ reply.c:737:41: warning: unused variable 'p' [-Wunused-variable] 737 | { register xLookupColorReply *p = | ^ reply.c:743:43: warning: unused variable 'p' [-Wunused-variable] 743 | { register xQueryBestSizeReply *p = | ^ reply.c:749:44: warning: unused variable 'p' [-Wunused-variable] 749 | { register xQueryExtensionReply *p = | ^ reply.c:755:44: warning: unused variable 'p' [-Wunused-variable] 755 | { register xListExtensionsReply *p = | ^ reply.c:761:48: warning: unused variable 'p' [-Wunused-variable] 761 | { register xGetKeyboardMappingReply *p = | ^ reply.c:767:48: warning: unused variable 'p' [-Wunused-variable] 767 | { register xGetKeyboardControlReply *p = | ^ reply.c:773:47: warning: unused variable 'p' [-Wunused-variable] 773 | { register xGetPointerControlReply *p = | ^ reply.c:779:44: warning: unused variable 'p' [-Wunused-variable] 779 | { register xGetScreenSaverReply *p = | ^ reply.c:785:39: warning: unused variable 'p' [-Wunused-variable] 785 | { register xListHostsReply *p = (xListHostsReply *)rp; | ^ reply.c:790:47: warning: unused variable 'p' [-Wunused-variable] 790 | { register xSetPointerMappingReply *p = | ^ reply.c:796:47: warning: unused variable 'p' [-Wunused-variable] 796 | { register xGetPointerMappingReply *p = | ^ reply.c:802:48: warning: unused variable 'p' [-Wunused-variable] 802 | { register xSetModifierMappingReply *p = | ^ reply.c:808:48: warning: unused variable 'p' [-Wunused-variable] 808 | { register xGetModifierMappingReply *p = | ^ In file included from reply.c:46: In file included from ./ptc.h:172: ./incl/ptc.pvt.h:9:23: warning: unused function 'new_ptc' [-Wunused-function] 9 | static FUNC( ptc_t *, new_ptc, (void)); | ^~~~~~~ ./../include/funcproto.h:64:36: note: expanded from macro 'FUNC' 64 | #define FUNC(type,name,proto) type name proto | ^~~~ In file included from reply.c:46: In file included from ./ptc.h:172: ./incl/ptc.pvt.h:10:20: warning: unused function 'free_ptc' [-Wunused-function] 10 | static FUNC( void, free_ptc, (ptc_t *)); | ^~~~~~~~ ./../include/funcproto.h:64:36: note: expanded from macro 'FUNC' 64 | #define FUNC(type,name,proto) type name proto | ^~~~ In file included from reply.c:46: In file included from ./ptc.h:172: ./incl/ptc.pvt.h:11:20: warning: unused function 'free_block' [-Wunused-function] 11 | static FUNC( void, free_block, (char *)); | ^~~~~~~~~~ ./../include/funcproto.h:64:36: note: expanded from macro 'FUNC' 64 | #define FUNC(type,name,proto) type name proto | ^~~~ 49 warnings generated. clang -g -Wall -Wpointer-arith -no-cpp-precomp -I../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN -DRGB_DB=\"/opt/pkg/share/X11/rgb\" -I/opt/pkg/include -c request.c request.c:148:18: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 148 | if (chp = pp_process(bp, &cp->pp)) { | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ request.c:148:18: note: place parentheses around the assignment to silence this warning 148 | if (chp = pp_process(bp, &cp->pp)) { | ^ | ( ) request.c:148:18: note: use '==' to turn this assignment into an equality comparison 148 | if (chp = pp_process(bp, &cp->pp)) { | ^ | == request.c:501:31: warning: unused variable 'p' [-Wunused-variable] 501 | { register xReq *p = (xReq *)rp; | ^ request.c:509:31: warning: unused variable 'p' [-Wunused-variable] 509 | { register xReq *p = (xReq *)rp; | ^ request.c:539:42: warning: unused variable 'p' [-Wunused-variable] 539 | { register xWarpPointerReq *p = (xWarpPointerReq *)rp; | ^ request.c:553:31: warning: unused variable 'p' [-Wunused-variable] 553 | { register xReq *p = (xReq *)rp; | ^ request.c:609:40: warning: unused variable 'p' [-Wunused-variable] 609 | { register xListFontsReq *p = (xListFontsReq *)rp; | ^ request.c:618:40: warning: unused variable 'p' [-Wunused-variable] 618 | { register xListFontsReq *p = (xListFontsReq *)rp; | ^ request.c:635:31: warning: unused variable 'p' [-Wunused-variable] 635 | { register xReq *p = (xReq *)rp; | ^ request.c:1003:23: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 1003 | if (mp = color_free(cp, p)) { | ~~~^~~~~~~~~~~~~~~~~~~ request.c:1003:23: note: place parentheses around the assignment to silence this warning 1003 | if (mp = color_free(cp, p)) { | ^ | ( ) request.c:1003:23: note: use '==' to turn this assignment into an equality comparison 1003 | if (mp = color_free(cp, p)) { | ^ | == request.c:1017:23: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 1017 | if (mp = color_store(cp, p)) { | ~~~^~~~~~~~~~~~~~~~~~~~ request.c:1017:23: note: place parentheses around the assignment to silence this warning 1017 | if (mp = color_store(cp, p)) { | ^ | ( ) request.c:1017:23: note: use '==' to turn this assignment into an equality comparison 1017 | if (mp = color_store(cp, p)) { | ^ | == request.c:1031:23: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 1031 | if (mp = color_store_named(cp, p)) { | ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ request.c:1031:23: note: place parentheses around the assignment to silence this warning 1031 | if (mp = color_store_named(cp, p)) { | ^ | ( ) request.c:1031:23: note: use '==' to turn this assignment into an equality comparison 1031 | if (mp = color_store_named(cp, p)) { | ^ | == request.c:1145:52: warning: unused variable 'p' [-Wunused-variable] 1145 | { register xChangeKeyboardMappingReq *p = | ^ request.c:1152:31: warning: unused variable 'p' [-Wunused-variable] 1152 | { register xReq *p = (xReq *)rp; | ^ request.c:1161:35: warning: unused variable 'p' [-Wunused-variable] 1161 | { register xBellReq *p = (xBellReq *)rp; | ^ request.c:1168:51: warning: unused variable 'p' [-Wunused-variable] 1168 | { register xChangePointerControlReq *p = | ^ request.c:1175:31: warning: unused variable 'p' [-Wunused-variable] 1175 | { register xReq *p = (xReq *)rp; | ^ request.c:1184:45: warning: unused variable 'p' [-Wunused-variable] 1184 | { register xSetScreenSaverReq *p = (xSetScreenSaverReq *)rp; | ^ request.c:1191:31: warning: unused variable 'p' [-Wunused-variable] 1191 | { register xReq *p = (xReq *)rp; | ^ request.c:1207:40: warning: unused variable 'p' [-Wunused-variable] 1207 | { register xListHostsReq *p = (xListHostsReq *)rp; | ^ request.c:1236:19: warning: add explicit braces to avoid dangling else [-Wdangling-else] 1236 | else | ^ request.c:1259:41: warning: unused variable 'p' [-Wunused-variable] 1259 | { register xChangeModeReq *p = (xChangeModeReq *)rp; | ^ request.c:1295:31: warning: unused variable 'p' [-Wunused-variable] 1295 | { register xReq *p = (xReq *)rp; | ^ In file included from request.c:48: In file included from ./ptc.h:172: ./incl/ptc.pvt.h:9:23: warning: unused function 'new_ptc' [-Wunused-function] 9 | static FUNC( ptc_t *, new_ptc, (void)); | ^~~~~~~ ./../include/funcproto.h:64:36: note: expanded from macro 'FUNC' 64 | #define FUNC(type,name,proto) type name proto | ^~~~ In file included from request.c:48: In file included from ./ptc.h:172: ./incl/ptc.pvt.h:10:20: warning: unused function 'free_ptc' [-Wunused-function] 10 | static FUNC( void, free_ptc, (ptc_t *)); | ^~~~~~~~ ./../include/funcproto.h:64:36: note: expanded from macro 'FUNC' 64 | #define FUNC(type,name,proto) type name proto | ^~~~ In file included from request.c:48: In file included from ./ptc.h:172: ./incl/ptc.pvt.h:11:20: warning: unused function 'free_block' [-Wunused-function] 11 | static FUNC( void, free_block, (char *)); | ^~~~~~~~~~ ./../include/funcproto.h:64:36: note: expanded from macro 'FUNC' 64 | #define FUNC(type,name,proto) type name proto | ^~~~ 25 warnings generated. clang -g -Wall -Wpointer-arith -no-cpp-precomp -I../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN -DRGB_DB=\"/opt/pkg/share/X11/rgb\" -I/opt/pkg/include -c rgb.c rgb.c:101:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 101 | if (rgb.ndbm = dbm_open(dbname, 0, 0)) | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ rgb.c:101:17: note: place parentheses around the assignment to silence this warning 101 | if (rgb.ndbm = dbm_open(dbname, 0, 0)) | ^ | ( ) rgb.c:101:17: note: use '==' to turn this assignment into an equality comparison 101 | if (rgb.ndbm = dbm_open(dbname, 0, 0)) | ^ | == rgb.c:146:11: warning: call to undeclared library function 'isdigit' with type 'int (int)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 146 | if (isdigit(*cp)) { | ^ rgb.c:146:11: note: include the header or explicitly provide a declaration for 'isdigit' rgb.c:248:12: warning: call to undeclared library function 'isspace' with type 'int (int)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 248 | if (!isspace(cp[j])) | ^ rgb.c:248:12: note: include the header or explicitly provide a declaration for 'isspace' rgb.c:249:14: warning: call to undeclared library function 'isupper' with type 'int (int)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 249 | if (isupper(cp[j])) | ^ rgb.c:249:14: note: include the header or explicitly provide a declaration for 'isupper' rgb.c:250:23: warning: call to undeclared library function 'tolower' with type 'int (int)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 250 | cp[i++] = tolower(cp[j]); | ^ rgb.c:250:23: note: include the header or explicitly provide a declaration for 'tolower' rgb.c:251:10: warning: add explicit braces to avoid dangling else [-Wdangling-else] 251 | else | ^ 6 warnings generated. clang -g -Wall -Wpointer-arith -no-cpp-precomp -I../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN -DRGB_DB=\"/opt/pkg/share/X11/rgb\" -I/opt/pkg/include -c root.c root.c:71:17: warning: unused variable 'i' [-Wunused-variable] 71 | register int i, dynamic, alloc; | ^ root.c:72:22: warning: unused variable 'chp' [-Wunused-variable] 72 | register chunk_t *chp; | ^~~ root.c:102:1: warning: non-void function does not return a value [-Wreturn-type] 102 | } | ^ root.c:130:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 130 | while (n = cmap_get_cells(vscreen.wp->mp->cmap, CS_ALL, 256, cbuf)){ | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ root.c:130:13: note: place parentheses around the assignment to silence this warning 130 | while (n = cmap_get_cells(vscreen.wp->mp->cmap, CS_ALL, 256, cbuf)){ | ^ | ( ) root.c:130:13: note: use '==' to turn this assignment into an equality comparison 130 | while (n = cmap_get_cells(vscreen.wp->mp->cmap, CS_ALL, 256, cbuf)){ | ^ | == root.c:152:1: warning: non-void function does not return a value [-Wreturn-type] 152 | } | ^ root.c:227:15: warning: unused variable 'cvec' [-Wunused-variable] 227 | xColorItem cvec[2]; | ^~~~ root.c:233:17: warning: unused variable 'rootweave' [-Wunused-variable] 233 | static u16_t rootweave[] = { | ^~~~~~~~~ root.c:363:1: warning: non-void function does not return a value [-Wreturn-type] 363 | } | ^ 8 warnings generated. clang -g -Wall -Wpointer-arith -no-cpp-precomp -I../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN -DRGB_DB=\"/opt/pkg/share/X11/rgb\" -I/opt/pkg/include -c rs.c clang -g -Wall -Wpointer-arith -no-cpp-precomp -I../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN -DRGB_DB=\"/opt/pkg/share/X11/rgb\" -I/opt/pkg/include -c rx.c rx.c:87:28: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 87 | for (rxp=rxqp->out; last=rxp;) { | ~~~~^~~~ rx.c:87:28: note: place parentheses around the assignment to silence this warning 87 | for (rxp=rxqp->out; last=rxp;) { | ^ | ( ) rx.c:87:28: note: use '==' to turn this assignment into an equality comparison 87 | for (rxp=rxqp->out; last=rxp;) { | ^ | == rx.c:135:7: warning: add explicit braces to avoid dangling else [-Wdangling-else] 135 | else | ^ rx.c:305:48: warning: '&&' within '||' [-Wlogical-op-parentheses] 305 | if (debug & D_PROTO3 || debug & D_PROTOq && sp == qservp) | ~~ ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ rx.c:305:48: note: place parentheses around the '&&' expression to silence this warning 305 | if (debug & D_PROTO3 || debug & D_PROTOq && sp == qservp) | ^ | ( ) rx.c:308:10: warning: add explicit braces to avoid dangling else [-Wdangling-else] 308 | else { | ^ rx.c:400:25: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 400 | for (rxp=rxfree; last=rxp;) { | ~~~~^~~~ rx.c:400:25: note: place parentheses around the assignment to silence this warning 400 | for (rxp=rxfree; last=rxp;) { | ^ | ( ) rx.c:400:25: note: use '==' to turn this assignment into an equality comparison 400 | for (rxp=rxfree; last=rxp;) { | ^ | == 5 warnings generated. clang -g -Wall -Wpointer-arith -no-cpp-precomp -I../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN -DRGB_DB=\"/opt/pkg/share/X11/rgb\" -I/opt/pkg/include -c sel.c sel.c:87:11: warning: call to undeclared function 'err'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 87 | if (MALLOC(sp, sel_t *, sizeof(sel_t))) | ^ ./xmx.h:447:4: note: expanded from macro 'MALLOC' 447 | err(-1, "malloc returned zero [%d]\n",(size)) : 0) | ^ sel.c:211:31: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 211 | for (sp=selmap[i]; lp=sp;) { | ~~^~~ sel.c:211:31: note: place parentheses around the assignment to silence this warning 211 | for (sp=selmap[i]; lp=sp;) { | ^ | ( ) sel.c:211:31: note: use '==' to turn this assignment into an equality comparison 211 | for (sp=selmap[i]; lp=sp;) { | ^ | == sel.c:235:16: warning: format specifies type 'unsigned int' but the argument has type 'client_t *' (aka 'struct _client_t *') [-Wformat] 234 | printf(" name(%d)\tcp(%x)\twp(%x)\ttime(%d)\n", | ~~ 235 | sp->name, sp->cp, sp->wp, sp->time); | ^~~~~~ sel.c:235:24: warning: format specifies type 'unsigned int' but the argument has type 'window_t *' (aka 'struct _window_t *') [-Wformat] 234 | printf(" name(%d)\tcp(%x)\twp(%x)\ttime(%d)\n", | ~~ 235 | sp->name, sp->cp, sp->wp, sp->time); | ^~~~~~ sel.c:235:32: warning: format specifies type 'int' but the argument has type 'etime_t' [-Wformat] 234 | printf(" name(%d)\tcp(%x)\twp(%x)\ttime(%d)\n", | ~~ 235 | sp->name, sp->cp, sp->wp, sp->time); | ^~~~~~~~ 5 warnings generated. clang -g -Wall -Wpointer-arith -no-cpp-precomp -I../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN -DRGB_DB=\"/opt/pkg/share/X11/rgb\" -I/opt/pkg/include -c server.c server.c:81:10: warning: add explicit braces to avoid dangling else [-Wdangling-else] 81 | else | ^ server.c:187:19: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 187 | if (sp->taglen = taglen) { | ~~~~~~~~~~~^~~~~~~~ server.c:187:19: note: place parentheses around the assignment to silence this warning 187 | if (sp->taglen = taglen) { | ^ | ( ) server.c:187:19: note: use '==' to turn this assignment into an equality comparison 187 | if (sp->taglen = taglen) { | ^ | == 2 warnings generated. clang -g -Wall -Wpointer-arith -no-cpp-precomp -I../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN -DRGB_DB=\"/opt/pkg/share/X11/rgb\" -I/opt/pkg/include -c shape.c shape.c:85:1: warning: non-void function does not return a value [-Wreturn-type] 85 | } | ^ shape.c:128:1: warning: non-void function does not return a value [-Wreturn-type] 128 | } | ^ shape.c:139:1: warning: non-void function does not return a value [-Wreturn-type] 139 | } | ^ shape.c:155:1: warning: non-void function does not return a value [-Wreturn-type] 155 | } | ^ shape.c:166:1: warning: non-void function does not return a value [-Wreturn-type] 166 | } | ^ shape.c:180:1: warning: non-void function does not return a value [-Wreturn-type] 180 | } | ^ shape.c:193:1: warning: non-void function does not return a value [-Wreturn-type] 193 | } | ^ shape.c:206:1: warning: non-void function does not return a value [-Wreturn-type] 206 | } | ^ shape.c:220:1: warning: non-void function does not return a value [-Wreturn-type] 220 | } | ^ In file included from shape.c:38: In file included from ./ptc.h:172: ./incl/ptc.pvt.h:9:23: warning: unused function 'new_ptc' [-Wunused-function] 9 | static FUNC( ptc_t *, new_ptc, (void)); | ^~~~~~~ ./../include/funcproto.h:64:36: note: expanded from macro 'FUNC' 64 | #define FUNC(type,name,proto) type name proto | ^~~~ In file included from shape.c:38: In file included from ./ptc.h:172: ./incl/ptc.pvt.h:10:20: warning: unused function 'free_ptc' [-Wunused-function] 10 | static FUNC( void, free_ptc, (ptc_t *)); | ^~~~~~~~ ./../include/funcproto.h:64:36: note: expanded from macro 'FUNC' 64 | #define FUNC(type,name,proto) type name proto | ^~~~ In file included from shape.c:38: In file included from ./ptc.h:172: ./incl/ptc.pvt.h:11:20: warning: unused function 'free_block' [-Wunused-function] 11 | static FUNC( void, free_block, (char *)); | ^~~~~~~~~~ ./../include/funcproto.h:64:36: note: expanded from macro 'FUNC' 64 | #define FUNC(type,name,proto) type name proto | ^~~~ 12 warnings generated. clang -g -Wall -Wpointer-arith -no-cpp-precomp -I../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN -DRGB_DB=\"/opt/pkg/share/X11/rgb\" -I/opt/pkg/include -c sm.c sm.c:99:29: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 99 | for (smbp=smp->head; last=smbp;) { | ~~~~^~~~~ sm.c:99:29: note: place parentheses around the assignment to silence this warning 99 | for (smbp=smp->head; last=smbp;) { | ^ | ( ) sm.c:99:29: note: use '==' to turn this assignment into an equality comparison 99 | for (smbp=smp->head; last=smbp;) { | ^ | == 1 warning generated. clang -g -Wall -Wpointer-arith -no-cpp-precomp -I../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN -DRGB_DB=\"/opt/pkg/share/X11/rgb\" -I/opt/pkg/include -c socket.c socket.c:86:11: warning: call to undeclared function 'umask'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 86 | umsk = umask(0); | ^ socket.c:87:9: warning: call to undeclared function 'mkdir'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 87 | if (!mkdir(X_UNIX_DIR, 0777)) | ^ socket.c:88:7: warning: call to undeclared function 'chmod'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 88 | chmod(X_UNIX_DIR, 0777); | ^ socket.c:113:11: warning: call to undeclared function 'umask'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 113 | umsk = umask(0); | ^ socket.c:114:9: warning: call to undeclared function 'mkdir'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 114 | if (!mkdir(XMC_UNIX_DIR, 0777)) | ^ socket.c:115:7: warning: call to undeclared function 'chmod'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 115 | chmod(XMC_UNIX_DIR, 0777); | ^ socket.c:137:13: warning: call to undeclared function 'unlink'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 137 | (void)unlink(xpath); | ^ socket.c:169:10: warning: call to undeclared function 'unlink'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 169 | (void)unlink(usock.sun_path); | ^ socket.c:199:7: warning: call to undeclared function 'sleep'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 199 | sleep(10); | ^ socket.c:270:34: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] 270 | if ((ns = accept(s, &addr.sa, &addrlen)) < 0) | ^~~~~~~~ /System/Volumes/Data/Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/socket.h:708:73: note: passing argument to parameter here 708 | int accept(int, struct sockaddr * __restrict, socklen_t * __restrict) | ^ socket.c:327:36: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] 327 | if (getpeername(s, &addr.sa, &addrlen)) | ^~~~~~~~ /System/Volumes/Data/Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/socket.h:712:78: note: passing argument to parameter here 712 | int getpeername(int, struct sockaddr * __restrict, socklen_t * __restrict) | ^ socket.c:425:16: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 425 | (void)close(s); | ^ 12 warnings generated. clang -g -Wall -Wpointer-arith -no-cpp-precomp -I../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN -DRGB_DB=\"/opt/pkg/share/X11/rgb\" -I/opt/pkg/include -c sres.c sres.c:318:24: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 318 | for (vp=visuals; lvp=vp;) { | ~~~^~~ sres.c:318:24: note: place parentheses around the assignment to silence this warning 318 | for (vp=visuals; lvp=vp;) { | ^ | ( ) sres.c:318:24: note: use '==' to turn this assignment into an equality comparison 318 | for (vp=visuals; lvp=vp;) { | ^ | == 1 warning generated. clang -g -Wall -Wpointer-arith -no-cpp-precomp -I../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN -DRGB_DB=\"/opt/pkg/share/X11/rgb\" -I/opt/pkg/include -c sv.c sv.c:63:13: warning: call to undeclared function 'err'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 63 | else if (MALLOC(svp, sv_t *, sizeof(sv_t))) | ^ ./xmx.h:447:4: note: expanded from macro 'MALLOC' 447 | err(-1, "malloc returned zero [%d]\n",(size)) : 0) | ^ sv.c:92:25: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 92 | for (svp=svfree; last=svp;) { | ~~~~^~~~ sv.c:92:25: note: place parentheses around the assignment to silence this warning 92 | for (svp=svfree; last=svp;) { | ^ | ( ) sv.c:92:25: note: use '==' to turn this assignment into an equality comparison 92 | for (svp=svfree; last=svp;) { | ^ | == 2 warnings generated. clang -g -Wall -Wpointer-arith -no-cpp-precomp -I../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN -DRGB_DB=\"/opt/pkg/share/X11/rgb\" -I/opt/pkg/include -c swap.c swap.c:332:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 332 | while (rp = cblock_root(0)) { | ~~~^~~~~~~~~~~~~~~~ swap.c:332:17: note: place parentheses around the assignment to silence this warning 332 | while (rp = cblock_root(0)) { | ^ | ( ) swap.c:332:17: note: use '==' to turn this assignment into an equality comparison 332 | while (rp = cblock_root(0)) { | ^ | == swap.c:333:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 333 | while (dp = cblock_depth(0)) { | ~~~^~~~~~~~~~~~~~~~~ swap.c:333:20: note: place parentheses around the assignment to silence this warning 333 | while (dp = cblock_depth(0)) { | ^ | ( ) swap.c:333:20: note: use '==' to turn this assignment into an equality comparison 333 | while (dp = cblock_depth(0)) { | ^ | == swap.c:334:23: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 334 | while (vp = cblock_visual(0)) { | ~~~^~~~~~~~~~~~~~~~~~ swap.c:334:23: note: place parentheses around the assignment to silence this warning 334 | while (vp = cblock_visual(0)) { | ^ | ( ) swap.c:334:23: note: use '==' to turn this assignment into an equality comparison 334 | while (vp = cblock_visual(0)) { | ^ | == In file included from swap.c:33: In file included from ./ptc.h:172: ./incl/ptc.pvt.h:9:23: warning: unused function 'new_ptc' [-Wunused-function] 9 | static FUNC( ptc_t *, new_ptc, (void)); | ^~~~~~~ ./../include/funcproto.h:64:36: note: expanded from macro 'FUNC' 64 | #define FUNC(type,name,proto) type name proto | ^~~~ In file included from swap.c:33: In file included from ./ptc.h:172: ./incl/ptc.pvt.h:10:20: warning: unused function 'free_ptc' [-Wunused-function] 10 | static FUNC( void, free_ptc, (ptc_t *)); | ^~~~~~~~ ./../include/funcproto.h:64:36: note: expanded from macro 'FUNC' 64 | #define FUNC(type,name,proto) type name proto | ^~~~ In file included from swap.c:33: In file included from ./ptc.h:172: ./incl/ptc.pvt.h:11:20: warning: unused function 'free_block' [-Wunused-function] 11 | static FUNC( void, free_block, (char *)); | ^~~~~~~~~~ ./../include/funcproto.h:64:36: note: expanded from macro 'FUNC' 64 | #define FUNC(type,name,proto) type name proto | ^~~~ 6 warnings generated. clang -g -Wall -Wpointer-arith -no-cpp-precomp -I../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN -DRGB_DB=\"/opt/pkg/share/X11/rgb\" -I/opt/pkg/include -c time.c time.c:57:7: warning: add explicit braces to avoid dangling else [-Wdangling-else] 57 | else | ^ 1 warning generated. clang -g -Wall -Wpointer-arith -no-cpp-precomp -I../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN -DRGB_DB=\"/opt/pkg/share/X11/rgb\" -I/opt/pkg/include -c tptr.c tptr.c:91:18: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 91 | if (rtpimp = new_tpim(1)) | ~~~~~~~^~~~~~~~~~~~~ tptr.c:91:18: note: place parentheses around the assignment to silence this warning 91 | if (rtpimp = new_tpim(1)) | ^ | ( ) tptr.c:91:18: note: use '==' to turn this assignment into an equality comparison 91 | if (rtpimp = new_tpim(1)) | ^ | == tptr.c:94:7: warning: add explicit braces to avoid dangling else [-Wdangling-else] 94 | else | ^ tptr.c:299:17: warning: unused variable 'i' [-Wunused-variable] 299 | register int i, j; | ^ tptr.c:299:20: warning: unused variable 'j' [-Wunused-variable] 299 | register int i, j; | ^ tptr.c:790:17: warning: unused variable 'i' [-Wunused-variable] 790 | register int i; | ^ tptr.c:800:1: warning: non-void function does not return a value [-Wreturn-type] 800 | } | ^ tptr.c:1048:7: warning: add explicit braces to avoid dangling else [-Wdangling-else] 1048 | else | ^ 7 warnings generated. clang -g -Wall -Wpointer-arith -no-cpp-precomp -I../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN -DRGB_DB=\"/opt/pkg/share/X11/rgb\" -I/opt/pkg/include -c util.c util.c:188:19: warning: call to undeclared function 'getppid'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 188 | if ((ppid = getppid()) > 0) { | ^ util.c:196:10: warning: call to undeclared function 'sleep'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 196 | sleep(1); | ^ util.c:231:7: warning: add explicit braces to avoid dangling else [-Wdangling-else] 231 | else { /* is top occluded by any sibling ? */ | ^ util.c:413:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 413 | if (cp = (char *)index(string, ':')) { | ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ util.c:413:14: note: place parentheses around the assignment to silence this warning 413 | if (cp = (char *)index(string, ':')) { | ^ | ( ) util.c:413:14: note: use '==' to turn this assignment into an equality comparison 413 | if (cp = (char *)index(string, ':')) { | ^ | == util.c:424:20: warning: call to undeclared library function 'isdigit' with type 'int (int)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 424 | for (i=0; isdigit(*cp); i++, cp++) | ^ util.c:424:20: note: include the header or explicitly provide a declaration for 'isdigit' util.c:444:26: warning: call to undeclared library function 'isalnum' with type 'int (int)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 444 | for (i=0; isalnum(*cp); i++, cp++) | ^ util.c:444:26: note: include the header or explicitly provide a declaration for 'isalnum' 6 warnings generated. clang -g -Wall -Wpointer-arith -no-cpp-precomp -I../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN -DRGB_DB=\"/opt/pkg/share/X11/rgb\" -I/opt/pkg/include -c vconf.c vconf.c:86:23: warning: unused variable 'fp' [-Wunused-variable] 86 | register format_t *fp, *lfp; | ^~ vconf.c:86:28: warning: unused variable 'lfp' [-Wunused-variable] 86 | register format_t *fp, *lfp; | ^~~ vconf.c:87:22: warning: unused variable 'dp' [-Wunused-variable] 87 | register depth_t *dp, *ldp; | ^~ vconf.c:87:27: warning: unused variable 'ldp' [-Wunused-variable] 87 | register depth_t *dp, *ldp; | ^~~ vconf.c:88:22: warning: unused variable 'vp' [-Wunused-variable] 88 | register vtype_t *vp, *lvp; | ^~ vconf.c:88:27: warning: unused variable 'lvp' [-Wunused-variable] 88 | register vtype_t *vp, *lvp; | ^~~ vconf.c:89:24: warning: unused variable 'ep' [-Wunused-variable] 89 | register extname_t *ep, *lep; | ^~ vconf.c:89:29: warning: unused variable 'lep' [-Wunused-variable] 89 | register extname_t *ep, *lep; | ^~~ vconf.c:177:10: warning: unused variable 'x' [-Wunused-variable] 177 | s16_t x, y; | ^ vconf.c:177:13: warning: unused variable 'y' [-Wunused-variable] 177 | s16_t x, y; | ^ vconf.c:261:21: warning: unused variable 'geomp' [-Wunused-variable] 261 | register geom_t *geomp; | ^~~~~ vconf.c:504:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] 504 | } | ^ vconf.c:761:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 761 | while (depth=(xDepth *)cblock_depth(0)) { | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ vconf.c:761:16: note: place parentheses around the assignment to silence this warning 761 | while (depth=(xDepth *)cblock_depth(0)) { | ^ | ( ) vconf.c:761:16: note: use '==' to turn this assignment into an equality comparison 761 | while (depth=(xDepth *)cblock_depth(0)) { | ^ | == vconf.c:779:24: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 779 | for (vp=0; visual=(xVisualType *)cblock_visual(0);) { | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ vconf.c:779:24: note: place parentheses around the assignment to silence this warning 779 | for (vp=0; visual=(xVisualType *)cblock_visual(0);) { | ^ | ( ) vconf.c:779:24: note: use '==' to turn this assignment into an equality comparison 779 | for (vp=0; visual=(xVisualType *)cblock_visual(0);) { | ^ | == vconf.c:815:21: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 815 | for (fp=0; format=(xPixmapFormat *)cblock_format(0);) { | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ vconf.c:815:21: note: place parentheses around the assignment to silence this warning 815 | for (fp=0; format=(xPixmapFormat *)cblock_format(0);) { | ^ | ( ) vconf.c:815:21: note: use '==' to turn this assignment into an equality comparison 815 | for (fp=0; format=(xPixmapFormat *)cblock_format(0);) { | ^ | == vconf.c:937:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 937 | if (depth = cblock_depth(0)) | ~~~~~~^~~~~~~~~~~~~~~~~ vconf.c:937:20: note: place parentheses around the assignment to silence this warning 937 | if (depth = cblock_depth(0)) | ^ | ( ) vconf.c:937:20: note: use '==' to turn this assignment into an equality comparison 937 | if (depth = cblock_depth(0)) | ^ | == vconf.c:945:35: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 945 | if (vp->visualp = closest_visual(&vp->visual)) { | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ vconf.c:945:35: note: place parentheses around the assignment to silence this warning 945 | if (vp->visualp = closest_visual(&vp->visual)) { | ^ | ( ) vconf.c:945:35: note: use '==' to turn this assignment into an equality comparison 945 | if (vp->visualp = closest_visual(&vp->visual)) { | ^ | == vconf.c:980:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 980 | if (dp = dp ? dp->next : vconf.dp) | ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ vconf.c:980:17: note: place parentheses around the assignment to silence this warning 980 | if (dp = dp ? dp->next : vconf.dp) | ^ | ( ) vconf.c:980:17: note: use '==' to turn this assignment into an equality comparison 980 | if (dp = dp ? dp->next : vconf.dp) | ^ | == vconf.c:984:33: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 984 | if (format = cblock_format(0)) | ~~~~~~~^~~~~~~~~~~~~~~~~~ vconf.c:984:33: note: place parentheses around the assignment to silence this warning 984 | if (format = cblock_format(0)) | ^ | ( ) vconf.c:984:33: note: use '==' to turn this assignment into an equality comparison 984 | if (format = cblock_format(0)) | ^ | == vconf.c:1056:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 1056 | while (tmp = cblock_visual(0)) | ~~~~^~~~~~~~~~~~~~~~~~ vconf.c:1056:15: note: place parentheses around the assignment to silence this warning 1056 | while (tmp = cblock_visual(0)) | ^ | ( ) vconf.c:1056:15: note: use '==' to turn this assignment into an equality comparison 1056 | while (tmp = cblock_visual(0)) | ^ | == vconf.c:1171:17: warning: unused variable 'i' [-Wunused-variable] 1171 | register int i, j; | ^ vconf.c:1171:20: warning: unused variable 'j' [-Wunused-variable] 1171 | register int i, j; | ^ vconf.c:1274:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 1274 | if (dp = dp ? dp->next : vconf.dp) | ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ vconf.c:1274:20: note: place parentheses around the assignment to silence this warning 1274 | if (dp = dp ? dp->next : vconf.dp) | ^ | ( ) vconf.c:1274:20: note: use '==' to turn this assignment into an equality comparison 1274 | if (dp = dp ? dp->next : vconf.dp) | ^ | == vconf.c:1300:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 1300 | if (ep = ep ? ep->next : vconf.ep) | ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ vconf.c:1300:20: note: place parentheses around the assignment to silence this warning 1300 | if (ep = ep ? ep->next : vconf.ep) | ^ | ( ) vconf.c:1300:20: note: use '==' to turn this assignment into an equality comparison 1300 | if (ep = ep ? ep->next : vconf.ep) | ^ | == vconf.c:1356:13: warning: add explicit braces to avoid dangling else [-Wdangling-else] 1356 | else | ^ vconf.c:1361:10: warning: add explicit braces to avoid dangling else [-Wdangling-else] 1361 | else | ^ vconf.c:1376:28: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 1376 | for (dcp=vcons.dcp; ldcp=dcp;) { | ~~~~^~~~ vconf.c:1376:28: note: place parentheses around the assignment to silence this warning 1376 | for (dcp=vcons.dcp; ldcp=dcp;) { | ^ | ( ) vconf.c:1376:28: note: use '==' to turn this assignment into an equality comparison 1376 | for (dcp=vcons.dcp; ldcp=dcp;) { | ^ | == vconf.c:1408:25: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 1408 | for (fp=vconf.fp; lfp=fp;) { | ~~~^~~ vconf.c:1408:25: note: place parentheses around the assignment to silence this warning 1408 | for (fp=vconf.fp; lfp=fp;) { | ^ | ( ) vconf.c:1408:25: note: use '==' to turn this assignment into an equality comparison 1408 | for (fp=vconf.fp; lfp=fp;) { | ^ | == vconf.c:1424:25: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 1424 | for (dp=vconf.dp; ldp=dp;) { | ~~~^~~ vconf.c:1424:25: note: place parentheses around the assignment to silence this warning 1424 | for (dp=vconf.dp; ldp=dp;) { | ^ | ( ) vconf.c:1424:25: note: use '==' to turn this assignment into an equality comparison 1424 | for (dp=vconf.dp; ldp=dp;) { | ^ | == vconf.c:1426:26: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 1426 | for (vp=dp->vp; lvp=vp;) { | ~~~^~~ vconf.c:1426:26: note: place parentheses around the assignment to silence this warning 1426 | for (vp=dp->vp; lvp=vp;) { | ^ | ( ) vconf.c:1426:26: note: use '==' to turn this assignment into an equality comparison 1426 | for (vp=dp->vp; lvp=vp;) { | ^ | == vconf.c:1443:25: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 1443 | for (ep=vconf.ep; lep=ep;) { | ~~~^~~ vconf.c:1443:25: note: place parentheses around the assignment to silence this warning 1443 | for (ep=vconf.ep; lep=ep;) { | ^ | ( ) vconf.c:1443:25: note: use '==' to turn this assignment into an equality comparison 1443 | for (ep=vconf.ep; lep=ep;) { | ^ | == In file included from vconf.c:60: In file included from ./ptc.h:172: ./incl/ptc.pvt.h:9:23: warning: unused function 'new_ptc' [-Wunused-function] 9 | static FUNC( ptc_t *, new_ptc, (void)); | ^~~~~~~ ./../include/funcproto.h:64:36: note: expanded from macro 'FUNC' 64 | #define FUNC(type,name,proto) type name proto | ^~~~ In file included from vconf.c:60: In file included from ./ptc.h:172: ./incl/ptc.pvt.h:10:20: warning: unused function 'free_ptc' [-Wunused-function] 10 | static FUNC( void, free_ptc, (ptc_t *)); | ^~~~~~~~ ./../include/funcproto.h:64:36: note: expanded from macro 'FUNC' 64 | #define FUNC(type,name,proto) type name proto | ^~~~ In file included from vconf.c:60: In file included from ./ptc.h:172: ./incl/ptc.pvt.h:11:20: warning: unused function 'free_block' [-Wunused-function] 11 | static FUNC( void, free_block, (char *)); | ^~~~~~~~~~ ./../include/funcproto.h:64:36: note: expanded from macro 'FUNC' 64 | #define FUNC(type,name,proto) type name proto | ^~~~ 34 warnings generated. clang -g -Wall -Wpointer-arith -no-cpp-precomp -I../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN -DRGB_DB=\"/opt/pkg/share/X11/rgb\" -I/opt/pkg/include -c window.c window.c:210:22: warning: unused variable 'chp' [-Wunused-variable] 210 | register chunk_t *chp; | ^~~ window.c:411:22: warning: unused variable 'chp' [-Wunused-variable] 411 | register chunk_t *chp; | ^~~ window.c:498:19: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 498 | else if (mp = (colormap_t *)hash_data(vmap, attrs[j])) | ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ window.c:498:19: note: place parentheses around the assignment to silence this warning 498 | else if (mp = (colormap_t *)hash_data(vmap, attrs[j])) | ^ | ( ) window.c:498:19: note: use '==' to turn this assignment into an equality comparison 498 | else if (mp = (colormap_t *)hash_data(vmap, attrs[j])) | ^ | == window.c:533:26: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 533 | else if (pxp = (pixmap_t *)hash_data(vmap, *attrs)) { | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ window.c:533:26: note: place parentheses around the assignment to silence this warning 533 | else if (pxp = (pixmap_t *)hash_data(vmap, *attrs)) { | ^ | ( ) window.c:533:26: note: use '==' to turn this assignment into an equality comparison 533 | else if (pxp = (pixmap_t *)hash_data(vmap, *attrs)) { | ^ | == window.c:563:26: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 563 | else if (pxp = (pixmap_t *)hash_data(vmap, *attrs)) { | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ window.c:563:26: note: place parentheses around the assignment to silence this warning 563 | else if (pxp = (pixmap_t *)hash_data(vmap, *attrs)) { | ^ | ( ) window.c:563:26: note: use '==' to turn this assignment into an equality comparison 563 | else if (pxp = (pixmap_t *)hash_data(vmap, *attrs)) { | ^ | == window.c:661:27: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 661 | else if (cursp=(cursor_t *)hash_data(vmap, *attrs)) | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ window.c:661:27: note: place parentheses around the assignment to silence this warning 661 | else if (cursp=(cursor_t *)hash_data(vmap, *attrs)) | ^ | ( ) window.c:661:27: note: use '==' to turn this assignment into an equality comparison 661 | else if (cursp=(cursor_t *)hash_data(vmap, *attrs)) | ^ | == window.c:476:19: warning: unused variable 'id' [-Wunused-variable] 476 | register rid_t id; | ^~ window.c:905:13: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 905 | register didone = 0; | ~~~~~~~~ ^ | int window.c:1308:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 1308 | if (np=wp->child) | ~~^~~~~~~~~~ window.c:1308:10: note: place parentheses around the assignment to silence this warning 1308 | if (np=wp->child) | ^ | ( ) window.c:1308:10: note: use '==' to turn this assignment into an equality comparison 1308 | if (np=wp->child) | ^ | == window.c:1688:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 1688 | while (lwp=wp) { | ~~~^~~ window.c:1688:14: note: place parentheses around the assignment to silence this warning 1688 | while (lwp=wp) { | ^ | ( ) window.c:1688:14: note: use '==' to turn this assignment into an equality comparison 1688 | while (lwp=wp) { | ^ | == 10 warnings generated. clang -g -Wall -Wpointer-arith -no-cpp-precomp -I../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN -DRGB_DB=\"/opt/pkg/share/X11/rgb\" -I/opt/pkg/include -c xmc.c xmc.c:99:24: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 99 | if (xp->addr.length = ap->length) { | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~ xmc.c:99:24: note: place parentheses around the assignment to silence this warning 99 | if (xp->addr.length = ap->length) { | ^ | ( ) xmc.c:99:24: note: use '==' to turn this assignment into an equality comparison 99 | if (xp->addr.length = ap->length) { | ^ | == xmc.c:184:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 184 | if (xp->swap = (p->byteOrder == endian) ? 0 : 1) { | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xmc.c:184:17: note: place parentheses around the assignment to silence this warning 184 | if (xp->swap = (p->byteOrder == endian) ? 0 : 1) { | ^ | ( ) xmc.c:184:17: note: use '==' to turn this assignment into an equality comparison 184 | if (xp->swap = (p->byteOrder == endian) ? 0 : 1) { | ^ | == xmc.c:267:20: warning: unused variable 'n' [-Wunused-variable] 267 | register int i, n; | ^ xmc.c:268:22: warning: unused variable 'chp' [-Wunused-variable] 268 | register chunk_t *chp; | ^~~ xmc.c:269:8: warning: unused variable 'reconfig' [-Wunused-variable] 269 | int reconfig = 0; | ^~~~~~~~ xmc.c:467:28: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 467 | else if (sp = server_find(p->dispID)) | ~~~^~~~~~~~~~~~~~~~~~~~~~~~ xmc.c:467:28: note: place parentheses around the assignment to silence this warning 467 | else if (sp = server_find(p->dispID)) | ^ | ( ) xmc.c:467:28: note: use '==' to turn this assignment into an equality comparison 467 | else if (sp = server_find(p->dispID)) | ^ | == xmc.c:481:23: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 481 | if (sp = server_find(p->id)) | ~~~^~~~~~~~~~~~~~~~~~~~ xmc.c:481:23: note: place parentheses around the assignment to silence this warning 481 | if (sp = server_find(p->id)) | ^ | ( ) xmc.c:481:23: note: use '==' to turn this assignment into an equality comparison 481 | if (sp = server_find(p->id)) | ^ | == xmc.c:492:45: warning: unused variable 'p' [-Wunused-variable] 492 | { register xmcListDisplaysReq *p = (xmcListDisplaysReq *)rp; | ^ xmc.c:497:53: warning: unused variable 'p' [-Wunused-variable] 497 | { register xmcListDisplaysWithInfoReq *p = | ^ xmc.c:504:23: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 504 | if (sp = server_find(p->id)) | ~~~^~~~~~~~~~~~~~~~~~~~ xmc.c:504:23: note: place parentheses around the assignment to silence this warning 504 | if (sp = server_find(p->id)) | ^ | ( ) xmc.c:504:23: note: use '==' to turn this assignment into an equality comparison 504 | if (sp = server_find(p->id)) | ^ | == xmc.c:515:37: warning: unused variable 'p' [-Wunused-variable] 515 | { register xmcSyncReq *p = (xmcSyncReq *)rp; | ^ xmc.c:530:42: warning: unused variable 'p' [-Wunused-variable] 530 | { register xmcGetConfigReq *p = (xmcGetConfigReq *)rp; | ^ xmc.c:541:23: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 541 | if (sp = server_find(p->dispID)) | ~~~^~~~~~~~~~~~~~~~~~~~~~~~ xmc.c:541:23: note: place parentheses around the assignment to silence this warning 541 | if (sp = server_find(p->dispID)) | ^ | ( ) xmc.c:541:23: note: use '==' to turn this assignment into an equality comparison 541 | if (sp = server_find(p->dispID)) | ^ | == xmc.c:557:45: warning: unused variable 'p' [-Wunused-variable] 557 | { register xmcGetEventMaskReq *p = (xmcGetEventMaskReq *)rp; | ^ xmc.c:573:23: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 573 | if (sp = server_find(p->id)) | ~~~^~~~~~~~~~~~~~~~~~~~ xmc.c:573:23: note: place parentheses around the assignment to silence this warning 573 | if (sp = server_find(p->id)) | ^ | ( ) xmc.c:573:23: note: use '==' to turn this assignment into an equality comparison 573 | if (sp = server_find(p->id)) | ^ | == xmc.c:585:23: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 585 | if (sp = server_find(p->id)) | ~~~^~~~~~~~~~~~~~~~~~~~ xmc.c:585:23: note: place parentheses around the assignment to silence this warning 585 | if (sp = server_find(p->id)) | ^ | ( ) xmc.c:585:23: note: use '==' to turn this assignment into an equality comparison 585 | if (sp = server_find(p->id)) | ^ | == xmc.c:597:23: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 597 | if (sp = server_find(p->id)) | ~~~^~~~~~~~~~~~~~~~~~~~ xmc.c:597:23: note: place parentheses around the assignment to silence this warning 597 | if (sp = server_find(p->id)) | ^ | ( ) xmc.c:597:23: note: use '==' to turn this assignment into an equality comparison 597 | if (sp = server_find(p->id)) | ^ | == xmc.c:609:23: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 609 | if (sp = server_find(p->id)) | ~~~^~~~~~~~~~~~~~~~~~~~ xmc.c:609:23: note: place parentheses around the assignment to silence this warning 609 | if (sp = server_find(p->id)) | ^ | ( ) xmc.c:609:23: note: use '==' to turn this assignment into an equality comparison 609 | if (sp = server_find(p->id)) | ^ | == xmc.c:621:23: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 621 | if (sp = server_find(p->id)) | ~~~^~~~~~~~~~~~~~~~~~~~ xmc.c:621:23: note: place parentheses around the assignment to silence this warning 621 | if (sp = server_find(p->id)) | ^ | ( ) xmc.c:621:23: note: use '==' to turn this assignment into an equality comparison 621 | if (sp = server_find(p->id)) | ^ | == xmc.c:634:23: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 634 | if (sp = server_find(p->id)) | ~~~^~~~~~~~~~~~~~~~~~~~ xmc.c:634:23: note: place parentheses around the assignment to silence this warning 634 | if (sp = server_find(p->id)) | ^ | ( ) xmc.c:634:23: note: use '==' to turn this assignment into an equality comparison 634 | if (sp = server_find(p->id)) | ^ | == xmc.c:666:24: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 666 | if (tpp = tptr_find(p->id)) | ~~~~^~~~~~~~~~~~~~~~~~ xmc.c:666:24: note: place parentheses around the assignment to silence this warning 666 | if (tpp = tptr_find(p->id)) | ^ | ( ) xmc.c:666:24: note: use '==' to turn this assignment into an equality comparison 666 | if (tpp = tptr_find(p->id)) | ^ | == xmc.c:678:23: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 678 | if (sp = server_find(p->dispID)) | ~~~^~~~~~~~~~~~~~~~~~~~~~~~ xmc.c:678:23: note: place parentheses around the assignment to silence this warning 678 | if (sp = server_find(p->dispID)) | ^ | ( ) xmc.c:678:23: note: use '==' to turn this assignment into an equality comparison 678 | if (sp = server_find(p->dispID)) | ^ | == xmc.c:681:32: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 681 | else if (tpp = tptr_find(p->tpID)) | ~~~~^~~~~~~~~~~~~~~~~~~~ xmc.c:681:32: note: place parentheses around the assignment to silence this warning 681 | else if (tpp = tptr_find(p->tpID)) | ^ | ( ) xmc.c:681:32: note: use '==' to turn this assignment into an equality comparison 681 | else if (tpp = tptr_find(p->tpID)) | ^ | == xmc.c:699:24: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 699 | if (tpp = tptr_find(p->id)) | ~~~~^~~~~~~~~~~~~~~~~~ xmc.c:699:24: note: place parentheses around the assignment to silence this warning 699 | if (tpp = tptr_find(p->id)) | ^ | ( ) xmc.c:699:24: note: use '==' to turn this assignment into an equality comparison 699 | if (tpp = tptr_find(p->id)) | ^ | == xmc.c:711:24: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 711 | if (tpp = tptr_find(p->id)) | ~~~~^~~~~~~~~~~~~~~~~~ xmc.c:711:24: note: place parentheses around the assignment to silence this warning 711 | if (tpp = tptr_find(p->id)) | ^ | ( ) xmc.c:711:24: note: use '==' to turn this assignment into an equality comparison 711 | if (tpp = tptr_find(p->id)) | ^ | == xmc.c:337:17: warning: unused variable 'i' [-Wunused-variable] 337 | register int i; | ^ xmc.c:338:19: warning: unused variable 'dp' [-Wunused-variable] 338 | register char *dp; | ^~ xmc.c:933:20: warning: unused variable 'xp' [-Wunused-variable] 933 | register xmc_t *xp; | ^~ xmc.c:1068:22: warning: unused variable 'chp' [-Wunused-variable] 1068 | register chunk_t *chp; | ^~~ xmc.c:1137:17: warning: unused variable 'i' [-Wunused-variable] 1137 | register int i; | ^ xmc.c:1172:17: warning: unused variable 'i' [-Wunused-variable] 1172 | register int i; | ^ xmc.c:1523:1: warning: non-void function does not return a value [-Wreturn-type] 1523 | } | ^ xmc.c:1728:20: warning: unused variable 'sp' [-Wunused-variable] 1728 | register u16_t *sp; | ^~ 33 warnings generated. clang -g -Wall -Wpointer-arith -no-cpp-precomp -I../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN -DRGB_DB=\"/opt/pkg/share/X11/rgb\" -I/opt/pkg/include -c xmcp.c xmcp.c:294:4: warning: variable 'padlen' is uninitialized when used here [-Wuninitialized] 294 | padlen += PAD(totlen); | ^~~~~~ xmcp.c:283:41: note: initialize the variable 'padlen' to silence this warning 283 | register int i, totlen, dtlen, padlen; | ^ | = 0 1 warning generated. clang -g -Wall -Wpointer-arith -no-cpp-precomp -I../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN -DRGB_DB=\"/opt/pkg/share/X11/rgb\" -I/opt/pkg/include -c zb.c zb.c:218:17: warning: unused variable 'i' [-Wunused-variable] 218 | register int i, n; | ^ 1 warning generated. rm -f xmx clang -o xmx -g -Wall -Wpointer-arith -no-cpp-precomp -L/opt/pkg/lib -L/opt/pkg/lib -L/opt/pkg/lib access.o am.o args.o atom.o auth.o buf.o cblock.o client.o cliz.o cmap.o cmapwin.o color.o connect.o cookie.o cursor.o cx.o debug.o df.o dprx.o dprxmc.o ebuf.o error.o es.o event.o expos.o ext.o focus.o font.o gc.o hash.o host.o image.o imask.o inp.o iswap.o kpm.o list.o main.o mitauth.o pixmap.o plist.o pmap.o pp.o prop.o proto.o ptc.o queue.o reply.o request.o rgb.o root.o rs.o rx.o sel.o server.o shape.o sm.o socket.o sres.o sv.o swap.o time.o tptr.o util.o vconf.o window.o xmc.o xmcp.o zb.o making all in ./clients... making all in clients/xmtg... clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I../../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -I/opt/pkg/include -c xmtg.c xmtg.c:190:35: warning: passing arguments to 'ui_get_dialog_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 190 | filename = ui_get_dialog_string(dialog); | ^ xmtg.c:192:13: warning: passing arguments to 'load_file' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 192 | load_file(filename); | ^ xmtg.c:194:18: warning: passing arguments to 'ui_free_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 194 | ui_free_string(dialog); | ^ xmtg.c:182:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 182 | open_cb(w, client_data, call_data) | ^ In file included from xmtg.c:42: ./callbacks.h:26:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 26 | extern void open_cb(); | ^ xmtg.c:206:35: warning: passing arguments to 'ui_get_dialog_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 206 | filename = ui_get_dialog_string(dialog); | ^ xmtg.c:208:13: warning: passing arguments to 'save_file' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 208 | save_file(filename); | ^ xmtg.c:210:18: warning: passing arguments to 'ui_free_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 210 | ui_free_string(dialog); | ^ xmtg.c:198:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 198 | save_cb(w, client_data, call_data) | ^ In file included from xmtg.c:42: ./callbacks.h:27:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 27 | extern void save_cb(); | ^ xmtg.c:214:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 214 | quit_cb(w, client_data, call_data) | ^ In file included from xmtg.c:42: ./callbacks.h:28:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 28 | extern void quit_cb(); | ^ xmtg.c:228:13: warning: passing arguments to 'ig_select' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 228 | ig_select(gp, 0); | ^ xmtg.c:223:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 223 | all_cb(w, client_data, call_data) | ^ In file included from xmtg.c:42: ./callbacks.h:29:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 29 | extern void all_cb(); | ^ xmtg.c:242:12: warning: call to undeclared function 'ui_get_toggle_state'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 242 | state = ui_get_toggle_state(w); | ^ xmtg.c:232:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 232 | teleptr_cb(w, client_data, call_data) | ^ In file included from xmtg.c:42: ./callbacks.h:30:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 30 | extern void teleptr_cb(); | ^ xmtg.c:265:19: warning: passing arguments to 'ui_get_add_info' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 265 | ui_get_add_info(adp, &display, &mode); | ^ xmtg.c:270:19: warning: passing arguments to 'node_add' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 270 | (void) node_add(id, display, mode, 0); | ^ xmtg.c:253:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 253 | add_cb(w, client_data, call_data) | ^ In file included from xmtg.c:42: ./callbacks.h:31:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 31 | extern void add_cb(); | ^ xmtg.c:282:22: warning: passing arguments to 'ig_change_state' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 282 | ig_change_state(gp, np->ip, SEAT); | ^ xmtg.c:284:22: warning: passing arguments to 'ig_change_state' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 284 | ig_change_state(gp, np->ip, HAND); | ^ xmtg.c:278:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 278 | hand_up(np) | ^ xmtg.c:295:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 295 | if (np = (node_t *)IconData(ip)) | ~~~^~~~~~~~~~~~~~~~~~~~~~~~ xmtg.c:295:14: note: place parentheses around the assignment to silence this warning 295 | if (np = (node_t *)IconData(ip)) | ^ | ( ) xmtg.c:295:14: note: use '==' to turn this assignment into an equality comparison 295 | if (np = (node_t *)IconData(ip)) | ^ | == xmtg.c:297:13: warning: call to undeclared function 'ui_error'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 297 | ui_error("cannot drop chair"); | ^ xmtg.c:304:16: warning: add explicit braces to avoid dangling else [-Wdangling-else] 304 | else | ^ xmtg.c:298:10: warning: add explicit braces to avoid dangling else [-Wdangling-else] 298 | else { | ^ xmtg.c:288:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 288 | dropit(gp, ip) | ^ xmtg.c:321:20: warning: passing arguments to 'ig_call_callback' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 321 | ig_call_callback(gp, dropit); | ^ xmtg.c:314:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 314 | drop_cb(w, client_data, call_data) | ^ In file included from xmtg.c:42: ./callbacks.h:32:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 32 | extern void drop_cb(); | ^ xmtg.c:332:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 332 | if (np = (node_t *)IconData(ip)) | ~~~^~~~~~~~~~~~~~~~~~~~~~~~ xmtg.c:332:14: note: place parentheses around the assignment to silence this warning 332 | if (np = (node_t *)IconData(ip)) | ^ | ( ) xmtg.c:332:14: note: use '==' to turn this assignment into an equality comparison 332 | if (np = (node_t *)IconData(ip)) | ^ | == xmtg.c:334:13: warning: call to undeclared function 'ui_error'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 334 | ui_error("cannot change input mode of chair"); | ^ xmtg.c:335:10: warning: add explicit braces to avoid dangling else [-Wdangling-else] 335 | else | ^ xmtg.c:325:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 325 | floorit(gp, ip) | ^ xmtg.c:350:20: warning: passing arguments to 'ig_call_callback' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 350 | ig_call_callback(gp, floorit); | ^ xmtg.c:343:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 343 | floor_cb(w, client_data, call_data) | ^ In file included from xmtg.c:42: ./callbacks.h:33:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 33 | extern void floor_cb(); | ^ xmtg.c:361:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 361 | if (np = (node_t *)IconData(ip)) | ~~~^~~~~~~~~~~~~~~~~~~~~~~~ xmtg.c:361:14: note: place parentheses around the assignment to silence this warning 361 | if (np = (node_t *)IconData(ip)) | ^ | ( ) xmtg.c:361:14: note: use '==' to turn this assignment into an equality comparison 361 | if (np = (node_t *)IconData(ip)) | ^ | == xmtg.c:363:13: warning: call to undeclared function 'ui_error'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 363 | ui_error("cannot change input mode of chair"); | ^ xmtg.c:364:10: warning: add explicit braces to avoid dangling else [-Wdangling-else] 364 | else | ^ xmtg.c:354:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 354 | seatit(gp, ip) | ^ xmtg.c:382:20: warning: passing arguments to 'ig_call_callback' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 382 | ig_call_callback(gp, seatit); | ^ xmtg.c:375:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 375 | seat_cb(w, client_data, call_data) | ^ In file included from xmtg.c:42: ./callbacks.h:34:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 34 | extern void seat_cb(); | ^ xmtg.c:393:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 393 | if (np = (node_t *)IconData(ip)) | ~~~^~~~~~~~~~~~~~~~~~~~~~~~ xmtg.c:393:14: note: place parentheses around the assignment to silence this warning 393 | if (np = (node_t *)IconData(ip)) | ^ | ( ) xmtg.c:393:14: note: use '==' to turn this assignment into an equality comparison 393 | if (np = (node_t *)IconData(ip)) | ^ | == xmtg.c:395:13: warning: call to undeclared function 'ui_error'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 395 | ui_error("cannot change input mode of chair"); | ^ xmtg.c:396:10: warning: add explicit braces to avoid dangling else [-Wdangling-else] 396 | else | ^ xmtg.c:386:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 386 | viewit(gp, ip) | ^ xmtg.c:414:20: warning: passing arguments to 'ig_call_callback' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 414 | ig_call_callback(gp, viewit); | ^ xmtg.c:407:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 407 | view_cb(w, client_data, call_data) | ^ In file included from xmtg.c:42: ./callbacks.h:35:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 35 | extern void view_cb(); | ^ xmtg.c:425:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 425 | if (np = (node_t *)IconData(ip)) | ~~~^~~~~~~~~~~~~~~~~~~~~~~~ xmtg.c:425:14: note: place parentheses around the assignment to silence this warning 425 | if (np = (node_t *)IconData(ip)) | ^ | ( ) xmtg.c:425:14: note: use '==' to turn this assignment into an equality comparison 425 | if (np = (node_t *)IconData(ip)) | ^ | == xmtg.c:418:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 418 | grabit(gp, ip) | ^ xmtg.c:443:4: warning: call to undeclared function 'ui_error'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 443 | ui_error("grabs are disabled, for now..."); | ^ xmtg.c:436:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 436 | grab_cb(w, client_data, call_data) | ^ In file included from xmtg.c:42: ./callbacks.h:36:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 36 | extern void grab_cb(); | ^ xmtg.c:462:4: warning: call to undeclared function 'ui_popup_open'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 462 | ui_popup_open(); | ^ xmtg.c:456:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 456 | open_act(w, event, params, n) | ^ xmtg.c:65:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 65 | void open_act(); | ^ xmtg.c:472:4: warning: call to undeclared function 'ui_popup_save'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 472 | ui_popup_save(); | ^ xmtg.c:466:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 466 | save_act(w, event, params, n) | ^ xmtg.c:66:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 66 | void save_act(); | ^ xmtg.c:483:7: warning: call to undeclared function 'ui_dialog_accept'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 483 | ui_dialog_accept(*params); | ^ xmtg.c:476:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 476 | accept_act(w, event, params, n) | ^ xmtg.c:67:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 67 | void accept_act(); | ^ xmtg.c:494:7: warning: call to undeclared function 'ui_dialog_cancel'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 494 | ui_dialog_cancel(*params); | ^ xmtg.c:487:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 487 | cancel_act(w, event, params, n) | ^ xmtg.c:68:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 68 | void cancel_act(); | ^ xmtg.c:504:13: warning: passing arguments to 'ig_select' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 504 | ig_select(gp, 0); | ^ xmtg.c:498:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 498 | all_act(w, event, params, n) | ^ xmtg.c:69:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 69 | void all_act(); | ^ xmtg.c:514:4: warning: call to undeclared function 'ui_popup_add'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 514 | ui_popup_add(); | ^ xmtg.c:508:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 508 | add_act(w, event, params, n) | ^ xmtg.c:70:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 70 | void add_act(); | ^ xmtg.c:524:20: warning: passing arguments to 'ig_call_callback' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 524 | ig_call_callback(gp, dropit); | ^ xmtg.c:518:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 518 | drop_act(w, event, params, n) | ^ xmtg.c:71:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 71 | void drop_act(); | ^ xmtg.c:534:20: warning: passing arguments to 'ig_call_callback' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 534 | ig_call_callback(gp, floorit); | ^ xmtg.c:528:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 528 | floor_act(w, event, params, n) | ^ xmtg.c:72:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 72 | void floor_act(); | ^ xmtg.c:544:20: warning: passing arguments to 'ig_call_callback' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 544 | ig_call_callback(gp, seatit); | ^ xmtg.c:538:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 538 | seat_act(w, event, params, n) | ^ xmtg.c:73:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 73 | void seat_act(); | ^ xmtg.c:554:20: warning: passing arguments to 'ig_call_callback' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 554 | ig_call_callback(gp, viewit); | ^ xmtg.c:548:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 548 | view_act(w, event, params, n) | ^ xmtg.c:74:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 74 | void view_act(); | ^ xmtg.c:564:20: warning: passing arguments to 'ig_call_callback' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 564 | ig_call_callback(gp, grabit); | ^ xmtg.c:558:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 558 | grab_act(w, event, params, n) | ^ xmtg.c:75:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 75 | void grab_act(); | ^ xmtg.c:568:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 568 | quit_act(w, event, params, n) | ^ xmtg.c:76:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 76 | void quit_act(); | ^ xmtg.c:601:10: warning: call to undeclared function 'ui_error'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 601 | ui_error("XmcGetEvent: error"); | ^ xmtg.c:606:31: warning: passing arguments to 'node_byid' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 606 | if (np = node_byid(event.button.id)) | ^ xmtg.c:606:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 606 | if (np = node_byid(event.button.id)) | ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ xmtg.c:606:20: note: place parentheses around the assignment to silence this warning 606 | if (np = node_byid(event.button.id)) | ^ | ( ) xmtg.c:606:20: note: use '==' to turn this assignment into an equality comparison 606 | if (np = node_byid(event.button.id)) | ^ | == xmtg.c:609:16: warning: call to undeclared function 'ui_error'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 609 | ui_error("SeatButtonPressEvent for unknown display 0x%x", | ^ xmtg.c:613:32: warning: passing arguments to 'node_byid' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 613 | if ((np = node_byid(event.display.id)) == 0) { | ^ xmtg.c:619:62: warning: passing arguments to 'im2s' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 619 | np = node_add(event.display.id, dip->tag, im2s(dip->mode), 0); | ^ xmtg.c:619:29: warning: passing arguments to 'node_add' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 619 | np = node_add(event.display.id, dip->tag, im2s(dip->mode), 0); | ^ xmtg.c:623:21: warning: passing arguments to 'show_add' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 623 | show_add(np); | ^ xmtg.c:626:31: warning: passing arguments to 'node_byid' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 626 | if (np = node_byid(event.display.id)) { | ^ xmtg.c:626:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 626 | if (np = node_byid(event.display.id)) { | ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xmtg.c:626:20: note: place parentheses around the assignment to silence this warning 626 | if (np = node_byid(event.display.id)) { | ^ | ( ) xmtg.c:626:20: note: use '==' to turn this assignment into an equality comparison 626 | if (np = node_byid(event.display.id)) { | ^ | == xmtg.c:628:34: warning: passing arguments to 'ig_change_state' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 628 | ig_change_state(gp, np->ip, NOT); | ^ xmtg.c:629:30: warning: passing arguments to 'ig_set_data' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 629 | ig_set_data(np->ip, 0); /* just in case */ | ^ xmtg.c:631:27: warning: passing arguments to 'node_remove' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 631 | node_remove(np); | ^ xmtg.c:635:31: warning: passing arguments to 'node_byid' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 635 | if (np = node_byid(event.display.id)) { | ^ xmtg.c:635:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 635 | if (np = node_byid(event.display.id)) { | ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xmtg.c:635:20: note: place parentheses around the assignment to silence this warning 635 | if (np = node_byid(event.display.id)) { | ^ | ( ) xmtg.c:635:20: note: use '==' to turn this assignment into an equality comparison 635 | if (np = node_byid(event.display.id)) { | ^ | == xmtg.c:638:30: warning: passing arguments to 'ig_set_data' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 638 | ig_set_data(np->ip, 0); /* just in case */ | ^ xmtg.c:639:27: warning: passing arguments to 'node_remove' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 639 | node_remove(np); | ^ xmtg.c:643:31: warning: passing arguments to 'node_byid' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 643 | if (np = node_byid(event.display.id)) { | ^ xmtg.c:643:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 643 | if (np = node_byid(event.display.id)) { | ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xmtg.c:643:20: note: place parentheses around the assignment to silence this warning 643 | if (np = node_byid(event.display.id)) { | ^ | ( ) xmtg.c:643:20: note: use '==' to turn this assignment into an equality comparison 643 | if (np = node_byid(event.display.id)) { | ^ | == xmtg.c:646:34: warning: passing arguments to 'ig_change_state' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 646 | ig_change_state(gp, np->ip, FLOOR); | ^ xmtg.c:654:31: warning: passing arguments to 'node_byid' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 654 | if (np = node_byid(event.display.id)) { | ^ xmtg.c:654:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 654 | if (np = node_byid(event.display.id)) { | ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xmtg.c:654:20: note: place parentheses around the assignment to silence this warning 654 | if (np = node_byid(event.display.id)) { | ^ | ( ) xmtg.c:654:20: note: use '==' to turn this assignment into an equality comparison 654 | if (np = node_byid(event.display.id)) { | ^ | == xmtg.c:657:34: warning: passing arguments to 'ig_change_state' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 657 | ig_change_state(gp, np->ip, SEAT); | ^ xmtg.c:665:31: warning: passing arguments to 'node_byid' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 665 | if (np = node_byid(event.display.id)) { | ^ xmtg.c:665:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 665 | if (np = node_byid(event.display.id)) { | ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xmtg.c:665:20: note: place parentheses around the assignment to silence this warning 665 | if (np = node_byid(event.display.id)) { | ^ | ( ) xmtg.c:665:20: note: use '==' to turn this assignment into an equality comparison 665 | if (np = node_byid(event.display.id)) { | ^ | == xmtg.c:668:34: warning: passing arguments to 'ig_change_state' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 668 | ig_change_state(gp, np->ip, VIEW); | ^ xmtg.c:583:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 583 | xmc_cb(client_data, source, id) | ^ xmtg.c:693:4: warning: call to undeclared function 'ui_error'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 693 | ui_error("load_file: \"%s\" (not implemented yet)", filename); | ^ xmtg.c:690:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 690 | load_file(filename) | ^ xmtg.c:81:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 81 | static void load_file(); | ^ xmtg.c:700:4: warning: call to undeclared function 'ui_error'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 700 | ui_error("save_file: \"%s\" (not implemented yet)", filename); | ^ xmtg.c:697:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 697 | save_file(filename) | ^ xmtg.c:82:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 82 | static void save_file(); | ^ xmtg.c:707:29: warning: passing arguments to 'ig_find_icon' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 707 | if (np->ip = ig_find_icon(gp, np->display)) { | ^ xmtg.c:707:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 707 | if (np->ip = ig_find_icon(gp, np->display)) { | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xmtg.c:707:15: note: place parentheses around the assignment to silence this warning 707 | if (np->ip = ig_find_icon(gp, np->display)) { | ^ | ( ) xmtg.c:707:15: note: use '==' to turn this assignment into an equality comparison 707 | if (np->ip = ig_find_icon(gp, np->display)) { | ^ | == xmtg.c:712:27: warning: passing arguments to 'ig_set_data' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 712 | (void)ig_set_data(np->ip, (void *)np); | ^ xmtg.c:713:25: warning: passing arguments to 'ig_change_state' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 713 | ig_change_state(gp, np->ip, np->mode); | ^ xmtg.c:717:27: warning: passing arguments to 'ig_add_icon' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 717 | np->ip = ig_add_icon(gp, np->display, np->mode, 0, -1, -1, np); | ^ xmtg.c:720:7: warning: call to undeclared function 'ui_error'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 720 | ui_error("show_add: cannot create icon - duplicate?"); | ^ xmtg.c:704:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 704 | show_add(np) | ^ xmtg.c:83:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 83 | static void show_add(); | ^ xmtg.c:759:26: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 759 | fprintf(stderr, usage); | ^~~~~ xmtg.c:759:26: note: treat the string as an argument to avoid this 759 | fprintf(stderr, usage); | ^ | "%s", xmtg.c:772:13: warning: passing arguments to 'ui_create' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 772 | ui_create(top, FLOOR, SEAT, VIEW, &grid); | ^ xmtg.c:774:16: warning: passing arguments to 'ig_init' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 774 | gp = ig_init(app, grid, 5); | ^ xmtg.c:775:25: warning: passing arguments to 'ig_register_view' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 775 | vp = ig_register_view(gp, "fixed"); | ^ xmtg.c:776:32: warning: passing arguments to 'ig_register_image_data' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 776 | (void)ig_register_image_data(gp, vp, | ^ xmtg.c:778:32: warning: passing arguments to 'ig_register_image_data' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 778 | (void)ig_register_image_data(gp, vp, | ^ xmtg.c:780:32: warning: passing arguments to 'ig_register_image_data' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 780 | (void)ig_register_image_data(gp, vp, | ^ xmtg.c:782:32: warning: passing arguments to 'ig_register_image_data' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 782 | (void)ig_register_image_data(gp, vp, | ^ xmtg.c:784:32: warning: passing arguments to 'ig_register_image_data' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 784 | (void)ig_register_image_data(gp, vp, | ^ xmtg.c:786:15: warning: passing arguments to 'ig_set_view' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 786 | ig_set_view(gp, vp); | ^ xmtg.c:791:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 791 | if (mDisplay = (char *)getenv("MDISPLAY")) | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ xmtg.c:791:17: note: place parentheses around the assignment to silence this warning 791 | if (mDisplay = (char *)getenv("MDISPLAY")) | ^ | ( ) xmtg.c:791:17: note: use '==' to turn this assignment into an equality comparison 791 | if (mDisplay = (char *)getenv("MDISPLAY")) | ^ | == xmtg.c:801:19: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 801 | if (layoutPath = (char *)getenv("XMTGLAYOUTPATH")) | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xmtg.c:801:19: note: place parentheses around the assignment to silence this warning 801 | if (layoutPath = (char *)getenv("XMTGLAYOUTPATH")) | ^ | ( ) xmtg.c:801:19: note: use '==' to turn this assignment into an equality comparison 801 | if (layoutPath = (char *)getenv("XMTGLAYOUTPATH")) | ^ | == xmtg.c:810:44: warning: passing arguments to 'pathfind' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 810 | if (layoutFile && (layoutFile = pathfind(layoutPath, layoutFile, "r"))) | ^ xmtg.c:811:18: warning: passing arguments to 'layout_file' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 811 | layout_file(layoutFile, show_icon_not); | ^ xmtg.c:815:14: warning: passing arguments to 'ig_realize' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 815 | ig_realize(gp); | ^ xmtg.c:820:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 820 | if (chairtag = (char *)getenv("XMTGCHAIR")) | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xmtg.c:820:17: note: place parentheses around the assignment to silence this warning 820 | if (chairtag = (char *)getenv("XMTGCHAIR")) | ^ | ( ) xmtg.c:820:17: note: use '==' to turn this assignment into an equality comparison 820 | if (chairtag = (char *)getenv("XMTGCHAIR")) | ^ | == xmtg.c:828:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 828 | if (mux = XmcOpen(mDisplay, 0)) { | ~~~~^~~~~~~~~~~~~~~~~~~~~~ xmtg.c:828:12: note: place parentheses around the assignment to silence this warning 828 | if (mux = XmcOpen(mDisplay, 0)) { | ^ | ( ) xmtg.c:828:12: note: use '==' to turn this assignment into an equality comparison 828 | if (mux = XmcOpen(mDisplay, 0)) { | ^ | == xmtg.c:836:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 836 | if (dlp = XmcListDisplaysWithInfo(mux, &n, &dip)) { | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xmtg.c:836:15: note: place parentheses around the assignment to silence this warning 836 | if (dlp = XmcListDisplaysWithInfo(mux, &n, &dip)) { | ^ | ( ) xmtg.c:836:15: note: use '==' to turn this assignment into an equality comparison 836 | if (dlp = XmcListDisplaysWithInfo(mux, &n, &dip)) { | ^ | == xmtg.c:838:49: warning: passing arguments to 'im2s' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 838 | np = node_add(dlp[i], dip->tag, im2s(dip->mode), 0); | ^ xmtg.c:838:26: warning: passing arguments to 'node_add' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 838 | np = node_add(dlp[i], dip->tag, im2s(dip->mode), 0); | ^ xmtg.c:841:27: warning: too many arguments in call to 'show_add' 841 | show_add(np, 0); | ~~~~~~~~ ^ xmtg.c:845:10: warning: call to undeclared function 'ui_error'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 845 | ui_error("no chair named '%s' found", chairtag); | ^ xmtg.c:854:7: warning: call to undeclared function 'ui_error'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 854 | ui_error("cannot connect to multiplexor at %s", mDisplay); | ^ xmtg.c:734:20: warning: unused variable 'j' [-Wunused-variable] 734 | register int i, j; | ^ xmtg.c:735:20: warning: unused variable 'w' [-Wunused-variable] 735 | register Widget w; | ^ xmtg.c:741:12: warning: unused variable 'fb' [-Wunused-variable] 741 | String *fb; | ^~ xmtg.c:742:8: warning: unused variable 'arg' [-Wunused-variable] 742 | Arg arg[16]; | ^~~ xmtg.c:746:19: warning: unused variable 'popdown' [-Wunused-variable] 746 | XtPopdownIDRec popdown; | ^~~~~~~ xmtg.c:730:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 730 | main(argc, argv) | ^ xmtg.c:865:18: warning: passing arguments to 'ig_add_icon' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 865 | ig_add_icon(gp, name, NOT, 0, row, col, 0); | ^ xmtg.c:860:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 860 | show_icon_not(name, row, col) | ^ xmtg.c:84:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 84 | static void show_icon_not(); | ^ xmtg.c:869:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 869 | im2s(mode) | ^ xmtg.c:85:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 85 | static int im2s(); | ^ xmtg.c:152:12: warning: unused variable 'mode' [-Wunused-variable] 152 | static int mode = FLOOR; | ^~~~ 170 warnings generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I../../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -I/opt/pkg/include -c node.c node.c:84:35: warning: passing arguments to 'make_new_tag' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 84 | if ((np->display = make_new_tag(display)) == 0) { | ^ node.c:66:19: warning: unused variable 'cp' [-Wunused-variable] 66 | register char *cp; | ^~ node.c:67:9: warning: unused variable 'buf' [-Wunused-variable] 67 | char buf[MAXHOSTNAMELEN]; | ^~~ node.c:58:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 58 | node_add(id, display, mode, w) | ^ In file included from node.c:40: ./node.h:34:10: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 34 | node_t * node_add(); | ^ node.c:102:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 102 | node_remove(np) | ^ In file included from node.c:40: ./node.h:35:7: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 35 | void node_remove(); | ^ node.c:126:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 126 | node_byid(id) | ^ In file included from node.c:40: ./node.h:36:10: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 36 | node_t * node_byid(); | ^ node.c:151:16: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 151 | (*rtn)(np, dp); /* might remove np! */ | ^ node.c:140:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 140 | node_foreach(rtn, dp) | ^ In file included from node.c:40: ./node.h:37:7: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 37 | void node_foreach(); | ^ node.c:158:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 158 | find_bytag(tag) | ^ node.c:54:16: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 54 | static node_t *find_bytag(); | ^ node.c:189:11: warning: call to undeclared function 'gethostname'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 189 | if (gethostname(buf, MAXHOSTNAMELEN) < 0) | ^ node.c:176:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 176 | make_new_tag(display) | ^ node.c:55:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 55 | static char *make_new_tag(); | ^ 17 warnings generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I../../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -I/opt/pkg/include -c ig.c ig.c:111:14: warning: unused variable 'vals' [-Wunused-variable] 111 | XGCValues vals; | ^~~~ ig.c:112:11: warning: unused variable 'pm' [-Wunused-variable] 112 | Pixmap pm; | ^~ ig.c:103:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 103 | ig_init(context, widget, nstates) | ^ In file included from ig.c:47: ./ig.h:75:10: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 75 | IconGrid ig_init(); | ^ ig.c:219:19: warning: passing arguments to 'realize_view' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 219 | realize_view(gp, vp); | ^ ig.c:222:19: warning: passing arguments to 'realize_icon' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 222 | realize_icon(gp, ip); | ^ ig.c:226:15: warning: passing arguments to 'ig_set_view' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 226 | ig_set_view(gp, gp->curviewp); | ^ ig.c:174:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 174 | ig_realize(gp) | ^ In file included from ig.c:47: ./ig.h:76:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 76 | void ig_realize(); | ^ ig.c:256:21: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 256 | if (vp->fontname = (char *)malloc(strlen(fontname)+1)) | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ig.c:256:21: note: place parentheses around the assignment to silence this warning 256 | if (vp->fontname = (char *)malloc(strlen(fontname)+1)) | ^ | ( ) ig.c:256:21: note: use '==' to turn this assignment into an equality comparison 256 | if (vp->fontname = (char *)malloc(strlen(fontname)+1)) | ^ | == ig.c:268:19: warning: passing arguments to 'realize_view' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 268 | realize_view(gp, vp); | ^ ig.c:242:17: warning: unused variable 'i' [-Wunused-variable] 242 | register int i, len; | ^ ig.c:238:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 238 | ig_register_view(gp, fontname) | ^ In file included from ig.c:47: ./ig.h:77:8: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 77 | IGView ig_register_view(); | ^ ig.c:294:23: warning: passing arguments to 'realize_image' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 294 | realize_image(gp, vp->imagev[i]); | ^ ig.c:274:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 274 | realize_view(gp, vp) | ^ ig.c:82:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 82 | static void realize_view(); | ^ ig.c:307:23: warning: passing arguments to 'free_image' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 307 | free_image(vp->imagev[i]); | ^ ig.c:298:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 298 | free_view(gp, vp) | ^ ig.c:83:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 83 | static void free_view(); | ^ ig.c:337:24: warning: passing arguments to 'read_bitmap_file' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 337 | if (read_bitmap_file(imagefile, &iwidth, &iheight, &image)) { | ^ ig.c:340:24: warning: passing arguments to 'read_bitmap_file' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 340 | if (read_bitmap_file(maskfile, &width, &height, &mask)) { | ^ ig.c:347:33: warning: passing arguments to 'ig_register_image_data' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 347 | return ig_register_image_data(gp, vp, state, image, mask, width, height); | ^ ig.c:327:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 327 | ig_register_image_file(gp, vp, state, imagefile, maskfile) | ^ In file included from ig.c:47: ./ig.h:79:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 79 | int ig_register_image_file(); | ^ ig.c:374:17: warning: passing arguments to 'free_image' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 374 | free_image(imp); | ^ ig.c:389:17: warning: passing arguments to 'free_image' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 389 | free_image(vp->imagev[state]); | ^ ig.c:394:20: warning: passing arguments to 'realize_image' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 394 | realize_image(gp, imp); | ^ ig.c:351:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 351 | ig_register_image_data(gp, vp, state, imagebits, maskbits, width, height) | ^ In file included from ig.c:47: ./ig.h:78:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 78 | int ig_register_image_data(); | ^ ig.c:400:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 400 | realize_image(gp, imp) | ^ ig.c:84:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 84 | static void realize_image(); | ^ ig.c:425:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 425 | free_image(imp) | ^ ig.c:85:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 85 | static void free_image(); | ^ ig.c:470:17: warning: passing arguments to 'ig_refresh' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 470 | ig_refresh(gp); | ^ ig.c:446:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 446 | ig_set_view(gp, vp) | ^ In file included from ig.c:47: ./ig.h:81:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 81 | void ig_set_view(); | ^ ig.c:512:19: warning: passing arguments to 'realize_icon' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 512 | realize_icon(gp, ip); | ^ ig.c:540:16: warning: passing arguments to 'ig_resize' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 540 | ig_resize(gp); | ^ ig.c:553:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 553 | if (ip->next = last->next) | ~~~~~~~~~^~~~~~~~~~~~ ig.c:553:20: note: place parentheses around the assignment to silence this warning 553 | if (ip->next = last->next) | ^ | ( ) ig.c:553:20: note: use '==' to turn this assignment into an equality comparison 553 | if (ip->next = last->next) | ^ | == ig.c:565:16: warning: passing arguments to 'draw_icon' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 565 | draw_icon(gp, ip, 0); | ^ ig.c:481:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 481 | ig_add_icon(gp, tag, state, selected, row, col, data) | ^ In file included from ig.c:47: ./ig.h:82:9: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 82 | IGIcon *ig_add_icon(); | ^ ig.c:571:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 571 | realize_icon(gp, ip) | ^ ig.c:88:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 88 | static void realize_icon(); | ^ ig.c:581:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 581 | ig_set_data(ip, data) | ^ In file included from ig.c:47: ./ig.h:83:7: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 83 | void *ig_set_data(); | ^ ig.c:598:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 598 | ig_find_icon(gp, tag) | ^ In file included from ig.c:47: ./ig.h:84:9: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 84 | IGIcon *ig_find_icon(); | ^ ig.c:627:19: warning: passing arguments to 'draw_icon' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 627 | draw_icon(gp, ip, 1); | ^ ig.c:616:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 616 | ig_change_state(gp, ip, state) | ^ In file included from ig.c:47: ./ig.h:85:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 85 | void ig_change_state(); | ^ ig.c:639:19: warning: passing arguments to 'draw_icon' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 639 | draw_icon(gp, ip, 1); | ^ ig.c:645:22: warning: passing arguments to 'draw_icon' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 645 | draw_icon(gp, ip, 1); | ^ ig.c:632:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 632 | ig_select(gp, ip) | ^ In file included from ig.c:47: ./ig.h:86:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 86 | void ig_select(); | ^ ig.c:657:19: warning: passing arguments to 'draw_icon' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 657 | draw_icon(gp, ip, 1); | ^ ig.c:663:22: warning: passing arguments to 'draw_icon' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 663 | draw_icon(gp, ip, 1); | ^ ig.c:650:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 650 | ig_unselect(gp, ip) | ^ In file included from ig.c:47: ./ig.h:87:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 87 | void ig_unselect(); | ^ ig.c:684:12: warning: passing arguments to 'ig_clear' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 684 | ig_clear(gp, ip->row, ip->col); | ^ ig.c:668:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 668 | ig_remove_icon(gp, ip) | ^ In file included from ig.c:47: ./ig.h:88:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 88 | void ig_remove_icon(); | ^ ig.c:708:16: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 708 | (*rtn)(gp, ip); | ^ ig.c:710:10: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 710 | (*rtn)(gp, 0); | ^ ig.c:700:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 700 | ig_call_callback(gp, rtn) | ^ In file included from ig.c:47: ./ig.h:89:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 89 | void ig_call_callback(); | ^ ig.c:722:16: warning: passing arguments to 'draw_icon' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 722 | draw_icon(gp, nip, 0); | ^ ig.c:714:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 714 | ig_refresh(gp) | ^ In file included from ig.c:47: ./ig.h:90:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 90 | void ig_refresh(); | ^ ig.c:733:14: warning: passing arguments to 'grid2coord' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 733 | grid2coord(gp, ip->row, ip->col, &lx, &ty); | ^ ig.c:735:16: warning: passing arguments to 'visible' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 735 | if (!visible(gp, lx, ty)) | ^ ig.c:731:16: warning: unused variable 'rx' [-Wunused-variable] 731 | int lx, ty, rx, by; | ^~ ig.c:731:20: warning: unused variable 'by' [-Wunused-variable] 731 | int lx, ty, rx, by; | ^~ ig.c:726:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 726 | draw_icon(gp, ip, clear) | ^ ig.c:87:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 87 | static void draw_icon(); | ^ ig.c:778:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 778 | visible(gp, lx, ty) | ^ ig.c:89:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 89 | static int visible(); | ^ ig.c:806:14: warning: passing arguments to 'grid2coord' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 806 | grid2coord(gp, row, col, &x, &y); | ^ ig.c:797:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 797 | ig_clear(gp, row, col) | ^ In file included from ig.c:47: ./ig.h:91:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 91 | void ig_clear(); | ^ ig.c:818:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 818 | grid2coord(gp, row, col, xp, yp) | ^ ig.c:90:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 90 | static void grid2coord(); | ^ ig.c:828:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 828 | coord2grid(gp, x, y, rowp, colp, hotxp, hotyp) | ^ ig.c:91:16: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 91 | static IGIcon *coord2grid(); | ^ ig.c:906:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 906 | ig_down(widget, event, params, nparams) | ^ ig.c:55:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 55 | void ig_down(); | ^ ig.c:947:15: warning: passing arguments to 'draw_box' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 947 | draw_box(gp, gp->lastx, gp->lasty); | ^ ig.c:948:15: warning: passing arguments to 'draw_box' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 948 | draw_box(gp, event->xbutton.x, event->xbutton.y); | ^ ig.c:958:18: warning: passing arguments to 'draw_box' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 958 | draw_box(gp, event->xbutton.x, event->xbutton.y); | ^ ig.c:935:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 935 | ig_move(widget, event, params, nparams) | ^ ig.c:56:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 56 | void ig_move(); | ^ ig.c:967:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 967 | draw_box(gp, x, y) | ^ ig.c:57:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 57 | void draw_box(); | ^ ig.c:1067:7: warning: add explicit braces to avoid dangling else [-Wdangling-else] 1067 | else | ^ ig.c:1012:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1012 | ig_up(widget, event, params, nparams) | ^ ig.c:58:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 58 | void ig_up(); | ^ ig.c:1094:11: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 1094 | static pending; | ~~~~~~ ^ | int ig.c:1085:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1085 | ig_expose(widget, event, params, nparams) | ^ ig.c:59:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 59 | void ig_expose(); | ^ ig.c:1145:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1145 | ig_configure(widget, event, params, nparams) | ^ ig.c:60:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 60 | void ig_configure(); | ^ ig.c:1162:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1162 | ig_resize(gp) | ^ In file included from ig.c:47: ./ig.h:97:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 97 | void ig_resize(); | ^ ig.c:1174:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1174 | read_bitmap_file(filename, wp, hp, dp) | ^ ig.c:92:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 92 | static int read_bitmap_file(); | ^ ig.c:81:13: warning: unused function 'realize' [-Wunused-function] 81 | static void realize(); | ^~~~~~~ ig.c:298:1: warning: unused function 'free_view' [-Wunused-function] 298 | free_view(gp, vp) | ^~~~~~~~~ ig.c:86:16: warning: unused function 'find_icon_tag' [-Wunused-function] 86 | static IGIcon *find_icon_tag(); | ^~~~~~~~~~~~~ 109 warnings generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I../../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -I/opt/pkg/include -c ui.c In file included from ui.c:51: ./ui.h:55:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 55 | void ui_create(); | ^ ui.c:70:1: note: conflicting prototype is here 70 | ui_create(Widget top, int floor, int seat, int view, Widget *gridp) | ^ ui.c:81:22: warning: passing arguments to 'ui_create_pulldown' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 81 | ui_create_pulldown("file", parent, &menu); | ^ ui.c:85:23: warning: passing arguments to 'new_dialog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 85 | open_d = new_dialog(top); | ^ ui.c:87:20: warning: passing arguments to 'ui_create_dialog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 87 | ui_create_dialog("open", open_d, parent, OPEN_PROMPT); | ^ ui.c:88:28: warning: passing arguments to 'ui_create_dialog_dismiss' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 88 | ui_create_dialog_dismiss("accept", open_d, open_cb, open_d->dialog); | ^ ui.c:89:28: warning: passing arguments to 'ui_create_dialog_dismiss' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 89 | ui_create_dialog_dismiss("cancel", open_d, 0, 0); | ^ ui.c:93:23: warning: passing arguments to 'new_dialog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 93 | save_d = new_dialog(top); | ^ ui.c:95:20: warning: passing arguments to 'ui_create_dialog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 95 | ui_create_dialog("save", save_d, parent, SAVE_PROMPT); | ^ ui.c:96:28: warning: passing arguments to 'ui_create_dialog_dismiss' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 96 | ui_create_dialog_dismiss("accept", save_d, save_cb, save_d->dialog); | ^ ui.c:97:28: warning: passing arguments to 'ui_create_dialog_dismiss' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 97 | ui_create_dialog_dismiss("cancel", save_d, 0, 0); | ^ ui.c:109:22: warning: passing arguments to 'ui_create_pulldown' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 109 | ui_create_pulldown("select", parent, &menu); | ^ ui.c:119:22: warning: passing arguments to 'ui_create_pulldown' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 119 | ui_create_pulldown("pref", parent, &menu); | ^ ui.c:135:22: warning: passing arguments to 'new_dialog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 135 | add_d = new_dialog(top); | ^ ui.c:142:23: warning: passing arguments to 'new_dialog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 142 | drop_d = new_dialog(top); | ^ ui.c:164:28: warning: passing arguments to 'ui_create_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 164 | errors = ui_create_error(top, parent); | ^ ui.c:73:14: warning: unused variable 'shell' [-Wunused-variable] 73 | Widget w, shell, dialog, menu, radio; | ^~~~~ ui.c:73:21: warning: unused variable 'dialog' [-Wunused-variable] 73 | Widget w, shell, dialog, menu, radio; | ^~~~~~ ui.c:73:35: warning: unused variable 'radio' [-Wunused-variable] 73 | Widget w, shell, dialog, menu, radio; | ^~~~~ ui.c:74:14: warning: unused variable 'width' [-Wunused-variable] 74 | Dimension width, height; | ^~~~~ ui.c:74:21: warning: unused variable 'height' [-Wunused-variable] 74 | Dimension width, height; | ^~~~~~ ui.c:182:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 182 | ui_create_radio(name, parent, value, leader, buttonp) | ^ In file included from ui.c:51: ./ui.h:56:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 56 | void ui_create_radio(); | ^ ui.c:203:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 203 | blort(w, c, d) | ^ ui.c:262:31: warning: passing arguments to 'ui_create_dialog_dismiss' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 262 | ui_create_dialog_dismiss("accept", dp, add_cb, (XtPointer)adp); | ^ ui.c:263:31: warning: passing arguments to 'ui_create_dialog_dismiss' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 263 | ui_create_dialog_dismiss("cancel", dp, 0, 0); | ^ ui.c:291:31: warning: passing arguments to 'ui_create_dialog_dismiss' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 291 | ui_create_dialog_dismiss("accept", dp, drop_cb, 0); | ^ ui.c:292:31: warning: passing arguments to 'ui_create_dialog_dismiss' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 292 | ui_create_dialog_dismiss("cancel", dp, 0, 0); | ^ ui.c:302:11: warning: variable 'w' set but not used [-Wunused-but-set-variable] 302 | Widget w; | ^ ui.c:297:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 297 | ui_create_pulldown(name, parent, menup) | ^ In file included from ui.c:51: ./ui.h:57:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 57 | void ui_create_pulldown(); | ^ ui.c:320:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 320 | ui_create_dialog(name, dp, parent, prompt) | ^ In file included from ui.c:51: ./ui.h:58:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 58 | void ui_create_dialog(); | ^ ui.c:344:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 344 | ui_create_dialog_dismiss(name, dp, callback, data) | ^ In file included from ui.c:51: ./ui.h:59:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 59 | void ui_create_dialog_dismiss(); | ^ ui.c:369:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 369 | ui_create_error(top, parent) | ^ In file included from ui.c:51: ./ui.h:60:10: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 60 | error_t *ui_create_error(); | ^ ui.c:408:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 408 | popdown_error_cb(w, client_data, call_data) | ^ ui.c:63:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 63 | static void popdown_error_cb(); | ^ ui.c:419:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 419 | ui_get_dialog_string(dialog) | ^ In file included from ui.c:51: ./ui.h:61:7: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 61 | char *ui_get_dialog_string(); | ^ ui.c:426:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 426 | ui_get_toggle_state(w) | ^ ui.c:437:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 437 | ui_get_add_info(adp, strp, modep) | ^ In file included from ui.c:51: ./ui.h:62:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 62 | void ui_get_add_info(); | ^ ui.c:451:18: warning: passing arguments to 'ui_free_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 451 | ui_free_string(adp->input); | ^ ui.c:448:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 448 | ui_free_add_info(adp) | ^ In file included from ui.c:51: ./ui.h:63:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 63 | void ui_free_add_info(); | ^ ui.c:455:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 455 | ui_free_string(w) | ^ In file included from ui.c:51: ./ui.h:64:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 64 | void ui_free_string(); | ^ ui.c:480:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 480 | ui_dialog_accept(which) | ^ ui.c:492:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 492 | ui_dialog_cancel(which) | ^ ui.c:510:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 510 | new_dialog(top) | ^ ui.c:60:18: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 60 | static dialog_t *new_dialog(); | ^ ui.c:523:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 523 | center_popup(w, client_data, call_data) | ^ ui.c:61:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 61 | static void center_popup(); | ^ 54 warnings generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I../../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -I/opt/pkg/include -c layout.c layout.c:48:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 48 | if (bp = (char *)malloc(st.st_size + 1)) { | ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ layout.c:48:17: note: place parentheses around the assignment to silence this warning 48 | if (bp = (char *)malloc(st.st_size + 1)) { | ^ | ( ) layout.c:48:17: note: use '==' to turn this assignment into an equality comparison 48 | if (bp = (char *)malloc(st.st_size + 1)) { | ^ | == layout.c:49:17: warning: call to undeclared function 'read'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 49 | if (read(fd, bp, st.st_size) == st.st_size) { | ^ layout.c:51:32: warning: passing arguments to 'layout_data' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 51 | rv = layout_data(bp, rtn); | ^ layout.c:55:7: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 55 | close(fd); | ^ layout.c:38:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 38 | layout_file(filename, rtn) | ^ In file included from layout.c:35: ./layout.h:31:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 31 | int layout_file(); | ^ layout.c:95:19: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 95 | (*rtn)(cp, row, col++); | ^ layout.c:101:10: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 101 | (*rtn)(0, 0, 0); | ^ layout.c:61:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 61 | layout_data(str, rtn) | ^ In file included from layout.c:35: ./layout.h:32:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 32 | int layout_data(); | ^ layout.c:102:1: warning: non-void function does not return a value [-Wreturn-type] 102 | } | ^ 11 warnings generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I../../include -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -I/opt/pkg/include -c pathfind.c pathfind.c:93:28: warning: add explicit braces to avoid dangling else [-Wdangling-else] 93 | else | ^ pathfind.c:101:28: warning: add explicit braces to avoid dangling else [-Wdangling-else] 101 | else | ^ pathfind.c:105:42: warning: & has lower precedence than ==; == will be evaluated first [-Wparentheses] 105 | if ( (st.st_mode & S_IXOTH == 0) && | ^~~~~~~~~~~~~~ pathfind.c:105:42: note: place parentheses around the '==' expression to silence this warning 105 | if ( (st.st_mode & S_IXOTH == 0) && | ^ ~~~~~~~~~~~~ pathfind.c:105:42: note: place parentheses around the & expression to evaluate it first 105 | if ( (st.st_mode & S_IXOTH == 0) && | ~~~~~~~~~~~^~~~~~~~~ pathfind.c:106:18: warning: & has lower precedence than ==; == will be evaluated first [-Wparentheses] 106 | ((st.st_mode & S_IXUSR == 0) || uid != st.st_uid)) | ^~~~~~~~~~~~~~ pathfind.c:106:18: note: place parentheses around the '==' expression to silence this warning 106 | ((st.st_mode & S_IXUSR == 0) || uid != st.st_uid)) | ^ ~~~~~~~~~~~~ pathfind.c:106:18: note: place parentheses around the & expression to evaluate it first 106 | ((st.st_mode & S_IXUSR == 0) || uid != st.st_uid)) | ~~~~~~~~~~~^~~~~~~~~ pathfind.c:107:44: warning: & has lower precedence than ==; == will be evaluated first [-Wparentheses] 107 | if ((st.st_mode & S_IXGRP == 0) || gid != st.st_gid) | ^~~~~~~~~~~~~~ pathfind.c:107:44: note: place parentheses around the '==' expression to silence this warning 107 | if ((st.st_mode & S_IXGRP == 0) || gid != st.st_gid) | ^ ~~~~~~~~~~~~ pathfind.c:107:44: note: place parentheses around the & expression to evaluate it first 107 | if ((st.st_mode & S_IXGRP == 0) || gid != st.st_gid) | ~~~~~~~~~~~^~~~~~~~~ pathfind.c:109:28: warning: add explicit braces to avoid dangling else [-Wdangling-else] 109 | else | ^ pathfind.c:149:19: warning: add explicit braces to avoid dangling else [-Wdangling-else] 149 | else | ^ pathfind.c:40:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 40 | pathfind | ^ 8 warnings generated. rm -f xmtg clang -o xmtg -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -L/opt/pkg/lib -L/opt/pkg/lib -L/opt/pkg/lib xmtg.o node.o ig.o ui.o layout.o pathfind.o -L../../lib/Xmc -lXmc_d -lXaw -lXmu -lXt -lSM -lICE -lXpm -lXext -lX11 making all in clients/xmxinit... 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 -DTCPCONN -DUNIXCONN -DBINDIR=\"/opt/pkg/bin\" -I/opt/pkg/include -c xmxinit.c xmxinit.c:163:6: warning: variable 'client_args_given' set but not used [-Wunused-but-set-variable] 163 | int client_args_given = 0, server_args_given = 0; | ^ xmxinit.c:163:29: warning: variable 'server_args_given' set but not used [-Wunused-but-set-variable] 163 | int client_args_given = 0, server_args_given = 0; | ^ xmxinit.c:381:14: warning: 'vfork' is deprecated: Use posix_spawn or fork [-Wdeprecated-declarations] 381 | serverpid = vfork(); | ^ /System/Volumes/Data/Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/unistd.h:608:1: note: 'vfork' has been explicitly marked deprecated here 608 | __deprecated_msg("Use posix_spawn or fork") | ^ /System/Volumes/Data/Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:218:48: note: expanded from macro '__deprecated_msg' 218 | #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg))) | ^ xmxinit.c:408:14: warning: unused variable 'cpp' [-Wunused-variable] 408 | char **cpp; | ^~~ xmxinit.c:463:19: warning: 'vfork' is deprecated: Use posix_spawn or fork [-Wdeprecated-declarations] 463 | if ((clientpid = vfork()) == 0) { | ^ /System/Volumes/Data/Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/unistd.h:608:1: note: 'vfork' has been explicitly marked deprecated here 608 | __deprecated_msg("Use posix_spawn or fork") | ^ /System/Volumes/Data/Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:218:48: note: expanded from macro '__deprecated_msg' 218 | #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg))) | ^ 5 warnings generated. rm -f xmxinit clang -o xmxinit -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -L/opt/pkg/lib -L/opt/pkg/lib -L/opt/pkg/lib xmxinit.o -lXmu -lXt -lSM -lICE -lXext -lX11 -lXext -lX11 ld: warning: ignoring duplicate libraries: '-lX11', '-lXext' rm -f xmxinit._man if test -z "" ; then cd `dirname xmxinit` && ln -s `basename xmxinit.man` `basename xmxinit._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" < xmxinit.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/\@\@$/\\/' >xmxinit._man; fi making all in ./man... rm -f xmx._man if test -z "" ; then cd `dirname xmx` && ln -s `basename xmx.man` `basename xmx._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" < xmx.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/\@\@$/\\/' >xmx._man; fi