Blame SOURCES/jasper-1.900.1-Coverity-UNUSED_VALUE.patch

2c4e85
Error: UNUSED_VALUE
2c4e85
base/jas_icc.c:328: returned_pointer: Pointer "attrvalinfo" returned by "jas_iccattrvalinfo_lookup(type)" is never used.
2c4e85
2c4e85
jpc/jpc_enc.c:788: returned_pointer: Pointer "cp" returned by "strchr(s, 66)" is never used.
2c4e85
2c4e85
diff -up jasper-1.900.1/src/libjasper/base/jas_icc.c.unused_value jasper-1.900.1/src/libjasper/base/jas_icc.c
2c4e85
--- jasper-1.900.1/src/libjasper/base/jas_icc.c.unused_value	2007-01-19 22:43:05.000000000 +0100
2c4e85
+++ jasper-1.900.1/src/libjasper/base/jas_icc.c	2011-06-27 15:35:52.815263000 +0200
2c4e85
@@ -266,7 +266,6 @@ jas_iccprof_t *jas_iccprof_load(jas_stre
2c4e85
 	jas_iccattrval_t *attrval;
2c4e85
 	jas_iccattrval_t *prevattrval;
2c4e85
 	jas_icctagtabent_t *tagtabent;
2c4e85
-	jas_iccattrvalinfo_t *attrvalinfo;
2c4e85
 	int i;
2c4e85
 	int len;
2c4e85
 
2c4e85
@@ -325,7 +324,7 @@ jas_iccprof_t *jas_iccprof_load(jas_stre
2c4e85
 			goto error;
2c4e85
 		}
2c4e85
 		curoff += 8;
2c4e85
-		if (!(attrvalinfo = jas_iccattrvalinfo_lookup(type))) {
2c4e85
+		if (!jas_iccattrvalinfo_lookup(type)) {
2c4e85
 #if 0
2c4e85
 			jas_eprintf("warning: skipping unknown tag type\n");
2c4e85
 #endif
2c4e85
diff -up jasper-1.900.1/src/libjasper/jpc/jpc_enc.c.unused_value jasper-1.900.1/src/libjasper/jpc/jpc_enc.c
2c4e85
--- jasper-1.900.1/src/libjasper/jpc/jpc_enc.c.unused_value	2007-01-19 22:43:07.000000000 +0100
2c4e85
+++ jasper-1.900.1/src/libjasper/jpc/jpc_enc.c	2011-06-27 15:36:17.437900180 +0200
2c4e85
@@ -781,11 +781,10 @@ void jpc_enc_cp_destroy(jpc_enc_cp_t *cp
2c4e85
 
2c4e85
 int ratestrtosize(char *s, uint_fast32_t rawsize, uint_fast32_t *size)
2c4e85
 {
2c4e85
-	char *cp;
2c4e85
 	jpc_flt_t f;
2c4e85
 
2c4e85
 	/* Note: This function must not modify output size on failure. */
2c4e85
-	if ((cp = strchr(s, 'B'))) {
2c4e85
+	if (strchr(s, 'B')) {
2c4e85
 		*size = atoi(s);
2c4e85
 	} else {
2c4e85
 		f = atof(s);