Mesa (main): meson: turn on -Wno-unused-function project-wide

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Apr 19 07:30:54 UTC 2022


Module: Mesa
Branch: main
Commit: be952e71a70bb6ac1afde8876e4615b287bd4089
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=be952e71a70bb6ac1afde8876e4615b287bd4089

Author: Erik Faye-Lund <erik.faye-lund at collabora.com>
Date:   Thu Mar 24 10:34:41 2022 +0100

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 at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15547>

---

 meson.build | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meson.build b/meson.build
index 189a5c51ec4..7d3520c17ba 100644
--- a/meson.build
+++ b/meson.build
@@ -1167,6 +1167,7 @@ else
     '-fno-common',
     # Clang
     '-Wno-microsoft-enum-value',
+    '-Wno-unused-function',
   ]
   _trial_cpp = [
     '-Werror=return-type',



More information about the mesa-commit mailing list