At 2026-01-01T06:31:02+0100, Bruno Haible wrote:
> G. Branden Robinson wrote:
> > lib/strsignal.c: At top level:
> > cc1: warning: unrecognized command line option ‘-Wno-unused-const-variable’
> > ...
> > -bash-4.4$ gcc --version
> > gcc (GCC) 5.5.0
> 
> This was already fixed by Paul Eggert on 2025-11-15. Thanks for the
> report.

I think I found it:

commit 8d605a54766b5495eb78bccad0d4f7ddc5d8537d
Author: Paul Eggert <[email protected]>
Date:   Sat Nov 15 14:37:29 2025 -0800

    -Wunused-const-variable started in GCC 6.1 not 4.4

    I ran into this glitch when building with GCC 4.8.5 20150623 (Red
    Hat 4.8.5-44) on CentOS 7.9 (cfarm112.cfarm.net), which lacked
    -Wno-unused-const-variable.  The online manuals suggested that
    -Wunused-const-variable was introduced in GCC 6.1.
    * m4/gnulib-common.m4 (gl_CC_GNULIB_WARNINGS):
    Use -Wno-unused-const-variable with GCC 6.1 and later,
    not with GCC 4.4 and later.

Thanks for letting me know!

Regards,
Branden

Attachment: signature.asc
Description: PGP signature

Reply via email to