* [PATCH] lib/posixtm.c: Fixe build error with clang-18
@ 2024-01-16 6:16 Khem Raj
2024-01-16 7:24 ` Bruno Haible
0 siblings, 1 reply; 2+ messages in thread
From: Khem Raj @ 2024-01-16 6:16 UTC (permalink / raw)
To: bug-gnulib; +Cc: Khem Raj
* lib/posixtm.c (posixtime): Fix operand argument to checked
integer operation.
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
ChangeLog | 5 +++++
lib/posixtm.c | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index e42d2c31ab..daca27a917 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2024-01-15 Khem Raj <raj.khem@gmail.com>
+
+ * lib/posixtm.c (posixtime): Fix operand argument to checked
+ integer operation.
+
2024-01-07 Jim Meyering <meyering@meta.com>
update-copyright: handle more cases
diff --git a/lib/posixtm.c b/lib/posixtm.c
index ef9f55f873..23397a6672 100644
--- a/lib/posixtm.c
+++ b/lib/posixtm.c
@@ -159,7 +159,7 @@ bool
posixtime (time_t *p, const char *s, unsigned int syntax_bits)
{
struct tm tm0;
- bool leapsec = false;
+ int leapsec = 0;
if (! posix_time_parse (&tm0, s, syntax_bits))
return false;
--
2.43.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] lib/posixtm.c: Fixe build error with clang-18
2024-01-16 6:16 [PATCH] lib/posixtm.c: Fixe build error with clang-18 Khem Raj
@ 2024-01-16 7:24 ` Bruno Haible
0 siblings, 0 replies; 2+ messages in thread
From: Bruno Haible @ 2024-01-16 7:24 UTC (permalink / raw)
To: Khem Raj; +Cc: bug-gnulib
Khem Raj wrote:
> Fixe build error with clang-18
When you report a bug, please in the first place report
1. what you did,
2. what was the outcome.
In this case:
1. What command-line options did you pass to clang?
2. What were the resulting diagnostics from compiling posixtm.c?
Please show the full output from clang.
Bruno
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-01-16 7:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-16 6:16 [PATCH] lib/posixtm.c: Fixe build error with clang-18 Khem Raj
2024-01-16 7:24 ` Bruno Haible
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).