meson.build: Add -Werror=discarded-qualifiers

This commit is contained in:
Ripley Tom 2026-02-21 20:19:04 +01:00 committed by Wim Taymans
parent c847b81629
commit ff04b47942

View file

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