This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project wmaker-crm.git.

The branch, next has been updated
       via  34da09a0a3d4aadb979d9bbaa010f365c66afde7 (commit)
       via  21dfd29b1b1919b3019ce700ee6ab793b08a6fa1 (commit)
       via  ce1513f89f798defc6b1c0b7dcada26b95d3bc17 (commit)
       via  fb9765c0f80dc1f2c086d846deb3847a95cf6be7 (commit)
       via  def69435b1602969e5d59723a9aaea3b3195e38f (commit)
       via  f5f367841bacd64fa90135189b71a0e4f70d9859 (commit)
       via  e4664c6492168f068145f994d1f19e222c335f61 (commit)
       via  ca658beeb54dd25937965766bad1aabef5f03d08 (commit)
       via  452fe4dc895cb6f99a99267512275cc1a2a8c789 (commit)
       via  1f24970160bba52e3f98b0228ccde0049c9f8d7d (commit)
       via  d862310c81b8ff7104be0faf1e09d3ad69cf3f3d (commit)
       via  93767d399d6e1ef3b81123fb9b7d7ff63cd95e17 (commit)
       via  6909ee09769def14c3baa44a1ef970ceb5cc301e (commit)
       via  066d0cdef7479f9b12f2a825949bd4ec2dae8fa9 (commit)
       via  63037bf42683abcf9b0472b02720e838cffd3b4c (commit)
       via  bc5985e824abb1dcf2f9aff640402b0d73d5afcb (commit)
       via  dd82c46335bbea64fe5767f8cff8ec571eb0db8f (commit)
       via  66f6817966aefc9d2091777b2a37616fbd60b2db (commit)
       via  cd78f11abc4f3d3f47d96c168a336ad796853c91 (commit)
      from  2757713637fa18ca70ff9dbc55bf8c54c9d46a2c (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://repo.or.cz/w/wmaker-crm.git/commit/34da09a0a3d4aadb979d9bbaa010f365c66afde7

commit 34da09a0a3d4aadb979d9bbaa010f365c66afde7
Author: Christophe CURIS <[email protected]>
Date:   Fri Nov 1 16:07:03 2013 +0100

    WPrefs: Removed unused argument to function 'OpenExtractPanelFor'
    
    Signed-off-by: Christophe CURIS <[email protected]>

diff --git a/WPrefs.app/Appearance.c b/WPrefs.app/Appearance.c
index 64a83d5..1fa9e85 100644
--- a/WPrefs.app/Appearance.c
+++ b/WPrefs.app/Appearance.c
@@ -133,7 +133,7 @@ static void changePage(WMWidget * w, void *data);
 
 static void changeColorPage(WMWidget * w, void *data);
 
-static void OpenExtractPanelFor(_Panel * panel, const char *path);
+static void OpenExtractPanelFor(_Panel *panel);
 
 static void changedTabItem(struct WMTabViewDelegate *self, WMTabView * 
tabView, WMTabViewItem * item);
 
@@ -1060,7 +1060,7 @@ static void extractTexture(WMWidget * w, void *data)
        if (WMRunModalFilePanelForDirectory(opanel, panel->parent, 
wgethomedir(), _("Select File"), NULL)) {
                path = WMGetFilePanelFileName(opanel);
 
-               OpenExtractPanelFor(panel, path);
+               OpenExtractPanelFor(panel);
 
                wfree(path);
        }
@@ -2093,7 +2093,7 @@ typedef struct ExtractPanel {
        WMButton *extrB;
 } ExtractPanel;
 
-static void OpenExtractPanelFor(_Panel * panel, const char *path)
+static void OpenExtractPanelFor(_Panel *panel)
 {
        ExtractPanel *epanel;
        WMColor *color;

http://repo.or.cz/w/wmaker-crm.git/commit/21dfd29b1b1919b3019ce700ee6ab793b08a6fa1

commit 21dfd29b1b1919b3019ce700ee6ab793b08a6fa1
Author: Christophe CURIS <[email protected]>
Date:   Fri Nov 1 16:07:02 2013 +0100

    WPrefs: Disable compilation for code that is 'not_yet_fully_implemented'
    
    These two files provides configuration panels that were never enabled
    because they have not yet reached a usable state.
    
    With this patch, we do not compile them anymore to avoid useless stuff in
    the program.
    
    Signed-off-by: Christophe CURIS <[email protected]>

diff --git a/WPrefs.app/Makefile.am b/WPrefs.app/Makefile.am
index 22a9628..40401b9 100644
--- a/WPrefs.app/Makefile.am
+++ b/WPrefs.app/Makefile.am
@@ -23,7 +23,6 @@ WPrefs_SOURCES =      Focus.c         FontSimple.c    Icons.c 
-       KeyboardSettings.c      KeyboardShortcuts.c     Menu.c          
MenuPreferences.c @@ -32,7 +31,6 @@ WPrefs_SOURCES =    Preferences.c   
TexturePanel.c          TexturePanel.h -        Themes.c        
WindowHandling.c        Workspace.c     double.c @@ -40,6 +38,11 @@ 
WPrefs_SOURCES =    editmenu.h      xmodifier.c
 
+# not_yet_fully_implemented
+#WPrefs_SOURCES += +#  KeyboardSettings.c +#   Themes.c
+
 AM_CFLAGS =
 
 AM_CPPFLAGS = -DLOCALEDIR="$(NLSDIR)" -DRESOURCE_PATH="$(wpdatadir)" 
-DWMAKER_RESOURCE_PATH="$(pkgdatadir)" 
http://repo.or.cz/w/wmaker-crm.git/commit/ce1513f89f798defc6b1c0b7dcada26b95d3bc17

commit ce1513f89f798defc6b1c0b7dcada26b95d3bc17
Author: Christophe CURIS <[email protected]>
Date:   Fri Nov 1 16:07:01 2013 +0100

    WPrefs: Removed unused Screen argument to the 'Init*' functions
    
    The functions that create the different configuration panels were taking
    the screen structure as argument, but it turns out that none of them
    actually need it.
    
    We just remove the argument to make code simpler and easier to maintain.
    
    Signed-off-by: Christophe CURIS <[email protected]>

diff --git a/WPrefs.app/Appearance.c b/WPrefs.app/Appearance.c
index 11f90c7..64a83d5 100644
--- a/WPrefs.app/Appearance.c
+++ b/WPrefs.app/Appearance.c
@@ -2060,7 +2060,7 @@ static void prepareForClose(_Panel * panel)
        WMSynchronizeUserDefaults(udb);
 }
 
-Panel *InitAppearance(WMScreen *scr, WMWidget *parent)
+Panel *InitAppearance(WMWidget *parent)
 {
        _Panel *panel;
 
diff --git a/WPrefs.app/Configurations.c b/WPrefs.app/Configurations.c
index 55b1537..4fdc777 100644
--- a/WPrefs.app/Configurations.c
+++ b/WPrefs.app/Configurations.c
@@ -425,7 +425,7 @@ static void storeData(_Panel *panel)
        SetIntegerForKey(WMGetSliderValue(panel->dithS), "ColormapSize");
 }
 
-Panel *InitConfigurations(WMScreen *scr, WMWidget *parent)
+Panel *InitConfigurations(WMWidget *parent)
 {
        _Panel *panel;
 
diff --git a/WPrefs.app/Docks.c b/WPrefs.app/Docks.c
index a109b70..91fa338 100644
--- a/WPrefs.app/Docks.c
+++ b/WPrefs.app/Docks.c
@@ -302,7 +302,7 @@ static void showData(_Panel *panel)
        }
 }
 
-Panel *InitDocks(WMScreen *scr, WMWidget *parent)
+Panel *InitDocks(WMWidget *parent)
 {
        _Panel *panel;
 
diff --git a/WPrefs.app/Expert.c b/WPrefs.app/Expert.c
index e170bbd..559f8cb 100644
--- a/WPrefs.app/Expert.c
+++ b/WPrefs.app/Expert.c
@@ -165,7 +165,7 @@ static void storeDefaults(_Panel * panel)
        }
 }
 
-Panel *InitExpert(WMScreen * scr, WMWidget * parent)
+Panel *InitExpert(WMWidget *parent)
 {
        _Panel *panel;
 
diff --git a/WPrefs.app/Focus.c b/WPrefs.app/Focus.c
index 0a0916d..294c679 100644
--- a/WPrefs.app/Focus.c
+++ b/WPrefs.app/Focus.c
@@ -333,7 +333,7 @@ static void createPanel(Panel * p)
        showData(panel);
 }
 
