Blob Blame Raw
From db7fe07bc108ea30beb4f54a42c67df428f8862a Mon Sep 17 00:00:00 2001
From: rpm-build <rpm-build>
Date: Thu, 24 May 2018 15:41:34 -0700
Subject: [PATCH 1/1] libopeniscsiusr: temp disable gcc errors

---
 Makefile                 | 2 +-
 libopeniscsiusr/Makefile | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index 6c94ca96016e..8d6f5d8ef102 100644
--- a/Makefile
+++ b/Makefile
@@ -7,7 +7,7 @@
 DESTDIR ?=
 
 prefix = /usr
-exec_prefix = /
+exec_prefix = /usr
 sbindir = $(exec_prefix)/sbin
 bindir = $(exec_prefix)/bin
 mandir = $(prefix)/share/man
diff --git a/libopeniscsiusr/Makefile b/libopeniscsiusr/Makefile
index 8b9b523c1d96..0df30f8c34f0 100644
--- a/libopeniscsiusr/Makefile
+++ b/libopeniscsiusr/Makefile
@@ -42,7 +42,8 @@ EXTRA_MAN_FILES = libopeniscsiusr.h.3
 OBJS = context.o misc.o session.o sysfs.o iface.o
 
 CFLAGS ?= -O2 -g
-CFLAGS += -Wall -Werror -Wextra -fvisibility=hidden -fPIC
+CFLAGS += -Wall -Werror -Wextra -fvisibility=hidden -fPIC \
+	  -Wno-format-truncation -Wno-stringop-truncation
 
 LIBADD =
 
-- 
2.14.3