Skip to content
This repository was archived by the owner on Jan 23, 2021. It is now read-only.

Commit 4c99ca2

Browse files
author
John Regan
committed
fix some fall-through warnings
1 parent 92d3b27 commit 4c99ca2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/stb_image.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5240,10 +5240,12 @@ static int stbi__tga_get_comp(int bits_per_pixel, int is_grey, int* is_rgb16)
52405240
switch(bits_per_pixel) {
52415241
case 8: return STBI_grey;
52425242
case 16: if(is_grey) return STBI_grey_alpha;
5243-
// else: fall-through
5243+
/* fall through */
52445244
case 15: if(is_rgb16) *is_rgb16 = 1;
52455245
return STBI_rgb;
5246-
case 24: // fall-through
5246+
/* fall through */
5247+
case 24:
5248+
/* fall through */
52475249
case 32: return bits_per_pixel/8;
52485250
default: return 0;
52495251
}

0 commit comments

Comments
 (0)