-
-
Notifications
You must be signed in to change notification settings - Fork 14.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
python3Packages.cffi: fix tests on FreeBSD
- disable a test, see comments. - modify the existing patch to do what it claims to do (fixing compilation on clang) instead of only applying to darwin.
- Loading branch information
Showing
2 changed files
with
21 additions
and
10 deletions.
There are no files selected for viewing
21 changes: 11 additions & 10 deletions
21
pkgs/development/python-modules/cffi/clang-pointer-substraction-warning.diff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
diff -r c649a735cf82 testing/support.py | ||
--- a/testing/support.py Thu Feb 23 05:42:01 2023 +0100 | ||
+++ b/testing/support.py Sat May 20 21:46:56 2023 -0400 | ||
@@ -112,6 +112,7 @@ | ||
'-Wno-unreachable-code'] | ||
# special things for clang | ||
extra_compile_args.append('-Qunused-arguments') | ||
+ extra_compile_args.append('-Wno-null-pointer-subtraction') | ||
else: | ||
# assume a standard gcc | ||
diff --git a/testing/support.py b/testing/support.py | ||
index 063e52cf..ef0abdc7 100644 | ||
--- a/testing/support.py | ||
+++ b/testing/support.py | ||
@@ -117,6 +117,7 @@ else: | ||
extra_compile_args = ['-Werror', '-Wall', '-Wextra', '-Wconversion', | ||
'-Wno-unused-parameter', | ||
'-Wno-unreachable-code'] | ||
+extra_compile_args.append('-Wno-null-pointer-subtraction') | ||
|
||
is_musl = False | ||
if sys.platform == 'linux': |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters