From 2e377b53b0640552b814d5dab70b55fc371fa6c1 Mon Sep 17 00:00:00 2001 From: James Zern Date: Fri, 14 Jun 2013 18:44:59 -0700 Subject: [PATCH] wicdec: silence a format warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit from x86_64-w64-mingw32-gcc examples/wicdec.c: In function ‘ExtractICCP’: examples/wicdec.c:131:21: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘size_t’ [-Wformat] Change-Id: I6642dae62265a2276ae9ac96dd8ce6f1e2d37ca5 (cherry picked from commit ffae9f31e80ed7344987b24b21af831806fa2e69) --- examples/wicdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/wicdec.c b/examples/wicdec.c index 2902520f..61c733c2 100644 --- a/examples/wicdec.c +++ b/examples/wicdec.c @@ -128,7 +128,7 @@ static HRESULT ExtractICCP(IWICImagingFactory* const factory, &size)); if (SUCCEEDED(hr) && size != iccp->size) { fprintf(stderr, "Warning! ICC profile size (%u) != expected (%u)\n", - size, iccp->size); + size, (uint32_t)iccp->size); iccp->size = size; } break;