From 518ed415d446437e06584cba1fad0881adc127be Mon Sep 17 00:00:00 2001 From: Niklas Mischkulnig Date: Thu, 9 Aug 2018 16:42:24 +0200 Subject: [PATCH] Warnings in tester --- test/images.c | 8 ++++---- test/page13.c | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/test/images.c b/test/images.c index df21b6eb..7b894d37 100644 --- a/test/images.c +++ b/test/images.c @@ -180,10 +180,10 @@ static const struct { int height; int stride; } files[] = { - { "andlabs_16x16test_24june2016.png", dat0, 16, 16, 64 }, - { "andlabs_32x32test_24june2016.png", dat1, 32, 32, 128 }, - { "tango-icon-theme-0.8.90_16x16_x-office-spreadsheet.png", dat2, 16, 16, 64 }, - { "tango-icon-theme-0.8.90_32x32_x-office-spreadsheet.png", dat3, 32, 32, 128 }, + { "andlabs_16x16test_24june2016.png", (void *) dat0, 16, 16, 64 }, + { "andlabs_32x32test_24june2016.png", (void *) dat1, 32, 32, 128 }, + { "tango-icon-theme-0.8.90_16x16_x-office-spreadsheet.png", (void *) dat2, 16, 16, 64 }, + { "tango-icon-theme-0.8.90_32x32_x-office-spreadsheet.png", (void *) dat3, 32, 32, 128 }, }; void appendImageNamed(uiImage *img, const char *name) diff --git a/test/page13.c b/test/page13.c index 5e6fd52c..17ab4f0b 100644 --- a/test/page13.c +++ b/test/page13.c @@ -119,11 +119,11 @@ uiBox *makePage13(void) uiBoxAppend(page13, uiControl(rb), 0); b = uiNewButton("Horizontal"); - uiButtonOnClicked(b, buttonClicked, uiNewHorizontalBox); + uiButtonOnClicked(b, buttonClicked, (void *) uiNewHorizontalBox); uiBoxAppend(page13, uiControl(b), 0); b = uiNewButton("Vertical"); - uiButtonOnClicked(b, buttonClicked, uiNewVerticalBox); + uiButtonOnClicked(b, buttonClicked, (void *) uiNewVerticalBox); uiBoxAppend(page13, uiControl(b), 0); f = newForm();