public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/96554] New: -Wall does not include -Wnull-dereference
@ 2020-08-10 12:36 R.E.Wolff at BitWizard dot nl
  2020-08-10 12:48 ` [Bug c/96554] " jakub at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: R.E.Wolff at BitWizard dot nl @ 2020-08-10 12:36 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96554

            Bug ID: 96554
           Summary: -Wall does not include -Wnull-dereference
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: R.E.Wolff at BitWizard dot nl
  Target Milestone: ---

As reported in c/96550, the fact that -Wall didn't include -Wnull-dereference
cost me a lot of time in trying to figure out what the problem was with my
code. 

I add -Wall to get lots of warnings about potential bugs. if (a = 3) is an
example where a simple typo in the code leads to perfectly valid C, but such a
"high likelyhood of a bug" that a warning is warranted. 

Same here: I wrote a bug that caused the compiler to a) not warn me and b) do
unexpected things. I think the -Wnull-dreference is a valid warning to enable
with -Wall.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-08-10 18:56 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-10 12:36 [Bug c/96554] New: -Wall does not include -Wnull-dereference R.E.Wolff at BitWizard dot nl
2020-08-10 12:48 ` [Bug c/96554] " jakub at gcc dot gnu.org
2020-08-10 13:02 ` R.E.Wolff at BitWizard dot nl
2020-08-10 13:03 ` schwab@linux-m68k.org
2020-08-10 13:10 ` R.E.Wolff at BitWizard dot nl
2020-08-10 15:50 ` [Bug tree-optimization/96554] " msebor at gcc dot gnu.org
2020-08-10 18:56 ` rsandifo at gcc dot gnu.org

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).