* List warnings enabled by default in gcc
@ 2023-04-13 5:23 jorge.pinto.sousa
2023-04-13 6:40 ` Jonathan Wakely
0 siblings, 1 reply; 2+ messages in thread
From: jorge.pinto.sousa @ 2023-04-13 5:23 UTC (permalink / raw)
To: gcc-help
[-- Attachment #1: Type: text/plain, Size: 322 bytes --]
Hi,
For any specific gcc binary,
/usr/bin/gcc-8 -Q --help=warnings | grep enabled
Will give me the list of warnings enabled by default?
Also, when compiling from source, where can one control those?
BR,
Jorge Pinto Sousa
https://sousajo-cc.github.io
[image]
Sent with [Proton Mail](https://proton.me/) secure email.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: List warnings enabled by default in gcc
2023-04-13 5:23 List warnings enabled by default in gcc jorge.pinto.sousa
@ 2023-04-13 6:40 ` Jonathan Wakely
0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Wakely @ 2023-04-13 6:40 UTC (permalink / raw)
To: jorge.pinto.sousa; +Cc: gcc-help
[-- Attachment #1: Type: text/plain, Size: 339 bytes --]
On Thu, 13 Apr 2023, 06:24 jorge.pinto.sousa via Gcc-help, <
gcc-help@gcc.gnu.org> wrote:
> Hi,
>
> For any specific gcc binary,
>
> /usr/bin/gcc-8 -Q --help=warnings | grep enabled
>
> Will give me the list of warnings enabled by default?
>
Yes.
> Also, when compiling from source, where can one control those?
>
See the .opt files.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-04-13 6:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-13 5:23 List warnings enabled by default in gcc jorge.pinto.sousa
2023-04-13 6:40 ` Jonathan Wakely
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).