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

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