From: Christophe CURIS <[email protected]>

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]>
---
 WPrefs.app/double.c   | 4 ++--
 WPrefs.app/editmenu.c | 8 ++++----
 2 files changed, 6 insertions(+), 6 deletions(-)

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));
 
-- 
1.8.4.rc3


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

Reply via email to