Mesa (master): swr: Fix SWR_CONTEXT pre-declaration

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Mar 15 13:26:42 UTC 2021


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

Author: Michel Zou <xantares09 at hotmail.com>
Date:   Wed Mar 10 21:34:14 2021 +0100

swr: Fix SWR_CONTEXT pre-declaration

Silents a warning on msvc

Reviewed-by: Jan Zielinski <jan.zielinski at intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9502>

---

 src/gallium/drivers/swr/rasterizer/core/api.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/swr/rasterizer/core/api.h b/src/gallium/drivers/swr/rasterizer/core/api.h
index cc6b5105e45..79e33b01677 100644
--- a/src/gallium/drivers/swr/rasterizer/core/api.h
+++ b/src/gallium/drivers/swr/rasterizer/core/api.h
@@ -235,7 +235,7 @@ struct SWR_API_THREADING_INFO
 /// SWR_CONTEXT
 /// Forward Declaration (see context.h for full definition)
 /////////////////////////////////////////////////////////////////////////
-class SWR_CONTEXT;
+struct SWR_CONTEXT;
 
 //////////////////////////////////////////////////////////////////////////
 /// SWR_WORKER_PRIVATE_STATE



More information about the mesa-commit mailing list