Date: Fri, 29 Apr 2022 23:12:21 GMT From: John Baldwin <jhb@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: b77f4559d5c2 - stable/13 - ctld: Disable -Wcast-align warnings. Message-ID: <202204292312.23TNCLkw044540@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=b77f4559d5c2ef9aa03da9610f7334bceb001db3 commit b77f4559d5c2ef9aa03da9610f7334bceb001db3 Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2021-12-22 23:23:45 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2022-04-29 21:16:55 +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 (cherry picked from commit fa255ab1b895b4a1641206e7906086aab32b1adb) --- 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202204292312.23TNCLkw044540>