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] 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] 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] 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] Xmc_io_error(muxp); ^ common.c:386:19: warning: unused variable 'cp' [-Wunused-variable] 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] 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] 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] 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] 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] 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] 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] 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] Xmc_io_error(muxp); ^ common.c:386:19: warning: unused variable 'cp' [-Wunused-variable] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] } ^ 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] } ^ 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] } ^ 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] } ^ 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] } ^ 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] 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] 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 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 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] if ( MALLOC(ap, amap_t *, sizeof(amap_t)) || ^ ./xmx.h:447:4: note: expanded from macro 'MALLOC' 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] if (CALLOC(nnames, amap_t **, nsize, sizeof(amap_t *))) ^ ./xmx.h:450:4: note: expanded from macro 'CALLOC' 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] if (filename = authfile()) ~~~~~~~~~^~~~~~~~~~~~ auth.c:137:17: note: place parentheses around the assignment to silence this warning if (filename = authfile()) ^ ( ) auth.c:137:17: note: use '==' to turn this assignment into an equality comparison if (filename = authfile()) ^ == auth.c:384:18: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] else if (file = (char *)getenv("XAUTHORITY")) ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ auth.c:384:18: note: place parentheses around the assignment to silence this warning else if (file = (char *)getenv("XAUTHORITY")) ^ ( ) auth.c:384:18: note: use '==' to turn this assignment into an equality comparison else if (file = (char *)getenv("XAUTHORITY")) ^ == auth.c:386:18: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] else if (file = (char *)getenv("HOME")) { ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ auth.c:386:18: note: place parentheses around the assignment to silence this warning else if (file = (char *)getenv("HOME")) { ^ ( ) auth.c:386:18: note: use '==' to turn this assignment into an equality comparison else if (file = (char *)getenv("HOME")) { ^ == auth.c:420:7: warning: add explicit braces to avoid dangling else [-Wdangling-else] else ^ auth.c:606:17: warning: unused variable 'i' [-Wunused-variable] register int i, len, incr; ^ auth.c:606:25: warning: unused variable 'incr' [-Wunused-variable] register int i, len, incr; ^ auth.c:607:19: warning: unused variable 'fmt' [-Wunused-variable] register char *fmt; ^ auth.c:564:1: warning: unused function 'print_list' [-Wunused-function] print_list ^ auth.c:575:1: warning: unused function 'print_rec' [-Wunused-function] 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] for (chp=bp->head; last=chp;) { /* free extra chunks */ ~~~~^~~~ buf.c:131:27: note: place parentheses around the assignment to silence this warning for (chp=bp->head; last=chp;) { /* free extra chunks */ ^ ( ) buf.c:131:27: note: use '==' to turn this assignment into an equality comparison 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] for (bp=bfree; last=bp;) { ~~~~^~~ buf.c:174:23: note: place parentheses around the assignment to silence this warning for (bp=bfree; last=bp;) { ^ ( ) buf.c:174:23: note: use '==' to turn this assignment into an equality comparison for (bp=bfree; last=bp;) { ^ == buf.c:208:11: warning: variable 'nsz' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized] if (off > chp->sz) ^~~~~~~~~~~~~ buf.c:224:15: note: uninitialized use occurs here nchp->sz = nsz; ^~~ buf.c:208:7: note: remove the 'if' if its condition is always false if (off > chp->sz) ^~~~~~~~~~~~~~~~~~ buf.c:197:14: note: initialize the variable 'nsz' to silence this warning 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] if ((r = read(fd, cp+t, n-t)) < 0) ^ buf.c:590:25: warning: add explicit braces to avoid dangling else [-Wdangling-else] else ^ buf.c:726:17: warning: unused variable 'i' [-Wunused-variable] register int i, j, cnt; ^ buf.c:726:20: warning: unused variable 'j' [-Wunused-variable] register int i, j, cnt; ^ buf.c:726:23: warning: unused variable 'cnt' [-Wunused-variable] register int i, j, cnt; ^ buf.c:788:25: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] for (chp=chfree; last=chp;) { ~~~~^~~~ buf.c:788:25: note: place parentheses around the assignment to silence this warning for (chp=chfree; last=chp;) { ^ ( ) buf.c:788:25: note: use '==' to turn this assignment into an equality comparison 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] static FUNC( ptc_t *, new_ptc, (void)); ^ ./incl/ptc.pvt.h:10:20: warning: unused function 'free_ptc' [-Wunused-function] static FUNC( void, free_ptc, (ptc_t *)); ^ ./incl/ptc.pvt.h:11:20: warning: unused function 'free_block' [-Wunused-function] static FUNC( void, free_block, (char *)); ^ 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] if (MALLOC(cp, char *, vendor_len)) ^ ./xmx.h:447:4: note: expanded from macro 'MALLOC' err(-1, "malloc returned zero [%d]\n",(size)) : 0) ^ cblock.c:123:7: warning: add explicit braces to avoid dangling else [-Wdangling-else] 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] register chunk_t *chp; ^ cliz.c:498:17: warning: unused variable 'i' [-Wunused-variable] register int i; ^ cliz.c:670:19: warning: unused variable 'cxp' [-Wunused-variable] register cx_t *cxp; ^ cliz.c:697:20: warning: unused variable 'xp' [-Wunused-variable] register xmc_t *xp = (xmc_t *)df_get_p(dfp); ^ cliz.c:727:22: warning: unused variable 'chp' [-Wunused-variable] register chunk_t *chp; ^ cliz.c:747:19: warning: unused variable 'cxp' [-Wunused-variable] register cx_t *cxp; ^ cliz.c:777:20: warning: unused variable 'xp' [-Wunused-variable] register xmc_t *xp = (xmc_t *)df_get_p(dfp); ^ cliz.c:807:22: warning: unused variable 'chp' [-Wunused-variable] register chunk_t *chp; ^ cliz.c:1011:11: warning: unused variable 'atom' [-Wunused-variable] 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] static FUNC( ptc_t *, new_ptc, (void)); ^ ./incl/ptc.pvt.h:10:20: warning: unused function 'free_ptc' [-Wunused-function] static FUNC( void, free_ptc, (ptc_t *)); ^ ./incl/ptc.pvt.h:11:20: warning: unused function 'free_block' [-Wunused-function] static FUNC( void, free_block, (char *)); ^ 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] if (ncmp = cmap_create(ocmp->class, ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ cmap.c:199:19: note: place parentheses around the assignment to silence this warning if (ncmp = cmap_create(ocmp->class, ^ ( cmap.c:199:19: note: use '==' to turn this assignment into an equality comparison if (ncmp = cmap_create(ocmp->class, ^ == cmap.c:209:19: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (ncmp = cmap_create(ocmp->class, 0, ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cmap.c:209:19: note: place parentheses around the assignment to silence this warning if (ncmp = cmap_create(ocmp->class, 0, ^ ( cmap.c:209:19: note: use '==' to turn this assignment into an equality comparison 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] list_put(lstp, u.longs.l[0]); ^ ./xmx.h:611:3: note: expanded from macro 'list_put' 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] list_put(lstp, u.longs.l[1]); ^ ./xmx.h:611:3: note: expanded from macro 'list_put' 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] list_put(lstp, u.longs.l[0]); ^ ./xmx.h:611:3: note: expanded from macro 'list_put' 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] list_put(lstp, u.longs.l[1]); ^ ./xmx.h:611:3: note: expanded from macro 'list_put' 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] list_put(lstp, u.longs.l[0]); ^ ./xmx.h:611:3: note: expanded from macro 'list_put' 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] list_put(lstp, u.longs.l[1]); ^ ./xmx.h:611:3: note: expanded from macro 'list_put' 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] list_put(lstp, u.longs.l[0]); ^ ./xmx.h:611:3: note: expanded from macro 'list_put' 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] list_put(lstp, u.longs.l[1]); ^ ./xmx.h:611:3: note: expanded from macro 'list_put' 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] list_put(lstp, u.longs.l[0]); ^ ./xmx.h:611:3: note: expanded from macro 'list_put' 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] list_put(lstp, u.longs.l[1]); ^ ./xmx.h:611:3: note: expanded from macro 'list_put' 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] list_put(lstp, (u32_t)i); ^ ./xmx.h:611:3: note: expanded from macro 'list_put' 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] list_put(lstp, (u32_t)pixel); ^ ./xmx.h:611:3: note: expanded from macro 'list_put' list_bump(lp);\ ^ cmap.c:1579:19: warning: unused variable 'diff' [-Wunused-variable] register u32_t diff, mindiff; ^ cmap.c:1579:25: warning: unused variable 'mindiff' [-Wunused-variable] 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] int new; ^ color.c:75:10: warning: unused variable 't' [-Wunused-variable] u16_t t; ^ color.c:352:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 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 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 while (n = cmap_get_cells(nmp->cmap, CS_ALLOC, 256, cbuf)) ^ == color.c:283:22: warning: unused variable 'chp' [-Wunused-variable] register chunk_t *chp; ^ color.c:456:8: warning: unused variable 'n' [-Wunused-variable] int n, new; ^ color.c:575:19: warning: unused variable 'seqn' [-Wunused-variable] register u16_t seqn = (u16_t)df_get_i(dfp); ^ color.c:605:8: warning: unused variable 'n' [-Wunused-variable] int n, new; ^ color.c:665:19: warning: unused variable 'seqn' [-Wunused-variable] register u16_t seqn = (u16_t)df_get_i(dfp); ^ color.c:847:19: warning: unused variable 'seqn' [-Wunused-variable] register u16_t seqn = (u16_t)df_get_i(dfp); ^ color.c:950:19: warning: unused variable 'seqn' [-Wunused-variable] register u16_t seqn = (u16_t)df_get_i(dfp); ^ color.c:1059:10: warning: unused variable 'max' [-Wunused-variable] u16_t max, red, green, blue; ^ color.c:1132:10: warning: unused variable 'max' [-Wunused-variable] u16_t max, exr, exg, exb; ^ color.c:1231:29: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] for (nmp=colormaps; mp=nmp;) { ~~^~~~ color.c:1231:29: note: place parentheses around the assignment to silence this warning for (nmp=colormaps; mp=nmp;) { ^ ( ) color.c:1231:29: note: use '==' to turn this assignment into an equality comparison for (nmp=colormaps; mp=nmp;) { ^ == color.c:1292:22: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 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 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 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] 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 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 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] 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 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 if (n = cmap_get_cells(mp->cmap, CS_WRITE, 256, cip)) { ^ == color.c:1396:17: warning: unused variable 'i' [-Wunused-variable] register int i; ^ color.c:1397:22: warning: unused variable 'nchp' [-Wunused-variable] register chunk_t *nchp; ^ color.c:1471:17: warning: unused variable 'i' [-Wunused-variable] register int i; ^ color.c:1472:22: warning: unused variable 'nchp' [-Wunused-variable] register chunk_t *nchp; ^ color.c:1475:11: warning: unused variable 'real_mask' [-Wunused-variable] mask_t real_mask, *maskp; ^ color.c:1475:23: warning: unused variable 'maskp' [-Wunused-variable] 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] if (cp->swap = (prefix->byteOrder == endian) ? 0 : 1) ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ connect.c:80:17: note: place parentheses around the assignment to silence this warning if (cp->swap = (prefix->byteOrder == endian) ? 0 : 1) ^ ( ) connect.c:80:17: note: use '==' to turn this assignment into an equality comparison if (cp->swap = (prefix->byteOrder == endian) ? 0 : 1) ^ == connect.c:199:13: warning: unused variable 'chp' [-Wunused-variable] 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] if (MALLOC(cookie, cookie_t *, sizeof(cookie_t))) ^ ./xmx.h:447:4: note: expanded from macro 'MALLOC' 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] if (MALLOC(crp, cursor_t *, sizeof(cursor_t))) { ^ ./xmx.h:447:4: note: expanded from macro 'MALLOC' 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] if (MALLOC(crp, cursor_t *, sizeof(cursor_t))) { ^ ./xmx.h:447:4: note: expanded from macro 'MALLOC' 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] for (ncrp=cursors; crp=ncrp;) { ~~~^~~~~ cursor.c:226:26: note: place parentheses around the assignment to silence this warning for (ncrp=cursors; crp=ncrp;) { ^ ( ) cursor.c:226:26: note: use '==' to turn this assignment into an equality comparison for (ncrp=cursors; crp=ncrp;) { ^ == cursor.c:252:26: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] for (ncrp=cursors; crp=ncrp;) { ~~~^~~~~ cursor.c:252:26: note: place parentheses around the assignment to silence this warning for (ncrp=cursors; crp=ncrp;) { ^ ( ) cursor.c:252:26: note: use '==' to turn this assignment into an equality comparison for (ncrp=cursors; crp=ncrp;) { ^ == cursor.c:367:22: warning: unused variable 'chp' [-Wunused-variable] register chunk_t *chp; ^ cursor.c:399:17: warning: unused variable 'i' [-Wunused-variable] 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] for (cxp=cxfree; last=cxp;) { ~~~~^~~~ cx.c:151:25: note: place parentheses around the assignment to silence this warning for (cxp=cxfree; last=cxp;) { ^ ( ) cx.c:151:25: note: use '==' to turn this assignment into an equality comparison 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] register int i; ^ debug.c:108:20: warning: unused variable 'len' [-Wunused-variable] register uint_t len; ^ debug.c:109:25: warning: unused variable 'cp' [-Wunused-variable] register char *ptr, *cp; ^ debug.c:146:17: warning: unused variable 'len' [-Wunused-variable] register int len; ^ debug.c:171:8: warning: unused variable 'n' [-Wunused-variable] int n; ^ debug.c:208:17: warning: unused variable 'i' [-Wunused-variable] register int i; ^ debug.c:234:19: warning: unused variable 'ptr' [-Wunused-variable] register char *ptr, *cp; ^ debug.c:234:25: warning: unused variable 'cp' [-Wunused-variable] register char *ptr, *cp; ^ debug.c:257:17: warning: unused variable 'i' [-Wunused-variable] register int i; ^ debug.c:276:8: warning: unused variable 'n' [-Wunused-variable] int n; ^ debug.c:74:1: warning: unused function 'addheapmap' [-Wunused-function] addheapmap ^ debug.c:229:1: warning: unused function 'verify_block' [-Wunused-function] 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] for (blkp=dfp->blkp; lastp=blkp;) { ~~~~~^~~~~ df.c:82:30: note: place parentheses around the assignment to silence this warning for (blkp=dfp->blkp; lastp=blkp;) { ^ ( ) df.c:82:30: note: use '==' to turn this assignment into an equality comparison 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] while (fp = cblock_format(0)) ~~~^~~~~~~~~~~~~~~~~~ dprx.c:754:14: note: place parentheses around the assignment to silence this warning while (fp = cblock_format(0)) ^ ( ) dprx.c:754:14: note: use '==' to turn this assignment into an equality comparison while (fp = cblock_format(0)) ^ == dprx.c:756:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (rp = cblock_root(0)) { ~~~^~~~~~~~~~~~~~~~ dprx.c:756:14: note: place parentheses around the assignment to silence this warning while (rp = cblock_root(0)) { ^ ( ) dprx.c:756:14: note: use '==' to turn this assignment into an equality comparison while (rp = cblock_root(0)) { ^ == dprx.c:758:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (dp = cblock_depth(0)) { ~~~^~~~~~~~~~~~~~~~~ dprx.c:758:17: note: place parentheses around the assignment to silence this warning while (dp = cblock_depth(0)) { ^ ( ) dprx.c:758:17: note: use '==' to turn this assignment into an equality comparison while (dp = cblock_depth(0)) { ^ == dprx.c:760:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (vp = cblock_visual(0)) ~~~^~~~~~~~~~~~~~~~~~ dprx.c:760:20: note: place parentheses around the assignment to silence this warning while (vp = cblock_visual(0)) ^ ( ) dprx.c:760:20: note: use '==' to turn this assignment into an equality comparison while (vp = cblock_visual(0)) ^ == dprx.c:1798:18: warning: unused variable 'clinum' [-Wunused-variable] register u8_t clinum; ^ dprx.c:1799:19: warning: unused variable 'cseq' [-Wunused-variable] register u16_t cseq, sseq; ^ dprx.c:1801:19: warning: unused variable 'type' [-Wunused-variable] 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] 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] static FUNC( ptc_t *, new_ptc, (void)); ^ ./incl/ptc.pvt.h:10:20: warning: unused function 'free_ptc' [-Wunused-function] static FUNC( void, free_ptc, (ptc_t *)); ^ ./incl/ptc.pvt.h:11:20: warning: unused function 'free_block' [-Wunused-function] static FUNC( void, free_block, (char *)); ^ 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] for (nextp=headp->next; lastp=nextp;) { ~~~~~^~~~~~ ebuf.c:134:36: note: place parentheses around the assignment to silence this warning for (nextp=headp->next; lastp=nextp;) { ^ ( ) ebuf.c:134:36: note: use '==' to turn this assignment into an equality comparison for (nextp=headp->next; lastp=nextp;) { ^ == ebuf.c:205:35: warning: '&&' within '||' [-Wlogical-op-parentheses] if ( mask & KeyPressMask && iskey || ~~~~~~~~~~~~~~~~~~~~^~~~~~~~ ~~ ebuf.c:205:35: note: place parentheses around the '&&' expression to silence this warning if ( mask & KeyPressMask && iskey || ^ ( ) ebuf.c:206:26: warning: '&&' within '||' [-Wlogical-op-parentheses] mask & ButtonPressMask && isbutton) { ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ ebuf.c:206:26: note: place parentheses around the '&&' expression to silence this warning mask & ButtonPressMask && isbutton) { ^ ( ) ebuf.c:238:36: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] for (lastp=0, nextp=headp; ebufp=nextp;) { ~~~~~^~~~~~ ebuf.c:238:36: note: place parentheses around the assignment to silence this warning for (lastp=0, nextp=headp; ebufp=nextp;) { ^ ( ) ebuf.c:238:36: note: use '==' to turn this assignment into an equality comparison 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] ep = (xEvent *)buf_data(chp); ^ ./xmx.h:572:6: note: expanded from macro 'buf_data' (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] p = (xEvent *)buf_data(chp); ^ ./xmx.h:572:6: note: expanded from macro 'buf_data' (quit(-1, "invalid chunk"), (char *)0)) ^ event.c:124:17: warning: unused variable 'i' [-Wunused-variable] register int i, n; ^ event.c:582:22: warning: unused variable 'chp' [-Wunused-variable] 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] nep = (xEvent *)buf_data(chp); ^ ./xmx.h:572:6: note: expanded from macro 'buf_data' (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] DEBUG0(D_EXPOS, "expos_queue: duplicate chunk - ignored\n"); ^ ./xmx.h:453:45: note: expanded from macro 'DEBUG0' #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] DEBUG2(D_EXPOS, "expos_queue: queueing %d events for window 0x%x\n", n, wp); ^ ./xmx.h:455:48: note: expanded from macro 'DEBUG2' #define DEBUG2(lev,fmt,A,B) if (debug & (lev)) warn(fmt,A,B) ^ expos.c:81:27: warning: unused variable 'nevents' [-Wunused-variable] 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] DEBUG0(D_EXPOS, "expos_timeout: invoked\n"); ^ ./xmx.h:453:45: note: expanded from macro 'DEBUG0' #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] for (evp=exphead; last=evp;) { ~~~~^~~~ expos.c:178:26: note: place parentheses around the assignment to silence this warning for (evp=exphead; last=evp;) { ^ ( ) expos.c:178:26: note: use '==' to turn this assignment into an equality comparison for (evp=exphead; last=evp;) { ^ == expos.c:181:28: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] for (wevp=last; wlast=wevp;) { ~~~~~^~~~~ expos.c:181:28: note: place parentheses around the assignment to silence this warning for (wevp=last; wlast=wevp;) { ^ ( ) expos.c:181:28: note: use '==' to turn this assignment into an equality comparison for (wevp=last; wlast=wevp;) { ^ == expos.c:228:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (last=evp) { ~~~~^~~~ expos.c:228:15: note: place parentheses around the assignment to silence this warning while (last=evp) { ^ ( ) expos.c:228:15: note: use '==' to turn this assignment into an equality comparison 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] else if (MALLOC(evp, expvec_t *, sizeof(expvec_t))) ^ ./xmx.h:447:4: note: expanded from macro 'MALLOC' 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] for (evp=evfree; last=evp;) { ~~~~^~~~ expos.c:273:25: note: place parentheses around the assignment to silence this warning for (evp=evfree; last=evp;) { ^ ( ) expos.c:273:25: note: use '==' to turn this assignment into an equality comparison for (evp=evfree; last=evp;) { ^ == expos.c:268:1: warning: unused function 'free_expvec_freelist' [-Wunused-function] 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] } ^ 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] static FUNC( ptc_t *, new_ptc, (void)); ^ ./incl/ptc.pvt.h:10:20: warning: unused function 'free_ptc' [-Wunused-function] static FUNC( void, free_ptc, (ptc_t *)); ^ ./incl/ptc.pvt.h:11:20: warning: unused function 'free_block' [-Wunused-function] static FUNC( void, free_block, (char *)); ^ 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] register window_t *ow; ^ focus.c:413:10: warning: add explicit braces to avoid dangling else [-Wdangling-else] else ^ focus.c:452:10: warning: add explicit braces to avoid dangling else [-Wdangling-else] else ^ focus.c:443:17: warning: unused variable 'i' [-Wunused-variable] 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] static FUNC( ptc_t *, new_ptc, (void)); ^ ./incl/ptc.pvt.h:10:20: warning: unused function 'free_ptc' [-Wunused-function] static FUNC( void, free_ptc, (ptc_t *)); ^ ./incl/ptc.pvt.h:11:20: warning: unused function 'free_block' [-Wunused-function] static FUNC( void, free_block, (char *)); ^ 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] if (MALLOC(fp, font_t *, sizeof(font_t))) { ^ ./xmx.h:447:4: note: expanded from macro 'MALLOC' 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] register xGetFontPathReply *rp = (xGetFontPathReply *)buf_data(chp); ^ ./xmx.h:572:6: note: expanded from macro 'buf_data' (quit(-1, "invalid chunk"), (char *)0)) ^ font.c:148:32: warning: unused variable 'rp' [-Wunused-variable] 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] if (MALLOC(path, char **, len * sizeof(char *))) { ^ ./xmx.h:447:4: note: expanded from macro 'MALLOC' 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] if (MALLOC(path[i], char *, len + 2)) { ^ ./xmx.h:447:4: note: expanded from macro 'MALLOC' 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] for (nfp=fonts; fp=nfp;) { ~~^~~~ font.c:238:22: note: place parentheses around the assignment to silence this warning for (nfp=fonts; fp=nfp;) { ^ ( ) font.c:238:22: note: use '==' to turn this assignment into an equality comparison for (nfp=fonts; fp=nfp;) { ^ == font.c:264:22: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] for (nfp=fonts; fp=nfp;) { ~~^~~~ font.c:264:22: note: place parentheses around the assignment to silence this warning for (nfp=fonts; fp=nfp;) { ^ ( ) font.c:264:22: note: use '==' to turn this assignment into an equality comparison for (nfp=fonts; fp=nfp;) { ^ == font.c:314:22: warning: unused variable 'chp' [-Wunused-variable] 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] if (pxp = (pixmap_t *)hash_data(vmap, *vp)) ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gc.c:91:24: note: place parentheses around the assignment to silence this warning if (pxp = (pixmap_t *)hash_data(vmap, *vp)) ^ ( ) gc.c:91:24: note: use '==' to turn this assignment into an equality comparison 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] if (pxp = (pixmap_t *)hash_data(vmap, *vp)) ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gc.c:99:24: note: place parentheses around the assignment to silence this warning if (pxp = (pixmap_t *)hash_data(vmap, *vp)) ^ ( ) gc.c:99:24: note: use '==' to turn this assignment into an equality comparison 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] if (pxp = (pixmap_t *)hash_data(vmap, *vp)) ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gc.c:108:27: note: place parentheses around the assignment to silence this warning if (pxp = (pixmap_t *)hash_data(vmap, *vp)) ^ ( ) gc.c:108:27: note: use '==' to turn this assignment into an equality comparison if (pxp = (pixmap_t *)hash_data(vmap, *vp)) ^ == gc.c:110:19: warning: add explicit braces to avoid dangling else [-Wdangling-else] else { ^ gc.c:116:23: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (fp = (font_t *)hash_data(vmap, *vp)) ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gc.c:116:23: note: place parentheses around the assignment to silence this warning if (fp = (font_t *)hash_data(vmap, *vp)) ^ ( ) gc.c:116:23: note: use '==' to turn this assignment into an equality comparison if (fp = (font_t *)hash_data(vmap, *vp)) ^ == gc.c:54:22: warning: unused variable 'chp' [-Wunused-variable] register chunk_t *chp; ^ gc.c:186:24: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (pxp = (pixmap_t *)hash_data(vmap, *vp)) ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gc.c:186:24: note: place parentheses around the assignment to silence this warning if (pxp = (pixmap_t *)hash_data(vmap, *vp)) ^ ( ) gc.c:186:24: note: use '==' to turn this assignment into an equality comparison 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] if (pxp = (pixmap_t *)hash_data(vmap, *vp)) ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gc.c:194:24: note: place parentheses around the assignment to silence this warning if (pxp = (pixmap_t *)hash_data(vmap, *vp)) ^ ( ) gc.c:194:24: note: use '==' to turn this assignment into an equality comparison 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] else if (pxp = (pixmap_t *)hash_data(vmap, *vp)) ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gc.c:204:29: note: place parentheses around the assignment to silence this warning else if (pxp = (pixmap_t *)hash_data(vmap, *vp)) ^ ( ) gc.c:204:29: note: use '==' to turn this assignment into an equality comparison 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] if (fp = (font_t *)hash_data(vmap, *vp)) ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gc.c:212:23: note: place parentheses around the assignment to silence this warning if (fp = (font_t *)hash_data(vmap, *vp)) ^ ( ) gc.c:212:23: note: use '==' to turn this assignment into an equality comparison 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] for (ngp=gcs; gp=ngp;) { ~~^~~~ gc.c:319:20: note: place parentheses around the assignment to silence this warning for (ngp=gcs; gp=ngp;) { ^ ( ) gc.c:319:20: note: use '==' to turn this assignment into an equality comparison for (ngp=gcs; gp=ngp;) { ^ == gc.c:393:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] for (ngp=gcs; gp=ngp;) { ~~^~~~ gc.c:393:20: note: place parentheses around the assignment to silence this warning for (ngp=gcs; gp=ngp;) { ^ ( ) gc.c:393:20: note: use '==' to turn this assignment into an equality comparison 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] 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] register keyhash, valhash; ~~~~~~~~ ^ int hash.c:155:19: warning: add explicit braces to avoid dangling else [-Wdangling-else] else ^ hash.c:162:10: warning: add explicit braces to avoid dangling else [-Wdangling-else] else ^ hash.c:214:13: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 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] register keyhash, valhash; ~~~~~~~~ ^ int hash.c:476:28: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] for (lp=map[i]; ep=lp;) { ~~^~~ hash.c:476:28: note: place parentheses around the assignment to silence this warning for (lp=map[i]; ep=lp;) { ^ ( ) hash.c:476:28: note: use '==' to turn this assignment into an equality comparison for (lp=map[i]; ep=lp;) { ^ == hash.c:571:54: warning: format specifies type 'unsigned int' but the argument has type 'char *' [-Wformat] snprintf(dbuf, sizeof(dbuf), ",0x%x", ep->data); ~~ ^~~~~~~~ %s /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:57:62: note: expanded from macro 'snprintf' __builtin___snprintf_chk (str, len, 0, __darwin_obsz(str), __VA_ARGS__) ^~~~~~~~~~~ hash.c:585:54: warning: format specifies type 'unsigned int' but the argument has type 'char *' [-Wformat] snprintf(dbuf, sizeof(dbuf), ",0x%x", ep->data); ~~ ^~~~~~~~ %s /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:57:62: note: expanded from macro 'snprintf' __builtin___snprintf_chk (str, len, 0, __darwin_obsz(str), __VA_ARGS__) ^~~~~~~~~~~ 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] 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] 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] if ((long)(iaddr = inet_addr(pattern)) != -1) { ^ host.c:164:25: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] else if (hp = gethostent()) { ~~~^~~~~~~~~~~~~~ host.c:164:25: note: place parentheses around the assignment to silence this warning else if (hp = gethostent()) { ^ ( ) host.c:164:25: note: use '==' to turn this assignment into an equality comparison else if (hp = gethostent()) { ^ == host.c:182:19: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] else if (hp = gethostbyname(pattern)) { ~~~^~~~~~~~~~~~~~~~~~~~~~~~ host.c:182:19: note: place parentheses around the assignment to silence this warning else if (hp = gethostbyname(pattern)) { ^ ( ) host.c:182:19: note: use '==' to turn this assignment into an equality comparison else if (hp = gethostbyname(pattern)) { ^ == host.c:151:7: warning: add explicit braces to avoid dangling else [-Wdangling-else] 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 C2x [-Wdeprecated-non-prototype] (*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] if (MALLOC(imp, inmask_t *, sizeof(inmask_t))) ^ ./xmx.h:447:4: note: expanded from macro 'MALLOC' 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] if (MALLOC(mp, masknode_t *, sizeof(masknode_t))) ^ ./xmx.h:447:4: note: expanded from macro 'MALLOC' 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] for (mp=imp->mnp; lp=mp;) { ~~^~~ imask.c:244:24: note: place parentheses around the assignment to silence this warning for (mp=imp->mnp; lp=mp;) { ^ ( ) imask.c:244:24: note: use '==' to turn this assignment into an equality comparison 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] else if (gp=pgrabkey( p->u.u.detail, ~~^~~~~~~~~~~~~~~~~~~~~~~~~~ inp.c:326:21: note: place parentheses around the assignment to silence this warning else if (gp=pgrabkey( p->u.u.detail, ^ ( inp.c:326:21: note: use '==' to turn this assignment into an equality comparison else if (gp=pgrabkey( p->u.u.detail, ^ == inp.c:308:19: warning: unused variable 'x' [-Wunused-variable] register s16_t x, y; ^ inp.c:308:22: warning: unused variable 'y' [-Wunused-variable] register s16_t x, y; ^ inp.c:474:22: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 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 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 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] if (vptr.cwp == vptr.grabwp) { ^~~~~~~~~~~~~~~~~~~~~~~ inp.c:545:20: note: uninitialized use occurs here if (y < 0) ^ inp.c:537:16: note: remove the 'if' if its condition is always true if (vptr.cwp == vptr.grabwp) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ inp.c:424:14: note: initialize the variable 'y' to silence this warning s16_t x, y; ^ = 0 inp.c:537:20: warning: variable 'x' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized] if (vptr.cwp == vptr.grabwp) { ^~~~~~~~~~~~~~~~~~~~~~~ inp.c:541:20: note: uninitialized use occurs here if (x < 0) ^ inp.c:537:16: note: remove the 'if' if its condition is always true if (vptr.cwp == vptr.grabwp) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ inp.c:424:11: note: initialize the variable 'x' to silence this warning s16_t x, y; ^ = 0 inp.c:679:18: warning: unused variable 'ss' [-Wunused-variable] register u8_t ss; ^ inp.c:902:7: warning: add explicit braces to avoid dangling else [-Wdangling-else] else if (vptr.sync && vkbd.grabcp && vkbd.grabcp != cp) { ^ inp.c:1330:7: warning: add explicit braces to avoid dangling else [-Wdangling-else] 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] for (gp=wp->buttons; lp=gp;) { ~~^~~ inp.c:1912:27: note: place parentheses around the assignment to silence this warning for (gp=wp->buttons; lp=gp;) { ^ ( ) inp.c:1912:27: note: use '==' to turn this assignment into an equality comparison for (gp=wp->buttons; lp=gp;) { ^ == inp.c:1916:24: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] for (gp=wp->keys; lp=gp;) { ~~^~~ inp.c:1916:24: note: place parentheses around the assignment to silence this warning for (gp=wp->keys; lp=gp;) { ^ ( ) inp.c:1916:24: note: use '==' to turn this assignment into an equality comparison for (gp=wp->keys; lp=gp;) { ^ == inp.c:2049:35: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] for (pgp=0, ngp=wp->buttons; gp=ngp;) { ~~^~~~ inp.c:2049:35: note: place parentheses around the assignment to silence this warning for (pgp=0, ngp=wp->buttons; gp=ngp;) { ^ ( ) inp.c:2049:35: note: use '==' to turn this assignment into an equality comparison 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] for (pgp=0, ngp=wp->keys; gp=ngp;) { ~~^~~~ inp.c:2061:32: note: place parentheses around the assignment to silence this warning for (pgp=0, ngp=wp->keys; gp=ngp;) { ^ ( ) inp.c:2061:32: note: use '==' to turn this assignment into an equality comparison for (pgp=0, ngp=wp->keys; gp=ngp;) { ^ == inp.c:2035:22: warning: unused variable 'chp' [-Wunused-variable] register chunk_t *chp; ^ inp.c:2186:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] else if (gp = pkeytofocus(wp->parent, detail, mods, gotfocusp)) ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ inp.c:2186:16: note: place parentheses around the assignment to silence this warning else if (gp = pkeytofocus(wp->parent, detail, mods, gotfocusp)) ^ ( ) inp.c:2186:16: note: use '==' to turn this assignment into an equality comparison else if (gp = pkeytofocus(wp->parent, detail, mods, gotfocusp)) ^ == inp.c:2310:22: warning: unused variable 'chp' [-Wunused-variable] register chunk_t *chp; ^ inp.c:2352:22: warning: unused variable 'chp' [-Wunused-variable] 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 C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] extern void iswap_cpy(); ^ ./incl/iswap.pub.h:1:20: note: conflicting prototype is here 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 C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] extern void iswap_nib(); ^ ./incl/iswap.pub.h:2:20: note: conflicting prototype is here 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 C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] extern void iswap___w(); ^ ./incl/iswap.pub.h:3:20: note: conflicting prototype is here 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 C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] extern void iswap__b_(); ^ ./incl/iswap.pub.h:4:20: note: conflicting prototype is here 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 C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] extern void iswap__b3(); ^ ./incl/iswap.pub.h:5:20: note: conflicting prototype is here 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 C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] extern void iswap__bw(); ^ ./incl/iswap.pub.h:6:20: note: conflicting prototype is here 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 C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] extern void iswap_r__(); ^ ./incl/iswap.pub.h:7:20: note: conflicting prototype is here 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 C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] extern void iswap_r_w(); ^ ./incl/iswap.pub.h:8:20: note: conflicting prototype is here 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 C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] extern void iswap_rb_(); ^ ./incl/iswap.pub.h:9:20: note: conflicting prototype is here 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 C2x, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] extern void iswap_rbw(); ^ ./incl/iswap.pub.h:10:20: note: conflicting prototype is here 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] 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] if (vkc = ktmp->keymap[i]) { ~~~~^~~~~~~~~~~~~~~~~ kpm.c:405:18: note: place parentheses around the assignment to silence this warning if (vkc = ktmp->keymap[i]) { ^ ( ) kpm.c:405:18: note: use '==' to turn this assignment into an equality comparison if (vkc = ktmp->keymap[i]) { ^ == kpm.c:561:18: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (vkc = ktmp->keymap[skc]) { ~~~~^~~~~~~~~~~~~~~~~~~ kpm.c:561:18: note: place parentheses around the assignment to silence this warning if (vkc = ktmp->keymap[skc]) { ^ ( ) kpm.c:561:18: note: use '==' to turn this assignment into an equality comparison if (vkc = ktmp->keymap[skc]) { ^ == kpm.c:570:18: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (vkc = add_mapping(vkm, nspc, ksvec, modmask)) { ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ kpm.c:570:18: note: place parentheses around the assignment to silence this warning if (vkc = add_mapping(vkm, nspc, ksvec, modmask)) { ^ ( ) kpm.c:570:18: note: use '==' to turn this assignment into an equality comparison 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] if (vkc = ktmp->keymap[skc]) { ~~~~^~~~~~~~~~~~~~~~~~~ kpm.c:632:15: note: place parentheses around the assignment to silence this warning if (vkc = ktmp->keymap[skc]) { ^ ( ) kpm.c:632:15: note: use '==' to turn this assignment into an equality comparison if (vkc = ktmp->keymap[skc]) { ^ == kpm.c:633:19: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (nvkc = add_mapping(vkm, nspc, &tmap->keymap[vkc*nspc], ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ kpm.c:633:19: note: place parentheses around the assignment to silence this warning if (nvkc = add_mapping(vkm, nspc, &tmap->keymap[vkc*nspc], ^ ( kpm.c:633:19: note: use '==' to turn this assignment into an equality comparison 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] if (nvkc = keymap[skc]) ~~~~~^~~~~~~~~~~~~ kpm.c:641:25: note: place parentheses around the assignment to silence this warning if (nvkc = keymap[skc]) ^ ( ) kpm.c:641:25: note: use '==' to turn this assignment into an equality comparison 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] 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] 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] 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] 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] if (vkc = khp->kc[i]) { ~~~~^~~~~~~~~~~~ kpm.c:1147:18: note: place parentheses around the assignment to silence this warning if (vkc = khp->kc[i]) { ^ ( ) kpm.c:1147:18: note: use '==' to turn this assignment into an equality comparison if (vkc = khp->kc[i]) { ^ == kpm.c:1172:21: warning: unused variable 'kc' [-Wunused-variable] register kcode_t kc; ^ kpm.c:1216:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] for (; lkhp=khp; khp=khp->next) { ~~~~^~~~ kpm.c:1216:15: note: place parentheses around the assignment to silence this warning for (; lkhp=khp; khp=khp->next) { ^ ( ) kpm.c:1216:15: note: use '==' to turn this assignment into an equality comparison for (; lkhp=khp; khp=khp->next) { ^ == kpm.c:992:1: warning: unused function 'print_vkeymap' [-Wunused-function] print_vkeymap ^ kpm.c:1014:1: warning: unused function 'print_modmap' [-Wunused-function] print_modmap ^ kpm.c:57:17: warning: unused variable 'khash' [-Wunused-variable] 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] for (blkp=lp->head->next; last=blkp;) { ~~~~^~~~~ list.c:86:34: note: place parentheses around the assignment to silence this warning for (blkp=lp->head->next; last=blkp;) { ^ ( ) list.c:86:34: note: use '==' to turn this assignment into an equality comparison for (blkp=lp->head->next; last=blkp;) { ^ == list.c:109:28: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] for (blkp=blkfree; lblkp=blkp;) { ~~~~~^~~~~ list.c:109:28: note: place parentheses around the assignment to silence this warning for (blkp=blkfree; lblkp=blkp;) { ^ ( ) list.c:109:28: note: use '==' to turn this assignment into an equality comparison for (blkp=blkfree; lblkp=blkp;) { ^ == list.c:115:22: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] for (lp=lfree; llp=lp;) { ~~~^~~ list.c:115:22: note: place parentheses around the assignment to silence this warning for (lp=lfree; llp=lp;) { ^ ( ) list.c:115:22: note: use '==' to turn this assignment into an equality comparison for (lp=lfree; llp=lp;) { ^ == list.c:194:37: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] for (blkp=lp->head->next; last=blkp;) { ~~~~^~~~~ list.c:194:37: note: place parentheses around the assignment to silence this warning for (blkp=lp->head->next; last=blkp;) { ^ ( ) list.c:194:37: note: use '==' to turn this assignment into an equality comparison for (blkp=lp->head->next; last=blkp;) { ^ == list.c:318:30: warning: unused variable 'max' [-Wunused-variable] 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] register rx_t *rxp; ^ main.c:80:13: warning: unused variable 'vchp' [-Wunused-variable] 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] static FUNC( ptc_t *, new_ptc, (void)); ^ ./incl/ptc.pvt.h:10:20: warning: unused function 'free_ptc' [-Wunused-function] static FUNC( void, free_ptc, (ptc_t *)); ^ ./incl/ptc.pvt.h:11:20: warning: unused function 'free_block' [-Wunused-function] static FUNC( void, free_block, (char *)); ^ 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] if (MALLOC(np, mit_t *, sizeof(mit_t))) ^ ./xmx.h:447:4: note: expanded from macro 'MALLOC' 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] for (npxp=pixmaps; pxp=npxp;) { ~~~^~~~~ pixmap.c:139:26: note: place parentheses around the assignment to silence this warning for (npxp=pixmaps; pxp=npxp;) { ^ ( ) pixmap.c:139:26: note: use '==' to turn this assignment into an equality comparison for (npxp=pixmaps; pxp=npxp;) { ^ == pixmap.c:175:22: warning: unused variable 'chp' [-Wunused-variable] register chunk_t *chp; ^ pixmap.c:231:26: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] for (npxp=pixmaps; pxp=npxp;) { ~~~^~~~~ pixmap.c:231:26: note: place parentheses around the assignment to silence this warning for (npxp=pixmaps; pxp=npxp;) { ^ ( ) pixmap.c:231:26: note: use '==' to turn this assignment into an equality comparison for (npxp=pixmaps; pxp=npxp;) { ^ == pixmap.c:278:19: warning: unused variable 'pp' [-Wunused-variable] 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] 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 for (i=0; inmore, buf_active(bp))) ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pp.c:187:10: note: place parentheses around the assignment to silence this warning if (n = MIN(pp->nmore, buf_active(bp))) ^ ( ) pp.c:187:10: note: use '==' to turn this assignment into an equality comparison 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] if (MALLOC(pp, prop_t *, sizeof(prop_t))) ^ ./xmx.h:447:4: note: expanded from macro 'MALLOC' 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] if (MALLOC(strp, char *, sz)) ^ ./xmx.h:447:4: note: expanded from macro 'MALLOC' 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] for (np=wp->props; pp=np; lp=pp) { ~~^~~ prop.c:163:25: note: place parentheses around the assignment to silence this warning for (np=wp->props; pp=np; lp=pp) { ^ ( ) prop.c:163:25: note: use '==' to turn this assignment into an equality comparison 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] for (np=wp->props; pp=np;) { ~~^~~ prop.c:364:25: note: place parentheses around the assignment to silence this warning for (np=wp->props; pp=np;) { ^ ( ) prop.c:364:25: note: use '==' to turn this assignment into an equality comparison for (np=wp->props; pp=np;) { ^ == prop.c:424:10: warning: add explicit braces to avoid dangling else [-Wdangling-else] 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] static FUNC( ptc_t *, new_ptc, (void)); ^ ./incl/ptc.pvt.h:10:20: warning: unused function 'free_ptc' [-Wunused-function] static FUNC( void, free_ptc, (ptc_t *)); ^ ./incl/ptc.pvt.h:11:20: warning: unused function 'free_block' [-Wunused-function] static FUNC( void, free_block, (char *)); ^ 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] for (qp=qfree; last=qp;) { ~~~~^~~ queue.c:217:23: note: place parentheses around the assignment to silence this warning for (qp=qfree; last=qp;) { ^ ( ) queue.c:217:23: note: use '==' to turn this assignment into an equality comparison for (qp=qfree; last=qp;) { ^ == queue.c:346:16: warning: add explicit braces to avoid dangling else [-Wdangling-else] else if (skip < 0) ^ queue.c:378:21: warning: variable 'ep' set but not used [-Wunused-but-set-variable] register xEvent *ep; ^ queue.c:549:21: warning: '&&' within '||' [-Wlogical-op-parentheses] debug & D_PROTOq && qp->dst.sp == qservp) ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ queue.c:549:21: note: place parentheses around the '&&' expression to silence this warning 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] 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] static FUNC( ptc_t *, new_ptc, (void)); ^ ./incl/ptc.pvt.h:10:20: warning: unused function 'free_ptc' [-Wunused-function] static FUNC( void, free_ptc, (ptc_t *)); ^ ./incl/ptc.pvt.h:11:20: warning: unused function 'free_block' [-Wunused-function] static FUNC( void, free_block, (char *)); ^ 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] if (rxp = rx_get(zrxqp, 0)) ~~~~^~~~~~~~~~~~~~~~~~ reply.c:101:24: note: place parentheses around the assignment to silence this warning if (rxp = rx_get(zrxqp, 0)) ^ ( ) reply.c:101:24: note: use '==' to turn this assignment into an equality comparison if (rxp = rx_get(zrxqp, 0)) ^ == reply.c:116:18: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (chp = pp_process(bp, &sp->pp)) { ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ reply.c:116:18: note: place parentheses around the assignment to silence this warning if (chp = pp_process(bp, &sp->pp)) { ^ ( ) reply.c:116:18: note: use '==' to turn this assignment into an equality comparison if (chp = pp_process(bp, &sp->pp)) { ^ == reply.c:120:21: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (rxp = rx_get(rxqp, seqno)) ~~~~^~~~~~~~~~~~~~~~~~~~~ reply.c:120:21: note: place parentheses around the assignment to silence this warning if (rxp = rx_get(rxqp, seqno)) ^ ( ) reply.c:120:21: note: use '==' to turn this assignment into an equality comparison if (rxp = rx_get(rxqp, seqno)) ^ == reply.c:156:24: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (rxp = rx_get(rxqp, seqno)) { ~~~~^~~~~~~~~~~~~~~~~~~~~ reply.c:156:24: note: place parentheses around the assignment to silence this warning if (rxp = rx_get(rxqp, seqno)) { ^ ( ) reply.c:156:24: note: use '==' to turn this assignment into an equality comparison if (rxp = rx_get(rxqp, seqno)) { ^ == reply.c:157:27: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (chp = unmap_error(bp, sp, seqno)) { ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ reply.c:157:27: note: place parentheses around the assignment to silence this warning if (chp = unmap_error(bp, sp, seqno)) { ^ ( ) reply.c:157:27: note: use '==' to turn this assignment into an equality comparison if (chp = unmap_error(bp, sp, seqno)) { ^ == reply.c:166:27: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (chp = unmap_error(bp, sp, seqno)) ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ reply.c:166:27: note: place parentheses around the assignment to silence this warning if (chp = unmap_error(bp, sp, seqno)) ^ ( ) reply.c:166:27: note: use '==' to turn this assignment into an equality comparison if (chp = unmap_error(bp, sp, seqno)) ^ == reply.c:199:21: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (rxp = rx_get(rxqp, seqno)) { ~~~~^~~~~~~~~~~~~~~~~~~~~ reply.c:199:21: note: place parentheses around the assignment to silence this warning if (rxp = rx_get(rxqp, seqno)) { ^ ( ) reply.c:199:21: note: use '==' to turn this assignment into an equality comparison if (rxp = rx_get(rxqp, seqno)) { ^ == reply.c:200:24: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 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 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 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] if (chp = unmap_reply(bp, sp, 0, 0, seqno)) ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ reply.c:211:24: note: place parentheses around the assignment to silence this warning if (chp = unmap_reply(bp, sp, 0, 0, seqno)) ^ ( ) reply.c:211:24: note: use '==' to turn this assignment into an equality comparison 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] 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 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 if (dp = (drawable_t *)hash_data(vmap,ev->u.expose.window)) ^ == reply.c:76:20: warning: unused variable 'seq' [-Wunused-variable] register int i, seq; ^ reply.c:77:17: warning: unused variable 'clearit' [-Wunused-variable] register int clearit; ^ reply.c:86:19: warning: unused variable 'pp' [-Wunused-variable] register pp_t *pp; ^ reply.c:502:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (rxp = rx_get(zrxqp, 0)) ~~~~^~~~~~~~~~~~~~~~~~ reply.c:502:15: note: place parentheses around the assignment to silence this warning if (rxp = rx_get(zrxqp, 0)) ^ ( ) reply.c:502:15: note: use '==' to turn this assignment into an equality comparison if (rxp = rx_get(zrxqp, 0)) ^ == reply.c:519:27: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (rxp = rx_get(rxqp, cseqno)) ~~~~^~~~~~~~~~~~~~~~~~~~~~ reply.c:519:27: note: place parentheses around the assignment to silence this warning if (rxp = rx_get(rxqp, cseqno)) ^ ( ) reply.c:519:27: note: use '==' to turn this assignment into an equality comparison if (rxp = rx_get(rxqp, cseqno)) ^ == reply.c:588:40: warning: unused variable 'p' [-Wunused-variable] { register xInternAtomReply *p = (xInternAtomReply *)rp; ^ reply.c:593:41: warning: unused variable 'p' [-Wunused-variable] { register xGetAtomNameReply *p = (xGetAtomNameReply *)rp; ^ reply.c:598:41: warning: unused variable 'p' [-Wunused-variable] { register xGetPropertyReply *p = (xGetPropertyReply *)rp; ^ reply.c:603:44: warning: unused variable 'p' [-Wunused-variable] { register xListPropertiesReply *p = ^ reply.c:616:41: warning: unused variable 'p' [-Wunused-variable] { register xGrabPointerReply *p = (xGrabPointerReply *)rp; ^ reply.c:621:42: warning: unused variable 'p' [-Wunused-variable] { register xGrabKeyboardReply *p = ^ reply.c:635:45: warning: unused variable 'p' [-Wunused-variable] { register xGetMotionEventsReply *p = ^ reply.c:656:41: warning: unused variable 'p' [-Wunused-variable] { register xQueryKeymapReply *p = (xQueryKeymapReply *)rp; ^ reply.c:661:39: warning: unused variable 'p' [-Wunused-variable] { register xQueryFontReply *p = (xQueryFontReply *)rp; ^ reply.c:667:46: warning: unused variable 'p' [-Wunused-variable] { register xQueryTextExtentsReply *p = ^ reply.c:673:39: warning: unused variable 'p' [-Wunused-variable] { register xListFontsReply *p = (xListFontsReply *)rp; ^ reply.c:679:47: warning: unused variable 'p' [-Wunused-variable] { register xListFontsWithInfoReply *p = ^ reply.c:686:41: warning: unused variable 'p' [-Wunused-variable] { register xGetFontPathReply *p = ^ reply.c:708:40: warning: unused variable 'p' [-Wunused-variable] { register xAllocColorReply *p = (xAllocColorReply *)rp; ^ reply.c:713:45: warning: unused variable 'p' [-Wunused-variable] { register xAllocNamedColorReply *p = ^ reply.c:719:45: warning: unused variable 'p' [-Wunused-variable] { register xAllocColorCellsReply *p = ^ reply.c:725:46: warning: unused variable 'p' [-Wunused-variable] { register xAllocColorPlanesReply *p = ^ reply.c:731:41: warning: unused variable 'p' [-Wunused-variable] { register xQueryColorsReply *p = ^ reply.c:737:41: warning: unused variable 'p' [-Wunused-variable] { register xLookupColorReply *p = ^ reply.c:743:43: warning: unused variable 'p' [-Wunused-variable] { register xQueryBestSizeReply *p = ^ reply.c:749:44: warning: unused variable 'p' [-Wunused-variable] { register xQueryExtensionReply *p = ^ reply.c:755:44: warning: unused variable 'p' [-Wunused-variable] { register xListExtensionsReply *p = ^ reply.c:761:48: warning: unused variable 'p' [-Wunused-variable] { register xGetKeyboardMappingReply *p = ^ reply.c:767:48: warning: unused variable 'p' [-Wunused-variable] { register xGetKeyboardControlReply *p = ^ reply.c:773:47: warning: unused variable 'p' [-Wunused-variable] { register xGetPointerControlReply *p = ^ reply.c:779:44: warning: unused variable 'p' [-Wunused-variable] { register xGetScreenSaverReply *p = ^ reply.c:785:39: warning: unused variable 'p' [-Wunused-variable] { register xListHostsReply *p = (xListHostsReply *)rp; ^ reply.c:790:47: warning: unused variable 'p' [-Wunused-variable] { register xSetPointerMappingReply *p = ^ reply.c:796:47: warning: unused variable 'p' [-Wunused-variable] { register xGetPointerMappingReply *p = ^ reply.c:802:48: warning: unused variable 'p' [-Wunused-variable] { register xSetModifierMappingReply *p = ^ reply.c:808:48: warning: unused variable 'p' [-Wunused-variable] { 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] static FUNC( ptc_t *, new_ptc, (void)); ^ ./incl/ptc.pvt.h:10:20: warning: unused function 'free_ptc' [-Wunused-function] static FUNC( void, free_ptc, (ptc_t *)); ^ ./incl/ptc.pvt.h:11:20: warning: unused function 'free_block' [-Wunused-function] static FUNC( void, free_block, (char *)); ^ 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] if (chp = pp_process(bp, &cp->pp)) { ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ request.c:148:18: note: place parentheses around the assignment to silence this warning if (chp = pp_process(bp, &cp->pp)) { ^ ( ) request.c:148:18: note: use '==' to turn this assignment into an equality comparison if (chp = pp_process(bp, &cp->pp)) { ^ == request.c:501:31: warning: unused variable 'p' [-Wunused-variable] { register xReq *p = (xReq *)rp; ^ request.c:509:31: warning: unused variable 'p' [-Wunused-variable] { register xReq *p = (xReq *)rp; ^ request.c:539:42: warning: unused variable 'p' [-Wunused-variable] { register xWarpPointerReq *p = (xWarpPointerReq *)rp; ^ request.c:553:31: warning: unused variable 'p' [-Wunused-variable] { register xReq *p = (xReq *)rp; ^ request.c:609:40: warning: unused variable 'p' [-Wunused-variable] { register xListFontsReq *p = (xListFontsReq *)rp; ^ request.c:618:40: warning: unused variable 'p' [-Wunused-variable] { register xListFontsReq *p = (xListFontsReq *)rp; ^ request.c:635:31: warning: unused variable 'p' [-Wunused-variable] { register xReq *p = (xReq *)rp; ^ request.c:1003:23: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (mp = color_free(cp, p)) { ~~~^~~~~~~~~~~~~~~~~~~ request.c:1003:23: note: place parentheses around the assignment to silence this warning if (mp = color_free(cp, p)) { ^ ( ) request.c:1003:23: note: use '==' to turn this assignment into an equality comparison if (mp = color_free(cp, p)) { ^ == request.c:1017:23: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (mp = color_store(cp, p)) { ~~~^~~~~~~~~~~~~~~~~~~~ request.c:1017:23: note: place parentheses around the assignment to silence this warning if (mp = color_store(cp, p)) { ^ ( ) request.c:1017:23: note: use '==' to turn this assignment into an equality comparison if (mp = color_store(cp, p)) { ^ == request.c:1031:23: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (mp = color_store_named(cp, p)) { ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ request.c:1031:23: note: place parentheses around the assignment to silence this warning if (mp = color_store_named(cp, p)) { ^ ( ) request.c:1031:23: note: use '==' to turn this assignment into an equality comparison if (mp = color_store_named(cp, p)) { ^ == request.c:1145:52: warning: unused variable 'p' [-Wunused-variable] { register xChangeKeyboardMappingReq *p = ^ request.c:1152:31: warning: unused variable 'p' [-Wunused-variable] { register xReq *p = (xReq *)rp; ^ request.c:1161:35: warning: unused variable 'p' [-Wunused-variable] { register xBellReq *p = (xBellReq *)rp; ^ request.c:1168:51: warning: unused variable 'p' [-Wunused-variable] { register xChangePointerControlReq *p = ^ request.c:1175:31: warning: unused variable 'p' [-Wunused-variable] { register xReq *p = (xReq *)rp; ^ request.c:1184:45: warning: unused variable 'p' [-Wunused-variable] { register xSetScreenSaverReq *p = (xSetScreenSaverReq *)rp; ^ request.c:1191:31: warning: unused variable 'p' [-Wunused-variable] { register xReq *p = (xReq *)rp; ^ request.c:1207:40: warning: unused variable 'p' [-Wunused-variable] { register xListHostsReq *p = (xListHostsReq *)rp; ^ request.c:1236:19: warning: add explicit braces to avoid dangling else [-Wdangling-else] else ^ request.c:1259:41: warning: unused variable 'p' [-Wunused-variable] { register xChangeModeReq *p = (xChangeModeReq *)rp; ^ request.c:1295:31: warning: unused variable 'p' [-Wunused-variable] { 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] static FUNC( ptc_t *, new_ptc, (void)); ^ ./incl/ptc.pvt.h:10:20: warning: unused function 'free_ptc' [-Wunused-function] static FUNC( void, free_ptc, (ptc_t *)); ^ ./incl/ptc.pvt.h:11:20: warning: unused function 'free_block' [-Wunused-function] static FUNC( void, free_block, (char *)); ^ 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] if (rgb.ndbm = dbm_open(dbname, 0, 0)) ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ rgb.c:101:17: note: place parentheses around the assignment to silence this warning if (rgb.ndbm = dbm_open(dbname, 0, 0)) ^ ( ) rgb.c:101:17: note: use '==' to turn this assignment into an equality comparison 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] 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] 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] 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] 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] 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] register int i, dynamic, alloc; ^ root.c:72:22: warning: unused variable 'chp' [-Wunused-variable] register chunk_t *chp; ^ root.c:102:1: warning: non-void function does not return a value [-Wreturn-type] } ^ root.c:130:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 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 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 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] } ^ root.c:227:15: warning: unused variable 'cvec' [-Wunused-variable] xColorItem cvec[2]; ^ root.c:233:17: warning: unused variable 'rootweave' [-Wunused-variable] static u16_t rootweave[] = { ^ root.c:363:1: warning: non-void function does not return a value [-Wreturn-type] } ^ 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] for (rxp=rxqp->out; last=rxp;) { ~~~~^~~~ rx.c:87:28: note: place parentheses around the assignment to silence this warning for (rxp=rxqp->out; last=rxp;) { ^ ( ) rx.c:87:28: note: use '==' to turn this assignment into an equality comparison for (rxp=rxqp->out; last=rxp;) { ^ == rx.c:135:7: warning: add explicit braces to avoid dangling else [-Wdangling-else] else ^ rx.c:305:48: warning: '&&' within '||' [-Wlogical-op-parentheses] if (debug & D_PROTO3 || debug & D_PROTOq && sp == qservp) ~~ ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ rx.c:305:48: note: place parentheses around the '&&' expression to silence this warning if (debug & D_PROTO3 || debug & D_PROTOq && sp == qservp) ^ ( ) rx.c:308:10: warning: add explicit braces to avoid dangling else [-Wdangling-else] else { ^ rx.c:400:25: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] for (rxp=rxfree; last=rxp;) { ~~~~^~~~ rx.c:400:25: note: place parentheses around the assignment to silence this warning for (rxp=rxfree; last=rxp;) { ^ ( ) rx.c:400:25: note: use '==' to turn this assignment into an equality comparison 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] if (MALLOC(sp, sel_t *, sizeof(sel_t))) ^ ./xmx.h:447:4: note: expanded from macro 'MALLOC' 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] for (sp=selmap[i]; lp=sp;) { ~~^~~ sel.c:211:31: note: place parentheses around the assignment to silence this warning for (sp=selmap[i]; lp=sp;) { ^ ( ) sel.c:211:31: note: use '==' to turn this assignment into an equality comparison 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] 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] 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] 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] else ^ server.c:187:19: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (sp->taglen = taglen) { ~~~~~~~~~~~^~~~~~~~ server.c:187:19: note: place parentheses around the assignment to silence this warning if (sp->taglen = taglen) { ^ ( ) server.c:187:19: note: use '==' to turn this assignment into an equality comparison 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] } ^ shape.c:128:1: warning: non-void function does not return a value [-Wreturn-type] } ^ shape.c:139:1: warning: non-void function does not return a value [-Wreturn-type] } ^ shape.c:155:1: warning: non-void function does not return a value [-Wreturn-type] } ^ shape.c:166:1: warning: non-void function does not return a value [-Wreturn-type] } ^ shape.c:180:1: warning: non-void function does not return a value [-Wreturn-type] } ^ shape.c:193:1: warning: non-void function does not return a value [-Wreturn-type] } ^ shape.c:206:1: warning: non-void function does not return a value [-Wreturn-type] } ^ shape.c:220:1: warning: non-void function does not return a value [-Wreturn-type] } ^ 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] static FUNC( ptc_t *, new_ptc, (void)); ^ ./incl/ptc.pvt.h:10:20: warning: unused function 'free_ptc' [-Wunused-function] static FUNC( void, free_ptc, (ptc_t *)); ^ ./incl/ptc.pvt.h:11:20: warning: unused function 'free_block' [-Wunused-function] static FUNC( void, free_block, (char *)); ^ 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] for (smbp=smp->head; last=smbp;) { ~~~~^~~~~ sm.c:99:29: note: place parentheses around the assignment to silence this warning for (smbp=smp->head; last=smbp;) { ^ ( ) sm.c:99:29: note: use '==' to turn this assignment into an equality comparison 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] 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] 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] 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] 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] 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] 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] (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] (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] 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] if ((ns = accept(s, &addr.sa, &addrlen)) < 0) ^~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/sys/socket.h:720:73: note: passing argument to parameter here 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] if (getpeername(s, &addr.sa, &addrlen)) ^~~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/sys/socket.h:724:78: note: passing argument to parameter here 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] (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] for (vp=visuals; lvp=vp;) { ~~~^~~ sres.c:318:24: note: place parentheses around the assignment to silence this warning for (vp=visuals; lvp=vp;) { ^ ( ) sres.c:318:24: note: use '==' to turn this assignment into an equality comparison 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] else if (MALLOC(svp, sv_t *, sizeof(sv_t))) ^ ./xmx.h:447:4: note: expanded from macro 'MALLOC' 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] for (svp=svfree; last=svp;) { ~~~~^~~~ sv.c:92:25: note: place parentheses around the assignment to silence this warning for (svp=svfree; last=svp;) { ^ ( ) sv.c:92:25: note: use '==' to turn this assignment into an equality comparison 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] while (rp = cblock_root(0)) { ~~~^~~~~~~~~~~~~~~~ swap.c:332:17: note: place parentheses around the assignment to silence this warning while (rp = cblock_root(0)) { ^ ( ) swap.c:332:17: note: use '==' to turn this assignment into an equality comparison while (rp = cblock_root(0)) { ^ == swap.c:333:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (dp = cblock_depth(0)) { ~~~^~~~~~~~~~~~~~~~~ swap.c:333:20: note: place parentheses around the assignment to silence this warning while (dp = cblock_depth(0)) { ^ ( ) swap.c:333:20: note: use '==' to turn this assignment into an equality comparison while (dp = cblock_depth(0)) { ^ == swap.c:334:23: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (vp = cblock_visual(0)) { ~~~^~~~~~~~~~~~~~~~~~ swap.c:334:23: note: place parentheses around the assignment to silence this warning while (vp = cblock_visual(0)) { ^ ( ) swap.c:334:23: note: use '==' to turn this assignment into an equality comparison 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] static FUNC( ptc_t *, new_ptc, (void)); ^ ./incl/ptc.pvt.h:10:20: warning: unused function 'free_ptc' [-Wunused-function] static FUNC( void, free_ptc, (ptc_t *)); ^ ./incl/ptc.pvt.h:11:20: warning: unused function 'free_block' [-Wunused-function] static FUNC( void, free_block, (char *)); ^ 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] 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] if (rtpimp = new_tpim(1)) ~~~~~~~^~~~~~~~~~~~~ tptr.c:91:18: note: place parentheses around the assignment to silence this warning if (rtpimp = new_tpim(1)) ^ ( ) tptr.c:91:18: note: use '==' to turn this assignment into an equality comparison if (rtpimp = new_tpim(1)) ^ == tptr.c:94:7: warning: add explicit braces to avoid dangling else [-Wdangling-else] else ^ tptr.c:299:17: warning: unused variable 'i' [-Wunused-variable] register int i, j; ^ tptr.c:299:20: warning: unused variable 'j' [-Wunused-variable] register int i, j; ^ tptr.c:790:17: warning: unused variable 'i' [-Wunused-variable] register int i; ^ tptr.c:800:1: warning: non-void function does not return a value [-Wreturn-type] } ^ tptr.c:1048:7: warning: add explicit braces to avoid dangling else [-Wdangling-else] 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] 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] sleep(1); ^ util.c:231:7: warning: add explicit braces to avoid dangling else [-Wdangling-else] else { /* is top occluded by any sibling ? */ ^ util.c:413:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (cp = (char *)index(string, ':')) { ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ util.c:413:14: note: place parentheses around the assignment to silence this warning if (cp = (char *)index(string, ':')) { ^ ( ) util.c:413:14: note: use '==' to turn this assignment into an equality comparison 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] 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] 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] register format_t *fp, *lfp; ^ vconf.c:86:28: warning: unused variable 'lfp' [-Wunused-variable] register format_t *fp, *lfp; ^ vconf.c:87:22: warning: unused variable 'dp' [-Wunused-variable] register depth_t *dp, *ldp; ^ vconf.c:87:27: warning: unused variable 'ldp' [-Wunused-variable] register depth_t *dp, *ldp; ^ vconf.c:88:22: warning: unused variable 'vp' [-Wunused-variable] register vtype_t *vp, *lvp; ^ vconf.c:88:27: warning: unused variable 'lvp' [-Wunused-variable] register vtype_t *vp, *lvp; ^ vconf.c:89:24: warning: unused variable 'ep' [-Wunused-variable] register extname_t *ep, *lep; ^ vconf.c:89:29: warning: unused variable 'lep' [-Wunused-variable] register extname_t *ep, *lep; ^ vconf.c:177:10: warning: unused variable 'x' [-Wunused-variable] s16_t x, y; ^ vconf.c:177:13: warning: unused variable 'y' [-Wunused-variable] s16_t x, y; ^ vconf.c:261:21: warning: unused variable 'geomp' [-Wunused-variable] register geom_t *geomp; ^ vconf.c:504:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] } ^ vconf.c:761:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (depth=(xDepth *)cblock_depth(0)) { ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ vconf.c:761:16: note: place parentheses around the assignment to silence this warning while (depth=(xDepth *)cblock_depth(0)) { ^ ( ) vconf.c:761:16: note: use '==' to turn this assignment into an equality comparison while (depth=(xDepth *)cblock_depth(0)) { ^ == vconf.c:779:24: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] for (vp=0; visual=(xVisualType *)cblock_visual(0);) { ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ vconf.c:779:24: note: place parentheses around the assignment to silence this warning for (vp=0; visual=(xVisualType *)cblock_visual(0);) { ^ ( ) vconf.c:779:24: note: use '==' to turn this assignment into an equality comparison 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] for (fp=0; format=(xPixmapFormat *)cblock_format(0);) { ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ vconf.c:815:21: note: place parentheses around the assignment to silence this warning for (fp=0; format=(xPixmapFormat *)cblock_format(0);) { ^ ( ) vconf.c:815:21: note: use '==' to turn this assignment into an equality comparison 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] if (depth = cblock_depth(0)) ~~~~~~^~~~~~~~~~~~~~~~~ vconf.c:937:20: note: place parentheses around the assignment to silence this warning if (depth = cblock_depth(0)) ^ ( ) vconf.c:937:20: note: use '==' to turn this assignment into an equality comparison if (depth = cblock_depth(0)) ^ == vconf.c:945:35: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (vp->visualp = closest_visual(&vp->visual)) { ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ vconf.c:945:35: note: place parentheses around the assignment to silence this warning if (vp->visualp = closest_visual(&vp->visual)) { ^ ( ) vconf.c:945:35: note: use '==' to turn this assignment into an equality comparison if (vp->visualp = closest_visual(&vp->visual)) { ^ == vconf.c:980:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (dp = dp ? dp->next : vconf.dp) ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ vconf.c:980:17: note: place parentheses around the assignment to silence this warning if (dp = dp ? dp->next : vconf.dp) ^ ( ) vconf.c:980:17: note: use '==' to turn this assignment into an equality comparison if (dp = dp ? dp->next : vconf.dp) ^ == vconf.c:984:33: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (format = cblock_format(0)) ~~~~~~~^~~~~~~~~~~~~~~~~~ vconf.c:984:33: note: place parentheses around the assignment to silence this warning if (format = cblock_format(0)) ^ ( ) vconf.c:984:33: note: use '==' to turn this assignment into an equality comparison if (format = cblock_format(0)) ^ == vconf.c:1056:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (tmp = cblock_visual(0)) ~~~~^~~~~~~~~~~~~~~~~~ vconf.c:1056:15: note: place parentheses around the assignment to silence this warning while (tmp = cblock_visual(0)) ^ ( ) vconf.c:1056:15: note: use '==' to turn this assignment into an equality comparison while (tmp = cblock_visual(0)) ^ == vconf.c:1171:17: warning: unused variable 'i' [-Wunused-variable] register int i, j; ^ vconf.c:1171:20: warning: unused variable 'j' [-Wunused-variable] register int i, j; ^ vconf.c:1274:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (dp = dp ? dp->next : vconf.dp) ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ vconf.c:1274:20: note: place parentheses around the assignment to silence this warning if (dp = dp ? dp->next : vconf.dp) ^ ( ) vconf.c:1274:20: note: use '==' to turn this assignment into an equality comparison if (dp = dp ? dp->next : vconf.dp) ^ == vconf.c:1300:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (ep = ep ? ep->next : vconf.ep) ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ vconf.c:1300:20: note: place parentheses around the assignment to silence this warning if (ep = ep ? ep->next : vconf.ep) ^ ( ) vconf.c:1300:20: note: use '==' to turn this assignment into an equality comparison if (ep = ep ? ep->next : vconf.ep) ^ == vconf.c:1356:13: warning: add explicit braces to avoid dangling else [-Wdangling-else] else ^ vconf.c:1361:10: warning: add explicit braces to avoid dangling else [-Wdangling-else] else ^ vconf.c:1376:28: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] for (dcp=vcons.dcp; ldcp=dcp;) { ~~~~^~~~ vconf.c:1376:28: note: place parentheses around the assignment to silence this warning for (dcp=vcons.dcp; ldcp=dcp;) { ^ ( ) vconf.c:1376:28: note: use '==' to turn this assignment into an equality comparison for (dcp=vcons.dcp; ldcp=dcp;) { ^ == vconf.c:1408:25: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] for (fp=vconf.fp; lfp=fp;) { ~~~^~~ vconf.c:1408:25: note: place parentheses around the assignment to silence this warning for (fp=vconf.fp; lfp=fp;) { ^ ( ) vconf.c:1408:25: note: use '==' to turn this assignment into an equality comparison for (fp=vconf.fp; lfp=fp;) { ^ == vconf.c:1424:25: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] for (dp=vconf.dp; ldp=dp;) { ~~~^~~ vconf.c:1424:25: note: place parentheses around the assignment to silence this warning for (dp=vconf.dp; ldp=dp;) { ^ ( ) vconf.c:1424:25: note: use '==' to turn this assignment into an equality comparison for (dp=vconf.dp; ldp=dp;) { ^ == vconf.c:1426:26: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] for (vp=dp->vp; lvp=vp;) { ~~~^~~ vconf.c:1426:26: note: place parentheses around the assignment to silence this warning for (vp=dp->vp; lvp=vp;) { ^ ( ) vconf.c:1426:26: note: use '==' to turn this assignment into an equality comparison for (vp=dp->vp; lvp=vp;) { ^ == vconf.c:1443:25: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] for (ep=vconf.ep; lep=ep;) { ~~~^~~ vconf.c:1443:25: note: place parentheses around the assignment to silence this warning for (ep=vconf.ep; lep=ep;) { ^ ( ) vconf.c:1443:25: note: use '==' to turn this assignment into an equality comparison 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] static FUNC( ptc_t *, new_ptc, (void)); ^ ./incl/ptc.pvt.h:10:20: warning: unused function 'free_ptc' [-Wunused-function] static FUNC( void, free_ptc, (ptc_t *)); ^ ./incl/ptc.pvt.h:11:20: warning: unused function 'free_block' [-Wunused-function] static FUNC( void, free_block, (char *)); ^ 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] register chunk_t *chp; ^ window.c:411:22: warning: unused variable 'chp' [-Wunused-variable] register chunk_t *chp; ^ window.c:498:19: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] else if (mp = (colormap_t *)hash_data(vmap, attrs[j])) ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ window.c:498:19: note: place parentheses around the assignment to silence this warning else if (mp = (colormap_t *)hash_data(vmap, attrs[j])) ^ ( ) window.c:498:19: note: use '==' to turn this assignment into an equality comparison 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] else if (pxp = (pixmap_t *)hash_data(vmap, *attrs)) { ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ window.c:533:26: note: place parentheses around the assignment to silence this warning else if (pxp = (pixmap_t *)hash_data(vmap, *attrs)) { ^ ( ) window.c:533:26: note: use '==' to turn this assignment into an equality comparison 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] else if (pxp = (pixmap_t *)hash_data(vmap, *attrs)) { ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ window.c:563:26: note: place parentheses around the assignment to silence this warning else if (pxp = (pixmap_t *)hash_data(vmap, *attrs)) { ^ ( ) window.c:563:26: note: use '==' to turn this assignment into an equality comparison 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] else if (cursp=(cursor_t *)hash_data(vmap, *attrs)) ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ window.c:661:27: note: place parentheses around the assignment to silence this warning else if (cursp=(cursor_t *)hash_data(vmap, *attrs)) ^ ( ) window.c:661:27: note: use '==' to turn this assignment into an equality comparison else if (cursp=(cursor_t *)hash_data(vmap, *attrs)) ^ == window.c:476:19: warning: unused variable 'id' [-Wunused-variable] 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] register didone = 0; ~~~~~~~~ ^ int window.c:1308:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (np=wp->child) ~~^~~~~~~~~~ window.c:1308:10: note: place parentheses around the assignment to silence this warning if (np=wp->child) ^ ( ) window.c:1308:10: note: use '==' to turn this assignment into an equality comparison if (np=wp->child) ^ == window.c:1688:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (lwp=wp) { ~~~^~~ window.c:1688:14: note: place parentheses around the assignment to silence this warning while (lwp=wp) { ^ ( ) window.c:1688:14: note: use '==' to turn this assignment into an equality comparison 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] if (xp->addr.length = ap->length) { ~~~~~~~~~~~~~~~~^~~~~~~~~~~~ xmc.c:99:24: note: place parentheses around the assignment to silence this warning if (xp->addr.length = ap->length) { ^ ( ) xmc.c:99:24: note: use '==' to turn this assignment into an equality comparison if (xp->addr.length = ap->length) { ^ == xmc.c:184:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (xp->swap = (p->byteOrder == endian) ? 0 : 1) { ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xmc.c:184:17: note: place parentheses around the assignment to silence this warning if (xp->swap = (p->byteOrder == endian) ? 0 : 1) { ^ ( ) xmc.c:184:17: note: use '==' to turn this assignment into an equality comparison if (xp->swap = (p->byteOrder == endian) ? 0 : 1) { ^ == xmc.c:267:20: warning: unused variable 'n' [-Wunused-variable] register int i, n; ^ xmc.c:268:22: warning: unused variable 'chp' [-Wunused-variable] register chunk_t *chp; ^ xmc.c:269:8: warning: unused variable 'reconfig' [-Wunused-variable] int reconfig = 0; ^ xmc.c:467:28: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] else if (sp = server_find(p->dispID)) ~~~^~~~~~~~~~~~~~~~~~~~~~~~ xmc.c:467:28: note: place parentheses around the assignment to silence this warning else if (sp = server_find(p->dispID)) ^ ( ) xmc.c:467:28: note: use '==' to turn this assignment into an equality comparison else if (sp = server_find(p->dispID)) ^ == xmc.c:481:23: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (sp = server_find(p->id)) ~~~^~~~~~~~~~~~~~~~~~~~ xmc.c:481:23: note: place parentheses around the assignment to silence this warning if (sp = server_find(p->id)) ^ ( ) xmc.c:481:23: note: use '==' to turn this assignment into an equality comparison if (sp = server_find(p->id)) ^ == xmc.c:492:45: warning: unused variable 'p' [-Wunused-variable] { register xmcListDisplaysReq *p = (xmcListDisplaysReq *)rp; ^ xmc.c:497:53: warning: unused variable 'p' [-Wunused-variable] { register xmcListDisplaysWithInfoReq *p = ^ xmc.c:504:23: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (sp = server_find(p->id)) ~~~^~~~~~~~~~~~~~~~~~~~ xmc.c:504:23: note: place parentheses around the assignment to silence this warning if (sp = server_find(p->id)) ^ ( ) xmc.c:504:23: note: use '==' to turn this assignment into an equality comparison if (sp = server_find(p->id)) ^ == xmc.c:515:37: warning: unused variable 'p' [-Wunused-variable] { register xmcSyncReq *p = (xmcSyncReq *)rp; ^ xmc.c:530:42: warning: unused variable 'p' [-Wunused-variable] { register xmcGetConfigReq *p = (xmcGetConfigReq *)rp; ^ xmc.c:541:23: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (sp = server_find(p->dispID)) ~~~^~~~~~~~~~~~~~~~~~~~~~~~ xmc.c:541:23: note: place parentheses around the assignment to silence this warning if (sp = server_find(p->dispID)) ^ ( ) xmc.c:541:23: note: use '==' to turn this assignment into an equality comparison if (sp = server_find(p->dispID)) ^ == xmc.c:557:45: warning: unused variable 'p' [-Wunused-variable] { register xmcGetEventMaskReq *p = (xmcGetEventMaskReq *)rp; ^ xmc.c:573:23: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (sp = server_find(p->id)) ~~~^~~~~~~~~~~~~~~~~~~~ xmc.c:573:23: note: place parentheses around the assignment to silence this warning if (sp = server_find(p->id)) ^ ( ) xmc.c:573:23: note: use '==' to turn this assignment into an equality comparison if (sp = server_find(p->id)) ^ == xmc.c:585:23: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (sp = server_find(p->id)) ~~~^~~~~~~~~~~~~~~~~~~~ xmc.c:585:23: note: place parentheses around the assignment to silence this warning if (sp = server_find(p->id)) ^ ( ) xmc.c:585:23: note: use '==' to turn this assignment into an equality comparison if (sp = server_find(p->id)) ^ == xmc.c:597:23: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (sp = server_find(p->id)) ~~~^~~~~~~~~~~~~~~~~~~~ xmc.c:597:23: note: place parentheses around the assignment to silence this warning if (sp = server_find(p->id)) ^ ( ) xmc.c:597:23: note: use '==' to turn this assignment into an equality comparison if (sp = server_find(p->id)) ^ == xmc.c:609:23: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (sp = server_find(p->id)) ~~~^~~~~~~~~~~~~~~~~~~~ xmc.c:609:23: note: place parentheses around the assignment to silence this warning if (sp = server_find(p->id)) ^ ( ) xmc.c:609:23: note: use '==' to turn this assignment into an equality comparison if (sp = server_find(p->id)) ^ == xmc.c:621:23: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (sp = server_find(p->id)) ~~~^~~~~~~~~~~~~~~~~~~~ xmc.c:621:23: note: place parentheses around the assignment to silence this warning if (sp = server_find(p->id)) ^ ( ) xmc.c:621:23: note: use '==' to turn this assignment into an equality comparison if (sp = server_find(p->id)) ^ == xmc.c:634:23: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (sp = server_find(p->id)) ~~~^~~~~~~~~~~~~~~~~~~~ xmc.c:634:23: note: place parentheses around the assignment to silence this warning if (sp = server_find(p->id)) ^ ( ) xmc.c:634:23: note: use '==' to turn this assignment into an equality comparison if (sp = server_find(p->id)) ^ == xmc.c:666:24: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (tpp = tptr_find(p->id)) ~~~~^~~~~~~~~~~~~~~~~~ xmc.c:666:24: note: place parentheses around the assignment to silence this warning if (tpp = tptr_find(p->id)) ^ ( ) xmc.c:666:24: note: use '==' to turn this assignment into an equality comparison if (tpp = tptr_find(p->id)) ^ == xmc.c:678:23: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (sp = server_find(p->dispID)) ~~~^~~~~~~~~~~~~~~~~~~~~~~~ xmc.c:678:23: note: place parentheses around the assignment to silence this warning if (sp = server_find(p->dispID)) ^ ( ) xmc.c:678:23: note: use '==' to turn this assignment into an equality comparison if (sp = server_find(p->dispID)) ^ == xmc.c:681:32: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] else if (tpp = tptr_find(p->tpID)) ~~~~^~~~~~~~~~~~~~~~~~~~ xmc.c:681:32: note: place parentheses around the assignment to silence this warning else if (tpp = tptr_find(p->tpID)) ^ ( ) xmc.c:681:32: note: use '==' to turn this assignment into an equality comparison else if (tpp = tptr_find(p->tpID)) ^ == xmc.c:699:24: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (tpp = tptr_find(p->id)) ~~~~^~~~~~~~~~~~~~~~~~ xmc.c:699:24: note: place parentheses around the assignment to silence this warning if (tpp = tptr_find(p->id)) ^ ( ) xmc.c:699:24: note: use '==' to turn this assignment into an equality comparison if (tpp = tptr_find(p->id)) ^ == xmc.c:711:24: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (tpp = tptr_find(p->id)) ~~~~^~~~~~~~~~~~~~~~~~ xmc.c:711:24: note: place parentheses around the assignment to silence this warning if (tpp = tptr_find(p->id)) ^ ( ) xmc.c:711:24: note: use '==' to turn this assignment into an equality comparison if (tpp = tptr_find(p->id)) ^ == xmc.c:337:17: warning: unused variable 'i' [-Wunused-variable] register int i; ^ xmc.c:338:19: warning: unused variable 'dp' [-Wunused-variable] register char *dp; ^ xmc.c:933:20: warning: unused variable 'xp' [-Wunused-variable] register xmc_t *xp; ^ xmc.c:1068:22: warning: unused variable 'chp' [-Wunused-variable] register chunk_t *chp; ^ xmc.c:1137:17: warning: unused variable 'i' [-Wunused-variable] register int i; ^ xmc.c:1172:17: warning: unused variable 'i' [-Wunused-variable] register int i; ^ xmc.c:1523:1: warning: non-void function does not return a value [-Wreturn-type] } ^ xmc.c:1728:20: warning: unused variable 'sp' [-Wunused-variable] 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] padlen += PAD(totlen); ^~~~~~ xmcp.c:283:41: note: initialize the variable 'padlen' to silence this warning 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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] (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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] hand_up(np) ^ xmtg.c:295:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (np = (node_t *)IconData(ip)) ~~~^~~~~~~~~~~~~~~~~~~~~~~~ xmtg.c:295:14: note: place parentheses around the assignment to silence this warning if (np = (node_t *)IconData(ip)) ^ ( ) xmtg.c:295:14: note: use '==' to turn this assignment into an equality comparison 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] ui_error("cannot drop chair"); ^ xmtg.c:304:16: warning: add explicit braces to avoid dangling else [-Wdangling-else] else ^ xmtg.c:298:10: warning: add explicit braces to avoid dangling else [-Wdangling-else] else { ^ xmtg.c:288:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] extern void drop_cb(); ^ xmtg.c:332:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (np = (node_t *)IconData(ip)) ~~~^~~~~~~~~~~~~~~~~~~~~~~~ xmtg.c:332:14: note: place parentheses around the assignment to silence this warning if (np = (node_t *)IconData(ip)) ^ ( ) xmtg.c:332:14: note: use '==' to turn this assignment into an equality comparison 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] ui_error("cannot change input mode of chair"); ^ xmtg.c:335:10: warning: add explicit braces to avoid dangling else [-Wdangling-else] else ^ xmtg.c:325:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] extern void floor_cb(); ^ xmtg.c:361:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (np = (node_t *)IconData(ip)) ~~~^~~~~~~~~~~~~~~~~~~~~~~~ xmtg.c:361:14: note: place parentheses around the assignment to silence this warning if (np = (node_t *)IconData(ip)) ^ ( ) xmtg.c:361:14: note: use '==' to turn this assignment into an equality comparison 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] ui_error("cannot change input mode of chair"); ^ xmtg.c:364:10: warning: add explicit braces to avoid dangling else [-Wdangling-else] else ^ xmtg.c:354:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] extern void seat_cb(); ^ xmtg.c:393:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (np = (node_t *)IconData(ip)) ~~~^~~~~~~~~~~~~~~~~~~~~~~~ xmtg.c:393:14: note: place parentheses around the assignment to silence this warning if (np = (node_t *)IconData(ip)) ^ ( ) xmtg.c:393:14: note: use '==' to turn this assignment into an equality comparison 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] ui_error("cannot change input mode of chair"); ^ xmtg.c:396:10: warning: add explicit braces to avoid dangling else [-Wdangling-else] else ^ xmtg.c:386:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] extern void view_cb(); ^ xmtg.c:425:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (np = (node_t *)IconData(ip)) ~~~^~~~~~~~~~~~~~~~~~~~~~~~ xmtg.c:425:14: note: place parentheses around the assignment to silence this warning if (np = (node_t *)IconData(ip)) ^ ( ) xmtg.c:425:14: note: use '==' to turn this assignment into an equality comparison 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 C2x [-Wdeprecated-non-prototype] 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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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] 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 C2x [-Wdeprecated-non-prototype] if (np = node_byid(event.button.id)) ^ xmtg.c:606:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (np = node_byid(event.button.id)) ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ xmtg.c:606:20: note: place parentheses around the assignment to silence this warning if (np = node_byid(event.button.id)) ^ ( ) xmtg.c:606:20: note: use '==' to turn this assignment into an equality comparison 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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] if (np = node_byid(event.display.id)) { ^ xmtg.c:626:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (np = node_byid(event.display.id)) { ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xmtg.c:626:20: note: place parentheses around the assignment to silence this warning if (np = node_byid(event.display.id)) { ^ ( ) xmtg.c:626:20: note: use '==' to turn this assignment into an equality comparison 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] if (np = node_byid(event.display.id)) { ^ xmtg.c:635:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (np = node_byid(event.display.id)) { ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xmtg.c:635:20: note: place parentheses around the assignment to silence this warning if (np = node_byid(event.display.id)) { ^ ( ) xmtg.c:635:20: note: use '==' to turn this assignment into an equality comparison 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] if (np = node_byid(event.display.id)) { ^ xmtg.c:643:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (np = node_byid(event.display.id)) { ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xmtg.c:643:20: note: place parentheses around the assignment to silence this warning if (np = node_byid(event.display.id)) { ^ ( ) xmtg.c:643:20: note: use '==' to turn this assignment into an equality comparison 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] if (np = node_byid(event.display.id)) { ^ xmtg.c:654:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (np = node_byid(event.display.id)) { ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xmtg.c:654:20: note: place parentheses around the assignment to silence this warning if (np = node_byid(event.display.id)) { ^ ( ) xmtg.c:654:20: note: use '==' to turn this assignment into an equality comparison 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] if (np = node_byid(event.display.id)) { ^ xmtg.c:665:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (np = node_byid(event.display.id)) { ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xmtg.c:665:20: note: place parentheses around the assignment to silence this warning if (np = node_byid(event.display.id)) { ^ ( ) xmtg.c:665:20: note: use '==' to turn this assignment into an equality comparison 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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] if (np->ip = ig_find_icon(gp, np->display)) { ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xmtg.c:707:15: note: place parentheses around the assignment to silence this warning if (np->ip = ig_find_icon(gp, np->display)) { ^ ( ) xmtg.c:707:15: note: use '==' to turn this assignment into an equality comparison 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 C2x [-Wdeprecated-non-prototype] (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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static void show_add(); ^ xmtg.c:759:26: warning: format string is not a string literal (potentially insecure) [-Wformat-security] fprintf(stderr, usage); ^~~~~ xmtg.c:759:26: note: treat the string as an argument to avoid this 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] (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 C2x [-Wdeprecated-non-prototype] (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 C2x [-Wdeprecated-non-prototype] (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 C2x [-Wdeprecated-non-prototype] (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 C2x [-Wdeprecated-non-prototype] (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 C2x [-Wdeprecated-non-prototype] ig_set_view(gp, vp); ^ xmtg.c:791:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (mDisplay = (char *)getenv("MDISPLAY")) ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ xmtg.c:791:17: note: place parentheses around the assignment to silence this warning if (mDisplay = (char *)getenv("MDISPLAY")) ^ ( ) xmtg.c:791:17: note: use '==' to turn this assignment into an equality comparison if (mDisplay = (char *)getenv("MDISPLAY")) ^ == xmtg.c:801:19: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (layoutPath = (char *)getenv("XMTGLAYOUTPATH")) ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xmtg.c:801:19: note: place parentheses around the assignment to silence this warning if (layoutPath = (char *)getenv("XMTGLAYOUTPATH")) ^ ( ) xmtg.c:801:19: note: use '==' to turn this assignment into an equality comparison 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] ig_realize(gp); ^ xmtg.c:820:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (chairtag = (char *)getenv("XMTGCHAIR")) ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xmtg.c:820:17: note: place parentheses around the assignment to silence this warning if (chairtag = (char *)getenv("XMTGCHAIR")) ^ ( ) xmtg.c:820:17: note: use '==' to turn this assignment into an equality comparison if (chairtag = (char *)getenv("XMTGCHAIR")) ^ == xmtg.c:828:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (mux = XmcOpen(mDisplay, 0)) { ~~~~^~~~~~~~~~~~~~~~~~~~~~ xmtg.c:828:12: note: place parentheses around the assignment to silence this warning if (mux = XmcOpen(mDisplay, 0)) { ^ ( ) xmtg.c:828:12: note: use '==' to turn this assignment into an equality comparison if (mux = XmcOpen(mDisplay, 0)) { ^ == xmtg.c:836:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (dlp = XmcListDisplaysWithInfo(mux, &n, &dip)) { ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xmtg.c:836:15: note: place parentheses around the assignment to silence this warning if (dlp = XmcListDisplaysWithInfo(mux, &n, &dip)) { ^ ( ) xmtg.c:836:15: note: use '==' to turn this assignment into an equality comparison 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] np = node_add(dlp[i], dip->tag, im2s(dip->mode), 0); ^ xmtg.c:841:27: warning: too many arguments in call to 'show_add' 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] 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] ui_error("cannot connect to multiplexor at %s", mDisplay); ^ xmtg.c:734:20: warning: unused variable 'j' [-Wunused-variable] register int i, j; ^ xmtg.c:735:20: warning: unused variable 'w' [-Wunused-variable] register Widget w; ^ xmtg.c:741:12: warning: unused variable 'fb' [-Wunused-variable] String *fb; ^ xmtg.c:742:8: warning: unused variable 'arg' [-Wunused-variable] Arg arg[16]; ^ xmtg.c:746:19: warning: unused variable 'popdown' [-Wunused-variable] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static int im2s(); ^ xmtg.c:152:12: warning: unused variable 'mode' [-Wunused-variable] 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 C2x [-Wdeprecated-non-prototype] if ((np->display = make_new_tag(display)) == 0) { ^ node.c:66:19: warning: unused variable 'cp' [-Wunused-variable] register char *cp; ^ node.c:67:9: warning: unused variable 'buf' [-Wunused-variable] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] (*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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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] XGCValues vals; ^ ig.c:112:11: warning: unused variable 'pm' [-Wunused-variable] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] void ig_realize(); ^ ig.c:256:21: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (vp->fontname = (char *)malloc(strlen(fontname)+1)) ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ig.c:256:21: note: place parentheses around the assignment to silence this warning if (vp->fontname = (char *)malloc(strlen(fontname)+1)) ^ ( ) ig.c:256:21: note: use '==' to turn this assignment into an equality comparison 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 C2x [-Wdeprecated-non-prototype] realize_view(gp, vp); ^ ig.c:242:17: warning: unused variable 'i' [-Wunused-variable] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] ig_resize(gp); ^ ig.c:553:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (ip->next = last->next) ~~~~~~~~~^~~~~~~~~~~~ ig.c:553:20: note: place parentheses around the assignment to silence this warning if (ip->next = last->next) ^ ( ) ig.c:553:20: note: use '==' to turn this assignment into an equality comparison 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] (*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 C2x [-Wdeprecated-non-prototype] (*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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] if (!visible(gp, lx, ty)) ^ ig.c:731:16: warning: unused variable 'rx' [-Wunused-variable] int lx, ty, rx, by; ^ ig.c:731:20: warning: unused variable 'by' [-Wunused-variable] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] void draw_box(); ^ ig.c:1067:7: warning: add explicit braces to avoid dangling else [-Wdangling-else] else ^ ig.c:1012:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static int read_bitmap_file(); ^ ig.c:81:13: warning: unused function 'realize' [-Wunused-function] static void realize(); ^ ig.c:298:1: warning: unused function 'free_view' [-Wunused-function] free_view(gp, vp) ^ ig.c:86:16: warning: unused function 'find_icon_tag' [-Wunused-function] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] void ui_create(); ^ ui.c:70:1: note: conflicting prototype is here 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] errors = ui_create_error(top, parent); ^ ui.c:73:14: warning: unused variable 'shell' [-Wunused-variable] Widget w, shell, dialog, menu, radio; ^ ui.c:73:21: warning: unused variable 'dialog' [-Wunused-variable] Widget w, shell, dialog, menu, radio; ^ ui.c:73:35: warning: unused variable 'radio' [-Wunused-variable] Widget w, shell, dialog, menu, radio; ^ ui.c:74:14: warning: unused variable 'width' [-Wunused-variable] Dimension width, height; ^ ui.c:74:21: warning: unused variable 'height' [-Wunused-variable] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] ui_create_dialog_dismiss("cancel", dp, 0, 0); ^ ui.c:302:11: warning: variable 'w' set but not used [-Wunused-but-set-variable] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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] if (bp = (char *)malloc(st.st_size + 1)) { ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ layout.c:48:17: note: place parentheses around the assignment to silence this warning if (bp = (char *)malloc(st.st_size + 1)) { ^ ( ) layout.c:48:17: note: use '==' to turn this assignment into an equality comparison 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] 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 C2x [-Wdeprecated-non-prototype] 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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] (*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 C2x [-Wdeprecated-non-prototype] (*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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] int layout_data(); ^ layout.c:102:1: warning: non-void function does not return a value [-Wreturn-type] } ^ 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] else ^ pathfind.c:101:28: warning: add explicit braces to avoid dangling else [-Wdangling-else] else ^ pathfind.c:105:42: warning: & has lower precedence than ==; == will be evaluated first [-Wparentheses] if ( (st.st_mode & S_IXOTH == 0) && ^~~~~~~~~~~~~~ pathfind.c:105:42: note: place parentheses around the '==' expression to silence this warning if ( (st.st_mode & S_IXOTH == 0) && ^ ~~~~~~~~~~~~ pathfind.c:105:42: note: place parentheses around the & expression to evaluate it first if ( (st.st_mode & S_IXOTH == 0) && ~~~~~~~~~~~^~~~~~~~~ pathfind.c:106:18: warning: & has lower precedence than ==; == will be evaluated first [-Wparentheses] ((st.st_mode & S_IXUSR == 0) || uid != st.st_uid)) ^~~~~~~~~~~~~~ pathfind.c:106:18: note: place parentheses around the '==' expression to silence this warning ((st.st_mode & S_IXUSR == 0) || uid != st.st_uid)) ^ ~~~~~~~~~~~~ pathfind.c:106:18: note: place parentheses around the & expression to evaluate it first ((st.st_mode & S_IXUSR == 0) || uid != st.st_uid)) ~~~~~~~~~~~^~~~~~~~~ pathfind.c:107:44: warning: & has lower precedence than ==; == will be evaluated first [-Wparentheses] 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 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 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] else ^ pathfind.c:149:19: warning: add explicit braces to avoid dangling else [-Wdangling-else] else ^ pathfind.c:40:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] 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] 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] int client_args_given = 0, server_args_given = 0; ^ xmxinit.c:381:14: warning: 'vfork' is deprecated: Use posix_spawn or fork [-Wdeprecated-declarations] serverpid = vfork(); ^ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/unistd.h:604:1: note: 'vfork' has been explicitly marked deprecated here __deprecated_msg("Use posix_spawn or fork") ^ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/sys/cdefs.h:218:48: note: expanded from macro '__deprecated_msg' #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg))) ^ xmxinit.c:408:14: warning: unused variable 'cpp' [-Wunused-variable] char **cpp; ^ xmxinit.c:463:19: warning: 'vfork' is deprecated: Use posix_spawn or fork [-Wdeprecated-declarations] if ((clientpid = vfork()) == 0) { ^ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/unistd.h:604:1: note: 'vfork' has been explicitly marked deprecated here __deprecated_msg("Use posix_spawn or fork") ^ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/sys/cdefs.h:218:48: note: expanded from macro '__deprecated_msg' #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