Commit 29a68038 authored by Eric Engestrom's avatar Eric Engestrom 💤 Committed by Eric Engestrom
Browse files

Revert "meson: fix -Wno-foo argument testing"

This reverts commit bc315aa2

Turns out since meson 0.46 it knows about this quirk of compilers and
checks the right thing internally.

parent 917ecfcb
......@@ -66,23 +66,16 @@ cc = meson.get_compiler('c')
global_args = []
global_args_maybe = [
'-Wno-shift-negative-value', # required due to Pixman
global_wnoargs_maybe = [
'shift-negative-value', # required due to Pixman
foreach a : global_args_maybe
if cc.has_argument(a)
global_args += a
foreach a : global_wnoargs_maybe
if cc.has_argument('-W' + a)
global_args += '-Wno-' + a
add_global_arguments(global_args, language: 'c')
if cc.has_header_symbol('sys/sysmacros.h', 'major')
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