Mesa (main): spirv_to_dxil: Fix missing-prototypes build error.

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Sat Aug 7 18:31:42 UTC 2021


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

Author: Vinson Lee <vlee at freedesktop.org>
Date:   Fri Aug  6 22:55:58 2021 -0700

spirv_to_dxil: Fix missing-prototypes build error.

../src/microsoft/spirv_to_dxil/spirv_to_dxil.c: At top level:
../src/microsoft/spirv_to_dxil/spirv_to_dxil.c:200:1: error: no previous prototype for ‘spirv_to_dxil_get_version’ [-Werror=missing-prototypes]
  200 | spirv_to_dxil_get_version()
      | ^~~~~~~~~~~~~~~~~~~~~~~~~

Fixes: 92b0cf8e773 ("spirv_to_dxil: expose version number")
Signed-off-by: Vinson Lee <vlee at freedesktop.org>
Reviewed-by: Jesse Natalie <jenatali at microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12264>

---

 src/microsoft/spirv_to_dxil/spirv_to_dxil.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/microsoft/spirv_to_dxil/spirv_to_dxil.h b/src/microsoft/spirv_to_dxil/spirv_to_dxil.h
index d19e662fe39..c0a0b4d40df 100644
--- a/src/microsoft/spirv_to_dxil/spirv_to_dxil.h
+++ b/src/microsoft/spirv_to_dxil/spirv_to_dxil.h
@@ -96,7 +96,7 @@ void
 spirv_to_dxil_free(void* buffer);
 
 uint64_t
-spirv_to_dxil_get_version();
+spirv_to_dxil_get_version(void);
 
 #ifdef __cplusplus
 }



More information about the mesa-commit mailing list