null pointer dereference detection in DMD
Walter Bright
newshound2 at digitalmars.com
Sat Jan 11 20:39:13 UTC 2025
On 1/10/2025 6:01 PM, Richard (Rikki) Andrew Cattermole wrote:
> Yeah you didn't turn the warning on.
Thanks for pointing that out. That's one of the two problems with warnings.
The other problem is each C compiler has a different idea of warnings, and
sometimes they are mutually contradictory. This makes porting code between
compilers problematic with all warnings on, which led me (years ago) to give up
on turning all warnings on.
This led to my original concept of D as having no warnings. We should probably
revisit our current set of warnings and see if they can be made errors.
More information about the Digitalmars-d
mailing list