git: b77f4559d5c2 - stable/13 - ctld: Disable -Wcast-align warnings.

From: John Baldwin <>
Date: Fri, 29 Apr 2022 23:12:21 UTC
The branch stable/13 has been updated by jhb:


commit b77f4559d5c2ef9aa03da9610f7334bceb001db3
Author:     John Baldwin <>
AuthorDate: 2021-12-22 23:23:45 +0000
Commit:     John Baldwin <>
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
 MAN=		ctld.8 ctl.conf.5
 LIBADD=		bsdxml iscsiutil md sbuf util ucl m nv