Skip to content
Myr

stb_image: fix static analyzer warnings

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

authored by Sean Barrett · committed by Sean Barrett · parent a895aec · Browse files · 1 file+4 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+4 added−1 removed

  • other:+4 added−1 removed

1 file+4 added−1 removed

modified:stb_image.h+4 added-1 removed
5077 unmodified lines
5078 if (z >= 0x10000) { n += 16; z >>= 16; }5079 if (z >= 0x00100) { n += 8; z >>= 8; }5080 if (z >= 0x00010) { n += 4; z >>= 4; }5081 if (z >= 0x00004) { n += 2; z >>= 2; }5082 if (z >= 0x00002) { n += 1; z >>= 1; }5082 if (z >= 0x00002) { n += 1;/* >>= 1;*/ }5083 return n;5084}50855086static int stbi__bitcount(unsigned int a)
462 unmodified lines
5549 int RLE_count = 0;5550 int RLE_repeating = 0;5551 int read_next_pixel = 1;5552 STBI_NOTUSED(ri);5553 STBI_NOTUSED(tga_x_origin); // @TODO5554 STBI_NOTUSED(tga_y_origin); // @TODO55555556 // do a tiny bit of precessing5557 if ( tga_image_type >= 8 )5558 {
155 unmodified lines
5714 // the things I do to get rid of an error message, and yet keep5715 // Microsoft's C compilers happy... [8^(5716 tga_palette_start = tga_palette_len = tga_palette_bits =5717 tga_x_origin = tga_y_origin = 0;5718 STBI_NOTUSED(tga_palette_start);5719 // OK, done5720 return tga_data;5721}5722#endif
1836 unmodified lines