forked from pool/casacore
- Backport use_c17.patch from upstream to allow building with GCC 15. [boo#1244464] If the request is OK, please forward it to Factory soon so that the package is ready when we switch the default compiler. OBS-URL: https://build.opensuse.org/request/show/1285662 OBS-URL: https://build.opensuse.org/package/show/science/casacore?expand=0&rev=27
26 lines
673 B
Diff
26 lines
673 B
Diff
From c42188c3969e53e92765d14dab21da76c45d9a09 Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Andr=C3=A9=20Offringa?= <offringa@astron.nl>
|
|
Date: Wed, 11 Jun 2025 17:20:24 +0200
|
|
Subject: [PATCH] Require use of C17 to avoid C23 errors from gcc 15
|
|
|
|
---
|
|
mirlib/CMakeLists.txt | 5 +++++
|
|
1 file changed, 5 insertions(+)
|
|
|
|
diff --git a/mirlib/CMakeLists.txt b/mirlib/CMakeLists.txt
|
|
index 0703a5d1d23..b8b6aac650c 100644
|
|
--- a/mirlib/CMakeLists.txt
|
|
+++ b/mirlib/CMakeLists.txt
|
|
@@ -2,6 +2,11 @@
|
|
# CASA Mirlib
|
|
#
|
|
|
|
+# Part of the c files is not compiling yet in C23 mode, so require
|
|
+# 17.
|
|
+set(CMAKE_C_STANDARD 17)
|
|
+set(CMAKE_C_STANDARD_REQUIRED ON)
|
|
+
|
|
add_library (
|
|
casa_mirlib
|
|
bug.c
|