diff options
| author | assiduous <assiduous@diligentgraphics.com> | 2020-02-03 23:38:06 +0000 |
|---|---|---|
| committer | assiduous <assiduous@diligentgraphics.com> | 2020-02-03 23:38:06 +0000 |
| commit | a8e37f967bec33dfe131a4eb8f8739fa2bf6d98c (patch) | |
| tree | 7b51a1ceada129e833ef9bf8c1d0ca8cdb3bb76f /Tests/IncludeTest | |
| parent | Disallowed missing direct and indirect dependencies when linking GL and VK sh... (diff) | |
| download | DiligentCore-a8e37f967bec33dfe131a4eb8f8739fa2bf6d98c.tar.gz DiligentCore-a8e37f967bec33dfe131a4eb8f8739fa2bf6d98c.zip | |
Silenced a bunch of clang warnings
Diffstat (limited to 'Tests/IncludeTest')
| -rw-r--r-- | Tests/IncludeTest/GraphicsEngineVk/EngineFactoryVkH_test.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/Tests/IncludeTest/GraphicsEngineVk/EngineFactoryVkH_test.c b/Tests/IncludeTest/GraphicsEngineVk/EngineFactoryVkH_test.c index fa7c9c0b..3751e7df 100644 --- a/Tests/IncludeTest/GraphicsEngineVk/EngineFactoryVkH_test.c +++ b/Tests/IncludeTest/GraphicsEngineVk/EngineFactoryVkH_test.c @@ -25,6 +25,8 @@ * of the possibility of such damages. */ +#include <string.h> + #ifndef ENGINE_DLL # define ENGINE_DLL 1 #endif @@ -41,13 +43,15 @@ void TestEngineFactoryVk_CInterface() IEngineFactoryVk* pFactory = Diligent_GetEngineFactoryVk(); #endif - struct EngineVkCreateInfo EngineCI = {0}; - IRenderDevice* pDevice = NULL; - IDeviceContext* pCtx = NULL; + EngineVkCreateInfo EngineCI; + memset(&EngineCI, 0, sizeof(EngineCI)); + IRenderDevice* pDevice = NULL; + IDeviceContext* pCtx = NULL; IEngineFactoryVk_CreateDeviceAndContextsVk(pFactory, &EngineCI, &pDevice, &pCtx); - struct SwapChainDesc SCDesc = {0}; - void* pNativeWndHandle = NULL; - ISwapChain* pSwapChain = NULL; + SwapChainDesc SCDesc; + memset(&SCDesc, 0, sizeof(SCDesc)); + void* pNativeWndHandle = NULL; + ISwapChain* pSwapChain = NULL; IEngineFactoryVk_CreateSwapChainVk(pFactory, pDevice, pCtx, &SCDesc, pNativeWndHandle, &pSwapChain); } |
