From: Keith Busch Date: Thu, 16 May 2019 15:19:42 +0000 (-0600) Subject: remove non-portable compile-time check X-Git-Tag: v1.9~62 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=c375b47c8992a4892e7467657e7def9d2e3adceb;p=users%2Fsagi%2Fnvme-cli.git remove non-portable compile-time check _Static_assert is a C11 feature, and we're only targeting to be compatible from C99. Link: https://github.com/linux-nvme/nvme-cli/issues/502 Signed-off-by: Keith Busch --- diff --git a/nvme.c b/nvme.c index 971a926c..e0f7552e 100644 --- a/nvme.c +++ b/nvme.c @@ -2263,8 +2263,6 @@ static int list_secondary_ctrl(int argc, char **argv, struct command *cmd, struc int err, fmt, fd; struct nvme_secondary_controllers_list *sc_list; - _Static_assert(sizeof(struct nvme_secondary_controller_entry) != NVME_IDENTIFY_DATA_SIZE, "bad structure size"); - struct config { __u16 cntid; __u32 num_entries;