Mesa (master): st/nine: Fix compilation error on non-x86 platforms

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Apr 16 16:25:21 UTC 2021


Module: Mesa
Branch: master
Commit: 5613984fd944a150d48e6a582daaeb8b2dde7e32
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=5613984fd944a150d48e6a582daaeb8b2dde7e32

Author: Axel Davy <davyaxel0 at gmail.com>
Date:   Thu Apr 15 21:59:18 2021 +0200

st/nine: Fix compilation error on non-x86 platforms

The unused variable was improperly declared.

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/4647
Fixes: d9e79bfe4f ("st/nine: Disable fpu exceptions during init")

Signed-off-by: Axel Davy <davyaxel0 at gmail.com>
Reviewed-by: Timur Kristóf <timur.kristof at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10263>

---

 src/gallium/frontends/nine/device9.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/gallium/frontends/nine/device9.c b/src/gallium/frontends/nine/device9.c
index 289c6502ead..ec2e9f4bc71 100644
--- a/src/gallium/frontends/nine/device9.c
+++ b/src/gallium/frontends/nine/device9.c
@@ -45,6 +45,7 @@
 #include "pipe/p_screen.h"
 #include "pipe/p_context.h"
 #include "pipe/p_config.h"
+#include "util/macros.h"
 #include "util/u_math.h"
 #include "util/u_inlines.h"
 #include "util/u_hash_table.h"
@@ -95,7 +96,7 @@ static void nine_setup_fpu(void)
     WARN_ONCE("FPU setup not supported on non-x86 platforms\n");
 }
 
-static void nine_setup_set_fpu(uint16_t)
+static void nine_setup_set_fpu(UNUSED uint16_t val)
 {
     WARN_ONCE("FPU setup not supported on non-x86 platforms\n");
 }



More information about the mesa-commit mailing list