From edc5d17096bd1a69fee0f3470a2af4fe46969bec Mon Sep 17 00:00:00 2001 From: Edwin Vane Date: Fri, 27 Jul 2012 11:32:23 -0400 Subject: Fixing trivial warnings for libminui After fixing three trivial warnings, libminui builds cleanly with clang. Change-Id: Id7c6228295427a5ed3c774c5f90e88a28336c1f7 Author: Edwin Vane Reviewed-by: Kevin P Schoedel --- minui/resources.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/minui/resources.c b/minui/resources.c index b437a87cb..5e2062192 100644 --- a/minui/resources.c +++ b/minui/resources.c @@ -38,7 +38,7 @@ // need this functionality (it's used for gamma adjustment) so provide // a dummy implementation to satisfy the linker. double pow(double x, double y) { - return x; + return x * y; } int res_create_surface(const char* name, gr_surface* pSurface) { @@ -130,7 +130,7 @@ int res_create_surface(const char* name, gr_surface* pSurface) { alpha = 1; } - int y; + unsigned int y; if (channels == 3 || (channels == 1 && !alpha)) { for (y = 0; y < height; ++y) { unsigned char* pRow = pData + y * stride; -- cgit v1.2.3