[Bug c/89072] New: -Wall -Werror should be defaults
bugzilla at kerneldriver dot org
gcc-bugzilla@gcc.gnu.org
Sat Jan 26 18:26:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89072
Bug ID: 89072
Summary: -Wall -Werror should be defaults
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: bugzilla at kerneldriver dot org
Target Milestone: ---
-Wall and -Werror should be default compiler options that have to be
deliberately disabled.
This would dramatically reduce the amount of wasted time that results when
novice programmers write defective programs. These novice programmers are able
to compile defective code and are then confused when the code does not work.
If these were the defaults, novice programmers would have immediate feedback
that they have defective code and they would have to change their code before
getting it to compile.
I await the inevitable counter arguments that making these the defaults would
still cause time to be wasted. I can only think of the time that I would have
saved over the years by not having to explicitly turn on these options every
time I used GCC.
Please note that the defect reporting instructions include this:
Before reporting that GCC compiles your code incorrectly,
compile it with gcc -Wall -Wextra and see whether this shows
anything wrong with your code.
Think of the time that would be saved if those were the defaults.
More information about the Gcc-bugs
mailing list