From c375b47c8992a4892e7467657e7def9d2e3adceb Mon Sep 17 00:00:00 2001 From: Keith Busch Date: Thu, 16 May 2019 09:19:42 -0600 Subject: [PATCH] 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 --- nvme.c | 2 -- 1 file changed, 2 deletions(-) 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; -- 2.50.1