meson: turn on -Wno-unused-function project-wide

We generate a lot of functions without knowing if they end up being used
or not. So we can't easily avoid these warnings.

This fixes a bunch of warnings for me when building with Clang.

Acked-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15547>
This commit is contained in:
Erik Faye-Lund 2022-03-24 10:34:41 +01:00 committed by Marge Bot
parent b27a2ba4fc
commit be952e71a7
1 changed files with 1 additions and 0 deletions

View File

@ -1167,6 +1167,7 @@ else
'-fno-common',
# Clang
'-Wno-microsoft-enum-value',
'-Wno-unused-function',
]
_trial_cpp = [
'-Werror=return-type',