GCC 12.1 Released
GCC 12.1 Released
Posted May 10, 2022 3:43 UTC (Tue) by wtarreau (subscriber, #51152)In reply to: GCC 12.1 Released by NYKevin
Parent article: GCC 12.1 Released
That's why for me it's important that a C compiler tries less to guess about improbable mistakes that are relevant to absolutely zero use cases for this language, but instead focuses on real mistakes that are easy to solve (e.g; operators precedence, asking for braces, undefined use of self-increment in arguments, etc).
I'm fine with having such unlikely analysis but only on developer's request (e.g. -Wsuspicious). It could then go further and report some uncommon constructs that are inefficient and are suspicious because of that without annoying users when -Wall is used to detect likely incompatibilities on their platforms (because that's why most of us use -Wall -Werror, it's to catch problems at build time on other platforms).
