From 7366e569fbc7dff6dcc6709ffb52a890284de67e Mon Sep 17 00:00:00 2001 From: Karol Latecki Date: Mon, 22 Mar 2021 12:23:28 +0100 Subject: [PATCH] build/fio: disable warning for fio clang-11 builds Fio 3.19 fails to build with Clang 11 because of implicit-const-int-float-conversion error. Disable -Werror checking for now. Fixes #1848 Change-Id: I0f3922d7af412de35d9f79f3f5413af146996bf3 Signed-off-by: Karol Latecki Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/6991 Tested-by: SPDK CI Jenkins Reviewed-by: Jim Harris Reviewed-by: Ben Walker --- mk/spdk.fio.mk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mk/spdk.fio.mk b/mk/spdk.fio.mk index a4be136f90..fb393c349a 100644 --- a/mk/spdk.fio.mk +++ b/mk/spdk.fio.mk @@ -43,6 +43,8 @@ CFLAGS += -I$(CONFIG_FIO_SOURCE_DIR) # cannot use -Werror ifeq ($(OS),FreeBSD) CFLAGS += -Wno-error +else ifeq ($(CC_TYPE),clang) +CFLAGS += -Wno-error endif LDFLAGS += -shared -rdynamic -Wl,-z,nodelete