Merge pull request #8184 from orbea/warnings

Fix travis warnings.
This commit is contained in:
Twinaphex 2019-02-06 06:39:06 +01:00 committed by GitHub
commit 6f5dfeb20e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 5 deletions

View File

@ -84,7 +84,7 @@ typedef struct
float last_dt;
} Game_Input;
static Game_Input g_input = {0};
static Game_Input g_input = {{{0}}};
typedef struct
{

View File

@ -632,7 +632,7 @@ d3d10_gfx_init(const video_info_t* video,
{
UINT flags = 0;
DXGI_SWAP_CHAIN_DESC desc = {0};
DXGI_SWAP_CHAIN_DESC desc = {{0}};
desc.BufferCount = 1;
desc.BufferDesc.Width = d3d10->vp.full_width;

View File

@ -649,9 +649,9 @@ d3d11_gfx_init(const video_info_t* video, const input_driver_t** input, void** i
};
#ifdef __WINRT__
/* UWP requires the use of newer version of the factory which requires newer version of this struct */
DXGI_SWAP_CHAIN_DESC1 desc = { 0 };
DXGI_SWAP_CHAIN_DESC1 desc = {{0}};
#else
DXGI_SWAP_CHAIN_DESC desc = { 0 };
DXGI_SWAP_CHAIN_DESC desc = {{0}};
#endif
UINT number_feature_levels = ARRAY_SIZE(requested_feature_levels);

View File

@ -50,7 +50,7 @@ static void menu_display_gdi_draw(menu_display_ctx_draw_t *draw,
{
struct gdi_texture *texture = NULL;
gdi_t *gdi = (gdi_t*)video_driver_get_ptr(false);
BITMAPINFO info = {0};
BITMAPINFO info = {{0}};
if (!gdi || !draw || draw->x < 0 || draw->y < 0 || draw->width <= 1 || draw->height <= 1)
return;