]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
build: fail the build if we accidentally drop a "const" qualifier on a parameter
authorLennart Poettering <lennart@poettering.net>
Fri, 17 Jan 2025 13:47:34 +0000 (14:47 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 20 Jan 2025 20:44:23 +0000 (21:44 +0100)
let's be strict here, our codebase allows it.

meson.build

index d567f25566435215ee4d1c3bc7b419b65b8676ef..4298805365ad9e04c32956609286c76d38d0386d 100644 (file)
@@ -377,6 +377,7 @@ possible_common_cc_flags = [
         '-Warray-bounds=2',
         '-Wdate-time',
         '-Wendif-labels',
+        '-Werror=discarded-qualifiers',
         '-Werror=format=2',
         '-Werror=format-signedness',
         '-Werror=implicit-function-declaration',