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

WINGS: removed compiler warnings.

This patch removes compiler warnings.
This commit is contained in:
Rodolfo García Peñas (kix)
2014-01-31 21:31:26 +01:00
committed by Carlos R. Mafra
parent 201ea95e9d
commit 3b97d33d0a
5 changed files with 9 additions and 34 deletions

View File

@@ -340,7 +340,6 @@ static void colorListPaintItem(WMList * lPtr, int index, Drawable d, char *text,
static void colorListSelect(WMWidget * w, void *data); static void colorListSelect(WMWidget * w, void *data);
static void colorListColorMenuCallback(WMWidget * w, void *data); static void colorListColorMenuCallback(WMWidget * w, void *data);
static void colorListListMenuCallback(WMWidget * w, void *data); static void colorListListMenuCallback(WMWidget * w, void *data);
static void colorListListMenuNew(W_ColorPanel * panel);
static void wheelInit(W_ColorPanel * panel); static void wheelInit(W_ColorPanel * panel);
static void grayInit(W_ColorPanel * panel); static void grayInit(W_ColorPanel * panel);
@@ -3238,8 +3237,6 @@ static void colorListListMenuCallback(WMWidget * w, void *data)
switch (item) { switch (item) {
case CLmenuAdd: case CLmenuAdd:
/* New Color List */
colorListListMenuNew(panel);
break; break;
case CLmenuRename: case CLmenuRename:
break; break;
@@ -3248,11 +3245,6 @@ static void colorListListMenuCallback(WMWidget * w, void *data)
} }
} }
static void colorListListMenuNew(W_ColorPanel * panel)
{
}
/*************** Panel Initialisation Functions *****************/ /*************** Panel Initialisation Functions *****************/
static void wheelInit(W_ColorPanel * panel) static void wheelInit(W_ColorPanel * panel)

View File

@@ -111,21 +111,6 @@ static void updateColorCallback(void *self, void *data)
WMPostNotificationName(WMColorWellDidChangeNotification, cPtr, NULL); WMPostNotificationName(WMColorWellDidChangeNotification, cPtr, NULL);
} }
static void activatedObserver(void *data, WMNotification * notification)
{
/*
WMColorWell *cPtr = (WMColorWell*)data;
if (!cPtr->flags.active || WMGetNotificationObject(notification) == cPtr)
return;
W_SetViewBackgroundColor(cPtr->view, WMWidgetScreen(cPtr)->gray);
paintColorWell(cPtr);
cPtr->flags.active = 0;
*/
}
static WMArray *getXdndTypeArray(void) static WMArray *getXdndTypeArray(void)
{ {
WMArray *types = WMCreateArray(1); WMArray *types = WMCreateArray(1);
@@ -173,8 +158,6 @@ WMColorWell *WMCreateColorWell(WMWidget * parent)
W_ResizeView(cPtr->view, DEFAULT_WIDTH, DEFAULT_HEIGHT); W_ResizeView(cPtr->view, DEFAULT_WIDTH, DEFAULT_HEIGHT);
WMAddNotificationObserver(activatedObserver, cPtr, _ColorWellActivatedNotification, NULL);
cPtr->color = WMBlackColor(WMWidgetScreen(cPtr)); cPtr->color = WMBlackColor(WMWidgetScreen(cPtr));
WMAddNotificationObserver(colorChangedObserver, cPtr, WMColorPanelColorChangedNotification, NULL); WMAddNotificationObserver(colorChangedObserver, cPtr, WMColorPanelColorChangedNotification, NULL);

View File

@@ -470,11 +470,6 @@ static char *get_name_from_path(const char *path)
return wstrdup(&(path[size])); return wstrdup(&(path[size]));
} }
static Bool filterFileName(WMFilePanel * panel, const char *file, Bool isDirectory)
{
return True;
}
#define CAST(item) (*((WMListItem**)item)) #define CAST(item) (*((WMListItem**)item))
static int comparer(const void *a, const void *b) static int comparer(const void *a, const void *b)
{ {
@@ -535,8 +530,6 @@ static void listDirectoryOnColumn(WMFilePanel * panel, int column, const char *p
int isDirectory; int isDirectory;
isDirectory = S_ISDIR(stat_buf.st_mode); isDirectory = S_ISDIR(stat_buf.st_mode);
if (filterFileName(panel, dentry->d_name, isDirectory))
WMInsertBrowserItem(bPtr, column, -1, dentry->d_name, isDirectory); WMInsertBrowserItem(bPtr, column, -1, dentry->d_name, isDirectory);
} }
} }
@@ -738,6 +731,9 @@ out:
static void goUnmount(WMWidget *widget, void *p_panel) static void goUnmount(WMWidget *widget, void *p_panel)
{ {
/* Not implemented yet */
(void) widget;
(void) p_panel;
} }
static void goFloppy(WMWidget *widget, void *p_panel) static void goFloppy(WMWidget *widget, void *p_panel)

View File

@@ -141,6 +141,8 @@ static void didResizeProgressIndicator(W_ViewDelegate * self, WMView * view)
/* Parameter not used, but tell the compiler that it is ok */ /* Parameter not used, but tell the compiler that it is ok */
(void) self; (void) self;
(void) width;
(void) height;
assert(width > 0); assert(width > 0);
assert(height > 0); assert(height > 0);

View File

@@ -779,6 +779,8 @@ int WMGetSplitViewDividerThickness(WMSplitView * sPtr)
{ {
CHECK_CLASS(sPtr, WC_SplitView); CHECK_CLASS(sPtr, WC_SplitView);
(void) sPtr;
return (DIVIDER_THICKNESS); return (DIVIDER_THICKNESS);
} }