]> git.lyx.org Git - lyx.git/commitdiff
cure a few more warnings
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 3 Jan 2005 12:51:26 +0000 (12:51 +0000)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 3 Jan 2005 12:51:26 +0000 (12:51 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9416 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/xforms/ChangeLog
src/frontends/xforms/bmtable.c
src/frontends/xforms/combox.c
src/frontends/xforms/freebrowser.c

index dffed69747f5a904e07b10ed5c59dd8907d0b18b..a8e28ea0cc070edc77fe675ee289eca7a11ae346 100644 (file)
@@ -1,3 +1,10 @@
+2005-01-03  Jean-Marc Lasgouttes  <lasgouttes@lyx.org>
+
+       * freebrowser.c (browser_cb): 
+       * combox.c (combox_handle, state_cb, chosen_cb): 
+       * bmtable.c (handle_bitmaptable, fl_replace_bmtable_item) 
+       (fl_get_bmtable_item): Silence warnings about unused parameters.
+
 2004-12-28  Jean-Marc Lasgouttes  <lasgouttes@lyx.org>
 
        * bmtable.c (fl_set_bmtable_pixmap_data):
index 0a0e7483a7a4b5f77dc0108688502d4cef694a66..61381e70e78f2e9d84ab21cf756d5dc4f509d61b 100644 (file)
@@ -169,6 +169,9 @@ static void draw_bitmaptable(FL_OBJECT *ob)
 int handle_bitmaptable(FL_OBJECT * ob, int event, FL_Coord mx,
                       FL_Coord my, int key, void * xev)
 {
+       /* Silence warning about unused parameter */
+       (void) xev;
+
        int i, j;
        BMTABLE_SPEC * sp = (BMTABLE_SPEC *)ob->spec;
 
@@ -398,12 +401,26 @@ int fl_get_bmtable_maxitems(FL_OBJECT * ob)
 
 void fl_replace_bmtable_item(FL_OBJECT * ob, int id, int cw, int ch, char * data)
 {
+       /* Silence warnings about unused parameters */
+       (void) ob;
+       (void) id;
+       (void) cw;
+       (void) ch;
+       (void) data;
+
        fprintf(stderr, "Replace bmtable item: Sorry, not yet implemented!\n");
 }
 
 
 void fl_get_bmtable_item(FL_OBJECT * ob, int id, int * cw, int * ch, char * data)
 {
+       /* Silence warnings about unused parameters */
+       (void) ob;
+       (void) id;
+       (void) cw;
+       (void) ch;
+       (void) data;
+
        fprintf(stderr, "Get bmtable item: Sorry, not yet implemented!\n");
 }
 
@@ -471,7 +488,7 @@ void fl_free_bmtable_bitmap(FL_OBJECT * ob)
 }
 
 /* Free the current pixmap in preparation for installing a new one */
-/* This is needed when using data instead of files to set bitmaps  */
+/* This is needed when using data instead of files to set bitmaps */
 void fl_free_bmtable_pixmap(FL_OBJECT *ob)
 {
        BMTABLE_SPEC * sp = (BMTABLE_SPEC *)ob->spec;
index 05e270f111c0f8e182282e5960de12578f9fdb30..a537eba13db8730f84a9802dcc7d1b270ea7e7b9 100644 (file)
@@ -367,6 +367,12 @@ static int
 combox_handle(FL_OBJECT * ob, int event, FL_Coord mx, FL_Coord my, int key,
              void * ev)
 {
+    /* Silence warnings about unused parameters */
+    (void) mx;
+    (void) my;
+    (void) key;
+    (void) ev;
+
     if (!ob || ob->objclass != FL_COMBOX)
        return 0;
 
@@ -452,6 +458,9 @@ show_browser(COMBOX_SPEC * sp)
 static void
 state_cb(FL_OBJECT * ob, long data)
 {
+    /* Silence warning about unused parameter */
+    (void) data;
+
     show_browser(ob->u_vdata);
 }
 
@@ -459,6 +468,9 @@ state_cb(FL_OBJECT * ob, long data)
 static void
 chosen_cb(FL_OBJECT * ob, long data)
 {
+    /* Silence warning about unused parameter */
+    (void) data;
+
     show_browser(ob->u_vdata);
 }
 
index 65089ff80b3c7da1d8482edf4a1feceac0cce0f2..298d33ac0fc6e6b1f7e9d8817c3e3e9b3218c175 100644 (file)
@@ -125,6 +125,9 @@ fl_hide_freebrowser(FL_FREEBROWSER * fb)
 static void
 browser_cb(FL_OBJECT * ob, long data)
 {
+    /* Silence warning about unused parameter */
+    (void) data;
+
     FL_FREEBROWSER * fb = ob->u_vdata;
     fl_hide_freebrowser(fb);
     if (fb->callback)