Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package mstflint for openSUSE:Factory 
checked in at 2024-09-06 17:18:22
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/mstflint (Old)
 and      /work/SRC/openSUSE:Factory/.mstflint.new.10096 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "mstflint"

Fri Sep  6 17:18:22 2024 rev:29 rq:1198994 version:4.25.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/mstflint/mstflint.changes        2024-02-26 
19:48:17.416197791 +0100
+++ /work/SRC/openSUSE:Factory/.mstflint.new.10096/mstflint.changes     
2024-09-06 17:18:38.116116421 +0200
@@ -1,0 +2,6 @@
+Thu Sep  5 12:11:14 UTC 2024 - Nicolas Morey <nicolas.mo...@suse.com>
+
+- Add mflash-add-missing-stlib-include.patch to fix compilation
+  with GCC >= 14
+
+-------------------------------------------------------------------

New:
----
  mflash-add-missing-stlib-include.patch

BETA DEBUG BEGIN:
  New:
- Add mflash-add-missing-stlib-include.patch to fix compilation
  with GCC >= 14
BETA DEBUG END:

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

Other differences:
------------------
++++++ mstflint.spec ++++++
--- /var/tmp/diff_new_pack.cqOYMw/_old  2024-09-06 17:18:38.944150826 +0200
+++ /var/tmp/diff_new_pack.cqOYMw/_new  2024-09-06 17:18:38.944150826 +0200
@@ -31,6 +31,7 @@
 Patch4:         Fix-gcc7-and-gcc8.patch
 Patch5:         fix-race-condition-during-install.patch
 Patch6:         PIE.patch
+Patch7:         mflash-add-missing-stlib-include.patch
 BuildRequires:  gcc-c++
 BuildRequires:  infiniband-diags-devel
 BuildRequires:  libibverbs-devel

++++++ mflash-add-missing-stlib-include.patch ++++++
commit df180102768284a7223ada6d7243531f9e9be2c7
Author: Nicolas Morey <nmo...@suse.com>
Date:   Thu Sep 5 14:08:06 2024 +0200

    mflash: add missing stlib include
    
    Add missing include to fix GCC 14 build error:
    In file included from mflash_dev_capability.c:42:
    mflash_dev_capability.c: In function 'get_flash_gen':
    mflash_dev_capability.h:67:27: error: implicit declaration of function 
'getenv' [-Wimplicit-function-declaration]
       67 |         char* reacDebug = getenv("FLASH_DEBUG"); \
          |                           ^~~~~~
    mflash_dev_capability.c:186:5: note: in expansion of macro 'DPRINTF'
      186 |     DPRINTF(("get_flash_gen: flash_gen = %d\n", gen));
          |     ^~~~~~~
    mflash_dev_capability.c:43:1: note: 'getenv' is defined in header 
'<stdlib.h>'; this is probably fixable by adding '#include <stdlib.h>'
       42 | #include "mflash_dev_capability.h"
      +++ |+#include <stdlib.h>
       43 |
    mflash_dev_capability.h:67:27: error: initialization of 'char *' from 'int' 
makes pointer from integer without a cast [-Wint-conversion]
       67 |         char* reacDebug = getenv("FLASH_DEBUG"); \
          |                           ^~~~~~
    mflash_dev_capability.c:186:5: note: in expansion of macro 'DPRINTF'
      186 |     DPRINTF(("get_flash_gen: flash_gen = %d\n", gen));
          |     ^~~~~~~
    
    Signed-off-by: Nicolas Morey <nmo...@suse.com>

diff --git mflash/mflash_dev_capability.h mflash/mflash_dev_capability.h
index d63b7cffaf90..ce850a982d84 100644
--- mflash/mflash_dev_capability.h
+++ mflash/mflash_dev_capability.h
@@ -42,6 +42,7 @@
 #ifndef USER_MFLASH_MFLASH_DEV_CAPABILITY_H_
 #define USER_MFLASH_MFLASH_DEV_CAPABILITY_H_
 
+#include <stdlib.h>
 #include "mflash_pack_layer.h"
 
 #ifndef UEFI_BUILD

Reply via email to