Blame SOURCES/libiscsi-do-not-warn-for-strncpy.patch

e91cda
From 2d293bde99f4214d8adb1932579bfbb6e59cf0a5 Mon Sep 17 00:00:00 2001
e91cda
From: Paolo Bonzini <pbonzini@redhat.com>
e91cda
Date: Tue, 9 Oct 2018 15:14:17 +0100
e91cda
Subject: [PATCH 4/6] do not warn for strncpy
e91cda
e91cda
RH-Author: Paolo Bonzini <pbonzini@redhat.com>
e91cda
Message-id: <20181009151419.20418-5-pbonzini@redhat.com>
e91cda
Patchwork-id: 82504
e91cda
O-Subject: [RHEL8 libiscsi PATCH 4/6] do not warn for strncpy
e91cda
Bugzilla: 1634541
e91cda
RH-Acked-by: Thomas Huth <thuth@redhat.com>
e91cda
RH-Acked-by: Laszlo Ersek <lersek@redhat.com>
e91cda
RH-Acked-by: Miroslav Rezanina <mrezanin@redhat.com>
e91cda
e91cda
strncpy use in iscsi_reconnect is just fine.  Do not warn for it, and
e91cda
also do not warn if clang does not recognize the flag.
e91cda
e91cda
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
e91cda
(cherry picked from commit 4728d4eaa605a02cfc767dd40e5436c670e88b0f)
e91cda
Signed-off-by: Danilo C. L. de Paula <ddepaula@redhat.com>
e91cda
---
e91cda
 configure.ac | 1 +
e91cda
 1 file changed, 1 insertion(+)
e91cda
e91cda
diff --git a/configure.ac b/configure.ac
e91cda
index f0bbc00..1ccfc59 100644
e91cda
--- a/configure.ac
e91cda
+++ b/configure.ac
e91cda
@@ -29,6 +29,7 @@ AC_ARG_ENABLE([werror], [AS_HELP_STRING([--disable-werror],
e91cda
 
e91cda
 if test "$ac_cv_prog_gcc" = yes; then
e91cda
    WARN_CFLAGS="-Wall -W -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-align -Wno-strict-aliasing"
e91cda
+   WARN_CFLAGS="$WARN_CFLAGS -Wno-unknown-warning-option -Wno-stringop-truncation"
e91cda
    if test "x$enable_werror" != "xno"; then
e91cda
        WARN_CFLAGS="$WARN_CFLAGS -Werror"
e91cda
    fi
e91cda
-- 
e91cda
1.8.3.1
e91cda