From f3400839971a61bfb4f4d9ff4ca2a74dcd1bf8c5 Mon Sep 17 00:00:00 2001 From: assiduous Date: Mon, 3 Feb 2020 18:06:19 -0800 Subject: Fixed few more clang warnings --- Tests/IncludeTest/GraphicsEngineOpenGL/EngineFactoryOpenGLH_test.c | 5 ++++- Tests/IncludeTest/GraphicsEngineVk/EngineFactoryVkH_test.c | 3 +-- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'Tests/IncludeTest') diff --git a/Tests/IncludeTest/GraphicsEngineOpenGL/EngineFactoryOpenGLH_test.c b/Tests/IncludeTest/GraphicsEngineOpenGL/EngineFactoryOpenGLH_test.c index ff833d15..06758d24 100644 --- a/Tests/IncludeTest/GraphicsEngineOpenGL/EngineFactoryOpenGLH_test.c +++ b/Tests/IncludeTest/GraphicsEngineOpenGL/EngineFactoryOpenGLH_test.c @@ -27,6 +27,8 @@ #include "DiligentCore/Graphics/GraphicsEngineOpenGL/interface/EngineFactoryOpenGL.h" +#include + void TestEngineFactoryGL_CInterface() { @@ -37,7 +39,8 @@ void TestEngineFactoryGL_CInterface() IEngineFactoryOpenGL* pFactory = Diligent_GetEngineFactoryOpenGL(); #endif - struct EngineGLCreateInfo EngineCI = {0}; + EngineGLCreateInfo EngineCI; + memset(&EngineCI, 0, sizeof(EngineCI)); IEngineFactoryOpenGL_CreateDeviceAndSwapChainGL(pFactory, &EngineCI, (IRenderDevice**)NULL, (IDeviceContext**)NULL, (SwapChainDesc*)NULL, (ISwapChain**)NULL); IEngineFactoryOpenGL_CreateHLSL2GLSLConverter(pFactory, (IHLSL2GLSLConverter**)NULL); diff --git a/Tests/IncludeTest/GraphicsEngineVk/EngineFactoryVkH_test.c b/Tests/IncludeTest/GraphicsEngineVk/EngineFactoryVkH_test.c index 3751e7df..cc7b40a3 100644 --- a/Tests/IncludeTest/GraphicsEngineVk/EngineFactoryVkH_test.c +++ b/Tests/IncludeTest/GraphicsEngineVk/EngineFactoryVkH_test.c @@ -25,14 +25,13 @@ * of the possibility of such damages. */ -#include - #ifndef ENGINE_DLL # define ENGINE_DLL 1 #endif #include "DiligentCore/Graphics/GraphicsEngineVulkan/interface/EngineFactoryVk.h" +#include void TestEngineFactoryVk_CInterface() { -- cgit v1.2.3