Is there a way to print what -Wall represents?
Peng Yu
pengyu.ut@gmail.com
Sun Mar 28 21:03:11 GMT 2021
What LANG= is for? It seems that it is not required.
On 3/28/21, Xi Ruoyao <xry111@mengyan1223.wang> wrote:
> 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@mengyan1223.wang>
> School of Aerospace Science and Technology, Xidian University
>
>
--
Regards,
Peng
More information about the Gcc-help
mailing list