summaryrefslogtreecommitdiffstats
path: root/meson.build
diff options
context:
space:
mode:
authorVladimír Čunát <vladimir.cunat@nic.cz>2023-07-11 10:17:57 +0200
committerVladimír Čunát <vladimir.cunat@nic.cz>2023-07-11 10:17:57 +0200
commit08bd2d9d5521af8da911dea1332bcc4857e1487f (patch)
tree5382dd61a41b61f00dc5c6b5a969b30b9a9e6466 /meson.build
parentMerge !1418: avoid 5.x style config and systemd units, by default (diff)
parentMerge !1422: avoid knot_pkt_default_padding_size() (diff)
downloadknot-resolver-08bd2d9d5521af8da911dea1332bcc4857e1487f.tar.xz
knot-resolver-08bd2d9d5521af8da911dea1332bcc4857e1487f.zip
Merge branch 'master' into 6.0
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build10
1 files changed, 10 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index 1a941a32..450df876 100644
--- a/meson.build
+++ b/meson.build
@@ -133,12 +133,21 @@ message('---------------------------')
## Compiler args
add_project_arguments(
'-D_GNU_SOURCE',
+
+ # Various warnings. Let's use any warning that doesn't "cause problems".
+ '-Wall',
'-Wformat',
'-Wformat-security',
'-Wtype-limits',
'-Wshadow',
'-Werror=implicit-function-declaration', # Probably messed up includes; implicit functions are evil!
'-Werror=attributes', # Missing cleanup attribute could lead to memory leaks.
+ '-Wstrict-prototypes', # `void foo();` is basically always a mistake, in our code at least.
+ '-Wold-style-definition',
+ '-Wignored-qualifiers',
+ '-Woverride-init',
+ '-Wuninitialized',
+
'-fvisibility=hidden',
'-DHAVE_ASPRINTF=' + have_asprintf.to_int().to_string(),
@@ -260,6 +269,7 @@ if clangtidy.found()
command: [
clangtidy,
'-quiet',
+ '-extra-arg=-Wno-unknown-warning-option', # version in CI is weird in this
'-p', meson.build_root(),
] + c_src_lint
)