From f08135660d6822c3a9545ba7042d9cb1ea815e7b Mon Sep 17 00:00:00 2001 From: Arnar Mar Hrafnkelsson Date: Wed, 24 Oct 2001 10:00:39 +0000 Subject: [PATCH] Removed C++ comments that SunSPro and HPUX cc were not liking. Also removed empty default cases with no break statement from switch statements. --- tga.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/tga.c b/tga.c index 4bd4f894..e11c7a8e 100644 --- a/tga.c +++ b/tga.c @@ -184,7 +184,6 @@ color_unpack(unsigned char *buf, int bytepp, i_color *val) { val->rgba.r = buf[2]; val->rgba.a = buf[3]; break; - default: } } @@ -232,7 +231,6 @@ color_pack(unsigned char *buf, int bitspp, i_color *val) { buf[2] = val->rgba.r; buf[3] = val->rgba.a; break; - default: } } @@ -396,7 +394,6 @@ tga_source_read(tga_source *s, unsigned char *buf, size_t pixels) { ml = min(s->len, pixels-cp); for(k=0; kbytepp; j++) buf[(cp+k)*s->bytepp+j] = s->cval[j]; - // memset(buf+cp, s->cidx, ml); cp += ml; s->len -= ml; break; @@ -748,7 +745,6 @@ i_writetga_wiol(i_img *img, io_glue *ig, int wierdpack, int compress, char *idst tga_header header; tga_dest dest; unsigned char headbuf[18]; - // unsigned char *data; unsigned int bitspp; int mapped; -- 2.39.5