compiler warnings

ugfx_release_2.6
Joel Bodenmann 2013-07-28 01:15:36 +02:00
parent 40611e264d
commit 9edb1dab8b
1 changed files with 11 additions and 11 deletions

View File

@ -78,7 +78,7 @@ static void gwinListDefaultDraw(GWidgetObject* gw, void* param) {
(void)param; (void)param;
uint16_t i, fheight; uint16_t i, fheight;
gfxQueueASyncItem* qi; const gfxQueueASyncItem* qi;
const GColorSet* pcol; const GColorSet* pcol;
fheight = gdispGetFontMetric(gwinGetDefaultFont(), fontHeight); fheight = gdispGetFontMetric(gwinGetDefaultFont(), fontHeight);
@ -103,7 +103,7 @@ static void gwinListDefaultDraw(GWidgetObject* gw, void* param) {
(void) x; (void) x;
uint16_t i, item_id, item_height; uint16_t i, item_id, item_height;
gfxQueueASyncItem* qi; const gfxQueueASyncItem* qi;
item_height = gdispGetFontMetric(gwinGetDefaultFont(), fontHeight) + 2*BORDER; item_height = gdispGetFontMetric(gwinGetDefaultFont(), fontHeight) + 2*BORDER;
@ -130,7 +130,7 @@ static void gwinListDefaultDraw(GWidgetObject* gw, void* param) {
#endif #endif
static void _destroy(GHandle gh) { static void _destroy(GHandle gh) {
gfxQueueASyncItem* qi; const gfxQueueASyncItem* qi;
while((qi = gfxQueueASyncGet(&((GListObject *)gh)->list_head))) while((qi = gfxQueueASyncGet(&((GListObject *)gh)->list_head)))
gfxFree((void *)qi); gfxFree((void *)qi);
@ -216,7 +216,7 @@ int gwinListAddItem(GHandle gh, const char* item_name, bool_t useAlloc) {
} }
char* gwinListItemGetText(GHandle gh, int item) { char* gwinListItemGetText(GHandle gh, int item) {
gfxQueueASyncItem* qi; const gfxQueueASyncItem* qi;
uint16_t i; uint16_t i;
// is it a valid handle? // is it a valid handle?
@ -237,7 +237,7 @@ char* gwinListItemGetText(GHandle gh, int item) {
} }
int gwinListFindText(GHandle gh, const char* text) { int gwinListFindText(GHandle gh, const char* text) {
gfxQueueASyncItem* qi; const gfxQueueASyncItem* qi;
uint16_t i; uint16_t i;
// is it a valid handle? // is it a valid handle?
@ -259,7 +259,7 @@ int gwinListFindText(GHandle gh, const char* text) {
} }
int gwinListGetSelected(GHandle gh) { int gwinListGetSelected(GHandle gh) {
gfxQueueASyncItem *qi; const gfxQueueASyncItem *qi;
int i; int i;
// is it a valid handle? // is it a valid handle?
@ -275,7 +275,7 @@ int gwinListGetSelected(GHandle gh) {
} }
void gwinListItemSetParam(GHandle gh, int item, uint16_t param) { void gwinListItemSetParam(GHandle gh, int item, uint16_t param) {
gfxQueueASyncItem* qi; const gfxQueueASyncItem* qi;
uint16_t i; uint16_t i;
// is it a valid handle? // is it a valid handle?
@ -296,14 +296,14 @@ void gwinListItemSetParam(GHandle gh, int item, uint16_t param) {
} }
void gwinListDeleteAll(GHandle gh) { void gwinListDeleteAll(GHandle gh) {
gfxQueueASyncItem* qi; const gfxQueueASyncItem* qi;
while((qi = gfxQueueASyncGet(&((GListObject *)gh)->list_head))) while((qi = gfxQueueASyncGet(&((GListObject *)gh)->list_head)))
gfxFree((void *)qi); gfxFree((void *)qi);
} }
void gwinListItemDelete(GHandle gh, int item) { void gwinListItemDelete(GHandle gh, int item) {
gfxQueueASyncItem* qi; const gfxQueueASyncItem* qi;
uint16_t i; uint16_t i;
// is it a valid handle? // is it a valid handle?
@ -326,7 +326,7 @@ void gwinListItemDelete(GHandle gh, int item) {
} }
uint16_t gwinListItemGetParam(GHandle gh, int item) { uint16_t gwinListItemGetParam(GHandle gh, int item) {
gfxQueueASyncItem* qi; const gfxQueueASyncItem* qi;
uint16_t i; uint16_t i;
// is it a valid handle? // is it a valid handle?
@ -347,7 +347,7 @@ uint16_t gwinListItemGetParam(GHandle gh, int item) {
} }
bool_t gwinListItemIsSelected(GHandle gh, int item) { bool_t gwinListItemIsSelected(GHandle gh, int item) {
gfxQueueASyncItem* qi; const gfxQueueASyncItem* qi;
uint16_t i; uint16_t i;
// is it a valid handle? // is it a valid handle?