Skip to content
Myr

stb_image: Pacify some MSVC warnings.

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

Convince the compiler's dataflow analysis that yes, we are not reading uninitialized values of coutput. Fixes issue #608.

authored by Fabian Giesen · committed by Fabian Giesen · parent 72990ef · Browse files · 1 file+1 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+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:stb_image.h+1 added-1 removed
3657 unmodified lines
3658 {3659 int k;3660 unsigned int i,j;3661 stbi_uc *output;3662 stbi_uc *coutput[4];3662 stbi_uc *coutput[4] = { NULL, NULL, NULL, NULL };36633664 stbi__resample res_comp[4];36653666 for (k=0; k < decode_n; ++k) {
3864 unmodified lines