Skip to content
Myr

remove gcc4.9.0 / c++11 warnings

Before adoption: this commit came in with the history the project adopted, so no landing records it.

corrected annoying warnings about 'missing initializer'. The memset version is not better, but gcc like it more.

authored by johan · committed by johan · parent 2452f00 · Browse files · 1 file+2 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−1 removed

  • other:+2 added−1 removed

1 file+2 added−1 removed

modified:stb_image.h+2 added-1 removed
4125 unmodified lines
41264127static stbi_uc *stbi__gif_load(stbi__context *s, int *x, int *y, int *comp, int req_comp)4128{4129 stbi_uc *u = 0;4130 stbi__gif g={0};4130 stbi__gif g;4131 memset(&g, 0, sizeof(g));41324133 u = stbi__gif_load_next(s, &g, comp, req_comp);4134 if (u == (void *) 1) u = 0; // end of animated gif marker4135 if (u) {
513 unmodified lines