From 3d527cb0b56525f72060688eb86b0d7d5e56396f Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Wed, 15 Sep 2021 03:10:32 +0000 Subject: [PATCH] fcst: Use BUILD_BUG_ON() instead of static_assert() BUILD_BUG_ON() works with older gcc versions but static_assert() not. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9577 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- fcst/ft_sess.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fcst/ft_sess.c b/fcst/ft_sess.c index 99762bc3b..d3ecac9d3 100644 --- a/fcst/ft_sess.c +++ b/fcst/ft_sess.c @@ -350,7 +350,7 @@ int ft_get_transport_id(struct scst_tgt *tgt, struct scst_session *scst_sess, u8 __resv2[8]; } *id; - static_assert(sizeof(*id) == 24); + BUILD_BUG_ON(sizeof(*id) != 24); if (!scst_sess) return SCSI_TRANSPORTID_PROTOCOLID_FCP2;