e8d211
From db7fe07bc108ea30beb4f54a42c67df428f8862a Mon Sep 17 00:00:00 2001
e8d211
From: rpm-build <rpm-build>
e8d211
Date: Thu, 24 May 2018 15:41:34 -0700
e8d211
Subject: [PATCH 1/1] libopeniscsiusr: temp disable gcc errors
e8d211
e8d211
---
e8d211
 Makefile                 | 2 +-
e8d211
 libopeniscsiusr/Makefile | 3 ++-
e8d211
 2 files changed, 3 insertions(+), 2 deletions(-)
e8d211
e8d211
diff --git a/Makefile b/Makefile
e8d211
index 6c94ca96016e..8d6f5d8ef102 100644
e8d211
--- a/Makefile
e8d211
+++ b/Makefile
e8d211
@@ -7,7 +7,7 @@
e8d211
 DESTDIR ?=
e8d211
 
e8d211
 prefix = /usr
e8d211
-exec_prefix = /
e8d211
+exec_prefix = /usr
e8d211
 sbindir = $(exec_prefix)/sbin
e8d211
 bindir = $(exec_prefix)/bin
e8d211
 mandir = $(prefix)/share/man
e8d211
diff --git a/libopeniscsiusr/Makefile b/libopeniscsiusr/Makefile
e8d211
index 8b9b523c1d96..0df30f8c34f0 100644
e8d211
--- a/libopeniscsiusr/Makefile
e8d211
+++ b/libopeniscsiusr/Makefile
e8d211
@@ -42,7 +42,8 @@ EXTRA_MAN_FILES = libopeniscsiusr.h.3
e8d211
 OBJS = context.o misc.o session.o sysfs.o iface.o
e8d211
 
e8d211
 CFLAGS ?= -O2 -g
e8d211
-CFLAGS += -Wall -Werror -Wextra -fvisibility=hidden -fPIC
e8d211
+CFLAGS += -Wall -Werror -Wextra -fvisibility=hidden -fPIC \
e8d211
+	  -Wno-format-truncation -Wno-stringop-truncation
e8d211
 
e8d211
 LIBADD =
e8d211
 
e8d211
-- 
e8d211
2.14.3
e8d211