Is there a way to print what -Wall represents?

Segher Boessenkool segher@kernel.crashing.org
Mon Mar 29 17:04:43 GMT 2021


[ Please don't top-post. ]

On Sun, Mar 28, 2021 at 04:03:11PM -0500, Peng Yu via Gcc-help wrote:
> On 3/28/21, Xi Ruoyao <xry111@mengyan1223.wang> wrote:
> > 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.
>
> What LANG= is for? It seems that it is not required.

It makes sure the compiler messages are not translated.


Segher


More information about the Gcc-help mailing list