lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master bdeeca5c 5/5: Improve technique to display di


From: Greg Chicares
Subject: [lmi-commits] [lmi] master bdeeca5c 5/5: Improve technique to display disabled warnings
Date: Sat, 11 Jun 2022 21:34:06 -0400 (EDT)

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

    Improve technique to display disabled warnings
---
 workhorse.make | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/workhorse.make b/workhorse.make
index ebf36629..c30a840b 100644
--- a/workhorse.make
+++ b/workhorse.make
@@ -1708,6 +1708,10 @@ show_flags:
        @printf 'wx_library_paths        = "%s"\n' "$(wx_library_paths)"
        @printf 'wx_predefinitions       = "%s"\n' "$(wx_predefinitions)"
 
+# 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 | $(GREP) '[[]disabled[]]'
+       $(CXX) $(ALL_CXXFLAGS) -Q --help=warning -xc++ /dev/null \
+         | $(GREP) '[[]disabled[]]'



reply via email to

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