From 52f1a7614dbf21d45a42f8fc5ab695664e2659a6 Mon Sep 17 00:00:00 2001 From: johan Date: Sun, 22 Jun 2014 19:47:17 +0200 Subject: [PATCH] remove gcc4.9.0 / c++11 warnings corrected annoying warnings about 'missing initializer'. The memset version is not better, but gcc like it more. --- stb_image.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stb_image.h b/stb_image.h index 4da7ec6..0c61065 100644 --- a/stb_image.h +++ b/stb_image.h @@ -4127,7 +4127,8 @@ static stbi_uc *stbi__gif_load_next(stbi__context *s, stbi__gif *g, int *comp, i static stbi_uc *stbi__gif_load(stbi__context *s, int *x, int *y, int *comp, int req_comp) { stbi_uc *u = 0; - stbi__gif g={0}; + stbi__gif g; + memset(&g, 0, sizeof(g)); u = stbi__gif_load_next(s, &g, comp, req_comp); if (u == (void *) 1) u = 0; // end of animated gif marker