forked from pool/libdispatch
Compare commits
2 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 5b392592f9 | |||
| 3a5f739220 |
23
disable-cast-function-type-mismatch.patch
Normal file
23
disable-cast-function-type-mismatch.patch
Normal file
@@ -0,0 +1,23 @@
|
||||
From 1990f4ede558773949580c49e74261a5e542e75e Mon Sep 17 00:00:00 2001
|
||||
From: Ben Barham <ben_barham@apple.com>
|
||||
Date: Thu, 8 Aug 2024 16:25:51 -0700
|
||||
Subject: [PATCH] Disable new `cast-function-type-mismatch`
|
||||
|
||||
Should fix this properly, but for now just disable the warning itself.
|
||||
---
|
||||
cmake/modules/DispatchCompilerWarnings.cmake | 4 ++++
|
||||
1 file changed, 4 insertions(+)
|
||||
|
||||
diff --git a/cmake/modules/DispatchCompilerWarnings.cmake b/cmake/modules/DispatchCompilerWarnings.cmake
|
||||
index 9f390f010..cd71f36e5 100644
|
||||
--- a/cmake/modules/DispatchCompilerWarnings.cmake
|
||||
+++ b/cmake/modules/DispatchCompilerWarnings.cmake
|
||||
@@ -77,4 +77,8 @@ else()
|
||||
add_compile_options($<$<OR:$<COMPILE_LANGUAGE:C>,$<COMPILE_LANGUAGE:CXX>>:-Wno-shorten-64-to-32>)
|
||||
endif()
|
||||
add_compile_options($<$<OR:$<COMPILE_LANGUAGE:C>,$<COMPILE_LANGUAGE:CXX>>:-Wno-error=assign-enum>)
|
||||
+
|
||||
+ # Should re-enable after rdar://133498289 is fixed (ie. fixing the one mismatched cast in apply.c)
|
||||
+ add_compile_options($<$<OR:$<COMPILE_LANGUAGE:C>,$<COMPILE_LANGUAGE:CXX>>:-Wno-cast-function-type-mismatch>)
|
||||
+ add_compile_options($<$<OR:$<COMPILE_LANGUAGE:C>,$<COMPILE_LANGUAGE:CXX>>:-Wno-error=unknown-warning-option>)
|
||||
endif()
|
||||
@@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Jan 16 09:23:41 UTC 2025 - Ana Guerrero <ana.guerrero@suse.com>
|
||||
|
||||
- Add disable-cast-function-type-mismatch.patch
|
||||
Disable new cast-function-type-mismatch while a proper fix is
|
||||
provided by upstream.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jul 13 09:05:27 UTC 2023 - Andreas Schwab <schwab@suse.de>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package libdispatch
|
||||
#
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -29,6 +29,8 @@ Source1: libdispatch-rpmlintrc
|
||||
Patch0: prevent_unused.patch
|
||||
# set library versions
|
||||
Patch2: soversion.patch
|
||||
# UPSTREAM-PATCH https://github.com/swiftlang/swift-corelibs-libdispatch/pull/840
|
||||
Patch3: disable-cast-function-type-mismatch.patch
|
||||
BuildRequires: chrpath
|
||||
BuildRequires: clang
|
||||
BuildRequires: cmake
|
||||
|
||||
Reference in New Issue
Block a user