]> Savannah Git Hosting - gnulib.git/commit
posixtm: pacify clang 18
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 17 Jan 2024 01:21:08 +0000 (17:21 -0800)
committerBruno Haible <bruno@clisp.org>
Thu, 18 Jan 2024 08:34:36 +0000 (09:34 +0100)
commitd55ee11f0c2758f97a8b7523ddfa4f98f1442dc0
tree8572a41ce831110ae15028ff96dceb882b501bb6
parent6ba4740c0afecfe375b4879203fea6ed7cfe4cc5
posixtm: pacify clang 18

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.
ChangeLog
lib/posixtm.c