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

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