Fixing trivial warnings for libminui

After fixing three trivial warnings, libminui builds cleanly with clang.

Change-Id: Id7c6228295427a5ed3c774c5f90e88a28336c1f7
Author: Edwin Vane <edwin.vane@intel.com>
Reviewed-by: Kevin P Schoedel <kevin.p.schoedel@intel.com>
This commit is contained in:
Edwin Vane
2012-07-27 11:32:23 -04:00
parent 3733d2185b
commit edc5d17096
+2 -2
View File
@@ -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;