ctld: Disable -Wcast-align warnings.

clang complains about the downcasts from struct connection to struct
ctld_connection as the alignment of struct ctld_connection is higher
on 32-bit platforms.  However, the warning is in this case harmless as
the downcasts are on objects originally allocated as instances of
struct ctld_connection with suitable alignment.

Reported by:	npn, gjb
Fixes:		6378393308 Add an internal libiscsiutil library.
Sponsored by:	Chelsio Communications
This commit is contained in:
John Baldwin 2021-12-22 15:23:45 -08:00
parent acdc1de369
commit fa255ab1b8

View File

@ -15,6 +15,7 @@ CFLAGS+= -I${SRCTOP}/sys/cam/ctl
CFLAGS+= -I${SRCTOP}/sys/dev/iscsi
CFLAGS+= -I${SRCTOP}/lib/libiscsiutil
#CFLAGS+= -DICL_KERNEL_PROXY
NO_WCAST_ALIGN=
MAN= ctld.8 ctl.conf.5
LIBADD= bsdxml iscsiutil md sbuf util ucl m nv