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

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