summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Bertalan <dani@danielbertalan.dev>2021-08-11 15:50:27 +0200
committerAndreas Kling <kling@serenityos.org>2021-08-12 21:10:44 +0200
commit49d795b985a4f9fe94be918562be48720d1655ba (patch)
tree48222e218970986f5efb033bd8a9c0ea374ee51a
parentc2c12e9dc5df09622b7900e358a7ce7de9a3cebe (diff)
downloadserenity-49d795b985a4f9fe94be918562be48720d1655ba.zip
Meta: Enable `nonnull-compare` warnings
Previously, this was disabled because GCC flagged seemingly correct and well-defined code. This was however not the case because GCC implicitly marked some pointers non-null, even if we wanted to handle them ourselves, and deleted null checks on them. By re-introducing this warning, we will know if the compiler tries to discard our code again.
-rw-r--r--CMakeLists.txt1
1 files changed, 0 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2e0e0e1d81..c6b18bf0e8 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -253,7 +253,6 @@ add_compile_options(-Wimplicit-fallthrough)
add_compile_options(-Wlogical-op)
add_compile_options(-Wmisleading-indentation)
add_compile_options(-Wmissing-declarations)
-add_compile_options(-Wno-nonnull-compare)
add_compile_options(-Wnon-virtual-dtor)
add_compile_options(-Wno-unknown-warning-option)
add_compile_options(-Wundef)