Skip to content

Commit

Permalink
Set -Wno-error=null-pointer-subtraction for Clang
Browse files Browse the repository at this point in the history
GCC doesn't support the warning and fails.
  • Loading branch information
airtower-luna committed Apr 7, 2024
1 parent 6db1be6 commit 41eeb8e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ else
endif
add_project_arguments('-Wno-error=deprecated-declarations', language: 'c')
# unfortunately libapr has some of that in macros
add_project_arguments('-Wno-error=null-pointer-subtraction', language: 'c')
if meson.get_compiler('c').get_id() == 'clang'
add_project_arguments('-Wno-error=null-pointer-subtraction', language: 'c')
endif

apr = dependency('apr-1')
apr_util = dependency('apr-util-1')
Expand Down

0 comments on commit 41eeb8e

Please sign in to comment.