git: fa255ab1b895 - main - ctld: Disable -Wcast-align warnings.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 22 Dec 2021 23:28:11 UTC
The branch main has been updated by jhb:
URL: https://cgit.FreeBSD.org/src/commit/?id=fa255ab1b895b4a1641206e7906086aab32b1adb
commit fa255ab1b895b4a1641206e7906086aab32b1adb
Author: John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2021-12-22 23:23:45 +0000
Commit: John Baldwin <jhb@FreeBSD.org>
CommitDate: 2021-12-22 23:23:45 +0000
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: 6378393308bc Add an internal libiscsiutil library.
Sponsored by: Chelsio Communications
---
usr.sbin/ctld/Makefile | 1 +
1 file changed, 1 insertion(+)
diff --git a/usr.sbin/ctld/Makefile b/usr.sbin/ctld/Makefile
index 5f80ba026204..45b9e93be756 100644
--- a/usr.sbin/ctld/Makefile
+++ b/usr.sbin/ctld/Makefile
@@ -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