lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master ae17ea6b 2/4: Rename a target, and make it mo


From: Greg Chicares
Subject: [lmi-commits] [lmi] master ae17ea6b 2/4: Rename a target, and make it more useful
Date: Tue, 14 Jun 2022 20:25:31 -0400 (EDT)

branch: master
commit ae17ea6bdfdc924f68b3c368a11c3a586c956fa2
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>

    Rename a target, and make it more useful
    
    Find all warnings that g++ says are disabled. Reduce them to words
    with no '-W' or '-Wno-' prefix. Extract all words (not lines) that
    match them in the current makefile. Report words in the first list
    that are not matched in the second.
---
 workhorse.make | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/workhorse.make b/workhorse.make
index 8002edfa..31e252cf 100644
--- a/workhorse.make
+++ b/workhorse.make
@@ -1750,7 +1750,11 @@ show_flags:
 # For the /dev/null rationale, see:
 #   https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91011#c7
 
-.PHONY: show_disabled_g++_warnings
-show_disabled_g++_warnings:
-       $(CXX) $(ALL_CXXFLAGS) -Q --help=warning -xc++ /dev/null \
-         | $(GREP) '[[]disabled[]]'
+.PHONY: show_overlooked_cxx_warnings
+show_overlooked_cxx_warnings:
+       @$(CXX) $(ALL_CXXFLAGS) -Q --help=warning -xc++ /dev/null \
+         | $(GREP) '[[]disabled[]]' \
+         | $(SED) -e's/[ \t]*[[]disabled[]]//' -e's/^ *-W//' \
+         > eraseme
+       @$(GREP) -of eraseme $(this_makefile) | $(GREP) -vxf - eraseme || true
+       @$(RM) eraseme



reply via email to

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