Fix void* warning

"Format specifies type 'void *' but the argument has type 'uiWindow *' (aka 'struct uiWindow *')"
This commit is contained in:
Kevin Wojniak 2016-06-10 21:23:13 -07:00
parent 04b83a2680
commit a18e3c71b9
2 changed files with 2 additions and 2 deletions

View File

@ -82,7 +82,7 @@ int main(int argc, char *argv[])
w = newWindow("Main Window", 320, 240, 1);
uiWindowOnClosing(w, onClosing, NULL);
printf("main window %p\n", w);
printf("main window %p\n", (void*)w);
uiOnShouldQuit(onShouldQuit, w);

View File

@ -47,7 +47,7 @@ static void forceOff(uiMenuItem *item, uiWindow *w, void *data)
static void whatWindow(uiMenuItem *item, uiWindow *w, void *data)
{
printf("menu item clicked on window %p\n", w);
printf("menu item clicked on window %p\n", (void*)w);
}
void initMenus(void)