Blame SOURCES/0023-stop-using-Werror-for-now.patch

b7a469
From af428f588f8023784c6f4b0a25d13b70fb7216ab Mon Sep 17 00:00:00 2001
b7a469
From: rpm-build <rpm-build>
b7a469
Date: Tue, 3 Mar 2020 10:35:40 -0800
b7a469
Subject: [PATCH] stop using Werror for now
b7a469
b7a469
need to work through these warning that only appear on s390x
b7a469
Werror seems bad for release, makes packaging a nightmare when new
b7a469
compilers come around
b7a469
---
b7a469
 Makefile        | 2 +-
b7a469
 usr/Makefile    | 2 +-
b7a469
 usr/initiator.c | 2 +-
b7a469
 3 files changed, 3 insertions(+), 3 deletions(-)
b7a469
b7a469
diff --git a/Makefile b/Makefile
b7a469
index 7e6b734..0069e75 100644
b7a469
--- a/Makefile
b7a469
+++ b/Makefile
b7a469
@@ -7,7 +7,7 @@
b7a469
 DESTDIR ?=
b7a469
 
b7a469
 prefix = /usr
b7a469
-exec_prefix = /
b7a469
+exec_prefix = /usr
b7a469
 sbindir = $(exec_prefix)/sbin
b7a469
 bindir = $(exec_prefix)/bin
b7a469
 mandir = $(prefix)/share/man
b7a469
diff --git a/usr/Makefile b/usr/Makefile
b7a469
index 885243a..1a743d1 100644
b7a469
--- a/usr/Makefile
b7a469
+++ b/usr/Makefile
b7a469
@@ -35,7 +35,7 @@ endif
b7a469
 PKG_CONFIG = /usr/bin/pkg-config
b7a469
 
b7a469
 CFLAGS ?= -O2 -g
b7a469
-WARNFLAGS ?= -Wall -Wextra -Werror -Wstrict-prototypes -fno-common
b7a469
+WARNFLAGS ?= -Wall -Wextra -Wstrict-prototypes -fno-common
b7a469
 CFLAGS += $(WARNFLAGS) -I../include -I. -D_GNU_SOURCE \
b7a469
 	  -I$(TOPDIR)/libopeniscsiusr -DISNS_ENABLE
b7a469
 CFLAGS += $(shell $(PKG_CONFIG) --cflags libkmod)
b7a469
diff --git a/usr/initiator.c b/usr/initiator.c
b7a469
index 684647c..a5a9d08 100644
b7a469
--- a/usr/initiator.c
b7a469
+++ b/usr/initiator.c
b7a469
@@ -580,7 +580,7 @@ __session_conn_reopen(iscsi_conn_t *conn, queue_task_t *qtask, int do_stop,
b7a469
 		      int redirected)
b7a469
 {
b7a469
 	iscsi_session_t *session = conn->session;
b7a469
-	uint32_t delay;
b7a469
+	uint32_t delay = 0;
b7a469
 
b7a469
 	log_debug(1, "re-opening session %d (reopen_cnt %d)", session->id,
b7a469
 			session->reopen_cnt);
b7a469
-- 
b7a469
2.26.2
b7a469