Andrew Geissler | bffdb3e | 2020-08-21 16:13:29 -0500 | [diff] [blame^] | 1 | From 31d88f46bfc67de2659991674253a5d5dfb92afc Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Wed, 12 Aug 2020 12:00:29 -0700 |
| 4 | Subject: [PATCH] Makefile: Do not set -Werror |
| 5 | |
| 6 | clang finds more warnings which causes build to fail, disable treating |
| 7 | warning as errors |
| 8 | |
| 9 | Upstream-Status: Inappropriate [OE-Specific] |
| 10 | |
| 11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 12 | --- |
| 13 | usr/Makefile | 2 +- |
| 14 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 15 | |
| 16 | diff --git a/usr/Makefile b/usr/Makefile |
| 17 | index 21bb154..0018605 100644 |
| 18 | --- a/usr/Makefile |
| 19 | +++ b/usr/Makefile |
| 20 | @@ -35,7 +35,7 @@ endif |
| 21 | PKG_CONFIG = /usr/bin/pkg-config |
| 22 | |
| 23 | CFLAGS ?= -O2 -g |
| 24 | -WARNFLAGS ?= -Wall -Wextra -Werror -Wstrict-prototypes -fno-common |
| 25 | +WARNFLAGS ?= -Wall -Wextra -Wstrict-prototypes -fno-common |
| 26 | CFLAGS += $(WARNFLAGS) -I../include -I. -D_GNU_SOURCE \ |
| 27 | -I$(TOPDIR)/libopeniscsiusr |
| 28 | CFLAGS += $(shell $(PKG_CONFIG) --cflags libkmod) |
| 29 | -- |
| 30 | 2.28.0 |
| 31 | |