From 4757e3cb6f1eed830ca0a753187ff06ee5e293f5 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Mon, 3 Jan 2005 12:51:26 +0000 Subject: [PATCH] cure a few more warnings git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9416 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/xforms/ChangeLog | 7 +++++++ src/frontends/xforms/bmtable.c | 19 ++++++++++++++++++- src/frontends/xforms/combox.c | 12 ++++++++++++ src/frontends/xforms/freebrowser.c | 3 +++ 4 files changed, 40 insertions(+), 1 deletion(-) diff --git a/src/frontends/xforms/ChangeLog b/src/frontends/xforms/ChangeLog index dffed69747..a8e28ea0cc 100644 --- a/src/frontends/xforms/ChangeLog +++ b/src/frontends/xforms/ChangeLog @@ -1,3 +1,10 @@ +2005-01-03 Jean-Marc Lasgouttes + + * 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 * bmtable.c (fl_set_bmtable_pixmap_data): diff --git a/src/frontends/xforms/bmtable.c b/src/frontends/xforms/bmtable.c index 0a0e7483a7..61381e70e7 100644 --- a/src/frontends/xforms/bmtable.c +++ b/src/frontends/xforms/bmtable.c @@ -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; diff --git a/src/frontends/xforms/combox.c b/src/frontends/xforms/combox.c index 05e270f111..a537eba13d 100644 --- a/src/frontends/xforms/combox.c +++ b/src/frontends/xforms/combox.c @@ -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); } diff --git a/src/frontends/xforms/freebrowser.c b/src/frontends/xforms/freebrowser.c index 65089ff80b..298d33ac0f 100644 --- a/src/frontends/xforms/freebrowser.c +++ b/src/frontends/xforms/freebrowser.c @@ -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)