1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-19 12:28:22 +01:00

WINGs: Fix unused parameter compiler warnings in examples.

This commit is contained in:
Doug Torrance
2014-10-30 16:24:46 -05:00
committed by Carlos R. Mafra
parent fc35dfd277
commit a47f07cfc3
3 changed files with 6 additions and 0 deletions

View File

@@ -7,6 +7,7 @@ void showSelectedColor(void *self, void *cdata)
{ {
WMColorPanel *panel = (WMColorPanel *) self; WMColorPanel *panel = (WMColorPanel *) self;
(void) cdata;
printf("Selected Color: %s\n", WMGetColorRGBDescription(WMGetColorPanelColor(panel))); printf("Selected Color: %s\n", WMGetColorRGBDescription(WMGetColorPanelColor(panel)));
} }

View File

@@ -41,6 +41,8 @@ void show(WMWidget * self, void *data)
void quit(WMWidget * self, void *data) void quit(WMWidget * self, void *data)
{ {
(void) self;
(void) data;
exit(0); exit(0);
} }

View File

@@ -155,6 +155,9 @@ static void resizeObserver(void *self, WMNotification * notif)
WMSize size = WMGetViewSize(WMWidgetView(win)); WMSize size = WMGetViewSize(WMWidgetView(win));
int x, y; int x, y;
(void) self;
(void) notif;
WinSize = size.width; WinSize = size.width;
for (y = 0; y < Size; y++) { for (y = 0; y < Size; y++) {
for (x = 0; x < Size; x++) { for (x = 0; x < Size; x++) {