[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: (lib/error.h.in) New warnings when compiling "groff" [-Wredundant-de
From: |
Bruno Haible |
Subject: |
Re: (lib/error.h.in) New warnings when compiling "groff" [-Wredundant-decls] |
Date: |
Tue, 30 May 2023 10:44:32 +0200 |
Bjarni Ingi Gislason wrote:
> Debian GNU/Linux 12 (bookworm)
> Linux 6.1.27-1 x86_64 GNU/Linux
> gcc (Debian 12.2.0-14) 12.2.0
>
> [...]
> CC lib/libgnu_a-openat-die.o
Next time, use "make V=1" before reporting something. The command-line options
passed to the compiler _are_ relevant.
> In file included from ../lib/openat-die.c:25:
> ./lib/error.h:28:3: warning: #include_next is a GCC extension
> 28 | # include_next <error.h>
> | ^~~~~~~~~~~~
> In file included from ../lib/openat.h:28,
> from ../lib/openat-die.c:20:
> ./lib/error.h:418:1: warning: redundant redeclaration of '_gl_cxxalias_dummy'
> [-Wredundant-decls]
> 418 | _GL_CXXALIAS_SYS (error, void,
> | ^~~~~~~~~~~~~~~~
These warnings occur with any gnulib-overridden .h file / function.
Therefore my advice is to not specify the corresponding warning options.
It certainly doesn't hurt much, since '-Wredundant-decls' is not a warning
option that frequently points to real bugs.
Bruno