From af9504a0f57e43fb502321025e95bea576fd5e7e Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sat, 29 May 2021 01:16:42 +0000 Subject: [PATCH] iscsi-scst/usr/Makefile: Use -Werror when testing a compiler option This is necessary for clang. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9430 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- iscsi-scst/usr/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iscsi-scst/usr/Makefile b/iscsi-scst/usr/Makefile index c94a9d409..e50aad6f3 100644 --- a/iscsi-scst/usr/Makefile +++ b/iscsi-scst/usr/Makefile @@ -18,7 +18,7 @@ ifndef PREFIX PREFIX=/usr/local endif -cc-option = $(shell if $(CC) $(1) -S -o /dev/null -xc /dev/null \ +cc-option = $(shell if $(CC) $(1) -Werror -S -o /dev/null -xc /dev/null \ > /dev/null 2>&1; then echo "$(1)"; else echo "$(2)"; fi ;) SRCS_D = iscsid.c iscsi_scstd.c conn.c session.c target.c message.c ctldev.c \