diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-03-24 07:00:59 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-03-24 07:00:59 +0000 |
commit | b1193c219a8c8da6e1e76cb5d394da129abbca41 (patch) | |
tree | e7c1b7155dbbe4f73ac09ee75630baaa4f8731d2 /sys-apps/coreutils/files | |
parent | f52562a45d967e193210737b55de5f0ff9018b76 (diff) |
gentoo auto-resync : 24:03:2024 - 07:00:59
Diffstat (limited to 'sys-apps/coreutils/files')
-rw-r--r-- | sys-apps/coreutils/files/coreutils-9.4-gnulib-clang-18-c23-stdckdint.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/sys-apps/coreutils/files/coreutils-9.4-gnulib-clang-18-c23-stdckdint.patch b/sys-apps/coreutils/files/coreutils-9.4-gnulib-clang-18-c23-stdckdint.patch new file mode 100644 index 000000000000..44982a17a78c --- /dev/null +++ b/sys-apps/coreutils/files/coreutils-9.4-gnulib-clang-18-c23-stdckdint.patch @@ -0,0 +1,30 @@ +https://bugs.gentoo.org/926349 +https://git.savannah.gnu.org/gitweb/?p=gnulib.git;a=commit;h=67c298c36f6 + +From 67c298c36f69b6906840b7584be06b7b5f33f829 Mon Sep 17 00:00:00 2001 +From: Paul Eggert <eggert@cs.ucla.edu> +Date: Tue, 16 Jan 2024 17:21:08 -0800 +Subject: [PATCH] posixtm: pacify clang 18 +MIME-Version: 1.0 +Content-Type: text/plain; charset=utf8 +Content-Transfer-Encoding: 8bit + +Problem reported by Khem Raj in: +https://lists.gnu.org/r/bug-gnulib/2024-01/msg00045.html +* lib/posixtm.c (posixtime): Pacify clang 18 by converting bool to int. +Arguably this is a bug in draft C2x, since the non-pointer args to +ckd_add should promote just like any other expressions do; +but thatâs not clangâs fault. +--- a/lib/posixtm.c ++++ b/lib/posixtm.c +@@ -191,7 +191,7 @@ posixtime (time_t *p, const char *s, unsigned int syntax_bits) + | (tm0.tm_min ^ tm1.tm_min) + | (tm0.tm_sec ^ tm1.tm_sec))) + { +- if (ckd_add (&t, t, leapsec)) ++ if (ckd_add (&t, t, +leapsec)) + return false; + *p = t; + return true; +-- +2.17.1 |