Skip to content

build: Enable -Wnull-dereference

It’s not as good as full static analysis, but should catch some potential NULL dereferences without too high a false positive rate.

Note that it requires -fdelete-null-pointer-checks to be active in order to work (see https://gcc.gnu.org/onlinedocs/gcc/gcc-command-options/options-to-request-or-suppress-warnings.html#cmdoption-Wnull-dereference).

Signed-off-by: Philip Withnall pwithnall@gnome.org

Merge request reports