meson.build: Add -Werror=discarded-qualifiers

(cherry picked from commit ff04b47942)
This commit is contained in:
Ripley Tom 2026-02-21 20:19:04 +01:00 committed by Sam James
parent c3d7373cf9
commit 92f8e16f11
No known key found for this signature in database
GPG key ID: 738409F520DF9190

View file

@ -116,6 +116,7 @@ cc_flags = common_flags + [
'-Werror=old-style-definition', '-Werror=old-style-definition',
'-Werror=missing-parameter-type', '-Werror=missing-parameter-type',
'-Werror=strict-prototypes', '-Werror=strict-prototypes',
'-Werror=discarded-qualifiers',
] ]
add_project_arguments(cc.get_supported_arguments(cc_flags), language: 'c') add_project_arguments(cc.get_supported_arguments(cc_flags), language: 'c')
add_project_arguments(cc_native.get_supported_arguments(cc_flags), add_project_arguments(cc_native.get_supported_arguments(cc_flags),