mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-25 07:51:28 +00:00
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
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user