Re: Is there a way to print what -Wall represents?

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

 



On 2021-03-28 12:38 -0500, Peng Yu via Gcc-help wrote:
> Hi,
> 
> man gcc list the options that -Wall represents. But it may not be
> updated. Is there a way to print what -Wall represents in the command
> line? Thanks.

LANG= gcc -Wall -Q --help=warnings | grep enabled

It will also print those warnings enabled by default.  You can then run the
command without -Wall and make a diff.
-- 
Xi Ruoyao <xry111@xxxxxxxxxxxxxxxx>
School of Aerospace Science and Technology, Xidian University




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux