display: Fix warnings, make warnings as errors
Change-Id: I61f22765b04112be48e62135db930c415c9c7d37
diff --git a/libcopybit/copybit.cpp b/libcopybit/copybit.cpp
index b8118a0..977a3ab 100644
--- a/libcopybit/copybit.cpp
+++ b/libcopybit/copybit.cpp
@@ -229,10 +229,10 @@
#if DEBUG_MDP_ERRORS
struct mdp_blit_req_list const* l =
(struct mdp_blit_req_list const*)list;
- for (int i=0 ; i<l->count ; i++) {
+ for (unsigned int i=0 ; i<l->count ; i++) {
ALOGE("%d: src={w=%d, h=%d, f=%d, rect={%d,%d,%d,%d}}\n"
" dst={w=%d, h=%d, f=%d, rect={%d,%d,%d,%d}}\n"
- " flags=%08lx"
+ " flags=%08x"
,
i,
l->req[i].src.width,
@@ -391,8 +391,8 @@
}
}
- if (src_rect->l < 0 || src_rect->r > src->w ||
- src_rect->t < 0 || src_rect->b > src->h) {
+ if (src_rect->l < 0 || src_rect->r > (int)src->w ||
+ src_rect->t < 0 || src_rect->b > (int)src->h) {
// this is always invalid
ALOGE ("%s : Invalid source rectangle : src_rect l %d t %d r %d b %d",\
__FUNCTION__, src_rect->l, src_rect->t, src_rect->r, src_rect->b);