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

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