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

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