lmi
[Top][All Lists]
Advanced

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

Re: [lmi] [lmi-commits] master bdeeca5c 5/5: Improve technique to displa


From: Vadim Zeitlin
Subject: Re: [lmi] [lmi-commits] master bdeeca5c 5/5: Improve technique to display disabled warnings
Date: Sun, 12 Jun 2022 19:32:54 +0200

On Sat, 11 Jun 2022 21:34:06 -0400 (EDT) Greg Chicares 
<gchicares@sbcglobal.net> wrote:

GC> branch: master
GC> commit bdeeca5cfa88c34057f74364601af613ccbb7ccf
GC> Author: Gregory W. Chicares <gchicares@sbcglobal.net>
GC> Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
GC> 
GC>     Improve technique to display disabled warnings
GC> ---
GC>  workhorse.make | 6 +++++-
GC>  1 file changed, 5 insertions(+), 1 deletion(-)
GC> 
GC> diff --git a/workhorse.make b/workhorse.make
GC> index ebf36629..c30a840b 100644
GC> --- a/workhorse.make
GC> +++ b/workhorse.make
GC> @@ -1708,6 +1708,10 @@ show_flags:
GC>     @printf 'wx_library_paths        = "%s"\n' "$(wx_library_paths)"
GC>     @printf 'wx_predefinitions       = "%s"\n' "$(wx_predefinitions)"
GC>  
GC> +# For the /dev/null rationale, see:
GC> +#   https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91011#c7
GC> +
GC>  .PHONY: show_disabled_g++_warnings
GC>  show_disabled_g++_warnings:
GC> -   $(CXX) $(ALL_CXXFLAGS) -Q --help=warning | $(GREP) '[[]disabled[]]'
GC> +   $(CXX) $(ALL_CXXFLAGS) -Q --help=warning -xc++ /dev/null \
GC> +     | $(GREP) '[[]disabled[]]'

 I thought I had already advertised this here, but either it was only in a
private email (that I've since forgotten about) or I only wanted to do it
and did not, because I can't find it in the list archives, so let me repost
a link to my small project which might be handy:

        https://github.com/vadz/gcc-warnings-tools

and direct links to the tables generated by it:

        https://github.com/vadz/gcc-warnings-tools/wiki/gcc-warnings
        https://github.com/vadz/gcc-warnings-tools/wiki/all-gcc-warnings

I mostly refer to these tables to check when a particular warning was added
when enabling or disabling it, but for lmi, which uses a fixed (and pretty
recent) compiler version, it can probably be useful mostly to see any
warnings added in a new gcc release. E.g., after just updating the pages
above for gcc 12, looking at the changes you can see that it added the
following new warnings not enabled by -Wall (or by default): array-compare,
infinite-recursion, openacc-parallelism, trivial-auto-var-init and
use-after-free, some of which might be useful to explore when lmi starts
using it.

 Please let me know if you find these tables useful but lacking something,
it should be simple enough to add it to them.

 Thanks,
VZ

Attachment: pgpEm4FOY_ned.pgp
Description: PGP signature


reply via email to

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