build: Threat unused-result warnings as errors

We don't have any in code now, so we should definitely ensure that we
won't introduce anymore unguarded calls.
This commit is contained in:
Marco Trevisan (Treviño) 2022-07-06 16:07:43 +02:00
parent 7a382438aa
commit b61cd872f1

View File

@ -473,6 +473,7 @@ if cc.get_id() == 'gcc' or cc.get_id() == 'clang'
'-Werror=init-self',
'-Werror=missing-include-dirs',
'-Werror=pointer-arith',
'-Werror=unused-result',
]
warning_c_args = warning_common_args + [