-Panel *InitFocus(WMScreen *scr, WMWidget *parent)
+Panel *InitFocus(WMWidget *parent)
 {
        _Panel *panel;
 
diff --git a/WPrefs.app/FontSimple.c b/WPrefs.app/FontSimple.c
index 1bcb277..ebcbaf2 100644
--- a/WPrefs.app/FontSimple.c
+++ b/WPrefs.app/FontSimple.c
@@ -716,7 +716,7 @@ static void createPanel(Panel * p)
        showData(panel);
 }
 
-Panel *InitFontSimple(WMScreen * scr, WMWidget * parent)
+Panel *InitFontSimple(WMWidget *parent)
 {
        _Panel *panel;
 
diff --git a/WPrefs.app/Icons.c b/WPrefs.app/Icons.c
index 98352a1..5ebd586 100644
--- a/WPrefs.app/Icons.c
+++ b/WPrefs.app/Icons.c
@@ -320,7 +320,7 @@ static void storeData(_Panel * panel)
                SetStringForKey("none", "IconificationStyle");
 }
 
-Panel *InitIcons(WMScreen * scr, WMWidget * parent)
+Panel *InitIcons(WMWidget *parent)
 {
        _Panel *panel;
 
diff --git a/WPrefs.app/KeyboardSettings.c b/WPrefs.app/KeyboardSettings.c
index 3dc27eb..9c4b94d 100644
--- a/WPrefs.app/KeyboardSettings.c
+++ b/WPrefs.app/KeyboardSettings.c
@@ -155,7 +155,7 @@ static void createPanel(Panel * p)
        WMMapSubwidgets(panel->box);
 }
 
-Panel *InitKeyboardSettings(WMScreen * scr, WMWidget * parent)
+Panel *InitKeyboardSettings(WMWidget *parent)
 {
        _Panel *panel;
 
diff --git a/WPrefs.app/KeyboardShortcuts.c b/WPrefs.app/KeyboardShortcuts.c
index 8c9cafa..d71d4bf 100644
--- a/WPrefs.app/KeyboardShortcuts.c
+++ b/WPrefs.app/KeyboardShortcuts.c
@@ -581,7 +581,7 @@ static void storeData(_Panel * panel)
        }
 }
 
-Panel *InitKeyboardShortcuts(WMScreen * scr, WMWidget * parent)
+Panel *InitKeyboardShortcuts(WMWidget *parent)
 {
        _Panel *panel;
 
diff --git a/WPrefs.app/Menu.c b/WPrefs.app/Menu.c
index 55a1d56..7d1961c 100644
--- a/WPrefs.app/Menu.c
+++ b/WPrefs.app/Menu.c
@@ -1734,7 +1734,7 @@ static void hideMenus(_Panel * panel)
                WEditMenuHide(panel->menu);
 }
 
-Panel *InitMenu(WMScreen * scr, WMWidget * parent)
+Panel *InitMenu(WMWidget *parent)
 {
        _Panel *panel;
 
diff --git a/WPrefs.app/MenuPreferences.c b/WPrefs.app/MenuPreferences.c
index c93ee30..d15daf1 100644
--- a/WPrefs.app/MenuPreferences.c
+++ b/WPrefs.app/MenuPreferences.c
@@ -213,7 +213,7 @@ static void createPanel(Panel * p)
        showData(panel);
 }
 
-Panel *InitMenuPreferences(WMScreen * scr, WMWidget * parent)
+Panel *InitMenuPreferences(WMWidget *parent)
 {
        _Panel *panel;
 
diff --git a/WPrefs.app/MouseSettings.c b/WPrefs.app/MouseSettings.c
index 4ec2323..5f5f9b5 100644
--- a/WPrefs.app/MouseSettings.c
+++ b/WPrefs.app/MouseSettings.c
@@ -774,7 +774,7 @@ static void storeData(_Panel * panel)
        wfree(tmp);
 }
 
-Panel *InitMouseSettings(WMScreen * scr, WMWidget * parent)
+Panel *InitMouseSettings(WMWidget *parent)
 {
        _Panel *panel;
 
diff --git a/WPrefs.app/Paths.c b/WPrefs.app/Paths.c
index 4dc8d63..86f27a4 100644
--- a/WPrefs.app/Paths.c
+++ b/WPrefs.app/Paths.c
@@ -305,7 +305,7 @@ static void createPanel(Panel * p)
        showData(panel);
 }
 
-Panel *InitPaths(WMScreen * scr, WMWidget * parent)
+Panel *InitPaths(WMWidget *parent)
 {
        _Panel *panel;
 
diff --git a/WPrefs.app/Preferences.c b/WPrefs.app/Preferences.c
index 3ab7d8e..7d77213 100644
--- a/WPrefs.app/Preferences.c
+++ b/WPrefs.app/Preferences.c
@@ -326,7 +326,7 @@ static void createPanel(Panel * p)
        showData(panel);
 }
 
