From: Khem Raj <raj.khem@gmail.com>
To: bug-gnulib@gnu.org
Cc: Khem Raj <raj.khem@gmail.com>
Subject: [PATCH] lib/posixtm.c: Fixe build error with clang-18
Date: Mon, 15 Jan 2024 22:16:39 -0800 [thread overview]
Message-ID: <20240116061639.548691-1-raj.khem@gmail.com> (raw)
* 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
next reply other threads:[~2024-01-16 6:16 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-16 6:16 Khem Raj [this message]
2024-01-16 7:24 ` [PATCH] lib/posixtm.c: Fixe build error with clang-18 Bruno Haible
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://lists.gnu.org/mailman/listinfo/bug-gnulib
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240116061639.548691-1-raj.khem@gmail.com \
--to=raj.khem@gmail.com \
--cc=bug-gnulib@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).