]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
meson: use add_project_arguments
authorTomas Krizek <tomas.krizek@nic.cz>
Wed, 13 Feb 2019 17:36:48 +0000 (18:36 +0100)
committerTomas Krizek <tomas.krizek@nic.cz>
Tue, 12 Mar 2019 09:43:29 +0000 (10:43 +0100)
13 files changed:
client/meson.build
contrib/meson.build
daemon/meson.build
lib/meson.build
meson.build
modules/bogus_log/meson.build
modules/dnstap/meson.build
modules/edns_keepalive/meson.build
modules/hints/meson.build
modules/nsid/meson.build
modules/stats/meson.build
tests/pytests/meson.build
tests/unit/meson.build

index 7d8646154dd8123329bfeba4812aebba0310c07d..cbbabf677b7c30d04e04841cefccd3a34c402bda 100644 (file)
@@ -31,7 +31,6 @@ if build_client
       libkres_dep,
       libedit,
     ],
-    c_args: c_args,
     install: true,
     install_dir: get_option('sbindir'),
   )
index e980d111499888b8d95f97339678be13f76baa0f..0c7aeb1cafbf4ceab57731934f197bab75ff9614 100644 (file)
@@ -18,7 +18,6 @@ contrib_lib = static_library(
   contrib_src,
   include_directories: contrib_inc,
   dependencies: libknot,
-  c_args: c_args,
 )
 
 contrib_dep = declare_dependency(
index 0cde203eda81389b8e030911cf25246a1ad35f4a..902f11494c7b13afef1fe882d646c959d7e7406f 100644 (file)
@@ -47,7 +47,6 @@ kresd = executable(
   kresd_src,
   dependencies: kresd_deps,
   export_dynamic: true,
-  c_args: c_args,
   install: true,
   install_dir: get_option('sbindir'),
 )
index f260363094ba9044597fbafbb5e927f0191e8e69..20d97bed5cb00122e2815be87c9c6ed3afeda045 100644 (file)
@@ -87,7 +87,6 @@ libkres_lib = library('kres',
     gnutls,
     luajit,
   ],
-  c_args: c_args,
   install: true,
 )
 
index 8d28e5988d40aafe428fa176efbd7ab201e1214c..a6250284f9b5ad738cae949406a4bf7fcb41c637 100644 (file)
@@ -89,15 +89,14 @@ endif
 message('---------------------------')
 
 ## Compiler args
-c_args = [
+add_project_arguments([
   '-D_GNU_SOURCE',
-  '-Wtype-limits',
-  '-Wformat',
   '-Wformat-security',
+  '-Wtype-limits',
   '-Wshadow',
   '-Wall',
   '-fvisibility=hidden',
-]
+])
 
 # Lists of tests
 # These lists are added to from subdir() and finally used in tests/*
index d2336ceca159b0e7459f5dcfebd4c8f91d62d39c..08419b1e350a4fe1b7810801770e497df5504033 100644 (file)
@@ -13,7 +13,6 @@ bogus_log_mod = shared_module(
     libknot,
   ],
   name_prefix: '',
-  c_args: c_args,
   install: true,
   install_dir: modules_dir,
 )
index 84ef350710555a14712ab24bc0e09537d8b3359d..2db216c355993bd4bddf8ae6a392c9f008978c4f 100644 (file)
@@ -41,7 +41,6 @@ if libprotobuf_c.found() and libfstrm.found() and protoc_c.found()
       libprotobuf_c,
     ],
     name_prefix: '',
-    c_args: c_args,
     install: true,
     install_dir: modules_dir,
   )
index 1f649481ec902a24b7d07d832363f7fa89604ae7..f94c0cc599e9fa96bb2d4481d65ed57c7498d71f 100644 (file)
@@ -13,7 +13,6 @@ edns_keepalive_mod = shared_module(
     libknot,
   ],
   name_prefix: '',
-  c_args: c_args,
   install: true,
   install_dir: modules_dir,
 )
index 83e653673a86a3cd380884ab3608f81b321e9803..41fa0c3d7dc2a238e13641ec1e3ee9ee09ff7d71 100644 (file)
@@ -14,7 +14,6 @@ hints_mod = shared_module(
     luajit,
   ],
   name_prefix: '',
-  c_args: c_args,
   install: true,
   install_dir: modules_dir,
 )
index c719721a7180e9448b71b9103c24ecbb264be149..1b796bb03ccc4625e9440c0b9ca56b52ef3dd0b6 100644 (file)
@@ -14,7 +14,6 @@ nsid_mod = shared_module(
     luajit,
   ],
   name_prefix: '',
-  c_args: c_args,
   install: true,
   install_dir: modules_dir,
 )
index b790e2e3848862b1f60a8474801900f227a59113..769b867aaebee87c3089e6ca0eeb163eb38012ca 100644 (file)
@@ -14,7 +14,6 @@ stats_mod = shared_module(
     luajit,
   ],
   name_prefix: '',
-  c_args: c_args,
   install: true,
   install_dir: modules_dir,
 )
index 80b5a1b21126a51d5f6d50b7b36e39cebe3f375a..4db8ad88e341beb354544537384d51f6e2e65463 100644 (file)
@@ -14,7 +14,6 @@ tlsproxy = executable(
     libuv,
     gnutls,
   ],
-  c_args: c_args,
 )
 
 # python 3 dependencies
index d05e6b0e012361afb91f447811a23d8a8a749ab1..43ca767508d927147d5e75de786e7598d77d2020 100644 (file)
@@ -27,7 +27,6 @@ foreach unit_test : unit_tests
       cmocka,
       lmdb,
     ],
-    c_args: c_args,
   )
   test(
     'unit.' + unit_test[0],