summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/coreutils/coreutils/0001-posixtm-pacify-clang-18.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-core/coreutils/coreutils/0001-posixtm-pacify-clang-18.patch')
-rw-r--r--meta/recipes-core/coreutils/coreutils/0001-posixtm-pacify-clang-18.patch38
1 files changed, 0 insertions, 38 deletions
diff --git a/meta/recipes-core/coreutils/coreutils/0001-posixtm-pacify-clang-18.patch b/meta/recipes-core/coreutils/coreutils/0001-posixtm-pacify-clang-18.patch
deleted file mode 100644
index e6c84be3c4..0000000000
--- a/meta/recipes-core/coreutils/coreutils/0001-posixtm-pacify-clang-18.patch
+++ /dev/null
@@ -1,38 +0,0 @@
1From 67c298c36f69b6906840b7584be06b7b5f33f829 Mon Sep 17 00:00:00 2001
2From: Paul Eggert <eggert@cs.ucla.edu>
3Date: Tue, 16 Jan 2024 17:21:08 -0800
4Subject: [PATCH] posixtm: pacify clang 18
5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
9Problem reported by Khem Raj in:
10https://lists.gnu.org/r/bug-gnulib/2024-01/msg00045.html
11* lib/posixtm.c (posixtime): Pacify clang 18 by converting bool to int.
12Arguably this is a bug in draft C2x, since the non-pointer args to
13ckd_add should promote just like any other expressions do;
14but that’s not clang’s fault.
15
16Upstream-Status: Submitted [https://lists.gnu.org/archive/html/bug-gnulib/2024-01/msg00046.html]
17Signed-off-by: Khem Raj <raj.khem@gmail.com>
18---
19 ChangeLog | 10 ++++++++++
20 lib/posixtm.c | 2 +-
21 2 files changed, 11 insertions(+), 1 deletion(-)
22
23diff --git a/lib/posixtm.c b/lib/posixtm.c
24index ef9f55f873..a072c7cad0 100644
25--- a/lib/posixtm.c
26+++ b/lib/posixtm.c
27@@ -191,7 +191,7 @@ posixtime (time_t *p, const char *s, unsigned int syntax_bits)
28 | (tm0.tm_min ^ tm1.tm_min)
29 | (tm0.tm_sec ^ tm1.tm_sec)))
30 {
31- if (ckd_add (&t, t, leapsec))
32+ if (ckd_add (&t, t, +leapsec))
33 return false;
34 *p = t;
35 return true;
36--
372.43.0
38