Module Name:    src
Committed By:   martin
Date:           Sun Sep 15 14:06:10 UTC 2013

Modified Files:
        src/sys/dev/stbi: stb_image.c

Log Message:
Remove unused variables


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sys/dev/stbi/stb_image.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/stbi/stb_image.c
diff -u src/sys/dev/stbi/stb_image.c:1.5 src/sys/dev/stbi/stb_image.c:1.6
--- src/sys/dev/stbi/stb_image.c:1.5	Sun Jan 27 14:47:37 2013
+++ src/sys/dev/stbi/stb_image.c	Sun Sep 15 14:06:10 2013
@@ -430,7 +430,7 @@ extern int      stbi_gif_info_from_file 
 #endif
 #ifdef _KERNEL
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: stb_image.c,v 1.5 2013/01/27 14:47:37 mbalmer Exp $");
+__KERNEL_RCSID(0, "$NetBSD: stb_image.c,v 1.6 2013/09/15 14:06:10 martin Exp $");
 #include <sys/param.h>
 #include <sys/systm.h>
 #include <sys/kernel.h>
@@ -3221,7 +3221,7 @@ static int shiftsigned(int v, int shift,
 static stbi_uc *bmp_load(stbi *s, int *x, int *y, int *comp, int req_comp)
 {
    uint8 *out;
-   unsigned int mr=0,mg=0,mb=0,ma=0, fake_a=0;
+   unsigned int mr=0,mg=0,mb=0,ma=0;
    stbi_uc pal[256][4];
    int psize=0,i,j,compress=0,width;
    int bpp, flip_vertically, pad, target, offset, hsz;
@@ -3270,7 +3270,6 @@ static stbi_uc *bmp_load(stbi *s, int *x
                   mg = 0xffu <<  8;
                   mb = 0xffu <<  0;
                   ma = 0xffu << 24;
-                  fake_a = 1; // @TODO: check for cases like alpha value is all 0 and switch it to 255
                } else {
                   mr = 31u << 10;
                   mg = 31u <<  5;

Reply via email to