[Bug driver/92757] Documentation ambiguous/misleading about interplay of optimization and warning flags
ricardolafabreu at gmail dot com
gcc-bugzilla@gcc.gnu.org
Mon Dec 2 20:01:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92757
--- Comment #2 from Ricardo Abreu <ricardolafabreu at gmail dot com> ---
Saying "-Wall enables all the warnings that [...]" is inaccurate. Unless you
consider a very specific interpretation of "enables". Then it is ambiguous,
because there are other valid (and probably more intuitive) interpretations.
Preventing that ambiguity from arising in the first place would make for better
documentation. The reader should not have to read on specific warnings to find
that -Wall, on its own, does not really enable the warnings it claims.
The interplay of optimization and correctness analysis feels to me too general
to be left to the documentation of individual warning flags. It is something
pertaining to a bigger, structural scope.
More information about the Gcc-bugs
mailing list