From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B08C93856243; Tue, 9 Aug 2022 15:14:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B08C93856243 From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/106572] A programmatic list of all possible compiler warnings Date: Tue, 09 Aug 2022 15:14:00 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Aug 2022 15:14:00 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D106572 --- Comment #6 from Andrew Pinski --- (In reply to Andrew Pinski from comment #5) > >which blows up the command line for the compilation.=20 >=20 > You can use a response file and that won't blow up the command line at al= l. >=20 > That is: > g++ -Q --help=3Dwarnings | tail -n +2 | awk '{print $1}' | tr '\n' ' ' > > cxxflags.opt >=20 > g++ @cxxflags.opt .... Oh and you don't need the tr either that is any whitespace in a response fi= le is will be treated as a seperator. So just: g++ -Q --help=3Dwarnings | tail -n +2 | awk '{print $1}' > cxxflags.opt=