diff options
| author | assiduous <assiduous@diligentgraphics.com> | 2020-02-04 02:06:19 +0000 |
|---|---|---|
| committer | assiduous <assiduous@diligentgraphics.com> | 2020-02-04 02:06:19 +0000 |
| commit | f3400839971a61bfb4f4d9ff4ca2a74dcd1bf8c5 (patch) | |
| tree | eed0c2e38a401ba9179623537f1242bb6e29b3c2 /Tests/IncludeTest | |
| parent | Silenced a bunch of clang warnings (diff) | |
| download | DiligentCore-f3400839971a61bfb4f4d9ff4ca2a74dcd1bf8c5.tar.gz DiligentCore-f3400839971a61bfb4f4d9ff4ca2a74dcd1bf8c5.zip | |
Fixed few more clang warnings
Diffstat (limited to 'Tests/IncludeTest')
| -rw-r--r-- | Tests/IncludeTest/GraphicsEngineOpenGL/EngineFactoryOpenGLH_test.c | 5 | ||||
| -rw-r--r-- | Tests/IncludeTest/GraphicsEngineVk/EngineFactoryVkH_test.c | 3 |
2 files changed, 5 insertions, 3 deletions
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 <string.h> + 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 <string.h> - #ifndef ENGINE_DLL # define ENGINE_DLL 1 #endif #include "DiligentCore/Graphics/GraphicsEngineVulkan/interface/EngineFactoryVk.h" +#include <string.h> void TestEngineFactoryVk_CInterface() { |
