[PATCH 2/2] same-inode: don't assume memory objects have ino

2025-03-24 Thread Paul Eggert
* lib/same-inode.h (psame_inode): Do not assume shared and/or typed memory objects have reliable st_dev and st_ino when given to stat-like functions, as POSIX does not guarantee this. I don’t know of any such platforms (QNX perhaps?) but it’s easy to be safe. --- ChangeLog| 7 +++ lib/

[PATCH 1/2] same-inode: update now-wrong dependency

2025-03-24 Thread Paul Eggert
* modules/same-inode (Depends-on): Depend on sys_stat-h, not sys_types.h. --- ChangeLog | 4 modules/same-inode | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index c6f2cb4dc8..d6377489ce 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9

[PATCH] libtextstyle-optional: pacify gcc -Wunused-parameter

2025-03-24 Thread Paul Eggert
* lib/textstyle.in.h (html_ostream_create): Mark arg as unused. --- ChangeLog | 5 + lib/textstyle.in.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index a6a041815b..c6f2cb4dc8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2025

getlocalename_l-unsafe: Work around Cygwin 3.6.0 bug

2025-03-24 Thread Bruno Haible via Gnulib discussion list
On Cygwin 3.6.0, I see the test-getlocalename_l test fail: it crashes. Reported at . This patch provides a workaround: 2025-03-24 Bruno Haible getlocalename_l-unsafe: Work around Cygwin 3.6.0 bug. * m4/locale_h.m4 (

[PATCH] nproc, openmp-init: omit unnecessary strtol code

2025-03-24 Thread Paul Eggert
* lib/nproc.c (parse_omp_threads): * lib/omp-init.c (parse_omp_threads): Remove unnecessary initialization and unnecessary check whether endptr == NULL. Reported by Alejandro Colomar in: https://lore.kernel.org/liba2i/jx4664ishtl34eg2npdrv5fkfdiczqnlq3vjuacjrupjvh377x@gddcftzgwmfq/ --- ChangeLog

mountlist: Fix a compilation error on Solaris with gcc 14

2025-03-24 Thread Bruno Haible via Gnulib discussion list
On Solaris 11 OmniOS, we've been seeing this warning for a long time: ../../gllib/mountlist.c: In function 'read_file_system_list': ../../gllib/mountlist.c:887:40: warning: passing argument 1 of 'hasmntopt' from incompatible pointer type [-Wincompatible-pointer-types] With gcc 14, this warning b

Re: new module 'gocomp-script'

2025-03-24 Thread Bruno Haible via Gnulib discussion list
Hi Collin, > > +# Avoid error "CC environment variable is relative; must be absolute path" > > +# on native Windows. Cf. > > +# > > > > +unset CC > > +unset CXX > > The CC and CXX variable are used to determine what C