SHA256
10
0
forked from pool/casacore
Files
casacore/use_c17.patch
Atri Bhattacharya f6525c2ce5 Accepting request 1285662 from home:jamborm:gcc15fixes
- 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
2025-06-14 01:48:15 +00:00

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