forked from pool/mstflint
Compare commits
2 Commits
Author | SHA256 | Date | |
---|---|---|---|
0d5c7b3b90 | |||
73dd25fac4 |
40
GCC15-C23-support.patch
Normal file
40
GCC15-C23-support.patch
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
commit 472b859ebe5486f62f670e76cbc3fcf5d994c2c0
|
||||||
|
Author: Nicolas Morey <nmorey@suse.com>
|
||||||
|
Date: Fri Jul 11 08:35:50 2025 +0200
|
||||||
|
|
||||||
|
GCC15/C23 support
|
||||||
|
|
||||||
|
Signed-off-by: Nicolas Morey <nmorey@suse.com>
|
||||||
|
|
||||||
|
diff --git common/bit_slice.h common/bit_slice.h
|
||||||
|
index 9f1764339604..20885cf99cd7 100644
|
||||||
|
--- common/bit_slice.h
|
||||||
|
+++ common/bit_slice.h
|
||||||
|
@@ -59,6 +59,7 @@
|
||||||
|
#define EXT64(src, end, start) EXTRACT64(src, start, end - start + 1)
|
||||||
|
|
||||||
|
#ifndef __cplusplus
|
||||||
|
+#if __STDC_VERSION__ < 202300L
|
||||||
|
enum cpp_bool
|
||||||
|
{
|
||||||
|
false = 0,
|
||||||
|
@@ -66,5 +67,6 @@ enum cpp_bool
|
||||||
|
};
|
||||||
|
typedef unsigned char bool;
|
||||||
|
#endif
|
||||||
|
+#endif
|
||||||
|
|
||||||
|
#endif
|
||||||
|
diff --git small_utils/mtserver.c small_utils/mtserver.c
|
||||||
|
index d75ec2e25aef..8e8e6417c513 100644
|
||||||
|
--- small_utils/mtserver.c
|
||||||
|
+++ small_utils/mtserver.c
|
||||||
|
@@ -607,7 +607,7 @@ void usage(const char* s)
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ////////////////////////////////////////////////////////////////////// */
|
||||||
|
-void mySignal()
|
||||||
|
+void mySignal(int arg)
|
||||||
|
{
|
||||||
|
exit(0);
|
||||||
|
}
|
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Jul 11 06:41:42 UTC 2025 - Nicolas Morey <nicolas.morey@suse.com>
|
||||||
|
|
||||||
|
- Add GCC15-C23-support.patch to fix compilation with GCC >= 15
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Sep 5 12:11:14 UTC 2024 - Nicolas Morey <nicolas.morey@suse.com>
|
Thu Sep 5 12:11:14 UTC 2024 - Nicolas Morey <nicolas.morey@suse.com>
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package mstflint
|
# spec file for package mstflint
|
||||||
#
|
#
|
||||||
# Copyright (c) 2024 SUSE LLC
|
# Copyright (c) 2025 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -32,6 +32,7 @@ Patch4: Fix-gcc7-and-gcc8.patch
|
|||||||
Patch5: fix-race-condition-during-install.patch
|
Patch5: fix-race-condition-during-install.patch
|
||||||
Patch6: PIE.patch
|
Patch6: PIE.patch
|
||||||
Patch7: mflash-add-missing-stlib-include.patch
|
Patch7: mflash-add-missing-stlib-include.patch
|
||||||
|
Patch8: GCC15-C23-support.patch
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: infiniband-diags-devel
|
BuildRequires: infiniband-diags-devel
|
||||||
BuildRequires: libibverbs-devel
|
BuildRequires: libibverbs-devel
|
||||||
|
Reference in New Issue
Block a user