GNU bug report logs - #77835
[PATCH] Pacify GCC 15 -Wunterminated-string-initialization warnings

Previous Next

Package: emacs;

Reported by: Collin Funk <collin.funk1 <at> gmail.com>

Date: Wed, 16 Apr 2025 05:25:02 UTC

Severity: normal

Tags: patch

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


Message #19 received at 77835 <at> debbugs.gnu.org (full text, mbox):

From: Collin Funk <collin.funk1 <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 77835 <at> debbugs.gnu.org, Paul Eggert <eggert <at> cs.ucla.edu>
Subject: Re: bug#77835: [PATCH] Pacify GCC 15
 -Wunterminated-string-initialization warnings
Date: Sun, 20 Apr 2025 01:24:33 -0700
Eli Zaretskii <eliz <at> gnu.org> writes:

> How portable is the attribute you used to fix this?  AFAICT, it is
> supported since GCC 4.8, but our INSTALL indicates that we support
> older versions of GCC.  Or does Gnulib solve this?

The ATTRIBUTE_* macros are equal to _GL_ATTRIBUTE_* defined in
gnulib-common.m4. For older compilers it is defined to expand to
nothing. So everything should work fine.

Collin




This bug report was last modified 32 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.