]> git.pld-linux.org Git - packages/open-iscsi.git/blame - 0023-stop-using-Werror-for-now.patch
- updated to 2.1.7, adjusted patches
[packages/open-iscsi.git] / 0023-stop-using-Werror-for-now.patch
CommitLineData
3de50fc5
JB
1From af428f588f8023784c6f4b0a25d13b70fb7216ab Mon Sep 17 00:00:00 2001
2From: rpm-build <rpm-build>
3Date: Tue, 3 Mar 2020 10:35:40 -0800
4Subject: [PATCH] stop using Werror for now
5
6need to work through these warning that only appear on s390x
7Werror seems bad for release, makes packaging a nightmare when new
8compilers come around
9---
10 Makefile | 2 +-
11 usr/Makefile | 2 +-
12 usr/initiator.c | 2 +-
13 3 files changed, 3 insertions(+), 3 deletions(-)
14
15diff --git a/Makefile b/Makefile
16index 7e6b734..0069e75 100644
17--- a/Makefile
18+++ b/Makefile
19@@ -7,7 +7,7 @@
20 DESTDIR ?=
21
22 prefix = /usr
e621921b 23-exec_prefix =
3de50fc5 24+exec_prefix = /usr
3de50fc5 25 mandir = $(prefix)/share/man
e621921b
JB
26 etcdir = /etc
27
3de50fc5
JB
28diff --git a/usr/Makefile b/usr/Makefile
29index 885243a..1a743d1 100644
30--- a/usr/Makefile
31+++ b/usr/Makefile
e621921b
JB
32@@ -44,7 +44,7 @@ HOMEDIR ?= $(etcdir)/iscsi
33 PKG_CONFIG ?= /usr/bin/pkg-config
3de50fc5
JB
34
35 CFLAGS ?= -O2 -g
36-WARNFLAGS ?= -Wall -Wextra -Werror -Wstrict-prototypes -fno-common
37+WARNFLAGS ?= -Wall -Wextra -Wstrict-prototypes -fno-common
38 CFLAGS += $(WARNFLAGS) -I../include -I. -D_GNU_SOURCE \
39 -I$(TOPDIR)/libopeniscsiusr -DISNS_ENABLE
40 CFLAGS += $(shell $(PKG_CONFIG) --cflags libkmod)
41diff --git a/usr/initiator.c b/usr/initiator.c
42index 684647c..a5a9d08 100644
43--- a/usr/initiator.c
44+++ b/usr/initiator.c
45@@ -580,7 +580,7 @@ __session_conn_reopen(iscsi_conn_t *conn, queue_task_t *qtask, int do_stop,
46 int redirected)
47 {
48 iscsi_session_t *session = conn->session;
49- uint32_t delay;
50+ uint32_t delay = 0;
51
52 log_debug(1, "re-opening session %d (reopen_cnt %d)", session->id,
53 session->reopen_cnt);
54--
552.26.2
56
This page took 0.103022 seconds and 4 git commands to generate.