This patch removes compiler warnings.
---
 WINGs/wcolorpanel.c        |  8 --------
 WINGs/wcolorwell.c         | 17 -----------------
 WINGs/wfilepanel.c         | 12 ++++--------
 WINGs/wprogressindicator.c |  2 ++
 WINGs/wsplitview.c         |  4 +++-
 5 files changed, 9 insertions(+), 34 deletions(-)

diff --git a/WINGs/wcolorpanel.c b/WINGs/wcolorpanel.c
index 26ca1fc..2977702 100644
--- a/WINGs/wcolorpanel.c
+++ b/WINGs/wcolorpanel.c
@@ -340,7 +340,6 @@ static void colorListPaintItem(WMList * lPtr, int index, 
Drawable d, char *text,
 static void colorListSelect(WMWidget * w, void *data);
 static void colorListColorMenuCallback(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 grayInit(W_ColorPanel * panel);
@@ -3238,8 +3237,6 @@ static void colorListListMenuCallback(WMWidget * w, void 
*data)
 
        switch (item) {
        case CLmenuAdd:
-               /* New Color List */
-               colorListListMenuNew(panel);
                break;
        case CLmenuRename:
                break;
@@ -3248,11 +3245,6 @@ static void colorListListMenuCallback(WMWidget * w, void 
*data)
        }
 }
 
-static void colorListListMenuNew(W_ColorPanel * panel)
-{
-
-}
-
 /*************** Panel Initialisation Functions *****************/
 
 static void wheelInit(W_ColorPanel * panel)
diff --git a/WINGs/wcolorwell.c b/WINGs/wcolorwell.c
index a4b94ff..ace85cd 100644
--- a/WINGs/wcolorwell.c
+++ b/WINGs/wcolorwell.c
@@ -111,21 +111,6 @@ static void updateColorCallback(void *self, void *data)
        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)
 {
        WMArray *types = WMCreateArray(1);
@@ -173,8 +158,6 @@ WMColorWell *WMCreateColorWell(WMWidget * parent)
 
        W_ResizeView(cPtr->view, DEFAULT_WIDTH, DEFAULT_HEIGHT);
 
-       WMAddNotificationObserver(activatedObserver, cPtr, 
_ColorWellActivatedNotification, NULL);
-
        cPtr->color = WMBlackColor(WMWidgetScreen(cPtr));
 
        WMAddNotificationObserver(colorChangedObserver, cPtr, 
WMColorPanelColorChangedNotification, NULL);
diff --git a/WINGs/wfilepanel.c b/WINGs/wfilepanel.c
index 10eea33..6dc8bab 100644
--- a/WINGs/wfilepanel.c
+++ b/WINGs/wfilepanel.c
@@ -470,11 +470,6 @@ static char *get_name_from_path(const char *path)
        return wstrdup(&(path[size]));
 }
 
-static Bool filterFileName(WMFilePanel * panel, const char *file, Bool 
isDirectory)
-{
-       return True;
-}
-
 #define CAST(item) (*((WMListItem**)item))
 static int comparer(const void *a, const void *b)
 {
@@ -535,9 +530,7 @@ static void listDirectoryOnColumn(WMFilePanel * panel, int 
column, const char *p
                        int isDirectory;
 
                        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);
                }
        }
        WMSortBrowserColumnWithComparer(bPtr, column, comparer);
@@ -738,6 +731,9 @@ out:
 
 static void goUnmount(WMWidget *widget, void *p_panel)
 {
+       /* Not implemented yet */
+       (void) widget;
+       (void) p_panel;
 }
 
 static void goFloppy(WMWidget *widget, void *p_panel)
diff --git a/WINGs/wprogressindicator.c b/WINGs/wprogressindicator.c
index 374df5e..61b4e2e 100644
--- a/WINGs/wprogressindicator.c
+++ b/WINGs/wprogressindicator.c
@@ -141,6 +141,8 @@ static void didResizeProgressIndicator(W_ViewDelegate * 
self, WMView * view)
 
        /* Parameter not used, but tell the compiler that it is ok */
        (void) self;
+       (void) width;
+       (void) height;
 
        assert(width > 0);
        assert(height > 0);
diff --git a/WINGs/wsplitview.c b/WINGs/wsplitview.c
index 38b2cb3..60d8601 100644
--- a/WINGs/wsplitview.c
+++ b/WINGs/wsplitview.c
@@ -775,10 +775,12 @@ void WMSetSplitViewVertical(WMSplitView * sPtr, Bool flag)
         */
 }
 
-int WMGetSplitViewDividerThickness(WMSplitView * sPtr)
+int WMGetSplitViewDividerThickness(WMSplitView *sPtr)
 {
        CHECK_CLASS(sPtr, WC_SplitView);
 
+       (void) sPtr;
+
        return (DIVIDER_THICKNESS);
 }
 
-- 
1.8.5.2


-- 
To unsubscribe, send mail to [email protected].

Reply via email to