Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package fcoe-utils for openSUSE:Factory 
checked in at 2022-01-29 20:57:24
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/fcoe-utils (Old)
 and      /work/SRC/openSUSE:Factory/.fcoe-utils.new.1898 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "fcoe-utils"

Sat Jan 29 20:57:24 2022 rev:24 rq:949526 version:1.0.34

Changes:
--------
--- /work/SRC/openSUSE:Factory/fcoe-utils/fcoe-utils.changes    2021-10-20 
20:23:21.961344064 +0200
+++ /work/SRC/openSUSE:Factory/.fcoe-utils.new.1898/fcoe-utils.changes  
2022-01-29 20:57:26.812515990 +0100
@@ -1,0 +2,6 @@
+Thu Jan 27 19:28:40 UTC 2022 - Lee Duncan <ldun...@suse.com>
+
+- Added upstream commit to fix gcc12 warning/errors:
+  * fcoe-utils-Fix-GCC-12-warning.patch
+
+-------------------------------------------------------------------

New:
----
  fcoe-utils-Fix-GCC-12-warning.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ fcoe-utils.spec ++++++
--- /var/tmp/diff_new_pack.7dxRTq/_old  2022-01-29 20:57:27.648510569 +0100
+++ /var/tmp/diff_new_pack.7dxRTq/_new  2022-01-29 20:57:27.652510543 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package fcoe-utils
 #
-# Copyright (c) 2021 SUSE LLC
+# Copyright (c) 2022 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -38,6 +38,7 @@
 Group:          System/Daemons
 Source:         %{name}-%{version}.tar.xz
 Patch0:        harden_fcoe.service.patch
+Patch1:         %{name}-Fix-GCC-12-warning.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 %{?systemd_requires}
 
@@ -49,6 +50,7 @@
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 
 %build
 autoreconf -vi

++++++ fcoe-utils-Fix-GCC-12-warning.patch ++++++
>From f6401524e1be537a78b24aef686968e2b9af7493 Mon Sep 17 00:00:00 2001
From: Martin Liska <mli...@suse.cz>
Date: Thu, 27 Jan 2022 14:36:01 +0100
Subject: [PATCH] Fix GCC 12 warning.
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Fixes:
    inlined from ???show_full_lun_info??? at fcoeadm_display.c:310:2:
/usr/include/bits/stdio2.h:112:10: error: ???osname??? may be used 
uninitialized [-Werror=maybe-uninitialized]
  112 |   return __printf_chk (__USE_FORTIFY_LEVEL - 1, __fmt, __va_arg_pack 
());
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fcoeadm_display.c: In function ???show_full_lun_info???:
fcoeadm_display.c:249:15: note: ???osname??? was declared here
  249 |         char *osname;
      |               ^~~~~~
---
 fcoeadm_display.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fcoeadm_display.c b/fcoeadm_display.c
index c2ef33b82cfa..3a18138eefd8 100644
--- a/fcoeadm_display.c
+++ b/fcoeadm_display.c
@@ -246,7 +246,7 @@ static void show_full_lun_info(unsigned int hba, unsigned 
int port,
        char vendor[256];
        char model[256];
        char rev[256];
-       char *osname;
+       char *osname = NULL;
        char *capstr;
        uint64_t lba = 0;
        uint32_t blksize = 0;
-- 
2.26.2

Reply via email to