diff options
author | Andrew Hannam <andrewh@inmarket.com.au> | 2012-11-17 18:24:24 +1000 |
---|---|---|
committer | Andrew Hannam <andrewh@inmarket.com.au> | 2012-11-17 18:24:24 +1000 |
commit | d1836d49fee08eaa08a837e9f6176f3d41fbb735 (patch) | |
tree | 4d830f4fc2764b2dfa83f5b3b20f6eae4b50fb89 /src/gwin.c | |
parent | bbb2d434c4d5ebdea76a15ddbf5db688d35850c6 (diff) | |
download | uGFX-d1836d49fee08eaa08a837e9f6176f3d41fbb735.tar.gz uGFX-d1836d49fee08eaa08a837e9f6176f3d41fbb735.tar.bz2 uGFX-d1836d49fee08eaa08a837e9f6176f3d41fbb735.zip |
Fix compiler warnings
Fix compiler warnings in gwin.c
Diffstat (limited to 'src/gwin.c')
-rw-r--r-- | src/gwin.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -113,7 +113,7 @@ void gwinDestroyWindow(GHandle gh) { case GW_BUTTON:
if ((gh->flags & GBTN_FLG_ALLOCTXT)) {
gh->flags &= ~GBTN_FLG_ALLOCTXT; // To be sure, to be sure
- chHeapFree(((GButtonObject *)gh)->txt);
+ chHeapFree((void *)((GButtonObject *)gh)->txt);
}
break;
#endif
@@ -124,7 +124,7 @@ void gwinDestroyWindow(GHandle gh) { // Clean up the structure
if (gh->flags & GWIN_FLG_DYNAMIC) {
gh->flags = 0; // To be sure, to be sure
- chHeapFree(gh);
+ chHeapFree((void *)gh);
}
}
@@ -799,7 +799,7 @@ void gwinSetButtonText(GHandle gh, const char *txt, bool_t useAlloc) { if ((gh->flags & GBTN_FLG_ALLOCTXT)) {
gh->flags &= ~GBTN_FLG_ALLOCTXT;
if (gbw->txt) {
- chHeapFree(gbw->txt);
+ chHeapFree((void *)gbw->txt);
gbw->txt = "";
}
}
|