Skip to content

Commit

Permalink
Disable analyzer-null-dereference static analysis check again
Browse files Browse the repository at this point in the history
  • Loading branch information
ximion committed Aug 16, 2022
1 parent 1522caf commit 4ea6191
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,11 @@ if get_option('static-analysis') and host_machine.system() != 'windows'
# enable statuc analyzer
add_project_arguments(['-fanalyzer'], language : 'c')

# silence false-positives with older static analyzer versions
if cc.version().version_compare('<12')
add_project_arguments(['-Wno-analyzer-null-dereference'], language : 'c')
endif
# silence false-positives for NULL dereference.
# GCC does not appear to recognize that functions like as_is_empty()
# ensure that a pointer can not be NULL, and therefore is emitting it
# even in cases where it shouldn't.
add_project_arguments(['-Wno-analyzer-null-dereference'], language : 'c')

# make false-positive non-fatal with GCC 12 for now
if cc.version().version_compare('>11<13')
Expand Down

0 comments on commit 4ea6191

Please sign in to comment.