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  c54d29464894050927854a2ee7b2495ea86de7fa (commit)
      from  dc0062f37a818fc708a85e43ed782b1f16b43e51 (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/c54d29464894050927854a2ee7b2495ea86de7fa

commit c54d29464894050927854a2ee7b2495ea86de7fa
Author: Rodolfo García Peñas (kix) <[email protected]>
Date:   Fri Jan 31 20:55:32 2014 +0100

    remove wtest compiler warnings.
    
    This patch removes the wtest compiler warnings.

diff --git a/test/wtest.c b/test/wtest.c
index 8490e9c..c886c5b 100644
--- a/test/wtest.c
+++ b/test/wtest.c
@@ -29,18 +29,24 @@ Display *dpy;
 Window leader;
 WMAppContext *app;
 
-static void callback(void *foo, int item, Time time)
+static void callback(int item)
 {
+       (void) item;
+
        printf("pushed item %in", item);
 }
 
-static void quit(void *foo, int item, Time time)
+static void quit(int item)
 {
+       (void) item;
+
        exit(0);
 }
 
-static void hide(void *foo, int item, Time time)
+static void hide(int item)
 {
+       (void) item;
+
        WMHideApplication(app);
 }
 
@@ -52,11 +58,12 @@ WMMenu *menu;
 WMMenu *submenu;
 int wincount = 0;
 
-static void newwin(void *foo, int item, Time time)
+static void newwin(int item)
 {
        Window win;
        XClassHint classhint;
        char title[100];
+       (void) item;
 
        wincount++;
        win = XCreateSimpleWindow(dpy, DefaultRootWindow(dpy), 10 * wincount, 
10 * wincount, 200, 100, 0, 0, 0);
@@ -76,10 +83,6 @@ static void newwin(void *foo, int item, Time time)
        attr.miniaturize_pixmap = XCreateBitmapFromData(dpy, 
DefaultRootWindow(dpy), bits, 10, 10);
 
        attr.miniaturize_mask = XCreateBitmapFromData(dpy, 
DefaultRootWindow(dpy), mbits, 10, 10);
-       /*
-          attr.flags |= GSWindowStyleAttr;
-          attr.window_style = NSTitledWindowMask|NSClosableWindowMask;
-        */
 
        WMSetWindowAttributes(dpy, win, &attr);
 
@@ -106,6 +109,7 @@ int main(int argc, char **argv)
        miniaturize_win = XInternAtom(dpy, "_GNUSTEP_WM_MINIATURIZE_WINDOW", 
False);
 
        leader = XCreateSimpleWindow(dpy, DefaultRootWindow(dpy), 10, 10, 10, 
10, 0, 0, 0);
+
        /* set class hint */
        classhint.res_name = "test";
        classhint.res_class = "Test";
@@ -138,7 +142,7 @@ int main(int argc, char **argv)
        XSetCommand(dpy, leader, argv, argc);
 
        /* create first window */
-       newwin(NULL, 0, 0);
+       newwin(0);
 
        XFlush(dpy);
        puts("Run xprop on the test window to see the properties defined");

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

Summary of changes:
 test/wtest.c |   22 +++++++++++++---------
 1 files changed, 13 insertions(+), 9 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