From 7795f0f1f8700651d2a79f979a5d40885569dd11 Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Mon, 4 Jan 2016 14:14:35 +0000 Subject: Squash warnings: ICC code. Various bits of the ICC code collects return values only to not check them. Fix that here. In some cases this is because functions have a 'void' return type so there isn't a way to return an error. Change those return types and ensure that all callers check and propogate the errors. --- base/gspaint.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'base/gspaint.c') diff --git a/base/gspaint.c b/base/gspaint.c index 1835168c6..cb193960f 100644 --- a/base/gspaint.c +++ b/base/gspaint.c @@ -103,7 +103,7 @@ gs_fillpage(gs_state * pgs) if (dev->icc_struct != NULL && dev->icc_struct->graydetection && !dev->icc_struct->pageneutralcolor) { dev->icc_struct->pageneutralcolor = true; /* start detecting again */ - gsicc_mcm_begin_monitor(pgs->icc_link_cache, dev); + code = gsicc_mcm_begin_monitor(pgs->icc_link_cache, dev); } if (code < 0) return code; -- cgit v1.2.1