bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: lib/malloca.c, different signs of integers; with clang and groff


From: Bruno Haible
Subject: Re: lib/malloca.c, different signs of integers; with clang and groff
Date: Mon, 05 Feb 2024 10:25:08 +0100

Paul Eggert wrote:
> I recommend avoiding -Wsign-compare when compiling Gnulib .c files, as 
> the false positive rate is too large.

+1.

We already document this in the Gnulib manual:
https://www.gnu.org/software/gnulib/manual/html_node/manywarnings.html

More generally, we turn off such warnings for most of the Gnulib code, through
the variable GL_CFLAG_GNULIB_WARNINGS, set through m4/gnulib-common.m4.
Therefore, we *don't want to hear* about warnings of these categories:

    -Wcast-qual
    -Wconversion
    -Wfloat-conversion
    -Wfloat-equal
    -Wpedantic
    -Wsign-compare
    -Wsign-conversion
    -Wtautological-out-of-range-compare
    -Wtype-limits
    -Wundef
    -Wunsuffixed-float-constants
    -Wunused-function
    -Wunused-parameter

Bruno






reply via email to

[Prev in Thread] Current Thread [Next in Thread]