summaryrefslogtreecommitdiff
path: root/sci-mathematics/unuran/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-12-03 08:59:05 +0000
committerV3n3RiX <venerix@koprulu.sector>2022-12-03 08:59:05 +0000
commite6ba529df30e3fc9dfdf55ec5797f2f764df6e54 (patch)
tree6b38c918c796f792ef4b18b57437c05a1fd46ae8 /sci-mathematics/unuran/files
parentfbe7acf59ebf6dc3f04a6ef108ff3887fa5d7972 (diff)
gentoo auto-resync : 03:12:2022 - 08:59:05
Diffstat (limited to 'sci-mathematics/unuran/files')
-rw-r--r--sci-mathematics/unuran/files/unuran-1.9.0-configure-clang16.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/sci-mathematics/unuran/files/unuran-1.9.0-configure-clang16.patch b/sci-mathematics/unuran/files/unuran-1.9.0-configure-clang16.patch
new file mode 100644
index 000000000000..66a9d44538bb
--- /dev/null
+++ b/sci-mathematics/unuran/files/unuran-1.9.0-configure-clang16.patch
@@ -0,0 +1,27 @@
+https://src.fedoraproject.org/rpms/unuran/blob/4e6e6392ad892454339458b655fd0324e58de3b7/f/unuran-configure-c99.patch
+https://bugzilla.redhat.com/show_bug.cgi?id=2150308
+
+Avoid calling the undeclared exit function. Instead return
+from main. Implicit function declarations were removed from C99,
+and future compilers are likely to reject them.
+
+--- a/acinclude.m4
++++ b/acinclude.m4
+@@ -14,7 +14,7 @@ int main (void)
+ nan = inf / inf;
+ /* nan = 0.0 / 0.0; */
+ status = (nan == nan);
+- exit (status);
++ return status;
+ }]])],
+ [ac_cv_c_ieee_comparisons="yes"],
+ [ac_cv_c_ieee_comparisons="no"],
+@@ -43,7 +43,7 @@ int main (void)
+ double x = 0.0;
+ double inf = 1.0 / x;
+ int status = (inf < DBL_MAX/2.);
+- exit (status);
++ return status;
+ }]])],
+ [ac_cv_c_divide_by_zero="yes"],
+ [ac_cv_c_divide_by_zero="no"],