-Panel *InitPreferences(WMScreen * scr, WMWidget * parent)
+Panel *InitPreferences(WMWidget *parent)
 {
        _Panel *panel;
 
diff --git a/WPrefs.app/Themes.c b/WPrefs.app/Themes.c
index 342edb0..a8ce4d1 100644
--- a/WPrefs.app/Themes.c
+++ b/WPrefs.app/Themes.c
@@ -202,7 +202,7 @@ static void storeData(_Panel * panel)
 {
 }
 
-Panel *InitThemes(WMScreen * scr, WMWidget * parent)
+Panel *InitThemes(WMWidget *parent)
 {
        _Panel *panel;
 
diff --git a/WPrefs.app/WPrefs.c b/WPrefs.app/WPrefs.c
index f174a7d..8f223bc 100644
--- a/WPrefs.app/WPrefs.c
+++ b/WPrefs.app/WPrefs.c
@@ -645,34 +645,34 @@ void Initialize(WMScreen * scr)
 
        WMSetLabelText(WPrefs.statusL, _("Initializing configuration 
panels..."));
 
-       InitFocus(scr, WPrefs.banner);
-       InitWindowHandling(scr, WPrefs.banner);
+       InitFocus(WPrefs.banner);
+       InitWindowHandling(WPrefs.banner);
 
-       InitMenuPreferences(scr, WPrefs.banner);
-       InitIcons(scr, WPrefs.banner);
-       InitPreferences(scr, WPrefs.banner);
+       InitMenuPreferences(WPrefs.banner);
+       InitIcons(WPrefs.banner);
+       InitPreferences(WPrefs.banner);
 
-       InitPaths(scr, WPrefs.banner);
-       InitDocks(scr, WPrefs.banner);
-       InitWorkspace(scr, WPrefs.banner);
-       InitConfigurations(scr, WPrefs.banner);
+       InitPaths(WPrefs.banner);
+       InitDocks(WPrefs.banner);
+       InitWorkspace(WPrefs.banner);
+       InitConfigurations(WPrefs.banner);
 
-       InitMenu(scr, WPrefs.banner);
+       InitMenu(WPrefs.banner);
 
 #ifdef not_yet_fully_implemented
-       InitKeyboardSettings(scr, WPrefs.banner);
+       InitKeyboardSettings(WPrefs.banner);
 #endif
-       InitKeyboardShortcuts(scr, WPrefs.banner);
-       InitMouseSettings(scr, WPrefs.banner);
+       InitKeyboardShortcuts(WPrefs.banner);
+       InitMouseSettings(WPrefs.banner);
 
-       InitAppearance(scr, WPrefs.banner);
+       InitAppearance(WPrefs.banner);
 
-       InitFontSimple(scr, WPrefs.banner);
+       InitFontSimple(WPrefs.banner);
 
 #ifdef not_yet_fully_implemented
-       InitThemes(scr, WPrefs.banner);
+       InitThemes(WPrefs.banner);
 #endif
-       InitExpert(scr, WPrefs.banner);
+       InitExpert(WPrefs.banner);
 
        WMRealizeWidget(WPrefs.scrollV);
 
diff --git a/WPrefs.app/WPrefs.h b/WPrefs.app/WPrefs.h
index 824010c..1db3a9b 100644
--- a/WPrefs.app/WPrefs.h
+++ b/WPrefs.app/WPrefs.h
@@ -136,21 +136,21 @@ int ModifierFromKey(Display * dpy, const char *key);
 void Initialize(WMScreen *scr);
 
 /* in alphabetical order - in case you'd want to add one */
-Panel *InitAppearance(WMScreen *scr, WMWidget *parent);
-Panel *InitConfigurations(WMScreen *scr, WMWidget *parent);
-Panel *InitDocks(WMScreen *scr, WMWidget *parent);
-Panel *InitExpert(WMScreen *scr, WMWidget *parent);
-Panel *InitFocus(WMScreen *scr, WMWidget *parent);
-Panel *InitFontSimple(WMScreen *scr, WMWidget *parent);
-Panel *InitIcons(WMScreen *scr, WMWidget *parent);
-Panel *InitKeyboardShortcuts(WMScreen *scr, WMWidget *parent);
-Panel *InitMenu(WMScreen *scr, WMWidget *parent);
-Panel *InitMenuPreferences(WMScreen *scr, WMWidget *parent);
-Panel *InitMouseSettings(WMScreen *scr, WMWidget *parent);
-Panel *InitPaths(WMScreen *scr, WMWidget *parent);
-Panel *InitPreferences(WMScreen *scr, WMWidget *parent);
-Panel *InitWindowHandling(WMScreen *scr, WMWidget *parent);
-Panel *InitWorkspace(WMScreen *scr, WMWidget *parent);
+Panel *InitAppearance(WMWidget *parent);
+Panel *InitConfigurations(WMWidget *parent);
+Panel *InitDocks(WMWidget *parent);
+Panel *InitExpert(WMWidget *parent);
+Panel *InitFocus(WMWidget *parent);
+Panel *InitFontSimple(WMWidget *parent);
+Panel *InitIcons(WMWidget *parent);
+Panel *InitKeyboardShortcuts(WMWidget *parent);
+Panel *InitMenu(WMWidget *parent);
+Panel *InitMenuPreferences(WMWidget *parent);
+Panel *InitMouseSettings(WMWidget *parent);
+Panel *InitPaths(WMWidget *parent);
+Panel *InitPreferences(WMWidget *parent);
+Panel *InitWindowHandling(WMWidget *parent);
+Panel *InitWorkspace(WMWidget *parent);
 
 
 #define FRAME_TOP      105
diff --git a/WPrefs.app/WindowHandling.c b/WPrefs.app/WindowHandling.c
index dee1543..4d514d9 100644
--- a/WPrefs.app/WindowHandling.c
+++ b/WPrefs.app/WindowHandling.c
@@ -515,7 +515,7 @@ static void undo(_Panel * panel)
        showData(panel);
 }
 
-Panel *InitWindowHandling(WMScreen * scr, WMWidget * parent)
+Panel *InitWindowHandling(WMWidget *parent)
 {
        _Panel *panel;
 
diff --git a/WPrefs.app/Workspace.c b/WPrefs.app/Workspace.c
index d84a393..862d2db 100644
--- a/WPrefs.app/Workspace.c
+++ b/WPrefs.app/Workspace.c
@@ -215,7 +215,7 @@ static void storeData(_Panel * panel)
                        "WorkspaceNameDisplayPosition");
 }
 
-Panel *InitWorkspace(WMScreen * scr, WMWidget * parent)
+Panel *InitWorkspace(WMWidget *parent)
 {
        _Panel *panel;
 

http://repo.or.cz/w/wmaker-crm.git/commit/fb9765c0f80dc1f2c086d846deb3847a95cf6be7

commit fb9765c0f80dc1f2c086d846deb3847a95cf6be7
Author: Christophe CURIS <[email protected]>
Date:   Fri Nov 1 16:07:00 2013 +0100

    WPrefs: Removed unused function 'DestroyTexturePanel'
    
    This function was never used and did nothing anyway, so it can be removed.
    
    Signed-off-by: Christophe CURIS <[email protected]>

diff --git a/WPrefs.app/TexturePanel.c b/WPrefs.app/TexturePanel.c
index 3101a16..9f2b86a 100644
--- a/WPrefs.app/TexturePanel.c
+++ b/WPrefs.app/TexturePanel.c
@@ -714,11 +714,6 @@ static void changeTypeCallback(WMWidget * w, void *data)
  * Public functions
  *--------------------------------------------------------------------------
  */
-void DestroyTexturePanel(TexturePanel * panel)
-{
-
-}
-
 void ShowTexturePanel(TexturePanel * panel)
 {
        Display *dpy = WMScreenDisplay(WMWidgetScreen(panel->win));
diff --git a/WPrefs.app/TexturePanel.h b/WPrefs.app/TexturePanel.h
index 45f6956..05b8a48 100644
--- a/WPrefs.app/TexturePanel.h
+++ b/WPrefs.app/TexturePanel.h
@@ -29,8 +29,6 @@ typedef struct _TexturePanel TexturePanel;
 
 TexturePanel *CreateTexturePanel(WMWindow *keyWindow);
 
-void DestroyTexturePanel(TexturePanel *panel);
-
 void ShowTexturePanel(TexturePanel *panel);
 
 void HideTexturePanel(TexturePanel *panel);

http://repo.or.cz/w/wmaker-crm.git/commit/def69435b1602969e5d59723a9aaea3b3195e38f

commit def69435b1602969e5d59723a9aaea3b3195e38f
Author: Christophe CURIS <[email protected]>
Date:   Fri Nov 1 16:06:59 2013 +0100

    WPrefs: Removed unused screen argument in functions 'Init*'
    
    The screen argument was not used in 'InitDoubleTest', 'InitEditMenuItem'
    and 'InitEditMenu', so remove it to make the code simpler and avoid
    compiler warning.
    
    Signed-off-by: Christophe CURIS <[email protected]>

diff --git a/WPrefs.app/double.c b/WPrefs.app/double.c
index 56e33f8..2626900 100644
--- a/WPrefs.app/double.c
+++ b/WPrefs.app/double.c
@@ -33,7 +33,7 @@ static W_Class DoubleTestClass = 0;
  * Initializer for our widget. Must be called before creating any
  * instances of the widget.
  */
-W_Class InitDoubleTest(WMScreen * scr)
+W_Class InitDoubleTest(void)
 {
        /* register our widget with WINGs and get our widget class ID */
        if (!DoubleTestClass) {
@@ -51,7 +51,7 @@ DoubleTest *CreateDoubleTest(WMWidget * parent, const char 
*text)
        DoubleTest *dPtr;
 
        if (!DoubleTestClass)
-               InitDoubleTest(WMWidgetScreen(parent));
+               InitDoubleTest();
 
        /* allocate some storage for our new widget instance */
        dPtr = wmalloc(sizeof(DoubleTest));
diff --git a/WPrefs.app/editmenu.c b/WPrefs.app/editmenu.c
index f562209..69cb38f 100644
--- a/WPrefs.app/editmenu.c
+++ b/WPrefs.app/editmenu.c
@@ -105,7 +105,7 @@ static void handleItemClick(XEvent * event, void *data);
 
 static W_Class EditMenuItemClass = 0;
 
-W_Class InitEditMenuItem(WMScreen * scr)
+W_Class InitEditMenuItem(void)
 {
        /* register our widget with WINGs and get our widget class ID */
        if (!EditMenuItemClass) {
@@ -121,7 +121,7 @@ WEditMenuItem *WCreateEditMenuItem(WMWidget * parent, const 
char *title, Bool is
        WMScreen *scr = WMWidgetScreen(parent);
 
        if (!EditMenuItemClass)
-               InitEditMenuItem(scr);
+               InitEditMenuItem();
 
        iPtr = wmalloc(sizeof(WEditMenuItem));
 
@@ -284,7 +284,7 @@ static void deselectItem(WEditMenu * menu);
 
 static W_Class EditMenuClass = 0;
 
-W_Class InitEditMenu(WMScreen * scr)
+W_Class InitEditMenu(void)
 {
        /* register our widget with WINGs and get our widget class ID */
        if (!EditMenuClass) {
@@ -371,7 +371,7 @@ static WEditMenu *makeEditMenu(WMScreen * scr, WMWidget * 
parent, const char *ti
        WEditMenuItem *item;
 
        if (!EditMenuClass)
-               InitEditMenu(scr);
+               InitEditMenu();
 
        mPtr = wmalloc(sizeof(WEditMenu));
 

http://repo.or.cz/w/wmaker-crm.git/commit/f5f367841bacd64fa90135189b71a0e4f70d9859

commit f5f367841bacd64fa90135189b71a0e4f70d9859
Author: Christophe CURIS <[email protected]>
Date:   Fri Nov 1 16:06:58 2013 +0100

    WPrefs: Removed unused argument to function 'handleDragOver'
    
    The x coordinate is not needed by the function because menu are a vertical
    stacking on items, which means only y coordinate matters.
    
    This patch removes the x parameter to fix a compilation warning.
    
    Signed-off-by: Christophe CURIS <[email protected]>

diff --git a/WPrefs.app/editmenu.c b/WPrefs.app/editmenu.c
index da71db4..f562209 100644
--- a/WPrefs.app/editmenu.c
+++ b/WPrefs.app/editmenu.c
@@ -1001,7 +1001,7 @@ static WEditMenu *findMenuInWindow(Display * dpy, Window 
toplevel, int x, int y)
        return NULL;
 }
 
-static void handleDragOver(WEditMenu * menu, WMView * view, WEditMenuItem * 
item, int x, int y)
+static void handleDragOver(WEditMenu *menu, WMView *view, WEditMenuItem *item, 
int y)
 {
        WMScreen *scr = W_VIEW_SCREEN(menu->view);
        Window blaw;
@@ -1019,7 +1019,7 @@ static void handleDragOver(WEditMenu * menu, WMView * 
view, WEditMenuItem * item
        }
 }
 
-static void handleItemDrop(WEditMenu * menu, WEditMenuItem * item, int x, int 
y)
+static void handleItemDrop(WEditMenu *menu, WEditMenuItem *item, int y)
 {
        WMScreen *scr = W_VIEW_SCREEN(menu->view);
        Window blaw;
@@ -1225,7 +1225,7 @@ static void dragItem(WEditMenu * menu, WEditMenuItem * 
item, Bool copy)
                        dmenu = findMenuInWindow(dpy, win, x, y);
 
                        if (dmenu) {
-                               handleDragOver(dmenu, dview, dritem, x - dx, y 
- dy);
+                               handleDragOver(dmenu, dview, dritem, y - dy);
                                if (!enteredMenu) {
                                        enteredMenu = True;
                                        XRecolorCursor(dpy, scr->defaultCursor, 
&green, &back);
@@ -1271,7 +1271,7 @@ static void dragItem(WEditMenu * menu, WEditMenuItem * 
item, Bool copy)
 
                        if (!menu->flags.isFactory && !copy) {
                                WRemoveEditMenuItem(menu, dritem);
-                               handleItemDrop(dmenu ? dmenu : menu, dritem, 
orix, oriy);
+                               handleItemDrop(dmenu ? dmenu : menu, dritem, 
oriy);
                        }
                } else {
                        WRemoveEditMenuItem(menu, dritem);
@@ -1283,7 +1283,7 @@ static void dragItem(WEditMenu * menu, WEditMenuItem * 
item, Bool copy)
                        (*menu->delegate->itemCloned) (menu->delegate, menu, 
item, dritem);
                }
 
-               handleItemDrop(dmenu, dritem, x - dy, y - dy);
+               handleItemDrop(dmenu, dritem, y - dy);
 
                if (item->submenu && (menu->flags.isFactory || copy)) {
                        WEditMenu *submenu;

http://repo.or.cz/w/wmaker-crm.git/commit/e4664c6492168f068145f994d1f19e222c335f61

commit e4664c6492168f068145f994d1f19e222c335f61
Author: Christophe CURIS <[email protected]>
Date:   Fri Nov 1 16:06:57 2013 +0100

    WINGs: Removed unused argument to function 'W_SetXdndAwareProperty'
    
    The two arguments 'types' and 'typeCount' are not needed by that function,
    so remove them.
    
    Signed-off-by: Christophe CURIS <[email protected]>

diff --git a/WINGs/dragdestination.c b/WINGs/dragdestination.c
index 6ea680f..0d9434d 100644
--- a/WINGs/dragdestination.c
+++ b/WINGs/dragdestination.c
@@ -838,7 +838,7 @@ static void realizedObserver(void *self, WMNotification * 
notif)
        WMRemoveNotificationObserver(self);
 }
 
-static void W_SetXdndAwareProperty(WMScreen * scr, WMView * view, Atom * 
types, int typeCount)
+static void W_SetXdndAwareProperty(WMScreen *scr, WMView *view)
 {
        WMView *toplevel = W_TopLevelOfView(view);
 
@@ -875,7 +875,7 @@ void WMRegisterViewForDraggedTypes(WMView * view, WMArray * 
acceptedTypes)
        view->droppableTypes = types;
        /* WMFreeArray(acceptedTypes); */
 
-       W_SetXdndAwareProperty(W_VIEW_SCREEN(view), view, types, typeCount);
+       W_SetXdndAwareProperty(W_VIEW_SCREEN(view), view);
 }
 
 void WMUnregisterViewDraggedTypes(WMView * view)

http://repo.or.cz/w/wmaker-crm.git/commit/ca658beeb54dd25937965766bad1aabef5f03d08

commit ca658beeb54dd25937965766bad1aabef5f03d08
Author: Christophe CURIS <[email protected]>
Date:   Fri Nov 1 16:06:56 2013 +0100

    WINGs: Removed unused argument in function 'checkDropAllowed'
    
    The function does not use the event argument, so remove it.
    
    Signed-off-by: Christophe CURIS <[email protected]>

diff --git a/WINGs/dragdestination.c b/WINGs/dragdestination.c
index 3c828e8..6ea680f 100644
--- a/WINGs/dragdestination.c
+++ b/WINGs/dragdestination.c
@@ -529,7 +529,7 @@ static void *checkActionAllowed(WMView * destView, 
WMDraggingInfo * info)
        return dropAllowedState;
 }
 
-static void *checkDropAllowed(WMView * destView, XClientMessageEvent * event, 
WMDraggingInfo * info)
+static void *checkDropAllowed(WMView *destView, WMDraggingInfo *info)
 {
        storeRequiredTypeList(info);
 
@@ -664,7 +664,7 @@ static void *idleState(WMView * destView, 
XClientMessageEvent * event, WMDraggin
 
                        if (XDND_SOURCE_TYPES(info) != NULL) {
                                /* enter message infos are available */
-                               return checkDropAllowed(destView, event, info);
+                               return checkDropAllowed(destView, info);
                        }
 
                        /* waiting for enter message */
@@ -685,7 +685,7 @@ static void *waitEnterState(WMView * destView, 
XClientMessageEvent * event, WMDr
 
        if (sourceMsg == scr->xdndEnterAtom) {
                W_DragDestinationStoreEnterMsgInfo(info, destView, event);
-               return checkDropAllowed(destView, event, info);
+               return checkDropAllowed(destView, info);
        }
 
        return waitEnterState;
@@ -728,7 +728,7 @@ static void *dropNotAllowedState(WMView * destView, 
XClientMessageEvent * event,
 
        if (sourceMsg == scr->xdndPositionAtom) {
                if (XDND_SOURCE_ACTION_CHANGED(info)) {
-                       return checkDropAllowed(destView, event, info);
+                       return checkDropAllowed(destView, info);
                } else {
                        sendStatusMessage(destView, info, None);
                        return dropNotAllowedState;
@@ -764,7 +764,7 @@ static void *dropAllowedState(WMView * destView, 
XClientMessageEvent * event, WM
 
        if (sourceMsg == scr->xdndPositionAtom) {
                if (XDND_SOURCE_ACTION_CHANGED(info)) {
-                       return checkDropAllowed(destView, event, info);
+                       return checkDropAllowed(destView, info);
                } else {
                        sendStatusMessage(destView, info, 
XDND_DEST_ACTION(info));
                        return dropAllowedState;

http://repo.or.cz/w/wmaker-crm.git/commit/452fe4dc895cb6f99a99267512275cc1a2a8c789

commit 452fe4dc895cb6f99a99267512275cc1a2a8c789
Author: Christophe CURIS <[email protected]>
Date:   Fri Nov 1 16:06:55 2013 +0100

    util: Removed argument that is not used
    
    Signed-off-by: Christophe CURIS <[email protected]>

diff --git a/util/wxpaste.c b/util/wxpaste.c
index 0713308..9605787 100644
--- a/util/wxpaste.c
+++ b/util/wxpaste.c
@@ -81,7 +81,7 @@ static Time getTimestamp(Display * dpy, Window win)
        return ev.xproperty.time;
 }
 
-static char *fetchSelection(Display * dpy, const char *selection, const char 
*progName)
+static char *fetchSelection(Display *dpy, const char *selection)
 {
        Atom selatom = XInternAtom(dpy, selection, False);
        Atom clipatom = XInternAtom(dpy, "CLIPBOARD", False);
@@ -209,7 +209,7 @@ int main(int argc, char **argv)
        }
 
        if (selection_name) {
-               buf = fetchSelection(dpy, selection_name, __progname);
+               buf = fetchSelection(dpy, selection_name);
        } else {
                buf = NULL;
        }

http://repo.or.cz/w/wmaker-crm.git/commit/1f24970160bba52e3f98b0228ccde0049c9f8d7d

commit 1f24970160bba52e3f98b0228ccde0049c9f8d7d
Author: Christophe CURIS <[email protected]>
Date:   Fri Nov 1 16:06:54 2013 +0100

    wmaker: Removed unused args to local functions in wmspec
    
    Signed-off-by: Christophe CURIS <[email protected]>

diff --git a/src/wmspec.c b/src/wmspec.c
index 2fbffc8..b4a8cfa 100644
--- a/src/wmspec.c
+++ b/src/wmspec.c
@@ -770,7 +770,7 @@ static void updateWorkspaceNames(WScreen *scr)
                        PropModeReplace, (unsigned char *)buf, len);
 }
 
-static void updateFocusHint(WScreen *scr, WWindow *wwin)
+static void updateFocusHint(WScreen *scr)
 {                              /* changeable */
        Window window;
 
@@ -1302,7 +1302,7 @@ void wNETWMCheckInitialClientState(WWindow *wwin)
        updateIconImage(wwin);
 }
 
-static void handleDesktopNames(XClientMessageEvent *event, WScreen *scr)
+static void handleDesktopNames(WScreen *scr)
 {
        unsigned long nitems_ret, bytes_after_ret;
        char *data, *names[32];
@@ -1371,7 +1371,7 @@ Bool wNETWMProcessClientMessage(XClientMessageEvent 
*event)
                } else if (event->message_type == net_showing_desktop) {
                        wNETWMShowingDesktop(scr, event->data.l[0]);
                } else if (event->message_type == net_desktop_names) {
-                       handleDesktopNames(event, scr);
+                       handleDesktopNames(scr);
                } else {
                        done = False;
                }
@@ -1560,7 +1560,7 @@ static void observer(void *self, WMNotification *notif)
                updateClientListStacking(wwin->screen_ptr, NULL);
                updateStateHint(wwin, False, False);
        } else if (strcmp(name, WMNChangedFocus) == 0) {
-               updateFocusHint(ndata->scr, wwin);
+               updateFocusHint(ndata->scr);
        } else if (strcmp(name, WMNChangedWorkspace) == 0 && wwin) {
                updateWorkspaceHint(wwin, False, False);
                updateStateHint(wwin, True, False);

http://repo.or.cz/w/wmaker-crm.git/commit/d862310c81b8ff7104be0faf1e09d3ad69cf3f3d

commit d862310c81b8ff7104be0faf1e09d3ad69cf3f3d
Author: Christophe CURIS <[email protected]>
Date:   Fri Nov 1 16:06:53 2013 +0100

    wmaker: Removed unused argument to function 'wMenuScroll'
    
    The event that triggered the function call is not used by the function,
    so the parameter can be removed.
    
    Signed-off-by: Christophe CURIS <[email protected]>

diff --git a/src/event.c b/src/event.c
index b470074..42c58ba 100644
--- a/src/event.c
+++ b/src/event.c
@@ -1778,7 +1778,7 @@ static void handleMotionNotify(XEvent * event)
 
                        menu = wMenuUnderPointer(scr);
                        if (menu != NULL)
-                               wMenuScroll(menu, event);
+                               wMenuScroll(menu);
                }
        }
 }
diff --git a/src/menu.c b/src/menu.c
index e5809bd..d4d7365 100644
--- a/src/menu.c
+++ b/src/menu.c
@@ -1551,7 +1551,7 @@ static void leaving(_delay * dl)
        wfree(dl);
 }
 
-void wMenuScroll(WMenu * menu, XEvent * event)
+void wMenuScroll(WMenu *menu)
 {
        WMenu *smenu;
        WMenu *omenu = parentMenu(menu);
diff --git a/src/menu.h b/src/menu.h
index 9df9f65..45525eb 100644
--- a/src/menu.h
+++ b/src/menu.h
@@ -128,7 +128,7 @@ void wMenuUnmap(WMenu *menu);
 void wMenuSetEnabled(WMenu *menu, int index, int enable);
 void wMenuMove(WMenu *menu, int x, int y, int submenus);
 void wMenuEntryRemoveCascade(WMenu *menu, WMenuEntry *entry);
-void wMenuScroll(WMenu *menu, XEvent *event);
+void wMenuScroll(WMenu *menu);
 WMenu *wMenuUnderPointer(WScreen *screen);
 void wMenuSaveState(WScreen *scr);
 void wMenuRestoreState(WScreen *scr);

http://repo.or.cz/w/wmaker-crm.git/commit/93767d399d6e1ef3b81123fb9b7d7ff63cd95e17

commit 93767d399d6e1ef3b81123fb9b7d7ff63cd95e17
Author: Christophe CURIS <[email protected]>
Date:   Fri Nov 1 16:06:52 2013 +0100

    Re-enable the compiler check for unused arguments
    
    Now that the code have been cleaned up on that matter, it is a good
    idea to re-enable warning on these cases because they help keeping
    the code as simple and maintainable as possible.
    
    Signed-off-by: Christophe CURIS <[email protected]>

diff --git a/configure.ac b/configure.ac
index 48c2637..eb944a6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -88,7 +88,7 @@ AS_IF([test "x$debug" = "xyes"],
 
 
 AX_CFLAGS_GCC_OPTION(-Wall)
-AX_CFLAGS_GCC_OPTION(-Wextra -Wno-sign-compare -Wno-unused-parameter)
+AX_CFLAGS_GCC_OPTION(-Wextra -Wno-sign-compare)
 AS_IF([test "x$debug" = "xyes"],
     [dnl When debug is enabled, we try to activate more checks from
      dnl the compiler. They are on independant check because the

http://repo.or.cz/w/wmaker-crm.git/commit/6909ee09769def14c3baa44a1ef970ceb5cc301e

commit 6909ee09769def14c3baa44a1ef970ceb5cc301e
Author: Christophe CURIS <[email protected]>
Date:   Fri Nov 1 16:06:51 2013 +0100

    wmaker: Marked arg as unused for compiler in Timer handler
    
    The timers proposed by WINGs toolkit are handled with a callback function,
    which means having a fixed argument list for that application function.
    
    It is then correct to not use the argument, so this patch adds the
    appropriate stuff to avoid a false report from compiler.
    
    Signed-off-by: Christophe CURIS <[email protected]>

diff --git a/src/defaults.c b/src/defaults.c
index 3735448..e0f608a 100644
--- a/src/defaults.c
+++ b/src/defaults.c
@@ -966,6 +966,9 @@ void wDefaultsCheckDomains(void* arg)
        WMPropList *dict;
        int i;
 
+       /* Parameter not used, but tell the compiler that it is ok */
+       (void) arg;
+
        if (stat(w_global.domain.wmaker->path, &stbuf) >= 0 && 
w_global.domain.wmaker->timestamp < stbuf.st_mtime) {
                w_global.domain.wmaker->timestamp = stbuf.st_mtime;
 

http://repo.or.cz/w/wmaker-crm.git/commit/066d0cdef7479f9b12f2a825949bd4ec2dae8fa9

commit 066d0cdef7479f9b12f2a825949bd4ec2dae8fa9
Author: Christophe CURIS <[email protected]>
Date:   Fri Nov 1 16:06:50 2013 +0100

    WPrefs: Marked args as unused for compiler in WINGs callback code
    
    The WINGs toolkit dispatch events on widgets using callbacks, which means
    having a fixed argument list for the handling function.
    
    It is then correct to not use all the arguments, so this patch adds the
    appropriate stuff to avoid a false report from compiler.
    
    Signed-off-by: Christophe CURIS <[email protected]>

diff --git a/WPrefs.app/Appearance.c b/WPrefs.app/Appearance.c
index 46e7499..11f90c7 100644
--- a/WPrefs.app/Appearance.c
+++ b/WPrefs.app/Appearance.c
@@ -1213,6 +1213,9 @@ static void paintListItem(WMList * lPtr, int index, 
Drawable d, char *text, int
        WMColor *black = WMBlackColor(scr);
        TextureListItem *titem;
 
+       /* Parameter not used, but tell the compiler that it is ok */
+       (void) text;
+
        item = WMGetListItem(lPtr, index);
        titem = (TextureListItem *) item->clientData;
        if (!titem) {
@@ -1497,6 +1500,9 @@ static void changedTabItem(struct WMTabViewDelegate 
*self, WMTabView * tabView,
        _Panel *panel = self->data;
        int i;
 
+       /* Parameter not used, but tell the compiler that it is ok */
+       (void) tabView;
+
        i = WMGetTabViewItemIdentifier(item);
        switch (i) {
        case 0:
diff --git a/WPrefs.app/Menu.c b/WPrefs.app/Menu.c
index 752bd8f..55a1d56 100644
--- a/WPrefs.app/Menu.c
+++ b/WPrefs.app/Menu.c
@@ -1215,6 +1215,10 @@ menuItemCloned(WEditMenuDelegate * delegate, WEditMenu * 
menu, WEditMenuItem * o
        ItemData *data = WGetEditMenuItemData(origItem);
        ItemData *newData;
 
+       /* Parameter not used, but tell the compiler that it is ok */
+       (void) delegate;
+       (void) menu;
+
        if (!data)
                return;
 
@@ -1310,6 +1314,10 @@ static void menuItemDeselected(WEditMenuDelegate * 
delegate, WEditMenu * menu, W
 {
        _Panel *panel = (_Panel *) delegate->data;
 
+       /* Parameter not used, but tell the compiler that it is ok */
+       (void) menu;
+       (void) item;
+
        changeInfoType(panel, NULL, NoInfo);
 }
 
@@ -1318,6 +1326,9 @@ static void menuItemSelected(WEditMenuDelegate * 
delegate, WEditMenu * menu, WEd
        ItemData *data = WGetEditMenuItemData(item);
        _Panel *panel = (_Panel *) delegate->data;
 
+       /* Parameter not used, but tell the compiler that it is ok */
+       (void) menu;
+
        panel->currentItem = item;
 
        if (data) {
diff --git a/WPrefs.app/Paths.c b/WPrefs.app/Paths.c
index 0aff7fc..4dc8d63 100644
--- a/WPrefs.app/Paths.c
+++ b/WPrefs.app/Paths.c
@@ -177,6 +177,9 @@ static void paintItem(WMList * lPtr, int index, Drawable d, 
char *text, int stat
        Display *dpy = WMScreenDisplay(scr);
        WMColor *backColor = (state & WLDSSelected) ? panel->white : 
panel->gray;
 
+       /* Parameter not used, but tell the compiler that it is ok */
+       (void) index;
+
        width = rect->size.width;
        height = rect->size.height;
        x = rect->pos.x;

http://repo.or.cz/w/wmaker-crm.git/commit/63037bf42683abcf9b0472b02720e838cffd3b4c

commit 63037bf42683abcf9b0472b02720e838cffd3b4c
Author: Christophe CURIS <[email protected]>
Date:   Fri Nov 1 16:06:49 2013 +0100

    WPrefs: Marked args as unused for compiler in signal handlers
    
    When the process receive a signal, a callback function is used, which
    means having a fixed argument list for that application function.
    
    It is then correct to not use the argument, so this patch adds the
    appropriate stuff to avoid a false report from compiler.
    
    Signed-off-by: Christophe CURIS <[email protected]>

diff --git a/WPrefs.app/main.c b/WPrefs.app/main.c
index d6b3946..08dcb58 100644
--- a/WPrefs.app/main.c
+++ b/WPrefs.app/main.c
@@ -45,6 +45,9 @@ static int DeadChildrenCount = 0;
 
 static void wAbort(Bool foo)
 {
+       /* Parameter not used, but tell the compiler that it is ok */
+       (void) foo;
+
        exit(1);
 }
 

http://repo.or.cz/w/wmaker-crm.git/commit/bc5985e824abb1dcf2f9aff640402b0d73d5afcb

commit bc5985e824abb1dcf2f9aff640402b0d73d5afcb
Author: Christophe CURIS <[email protected]>
Date:   Fri Nov 1 16:06:48 2013 +0100

    WPrefs: Marked args as unused for compiler in event callback code
    
    The WINGs toolkit dispatch events on widgets using callbacks, which means
    having a fixed argument list for the handling function.
    
    It is then correct to not use all the arguments, so this patch adds the
    appropriate stuff to avoid a false report from compiler.
    
    Signed-off-by: Christophe CURIS <[email protected]>

diff --git a/WPrefs.app/Appearance.c b/WPrefs.app/Appearance.c
index 8a3fe6b..46e7499 100644
--- a/WPrefs.app/Appearance.c
+++ b/WPrefs.app/Appearance.c
@@ -971,6 +971,9 @@ static void editTexture(WMWidget * w, void *data)
        WMListItem *item;
        TextureListItem *titem;
 
+       /* Parameter not used, but tell the compiler that it is ok */
+       (void) w;
+
        item = WMGetListItem(panel->texLs, 
WMGetListSelectedItemRow(panel->texLs));
        titem = (TextureListItem *) item->clientData;
 
@@ -988,6 +991,9 @@ static void newTexture(WMWidget * w, void *data)
 {
        _Panel *panel = (_Panel *) data;
 
+       /* Parameter not used, but tell the compiler that it is ok */
+       (void) w;
+
        SetTexturePanelPixmapPath(panel->texturePanel, 
GetObjectForKey("PixmapPath"));
 
        SetTexturePanelTexture(panel->texturePanel, "New Texture", NULL);
@@ -1007,6 +1013,9 @@ static void deleteTexture(WMWidget * w, void *data)
        int row;
        int section;
 
+       /* Parameter not used, but tell the compiler that it is ok */
+       (void) w;
+
        section = WMGetPopUpButtonSelectedItem(panel->secP);
        row = WMGetListSelectedItemRow(panel->texLs);
        item = WMGetListItem(panel->texLs, row);
@@ -1144,6 +1153,9 @@ static void textureClick(WMWidget * w, void *data)
        WMListItem *item;
        TextureListItem *titem;
 
+       /* Parameter not used, but tell the compiler that it is ok */
+       (void) w;
+
        i = WMGetListSelectedItemRow(panel->texLs);
 
        item = WMGetListItem(panel->texLs, i);
@@ -1164,6 +1176,9 @@ static void textureDoubleClick(WMWidget * w, void *data)
        WMListItem *item;
        TextureListItem *titem;
 
+       /* Parameter not used, but tell the compiler that it is ok */
+       (void) w;
+
        /* unselect old texture */
        section = WMGetPopUpButtonSelectedItem(panel->secP);
 
diff --git a/WPrefs.app/FontSimple.c b/WPrefs.app/FontSimple.c
index 0793ae0..1bcb277 100644
--- a/WPrefs.app/FontSimple.c
+++ b/WPrefs.app/FontSimple.c
@@ -355,6 +355,9 @@ static void selectedFamily(WMWidget * w, void *data)
        FontStyle *oldStyle = NULL;
        char buffer[1024];
 
+       /* Parameter not used, but tell the compiler that it is ok */
+       (void) w;
+
        item = WMGetListSelectedItem(panel->styleL);
        if (item)
                oldStyle = (FontStyle *) item->clientData;
@@ -436,6 +439,9 @@ static void selected(WMWidget * w, void *data)
        FcChar8 *ofont;
        char *nfont;
 
+       /* Parameter not used, but tell the compiler that it is ok */
+       (void) w;
+
        ofont = (FcChar8 *) WMGetMenuItemRepresentedObject(item);
        nfont = getSelectedFont(panel, ofont);
        if (ofont)
@@ -453,6 +459,9 @@ static void selectedOption(WMWidget * w, void *data)
        WMMenuItem *item = WMGetPopUpButtonMenuItem(panel->optionP, index);
        char *font;
 
+       /* Parameter not used, but tell the compiler that it is ok */
+       (void) w;
+
        font = (char *)WMGetMenuItemRepresentedObject(item);
        if (font) {
                FcPattern *pat;
diff --git a/WPrefs.app/KeyboardShortcuts.c b/WPrefs.app/KeyboardShortcuts.c
index 1d8e0ed..8c9cafa 100644
--- a/WPrefs.app/KeyboardShortcuts.c
+++ b/WPrefs.app/KeyboardShortcuts.c
@@ -378,6 +378,9 @@ static void clearShortcut(WMWidget * w, void *data)
        _Panel *panel = (_Panel *) data;
        int row = WMGetListSelectedItemRow(panel->actLs);
 
+       /* Parameter not used, but tell the compiler that it is ok */
+       (void) w;
+
        WMSetTextFieldText(panel->shoT, NULL);
 
        if (row >= 0) {
diff --git a/WPrefs.app/Preferences.c b/WPrefs.app/Preferences.c
index 9399023..3ab7d8e 100644
--- a/WPrefs.app/Preferences.c
+++ b/WPrefs.app/Preferences.c
@@ -62,6 +62,9 @@ static void borderCallback(WMWidget * w, void *data)
        char buffer[64];
        int i;
 
+       /* Parameter not used, but tell the compiler that it is ok */
+       (void) w;
+
        i = WMGetSliderValue(panel->borderS);
 
        if (i == 0)
diff --git a/WPrefs.app/TexturePanel.c b/WPrefs.app/TexturePanel.c
index 65d2a0e..3101a16 100644
--- a/WPrefs.app/TexturePanel.c
+++ b/WPrefs.app/TexturePanel.c
@@ -460,6 +460,9 @@ static void gradAddCallback(WMWidget * w, void *data)
        int row;
        RColor *rgb;
 
+       /* Parameter not used, but tell the compiler that it is ok */
+       (void) w;
+
        row = WMGetListSelectedItemRow(panel->gcolL) + 1;
        item = WMInsertListItem(panel->gcolL, row, "00,00,00");
        rgb = wmalloc(sizeof(RColor));
@@ -502,6 +505,9 @@ static void gradDeleteCallback(WMWidget * w, void *data)
        WMListItem *item;
        int row;
 
+       /* Parameter not used, but tell the compiler that it is ok */
+       (void) w;
+
        row = WMGetListSelectedItemRow(panel->gcolL);
        if (row < 0)
                return;
@@ -534,6 +540,9 @@ static void opaqChangeCallback(WMWidget * w, void *data)
 {
        TexturePanel *panel = (TexturePanel *) data;
 
+       /* Parameter not used, but tell the compiler that it is ok */
+       (void) w;
+
        updateTGradImage(panel);
 }
 
diff --git a/WPrefs.app/WPrefs.c b/WPrefs.app/WPrefs.c
index 9683d37..f174a7d 100644
--- a/WPrefs.app/WPrefs.c
+++ b/WPrefs.app/WPrefs.c
@@ -72,6 +72,10 @@ static void prepareForClose(void);
 
 static void quit(WMWidget *w, void *data)
 {
+       /* Parameter not used, but tell the compiler that it is ok */
+       (void) w;
+       (void) data;
+
        prepareForClose();
 
        exit(0);
@@ -85,6 +89,9 @@ static void save(WMWidget * w, void *data)
        WMPropList *key;
        XEvent ev;
 
+       /* Parameter not used, but tell the compiler that it is ok */
+       (void) data;
+
        /*    puts("gathering data"); */
        for (i = 0; i < WPrefs.sectionCount; i++) {
                PanelRec *rec = WMGetHangedData(WPrefs.sectionB[i]);
@@ -134,6 +141,10 @@ static void undo(WMWidget * w, void *data)
 {
        PanelRec *rec = (PanelRec *) WPrefs.currentPanel;
 
+       /* Parameter not used, but tell the compiler that it is ok */
+       (void) w;
+       (void) data;
+
        if (!rec)
                return;
 
@@ -146,6 +157,10 @@ static void undoAll(WMWidget * w, void *data)
 {
        int i;
 
+       /* Parameter not used, but tell the compiler that it is ok */
+       (void) w;
+       (void) data;
+
        for (i = 0; i < WPrefs.sectionCount; i++) {
                PanelRec *rec = WMGetHangedData(WPrefs.sectionB[i]);
 
@@ -171,6 +186,10 @@ static void toggleBalloons(WMWidget *w, void *data)
        WMUserDefaults *udb = WMGetStandardUserDefaults();
        Bool flag;
 
+       /* Parameter not used, but tell the compiler that it is ok */
+       (void) w;
+       (void) data;
+
        flag = WMGetButtonSelected(WPrefs.balloonBtn);
 
        WMSetBalloonEnabled(WMWidgetScreen(WPrefs.win), flag);
@@ -317,6 +336,9 @@ static void savePanelData(Panel * panel)
 
 static void changeSection(WMWidget * self, void *data)
 {
+       /* Parameter not used, but tell the compiler that it is ok */
+       (void) self;
+
        if (WPrefs.currentPanel == data)
                return;
 
diff --git a/WPrefs.app/WindowHandling.c b/WPrefs.app/WindowHandling.c
index 4f59a51..dee1543 100644
--- a/WPrefs.app/WindowHandling.c
+++ b/WPrefs.app/WindowHandling.c
@@ -94,6 +94,9 @@ static void sliderCallback(WMWidget * w, void *data)
        int swidth = WMGetSliderMaxValue(panel->hsli);
        int sheight = WMGetSliderMaxValue(panel->vsli);
 
+       /* Parameter not used, but tell the compiler that it is ok */
+       (void) w;
+
        x = WMGetSliderValue(panel->hsli);
        y = WMGetSliderValue(panel->vsli);
 
@@ -111,6 +114,9 @@ static void resistanceCallback(WMWidget * w, void *data)
        char buffer[64];
        int i;
 
+       /* Parameter not used, but tell the compiler that it is ok */
+       (void) w;
+
        i = WMGetSliderValue(panel->resS);
 
        if (i == 0)
@@ -127,6 +133,9 @@ static void resizeCallback(WMWidget * w, void *data)
        char buffer[64];
        int i;
 
+       /* Parameter not used, but tell the compiler that it is ok */
+       (void) w;
+
        i = WMGetSliderValue(panel->resizeS);
 
        if (i == 0)
diff --git a/WPrefs.app/editmenu.c b/WPrefs.app/editmenu.c
index 1f3e481..da71db4 100644
--- a/WPrefs.app/editmenu.c
+++ b/WPrefs.app/editmenu.c
@@ -574,6 +574,9 @@ static void closeMenuAction(WMWidget * w, void *data)
 {
        WEditMenu *menu = (WEditMenu *) data;
 
+       /* Parameter not used, but tell the compiler that it is ok */
+       (void) w;
+
        WMAddIdleHandler(WMDestroyWidget, menu->closeB);
        menu->closeB = NULL;
 

http://repo.or.cz/w/wmaker-crm.git/commit/dd82c46335bbea64fe5767f8cff8ec571eb0db8f

commit dd82c46335bbea64fe5767f8cff8ec571eb0db8f
Author: Christophe CURIS <[email protected]>
Date:   Fri Nov 1 16:06:47 2013 +0100

    WPrefs: Marked args as unused for compiler in X Error handler
    
    When an error occurs in X, the Xlib is using a callback mechanism to
    execute application code to handle the problem, which means having a
    fixed argument list for that application function.
    
    It is then correct to not use all the arguments, so this patch adds the
    appropriate stuff to avoid a false report from compiler.
    
    Signed-off-by: Christophe CURIS <[email protected]>

diff --git a/WPrefs.app/editmenu.c b/WPrefs.app/editmenu.c
index f5edeed..1f3e481 100644
--- a/WPrefs.app/editmenu.c
+++ b/WPrefs.app/editmenu.c
@@ -941,6 +941,10 @@ static void slideWindow(Display * dpy, Window win, int 
srcX, int srcY, int dstX,
 
 static int errorHandler(Display * d, XErrorEvent * ev)
 {
+       /* Parameter not used, but tell the compiler that it is ok */
+       (void) d;
+       (void) ev;
+
        /* just ignore */
        return 0;
 }

http://repo.or.cz/w/wmaker-crm.git/commit/66f6817966aefc9d2091777b2a37616fbd60b2db

commit 66f6817966aefc9d2091777b2a37616fbd60b2db
Author: Christophe CURIS <[email protected]>
Date:   Fri Nov 1 16:06:46 2013 +0100

    WPrefs: Marked args as unused for compiler in Notification callback code
    
    The mechanism of Notifications in the WINGs toolkit is relying on
    callbacks to dispatch notifications, which means having a fixed argument
    list for the handling function.
    
    It is then correct to not use all the arguments, so this patch adds the
    appropriate stuff to avoid a false report from compiler.
    
    Signed-off-by: Christophe CURIS <[email protected]>

diff --git a/WPrefs.app/Appearance.c b/WPrefs.app/Appearance.c
index 65865e9..8a3fe6b 100644
--- a/WPrefs.app/Appearance.c
+++ b/WPrefs.app/Appearance.c
@@ -1465,6 +1465,9 @@ static void colorWellObserver(void *self, WMNotification 
* n)
        _Panel *panel = (_Panel *) self;
        int p;
 
+       /* Parameter not used, but tell the compiler that it is ok */
+       (void) n;
+
        p = WMGetPopUpButtonSelectedItem(panel->colP);
 
        WMReleaseColor(panel->colors[p]);
diff --git a/WPrefs.app/Focus.c b/WPrefs.app/Focus.c
index 9567dde..0a0916d 100644
--- a/WPrefs.app/Focus.c
+++ b/WPrefs.app/Focus.c
@@ -167,6 +167,9 @@ static void raiseTextChanged(void *observerData, 
WMNotification * notification)
        _Panel *panel = (_Panel *) observerData;
        int i;
 
+       /* Parameter not used, but tell the compiler that it is ok */
+       (void) notification;
+
        if (panel->raiseDelaySelected) {
                for (i = 0; i < 5; i++) {
                        WMSetButtonSelected(panel->raisB[i], False);
diff --git a/WPrefs.app/KeyboardShortcuts.c b/WPrefs.app/KeyboardShortcuts.c
index 4c418c6..1d8e0ed 100644
--- a/WPrefs.app/KeyboardShortcuts.c
+++ b/WPrefs.app/KeyboardShortcuts.c
@@ -393,6 +393,9 @@ static void typedKeys(void *observerData, WMNotification * 
notification)
        _Panel *panel = (_Panel *) observerData;
        int row = WMGetListSelectedItemRow(panel->actLs);
 
+       /* Parameter not used, but tell the compiler that it is ok */
+       (void) notification;
+
        if (row < 0)
                return;
 
diff --git a/WPrefs.app/MouseSettings.c b/WPrefs.app/MouseSettings.c
index 4ad0433..4ec2323 100644
--- a/WPrefs.app/MouseSettings.c
+++ b/WPrefs.app/MouseSettings.c
@@ -151,6 +151,9 @@ static void returnPressed(void *observerData, 
WMNotification * notification)
 {
        _Panel *panel = (_Panel *) observerData;
 
+       /* Parameter not used, but tell the compiler that it is ok */
+       (void) notification;
+
        speedChange(NULL, panel);
 }
 
diff --git a/WPrefs.app/TexturePanel.c b/WPrefs.app/TexturePanel.c
index ad96bc0..65d2a0e 100644
--- a/WPrefs.app/TexturePanel.c
+++ b/WPrefs.app/TexturePanel.c
@@ -524,6 +524,9 @@ static void gradDeleteCallback(WMWidget * w, void *data)
 
 static void colorWellObserver(void *self, WMNotification * n)
 {
+       /* Parameter not used, but tell the compiler that it is ok */
+       (void) n;
+
        updateSGradButtons(self);
 }
 
diff --git a/WPrefs.app/editmenu.c b/WPrefs.app/editmenu.c
index 46552b8..f5edeed 100644
--- a/WPrefs.app/editmenu.c
+++ b/WPrefs.app/editmenu.c
@@ -334,6 +334,9 @@ static void realizeObserver(void *self, WMNotification * 
not)
        WEditMenu *menu = (WEditMenu *) self;
        GNUstepWMAttributes attribs;
 
+       /* Parameter not used, but tell the compiler that it is ok */
+       (void) not;
+
        memset(&attribs, 0, sizeof(GNUstepWMAttributes));
        attribs.flags = GSWindowStyleAttr | GSWindowLevelAttr;
        attribs.window_style = WMBorderlessWindowMask;

http://repo.or.cz/w/wmaker-crm.git/commit/cd78f11abc4f3d3f47d96c168a336ad796853c91

commit cd78f11abc4f3d3f47d96c168a336ad796853c91
Author: Christophe CURIS <[email protected]>
Date:   Fri Nov 1 16:06:45 2013 +0100

    util: Marked args as unused for compiler in X Error handlers
    
    When an error occurs in X, the Xlib is using a callback mechanism to
    execute application code to handle the problem, which means having a
    fixed argument list for that application function.
    
    It is then correct to not use all the arguments, so this patch adds the
    appropriate stuff to avoid a false report from compiler.
    
    Signed-off-by: Christophe CURIS <[email protected]>

diff --git a/util/wmsetbg.c b/util/wmsetbg.c
index 8c15ea1..742f7b0 100644
--- a/util/wmsetbg.c
+++ b/util/wmsetbg.c
@@ -786,6 +786,10 @@ static Pixmap duplicatePixmap(Pixmap pixmap, int width, 
int height)
 
 static int dummyErrorHandler(Display * dpy, XErrorEvent * err)
 {
+       /* Parameter not used, but tell the compiler that it is ok */
+       (void) dpy;
+       (void) err;
+
        return 0;
 }
 
diff --git a/util/wxcopy.c b/util/wxcopy.c
index 89bd4a1..90303fb 100644
--- a/util/wxcopy.c
+++ b/util/wxcopy.c
@@ -48,6 +48,10 @@ static void print_help(void)
 
 static int errorHandler(Display * dpy, XErrorEvent * err)
 {
+       /* Parameter not used, but tell the compiler that it is ok */
+       (void) dpy;
+       (void) err;
+
        /* ignore all errors */
        return 0;
 }

-----------------------------------------------------------------------

Summary of changes:
 WINGs/dragdestination.c        |   14 +++++-----
 WPrefs.app/Appearance.c        |   32 ++++++++++++++++++++---
 WPrefs.app/Configurations.c    |    2 +-
 WPrefs.app/Docks.c             |    2 +-
 WPrefs.app/Expert.c            |    2 +-
 WPrefs.app/Focus.c             |    5 +++-
 WPrefs.app/FontSimple.c        |   11 +++++++-
 WPrefs.app/Icons.c             |    2 +-
 WPrefs.app/KeyboardSettings.c  |    2 +-
 WPrefs.app/KeyboardShortcuts.c |    8 +++++-
 WPrefs.app/Makefile.am         |    7 +++-
 WPrefs.app/Menu.c              |   13 ++++++++-
 WPrefs.app/MenuPreferences.c   |    2 +-
 WPrefs.app/MouseSettings.c     |    5 +++-
 WPrefs.app/Paths.c             |    5 +++-
 WPrefs.app/Preferences.c       |    5 +++-
 WPrefs.app/TexturePanel.c      |   17 ++++++++---
 WPrefs.app/TexturePanel.h      |    2 -
 WPrefs.app/Themes.c            |    2 +-
 WPrefs.app/WPrefs.c            |   56 +++++++++++++++++++++++++++------------
 WPrefs.app/WPrefs.h            |   30 ++++++++++----------
 WPrefs.app/WindowHandling.c    |   11 +++++++-
 WPrefs.app/Workspace.c         |    2 +-
 WPrefs.app/double.c            |    4 +-
 WPrefs.app/editmenu.c          |   28 +++++++++++++------
 WPrefs.app/main.c              |    3 ++
 configure.ac                   |    2 +-
 src/defaults.c                 |    3 ++
 src/event.c                    |    2 +-
 src/menu.c                     |    2 +-
 src/menu.h                     |    2 +-
 src/wmspec.c                   |    8 +++---
 util/wmsetbg.c                 |    4 +++
 util/wxcopy.c                  |    4 +++
 util/wxpaste.c                 |    4 +-
 35 files changed, 214 insertions(+), 89 deletions(-)


repo.or.cz automatic notification. Contact project admin [email protected]
if you want to unsubscribe, or site admin [email protected] if you receive
no reply.
-- 
wmaker-crm.git ("The Window Maker window manager")


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

Reply via email to