Commit 4164abd9 authored by Matthias Clasen's avatar Matthias Clasen
Browse files

build: Quiet the compiler

Don't use -Wnull-dereference when assertions are
disabled, since that causes the compiler to see
NULL everywhere.
parent b0990aa8
Pipeline #274208 passed with stages
in 15 minutes and 21 seconds
......@@ -270,7 +270,6 @@ elif cc.get_id() == 'gcc' or cc.get_id() == 'clang'
......@@ -304,6 +303,10 @@ elif cc.get_id() == 'gcc' or cc.get_id() == 'clang'
if cc.get_id() == 'gcc'
test_cflags += ['-Wcast-align'] # This warns too much on clang
if not gtk_debug_cflags.contains('-DG_DISABLE_ASSERT')
test_cflags += ['-Wnull-dereference'] # Too noisy when assertions are disabled
test_cflags = []
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment