=> Bootstrap dependency digest>=20010302: found digest-20111104
WARNING: [license.mk] Every package should define a LICENSE.
===> Skipping vulnerability checks.
WARNING: No /var/db/pkg/pkg-vulnerabilities file found.
WARNING: To fix run: `/usr/sbin/pkg_admin -K /var/db/pkg fetch-pkg-vulnerabilities'.
===> Building for xmx-2.1a7nb6
making all in ./include...
making all in ./lib...
making all in lib/Xmc...
rm -f auth.o debugger/auth.o
gcc -c   -I../../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG  	-g  auth.c -o debugger/auth.o
auth.c:71:7: warning: add explicit braces to avoid dangling else [-Wdangling-else]
      else
      ^
auth.c:194:4: warning: add explicit braces to avoid dangling else [-Wdangling-else]
   else
   ^
2 warnings generated.
rm -f auth.o
gcc -c -O2 -fno-strict-aliasing    -I../../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG     -fPIC auth.c
auth.c:71:7: warning: add explicit braces to avoid dangling else [-Wdangling-else]
      else
      ^
auth.c:194:4: warning: add explicit braces to avoid dangling else [-Wdangling-else]
   else
   ^
2 warnings generated.
rm -f common.o debugger/common.o
gcc -c   -I../../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG  	-g -DHASXDMAUTH  -DTCPCONN -DUNIXCONN common.c -o debugger/common.o
common.c:90:7: warning: implicit declaration of function 'warn' is invalid in C99 [-Wimplicit-function-declaration]
      warn("Xmc_event_push: cannot get a new eventlist element!\n");
      ^
common.c:414:16: warning: implicit declaration of function 'Xmc_io_error' is invalid in C99 [-Wimplicit-function-declaration]
               Xmc_io_error(muxp);
               ^
common.c:535:13: warning: implicit declaration of function 'Xmc_error' is invalid in C99 [-Wimplicit-function-declaration]
            Xmc_error(muxp, (xmcError *)rp);
            ^
common.c:661:7: warning: add explicit braces to avoid dangling else [-Wdangling-else]
      else {
      ^
4 warnings generated.
rm -f common.o
gcc -c -O2 -fno-strict-aliasing    -I../../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG  -DHASXDMAUTH  -DTCPCONN -DUNIXCONN   -fPIC common.c
common.c:90:7: warning: implicit declaration of function 'warn' is invalid in C99 [-Wimplicit-function-declaration]
      warn("Xmc_event_push: cannot get a new eventlist element!\n");
      ^
common.c:414:16: warning: implicit declaration of function 'Xmc_io_error' is invalid in C99 [-Wimplicit-function-declaration]
               Xmc_io_error(muxp);
               ^
common.c:535:13: warning: implicit declaration of function 'Xmc_error' is invalid in C99 [-Wimplicit-function-declaration]
            Xmc_error(muxp, (xmcError *)rp);
            ^
common.c:661:7: warning: add explicit braces to avoid dangling else [-Wdangling-else]
      else {
      ^
4 warnings generated.
rm -f AddDis.o debugger/AddDis.o
gcc -c   -I../../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG  	-g  AddDis.c -o debugger/AddDis.o
rm -f AddDis.o
gcc -c -O2 -fno-strict-aliasing    -I../../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG     -fPIC AddDis.c
rm -f AsgnTptr.o debugger/AsgnTptr.o
gcc -c   -I../../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG  	-g  AsgnTptr.c -o debugger/AsgnTptr.o
rm -f AsgnTptr.o
gcc -c -O2 -fno-strict-aliasing    -I../../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG     -fPIC AsgnTptr.c
rm -f ChMode.o debugger/ChMode.o
gcc -c   -I../../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG  	-g  ChMode.c -o debugger/ChMode.o
rm -f ChMode.o
gcc -c -O2 -fno-strict-aliasing    -I../../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG     -fPIC ChMode.c
rm -f Close.o debugger/Close.o
gcc -c   -I../../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG  	-g  Close.c -o debugger/Close.o
Close.c:37:4: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration]
   close(muxp->fd);
   ^
Close.c:40:7: warning: implicit declaration of function 'free' is invalid in C99 [-Wimplicit-function-declaration]
      free(muxp->hostname);
      ^
Close.c:42:4: warning: implicit declaration of function 'Xmc_freebuf' is invalid in C99 [-Wimplicit-function-declaration]
   Xmc_freebuf(&muxp->inbuf);
   ^
3 warnings generated.
rm -f Close.o
gcc -c -O2 -fno-strict-aliasing    -I../../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG     -fPIC Close.c
Close.c:37:4: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration]
   close(muxp->fd);
   ^
Close.c:40:7: warning: implicit declaration of function 'free' is invalid in C99 [-Wimplicit-function-declaration]
      free(muxp->hostname);
      ^
Close.c:42:4: warning: implicit declaration of function 'Xmc_freebuf' is invalid in C99 [-Wimplicit-function-declaration]
   Xmc_freebuf(&muxp->inbuf);
   ^
3 warnings generated.
rm -f CrGlTptr.o debugger/CrGlTptr.o
gcc -c   -I../../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG  	-g  CrGlTptr.c -o debugger/CrGlTptr.o
CrGlTptr.c:64:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
1 warning generated.
rm -f CrGlTptr.o
gcc -c -O2 -fno-strict-aliasing    -I../../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG     -fPIC CrGlTptr.c
CrGlTptr.c:64:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
1 warning generated.
rm -f CrTptr.o debugger/CrTptr.o
gcc -c   -I../../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG  	-g  CrTptr.c -o debugger/CrTptr.o
CrTptr.c:63:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
1 warning generated.
rm -f CrTptr.o
gcc -c -O2 -fno-strict-aliasing    -I../../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG     -fPIC CrTptr.c
CrTptr.c:63:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
1 warning generated.
rm -f DestTptr.o debugger/DestTptr.o
gcc -c   -I../../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG  	-g  DestTptr.c -o debugger/DestTptr.o
rm -f DestTptr.o
gcc -c -O2 -fno-strict-aliasing    -I../../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG     -fPIC DestTptr.c
rm -f DispInfo.o debugger/DispInfo.o
gcc -c   -I../../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG  	-g  DispInfo.c -o debugger/DispInfo.o
rm -f DispInfo.o
gcc -c -O2 -fno-strict-aliasing    -I../../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG     -fPIC DispInfo.c
rm -f DropDis.o debugger/DropDis.o
gcc -c   -I../../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG  	-g  DropDis.c -o debugger/DropDis.o
rm -f DropDis.o
gcc -c -O2 -fno-strict-aliasing    -I../../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG     -fPIC DropDis.c
rm -f ErrHndlr.o debugger/ErrHndlr.o
gcc -c   -I../../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG  	-g  ErrHndlr.c -o debugger/ErrHndlr.o
ErrHndlr.c:144:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
1 warning generated.
rm -f ErrHndlr.o
gcc -c -O2 -fno-strict-aliasing    -I../../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG     -fPIC ErrHndlr.c
ErrHndlr.c:144:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
1 warning generated.
rm -f EvQueued.o debugger/EvQueued.o
gcc -c   -I../../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG  	-g  EvQueued.c -o debugger/EvQueued.o
rm -f EvQueued.o
gcc -c -O2 -fno-strict-aliasing    -I../../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG     -fPIC EvQueued.c
rm -f Flush.o debugger/Flush.o
gcc -c   -I../../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG  	-g  Flush.c -o debugger/Flush.o
rm -f Flush.o
gcc -c -O2 -fno-strict-aliasing    -I../../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG     -fPIC Flush.c
rm -f GetAuth.o debugger/GetAuth.o
gcc -c   -I../../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG  	-g  GetAuth.c -o debugger/GetAuth.o
rm -f GetAuth.o
gcc -c -O2 -fno-strict-aliasing    -I../../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG     -fPIC GetAuth.c
rm -f GetConf.o debugger/GetConf.o
gcc -c   -I../../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG  	-g  GetConf.c -o debugger/GetConf.o
rm -f GetConf.o
gcc -c -O2 -fno-strict-aliasing    -I../../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG     -fPIC GetConf.c
rm -f GetEvent.o debugger/GetEvent.o
gcc -c   -I../../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG  	-g  GetEvent.c -o debugger/GetEvent.o
rm -f GetEvent.o
gcc -c -O2 -fno-strict-aliasing    -I../../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG     -fPIC GetEvent.c
rm -f GetMask.o debugger/GetMask.o
gcc -c   -I../../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG  	-g  GetMask.c -o debugger/GetMask.o
rm -f GetMask.o
gcc -c -O2 -fno-strict-aliasing    -I../../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG     -fPIC GetMask.c
rm -f GetXMask.o debugger/GetXMask.o
gcc -c   -I../../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG  	-g  GetXMask.c -o debugger/GetXMask.o
rm -f GetXMask.o
gcc -c -O2 -fno-strict-aliasing    -I../../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG     -fPIC GetXMask.c
rm -f GrabKbd.o debugger/GrabKbd.o
gcc -c   -I../../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG  	-g  GrabKbd.c -o debugger/GrabKbd.o
rm -f GrabKbd.o
gcc -c -O2 -fno-strict-aliasing    -I../../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG     -fPIC GrabKbd.c
rm -f GrabPtr.o debugger/GrabPtr.o
gcc -c   -I../../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG  	-g  GrabPtr.c -o debugger/GrabPtr.o
rm -f GrabPtr.o
gcc -c -O2 -fno-strict-aliasing    -I../../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG     -fPIC GrabPtr.c
rm -f HideTptr.o debugger/HideTptr.o
gcc -c   -I../../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG  	-g  HideTptr.c -o debugger/HideTptr.o
rm -f HideTptr.o
gcc -c -O2 -fno-strict-aliasing    -I../../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG     -fPIC HideTptr.c
rm -f ListDis.o debugger/ListDis.o
gcc -c   -I../../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG  	-g  ListDis.c -o debugger/ListDis.o
rm -f ListDis.o
gcc -c -O2 -fno-strict-aliasing    -I../../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG     -fPIC ListDis.c
rm -f Open.o debugger/Open.o
gcc -c   -I../../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG  	-g -DHASXDMAUTH  -DTCPCONN -DUNIXCONN Open.c -o debugger/Open.o
rm -f Open.o
gcc -c -O2 -fno-strict-aliasing    -I../../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG  -DHASXDMAUTH  -DTCPCONN -DUNIXCONN   -fPIC Open.c
rm -f QueryDis.o debugger/QueryDis.o
gcc -c   -I../../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG  	-g  QueryDis.c -o debugger/QueryDis.o
rm -f QueryDis.o
gcc -c -O2 -fno-strict-aliasing    -I../../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG     -fPIC QueryDis.c
rm -f Register.o debugger/Register.o
gcc -c   -I../../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG  	-g  Register.c -o debugger/Register.o
rm -f Register.o
gcc -c -O2 -fno-strict-aliasing    -I../../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG     -fPIC Register.c
rm -f SetAuth.o debugger/SetAuth.o
gcc -c   -I../../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG  	-g  SetAuth.c -o debugger/SetAuth.o
rm -f SetAuth.o
gcc -c -O2 -fno-strict-aliasing    -I../../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG     -fPIC SetAuth.c
rm -f SetCfgMode.o debugger/SetCfgMode.o
gcc -c   -I../../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG  	-g  SetCfgMode.c -o debugger/SetCfgMode.o
rm -f SetCfgMode.o
gcc -c -O2 -fno-strict-aliasing    -I../../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG     -fPIC SetCfgMode.c
rm -f SetConf.o debugger/SetConf.o
gcc -c   -I../../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG  	-g  SetConf.c -o debugger/SetConf.o
rm -f SetConf.o
gcc -c -O2 -fno-strict-aliasing    -I../../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG     -fPIC SetConf.c
rm -f SetDispTag.o debugger/SetDispTag.o
gcc -c   -I../../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG  	-g  SetDispTag.c -o debugger/SetDispTag.o
rm -f SetDispTag.o
gcc -c -O2 -fno-strict-aliasing    -I../../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG     -fPIC SetDispTag.c
rm -f SetMask.o debugger/SetMask.o
gcc -c   -I../../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG  	-g  SetMask.c -o debugger/SetMask.o
rm -f SetMask.o
gcc -c -O2 -fno-strict-aliasing    -I../../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG     -fPIC SetMask.c
rm -f SetXMask.o debugger/SetXMask.o
gcc -c   -I../../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG  	-g  SetXMask.c -o debugger/SetXMask.o
rm -f SetXMask.o
gcc -c -O2 -fno-strict-aliasing    -I../../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG     -fPIC SetXMask.c
rm -f ShareSel.o debugger/ShareSel.o
gcc -c   -I../../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG  	-g  ShareSel.c -o debugger/ShareSel.o
rm -f ShareSel.o
gcc -c -O2 -fno-strict-aliasing    -I../../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG     -fPIC ShareSel.c
rm -f ShowTptr.o debugger/ShowTptr.o
gcc -c   -I../../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG  	-g  ShowTptr.c -o debugger/ShowTptr.o
rm -f ShowTptr.o
gcc -c -O2 -fno-strict-aliasing    -I../../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG     -fPIC ShowTptr.c
rm -f Sync.o debugger/Sync.o
gcc -c   -I../../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG  	-g  Sync.c -o debugger/Sync.o
rm -f Sync.o
gcc -c -O2 -fno-strict-aliasing    -I../../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG     -fPIC Sync.c
rm -f UngrabKbd.o debugger/UngrabKbd.o
gcc -c   -I../../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG  	-g  UngrabKbd.c -o debugger/UngrabKbd.o
rm -f UngrabKbd.o
gcc -c -O2 -fno-strict-aliasing    -I../../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG     -fPIC UngrabKbd.c
rm -f UngrabPtr.o debugger/UngrabPtr.o
gcc -c   -I../../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG  	-g  UngrabPtr.c -o debugger/UngrabPtr.o
rm -f UngrabPtr.o
gcc -c -O2 -fno-strict-aliasing    -I../../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG     -fPIC UngrabPtr.c
rm -f Unreg.o debugger/Unreg.o
gcc -c   -I../../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG  	-g  Unreg.c -o debugger/Unreg.o
rm -f Unreg.o
gcc -c -O2 -fno-strict-aliasing    -I../../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG     -fPIC Unreg.c
rm -f UnshareSel.o debugger/UnshareSel.o
gcc -c   -I../../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG  	-g  UnshareSel.c -o debugger/UnshareSel.o
rm -f UnshareSel.o
gcc -c -O2 -fno-strict-aliasing    -I../../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG     -fPIC UnshareSel.c
rm -f libXmc.so.2.0~
+ cd '.'
+ gcc -o './libXmc.so.2.0~' -shared '-Wl,-rpath,/usr/pkg/lib' '-Wl,-soname,libXmc.so.2' '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.so.2'
+ ln -s 'libXmc.so.2.0' 'libXmc.so.2'
rm -f libXmc.so.2.0
mv -f libXmc.so.2.0~ libXmc.so.2.0
+ rm -f 'libXmc.so'
+ ln -s 'libXmc.so.2.0' 'libXmc.so'
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...
gcc -g    -I../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN  -DRGB_DB=\"/usr/pkg/share/X11/rgb\"  -I/usr/pkg/include -c access.c
access.c:79:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
   for (hp=list; tp=hp; hp=hp->next)
                 ~~^~~
access.c:79:20: note: place parentheses around the assignment to silence this warning
   for (hp=list; tp=hp; hp=hp->next)
                   ^
                 (    )
access.c:79:20: note: use '==' to turn this assignment into an equality comparison
   for (hp=list; tp=hp; hp=hp->next)
                   ^
                   ==
access.c:84:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
   if (fp = fopen(file, "r")) {
       ~~~^~~~~~~~~~~~~~~~~~
access.c:84:11: note: place parentheses around the assignment to silence this warning
   if (fp = fopen(file, "r")) {
          ^
       (                    )
access.c:84:11: note: use '==' to turn this assignment into an equality comparison
   if (fp = fopen(file, "r")) {
          ^
          ==
access.c:86:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
         if (cp = (char *)index(buf, '\n'))
             ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
access.c:86:17: note: place parentheses around the assignment to silence this warning
         if (cp = (char *)index(buf, '\n'))
                ^
             (                            )
access.c:86:17: note: use '==' to turn this assignment into an equality comparison
         if (cp = (char *)index(buf, '\n'))
                ^
                ==
3 warnings generated.
gcc -g    -I../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN  -DRGB_DB=\"/usr/pkg/share/X11/rgb\"  -I/usr/pkg/include -c am.c
am.c:122:1: warning: control may reach end of non-void function [-Wreturn-type]
}
^
1 warning generated.
gcc -g    -I../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN  -DRGB_DB=\"/usr/pkg/share/X11/rgb\"  -I/usr/pkg/include -c args.c
args.c:528:7: warning: add explicit braces to avoid dangling else [-Wdangling-else]
      else {
      ^
1 warning generated.
gcc -g    -I../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN  -DRGB_DB=\"/usr/pkg/share/X11/rgb\"  -I/usr/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: implicit declaration of function 'err' is invalid in C99 [-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)
                        ^
2 warnings generated.
gcc -g    -I../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN  -DRGB_DB=\"/usr/pkg/share/X11/rgb\"  -I/usr/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
      ^
4 warnings generated.
gcc -g    -I../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN  -DRGB_DB=\"/usr/pkg/share/X11/rgb\"  -I/usr/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:366:16: warning: implicit declaration of function 'read' is invalid in C99 [-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: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;) {
                        ^
                        ==
5 warnings generated.
gcc -g    -I../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN  -DRGB_DB=\"/usr/pkg/share/X11/rgb\"  -I/usr/pkg/include -c cblock.c
cblock.c:119:14: warning: implicit declaration of function 'err' is invalid in C99 [-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.
gcc -g    -I../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN  -DRGB_DB=\"/usr/pkg/share/X11/rgb\"  -I/usr/pkg/include -c client.c
gcc -g    -I../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN  -DRGB_DB=\"/usr/pkg/share/X11/rgb\"  -I/usr/pkg/include -c cliz.c
gcc -g    -I../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN  -DRGB_DB=\"/usr/pkg/share/X11/rgb\"  -I/usr/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: implicit declaration of function 'list_bump' is invalid in C99 [-Wimplicit-function-declaration]
            list_put(lstp, u.longs.l[0]);
            ^
./xmx.h:611:3: note: expanded from macro 'list_put'
                list_bump(lp);\
                ^
3 warnings generated.
gcc -g    -I../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN  -DRGB_DB=\"/usr/pkg/share/X11/rgb\"  -I/usr/pkg/include -c cmapwin.c
gcc -g    -I../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN  -DRGB_DB=\"/usr/pkg/share/X11/rgb\"  -I/usr/pkg/include -c color.c
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: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)) {
            ^
            ==
5 warnings generated.
gcc -g    -I../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN  -DRGB_DB=\"/usr/pkg/share/X11/rgb\"  -I/usr/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)
                ^
                ==
1 warning generated.
gcc -g    -I../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN  -DRGB_DB=\"/usr/pkg/share/X11/rgb\"  -I/usr/pkg/include -c cookie.c
cookie.c:49:8: warning: implicit declaration of function 'err' is invalid in C99 [-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.
gcc -g    -I../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN  -DRGB_DB=\"/usr/pkg/share/X11/rgb\"  -I/usr/pkg/include -c cursor.c
cursor.c:75:8: warning: implicit declaration of function 'err' is invalid in C99 [-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;) {
                         ^
                         ==
3 warnings generated.
gcc -g    -I../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN  -DRGB_DB=\"/usr/pkg/share/X11/rgb\"  -I/usr/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.
gcc -g    -I../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN  -DRGB_DB=\"/usr/pkg/share/X11/rgb\"  -I/usr/pkg/include -c debug.c
gcc -g    -I../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN  -DRGB_DB=\"/usr/pkg/share/X11/rgb\"  -I/usr/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.
gcc -g    -I../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN  -DRGB_DB=\"/usr/pkg/share/X11/rgb\"  -I/usr/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:2217:14: warning: implicit declaration of function 'isprint' is invalid in C99 [-Wimplicit-function-declaration]
         if (isprint(ep->u.u.detail))
             ^
5 warnings generated.
gcc -g    -I../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN  -DRGB_DB=\"/usr/pkg/share/X11/rgb\"  -I/usr/pkg/include -c dprxmc.c
gcc -g    -I../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN  -DRGB_DB=\"/usr/pkg/share/X11/rgb\"  -I/usr/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.
gcc -g    -I../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN  -DRGB_DB=\"/usr/pkg/share/X11/rgb\"  -I/usr/pkg/include -c error.c
gcc -g    -I../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN  -DRGB_DB=\"/usr/pkg/share/X11/rgb\"  -I/usr/pkg/include -c es.c
gcc -g    -I../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN  -DRGB_DB=\"/usr/pkg/share/X11/rgb\"  -I/usr/pkg/include -c event.c
event.c:91:19: warning: implicit declaration of function 'quit' is invalid in C99 [-Wimplicit-function-declaration]
   ep = (xEvent *)buf_data(chp);
                  ^
./xmx.h:572:6: note: expanded from macro 'buf_data'
                                (quit(-1, "invalid chunk"), (char *)0))
                                 ^
1 warning generated.
gcc -g    -I../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN  -DRGB_DB=\"/usr/pkg/share/X11/rgb\"  -I/usr/pkg/include -c expos.c
expos.c:91:23: warning: implicit declaration of function 'quit' is invalid in C99 [-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: implicit declaration of function 'warn' is invalid in C99 [-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: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: implicit declaration of function 'err' is invalid in C99 [-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;) {
                        ^
                        ==
7 warnings generated.
gcc -g    -I../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN  -DRGB_DB=\"/usr/pkg/share/X11/rgb\"  -I/usr/pkg/include -c ext.c
ext.c:196:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
1 warning generated.
gcc -g    -I../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN  -DRGB_DB=\"/usr/pkg/share/X11/rgb\"  -I/usr/pkg/include -c focus.c
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
         ^
2 warnings generated.
gcc -g    -I../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN  -DRGB_DB=\"/usr/pkg/share/X11/rgb\"  -I/usr/pkg/include -c font.c
font.c:59:8: warning: implicit declaration of function 'err' is invalid in C99 [-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: implicit declaration of function 'quit' is invalid in C99 [-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: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;) {
                     ^
                     ==
4 warnings generated.
gcc -g    -I../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN  -DRGB_DB=\"/usr/pkg/share/X11/rgb\"  -I/usr/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: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;) {
                   ^
                   ==
11 warnings generated.
gcc -g    -I../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN  -DRGB_DB=\"/usr/pkg/share/X11/rgb\"  -I/usr/pkg/include -c hash.c
hash.c:133:13: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
   register keyhash, valhash;
   ~~~~~~~~ ^
hash.c:133:22: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
   register keyhash, valhash;
   ~~~~~~~~          ^
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' [-Wimplicit-int]
   register keyhash, valhash;
   ~~~~~~~~ ^
hash.c:214:22: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
   register keyhash, valhash;
   ~~~~~~~~          ^
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
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
9 warnings generated.
gcc -g    -I../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN  -DRGB_DB=\"/usr/pkg/share/X11/rgb\"  -I/usr/pkg/include -c host.c
host.c:57:8: warning: implicit declaration of function 'gethostname' is invalid in C99 [-Wimplicit-function-declaration]
   if (gethostname(host, MAXHOSTNAMELEN))
       ^
host.c:115:17: warning: implicit declaration of function 'isdigit' is invalid in C99 [-Wimplicit-function-declaration]
   for (cp=pat; isdigit(*cp) || *cp == '.'; cp++);
                ^
host.c:152:29: warning: implicit declaration of function 'inet_addr' is invalid in C99 [-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.
gcc -g    -I../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN  -DRGB_DB=\"/usr/pkg/share/X11/rgb\"  -I/usr/pkg/include -c image.c
gcc -g    -I../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN  -DRGB_DB=\"/usr/pkg/share/X11/rgb\"  -I/usr/pkg/include -c imask.c
imask.c:54:8: warning: implicit declaration of function 'err' is invalid in C99 [-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: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;) {
                       ^
                       ==
2 warnings generated.
gcc -g    -I../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN  -DRGB_DB=\"/usr/pkg/share/X11/rgb\"  -I/usr/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: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: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: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))
               ^
               ==
9 warnings generated.
gcc -g    -I../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN  -DRGB_DB=\"/usr/pkg/share/X11/rgb\"  -I/usr/pkg/include -c iswap.c
gcc -g    -I../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN  -DRGB_DB=\"/usr/pkg/share/X11/rgb\"  -I/usr/pkg/include -c kpm.c
kpm.c:45:8: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
static vkeymap;                 /* index of current key mapping */
~~~~~~ ^
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: implicit declaration of function 'isascii' is invalid in C99 [-Wimplicit-function-declaration]
   else if (isascii(ksvec[0]) && isascii(ksvec[1]))
            ^
kpm.c:917:11: warning: implicit declaration of function 'isupper' is invalid in C99 [-Wimplicit-function-declaration]
      if (isupper(ksvec[1]) && ksvec[0] == tolower(ksvec[1]))
          ^
kpm.c:917:44: warning: implicit declaration of function 'tolower' is invalid in C99 [-Wimplicit-function-declaration]
      if (isupper(ksvec[1]) && ksvec[0] == tolower(ksvec[1]))
                                           ^
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: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) {
              ^
              ==
13 warnings generated.
gcc -g    -I../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN  -DRGB_DB=\"/usr/pkg/share/X11/rgb\"  -I/usr/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;) {
                                    ^
                                    ==
4 warnings generated.
gcc -g    -I../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN  -DRGB_DB=\"/usr/pkg/share/X11/rgb\"  -I/usr/pkg/include -c main.c
gcc -g    -I../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN  -DRGB_DB=\"/usr/pkg/share/X11/rgb\"  -I/usr/pkg/include -c mitauth.c
mitauth.c:52:8: warning: implicit declaration of function 'err' is invalid in C99 [-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.
gcc -g    -I../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN  -DRGB_DB=\"/usr/pkg/share/X11/rgb\"  -I/usr/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: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;) {
                         ^
                         ==
2 warnings generated.
gcc -g    -I../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN  -DRGB_DB=\"/usr/pkg/share/X11/rgb\"  -I/usr/pkg/include -c plist.c
plist.c:54:13: warning: implicit declaration of function 'err' is invalid in C99 [-Wimplicit-function-declaration]
   else if (MALLOC(lp, plist_t *, sizeof(plist_t)))
            ^
./xmx.h:447:4: note: expanded from macro 'MALLOC'
                        err(-1, "malloc returned zero [%d]\n",(size)) : 0)
                        ^
plist.c:146:22: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
   for (lp=lfree; llp=lp;) {
                  ~~~^~~
plist.c:146:22: note: place parentheses around the assignment to silence this warning
   for (lp=lfree; llp=lp;) {
                     ^
                  (     )
plist.c:146:22: note: use '==' to turn this assignment into an equality comparison
   for (lp=lfree; llp=lp;) {
                     ^
                     ==
2 warnings generated.
gcc -g    -I../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN  -DRGB_DB=\"/usr/pkg/share/X11/rgb\"  -I/usr/pkg/include -c pmap.c
gcc -g    -I../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN  -DRGB_DB=\"/usr/pkg/share/X11/rgb\"  -I/usr/pkg/include -c pp.c
pp.c:105:24: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
   for (pp=ppfree; last=pp;) {
                   ~~~~^~~
pp.c:105:24: note: place parentheses around the assignment to silence this warning
   for (pp=ppfree; last=pp;) {
                       ^
                   (      )
pp.c:105:24: note: use '==' to turn this assignment into an equality comparison
   for (pp=ppfree; last=pp;) {
                       ^
                       ==
pp.c:187:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
   if (n = MIN(pp->nmore, 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.
gcc -g    -I../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN  -DRGB_DB=\"/usr/pkg/share/X11/rgb\"  -I/usr/pkg/include -c prop.c
prop.c:86:11: warning: implicit declaration of function 'err' is invalid in C99 [-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: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) {
         ^
4 warnings generated.
gcc -g    -I../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN  -DRGB_DB=\"/usr/pkg/share/X11/rgb\"  -I/usr/pkg/include -c proto.c
gcc -g    -I../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN  -DRGB_DB=\"/usr/pkg/share/X11/rgb\"  -I/usr/pkg/include -c ptc.c
gcc -g    -I../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN  -DRGB_DB=\"/usr/pkg/share/X11/rgb\"  -I/usr/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: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)
                                         ^
                        (                                       )
3 warnings generated.
gcc -g    -I../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN  -DRGB_DB=\"/usr/pkg/share/X11/rgb\"  -I/usr/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: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))
                          ^
                          ==
12 warnings generated.
gcc -g    -I../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN  -DRGB_DB=\"/usr/pkg/share/X11/rgb\"  -I/usr/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: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:1236:19: warning: add explicit braces to avoid dangling else [-Wdangling-else]
                  else
                  ^
5 warnings generated.
gcc -g    -I../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN  -DRGB_DB=\"/usr/pkg/share/X11/rgb\"  -I/usr/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: implicit declaration of function 'isdigit' is invalid in C99 [-Wimplicit-function-declaration]
      if (isdigit(*cp)) {
          ^
rgb.c:248:12: warning: implicit declaration of function 'isspace' is invalid in C99 [-Wimplicit-function-declaration]
      if (!isspace(cp[j]))
           ^
rgb.c:249:14: warning: implicit declaration of function 'isupper' is invalid in C99 [-Wimplicit-function-declaration]
         if (isupper(cp[j]))
             ^
rgb.c:250:23: warning: implicit declaration of function 'tolower' is invalid in C99 [-Wimplicit-function-declaration]
            cp[i++] = tolower(cp[j]);
                      ^
rgb.c:251:10: warning: add explicit braces to avoid dangling else [-Wdangling-else]
         else
         ^
6 warnings generated.
gcc -g    -I../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN  -DRGB_DB=\"/usr/pkg/share/X11/rgb\"  -I/usr/pkg/include -c root.c
root.c:102:1: warning: control reaches end of non-void function [-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: control reaches end of non-void function [-Wreturn-type]
}
^
root.c:363:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
4 warnings generated.
gcc -g    -I../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN  -DRGB_DB=\"/usr/pkg/share/X11/rgb\"  -I/usr/pkg/include -c rs.c
gcc -g    -I../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN  -DRGB_DB=\"/usr/pkg/share/X11/rgb\"  -I/usr/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.
gcc -g    -I../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN  -DRGB_DB=\"/usr/pkg/share/X11/rgb\"  -I/usr/pkg/include -c sel.c
sel.c:87:11: warning: implicit declaration of function 'err' is invalid in C99 [-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.
gcc -g    -I../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN  -DRGB_DB=\"/usr/pkg/share/X11/rgb\"  -I/usr/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.
gcc -g    -I../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN  -DRGB_DB=\"/usr/pkg/share/X11/rgb\"  -I/usr/pkg/include -c shape.c
shape.c:85:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
shape.c:128:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
shape.c:139:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
shape.c:155:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
shape.c:166:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
shape.c:180:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
shape.c:193:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
shape.c:206:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
shape.c:220:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
9 warnings generated.
gcc -g    -I../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN  -DRGB_DB=\"/usr/pkg/share/X11/rgb\"  -I/usr/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.
gcc -g    -I../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN  -DRGB_DB=\"/usr/pkg/share/X11/rgb\"  -I/usr/pkg/include -c socket.c
socket.c:137:13: warning: implicit declaration of function 'unlink' is invalid in C99 [-Wimplicit-function-declaration]
      (void)unlink(xpath);
            ^
socket.c:199:7: warning: implicit declaration of function 'sleep' is invalid in C99 [-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)
                                 ^~~~~~~~
/usr/include/sys/socket.h:612:69: 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))
                                   ^~~~~~~~
/usr/include/sys/socket.h:615:74: note: passing argument to parameter here
int     getpeername(int, struct sockaddr * __restrict, socklen_t * __restrict);
                                                                             ^
socket.c:425:16: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration]
         (void)close(s);
               ^
5 warnings generated.
gcc -g    -I../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN  -DRGB_DB=\"/usr/pkg/share/X11/rgb\"  -I/usr/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.
gcc -g    -I../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN  -DRGB_DB=\"/usr/pkg/share/X11/rgb\"  -I/usr/pkg/include -c sv.c
sv.c:63:13: warning: implicit declaration of function 'err' is invalid in C99 [-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.
gcc -g    -I../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN  -DRGB_DB=\"/usr/pkg/share/X11/rgb\"  -I/usr/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)) {
                      ^
                      ==
3 warnings generated.
gcc -g    -I../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN  -DRGB_DB=\"/usr/pkg/share/X11/rgb\"  -I/usr/pkg/include -c time.c
time.c:57:7: warning: add explicit braces to avoid dangling else [-Wdangling-else]
      else
      ^
1 warning generated.
gcc -g    -I../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN  -DRGB_DB=\"/usr/pkg/share/X11/rgb\"  -I/usr/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:800:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
tptr.c:1048:7: warning: add explicit braces to avoid dangling else [-Wdangling-else]
      else
      ^
4 warnings generated.
gcc -g    -I../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN  -DRGB_DB=\"/usr/pkg/share/X11/rgb\"  -I/usr/pkg/include -c util.c
util.c:188:19: warning: implicit declaration of function 'getppid' is invalid in C99 [-Wimplicit-function-declaration]
      if ((ppid = getppid()) > 0) {
                  ^
util.c:196:10: warning: implicit declaration of function 'sleep' is invalid in C99 [-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: implicit declaration of function 'isdigit' is invalid in C99 [-Wimplicit-function-declaration]
         for (i=0; isdigit(*cp); i++, cp++)
                   ^
util.c:444:26: warning: implicit declaration of function 'isalnum' is invalid in C99 [-Wimplicit-function-declaration]
               for (i=0; isalnum(*cp); i++, cp++)
                         ^
6 warnings generated.
gcc -g    -I../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN  -DRGB_DB=\"/usr/pkg/share/X11/rgb\"  -I/usr/pkg/include -c vconf.c
vconf.c:504:1: warning: control may reach end of non-void function [-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: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;) {
                        ^
                        ==
18 warnings generated.
gcc -g    -I../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN  -DRGB_DB=\"/usr/pkg/share/X11/rgb\"  -I/usr/pkg/include -c window.c
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:905:13: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
   register didone = 0;
   ~~~~~~~~ ^
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) {
             ^
             ==
7 warnings generated.
gcc -g    -I../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN  -DRGB_DB=\"/usr/pkg/share/X11/rgb\"  -I/usr/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: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: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: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: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:1523:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
18 warnings generated.
gcc -g    -I../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN  -DRGB_DB=\"/usr/pkg/share/X11/rgb\"  -I/usr/pkg/include -c xmcp.c
gcc -g    -I../include  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DDEBUG -DNDBM -DTCPCONN -DUNIXCONN  -DRGB_DB=\"/usr/pkg/share/X11/rgb\"  -I/usr/pkg/include -c zb.c
rm -f xmx
gcc -o xmx -g      -L/usr/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       -Wl,-rpath,/usr/pkg/lib
making all in ./clients...
making all in clients/xmtg...
gcc -O2 -fno-strict-aliasing     -I../../include -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO     -I/usr/pkg/include -c xmtg.c
xmtg.c:242:12: warning: implicit declaration of function 'ui_get_toggle_state' is invalid in C99 [-Wimplicit-function-declaration]
   state = ui_get_toggle_state(w);
           ^
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: implicit declaration of function 'ui_error' is invalid in C99 [-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: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:335:10: warning: add explicit braces to avoid dangling else [-Wdangling-else]
         else
         ^
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:364:10: warning: add explicit braces to avoid dangling else [-Wdangling-else]
         else
         ^
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:396:10: warning: add explicit braces to avoid dangling else [-Wdangling-else]
         else
         ^
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:462:4: warning: implicit declaration of function 'ui_popup_open' is invalid in C99 [-Wimplicit-function-declaration]
   ui_popup_open();
   ^
xmtg.c:472:4: warning: implicit declaration of function 'ui_popup_save' is invalid in C99 [-Wimplicit-function-declaration]
   ui_popup_save();
   ^
xmtg.c:483:7: warning: implicit declaration of function 'ui_dialog_accept' is invalid in C99 [-Wimplicit-function-declaration]
      ui_dialog_accept(*params);
      ^
xmtg.c:494:7: warning: implicit declaration of function 'ui_dialog_cancel' is invalid in C99 [-Wimplicit-function-declaration]
      ui_dialog_cancel(*params);
      ^
xmtg.c:514:4: warning: implicit declaration of function 'ui_popup_add' is invalid in C99 [-Wimplicit-function-declaration]
   ui_popup_add();
   ^
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: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: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: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: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: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: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:759:26: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
         fprintf(stderr, usage);
                         ^~~~~
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: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:841:27: warning: too many arguments in call to 'show_add'
            show_add(np, 0);
            ~~~~~~~~      ^
WARNING: While resolving call to function 'show_add' arguments were dropped!
31 warnings generated.
gcc -O2 -fno-strict-aliasing     -I../../include -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO     -I/usr/pkg/include -c node.c
node.c:189:11: warning: implicit declaration of function 'gethostname' is invalid in C99 [-Wimplicit-function-declaration]
      if (gethostname(buf, MAXHOSTNAMELEN) < 0)
          ^
1 warning generated.
gcc -O2 -fno-strict-aliasing     -I../../include -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO     -I/usr/pkg/include -c ig.c
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: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:1067:7: warning: add explicit braces to avoid dangling else [-Wdangling-else]
      else
      ^
ig.c:1094:11: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
   static pending;
   ~~~~~~ ^
4 warnings generated.
gcc -O2 -fno-strict-aliasing     -I../../include -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO     -I/usr/pkg/include -c ui.c
ui.c:136:4: warning: implicit declaration of function 'ui_create_add_dialog' is invalid in C99 [-Wimplicit-function-declaration]
   ui_create_add_dialog(add_d, parent, ADD_PROMPT, floor, seat, view);
   ^
ui.c:143:4: warning: implicit declaration of function 'ui_create_drop_dialog' is invalid in C99 [-Wimplicit-function-declaration]
   ui_create_drop_dialog(drop_d, parent, DROP_PROMPT);
   ^
ui.c:210:1: error: conflicting types for 'ui_create_add_dialog'
ui_create_add_dialog(dp, parent, prompt, floor, seat, view)
^
ui.c:136:4: note: previous implicit declaration is here
   ui_create_add_dialog(add_d, parent, ADD_PROMPT, floor, seat, view);
   ^
ui.c:270:1: error: conflicting types for 'ui_create_drop_dialog'
ui_create_drop_dialog(dp, parent, prompt)
^
ui.c:143:4: note: previous implicit declaration is here
   ui_create_drop_dialog(drop_d, parent, DROP_PROMPT);
   ^
2 warnings and 2 errors generated.
*** Error code 1

Stop.
make: stopped in /scratch/x11/xmx/work/xmx-2.1alpha.pl7/clients/xmtg
*** Error code 1

Stop.
make: stopped in /scratch/x11/xmx/work/xmx-2.1alpha.pl7/clients
*** Error code 1

Stop.
make: stopped in /scratch/x11/xmx/work/xmx-2.1alpha.pl7
*** Error code 1

Stop.
make: stopped in /bulk-data/pkgsrc/x11/xmx
*** Error code 1

Stop.
make: stopped in /bulk-data/pkgsrc/x11/xmx
