OBS-URL: https://build.opensuse.org/package/show/science:HPC/mstflint?expand=0&rev=59
41 lines
952 B
Diff
41 lines
952 B
Diff
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);
|
|
}
|