cure a few more warnings

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9416 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2005-01-03 12:51:26 +00:00
parent ed6dae8a40
commit 4757e3cb6f
4 changed files with 40 additions and 1 deletions

View 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> 2004-12-28 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
* bmtable.c (fl_set_bmtable_pixmap_data): * bmtable.c (fl_set_bmtable_pixmap_data):

View File

@ -169,6 +169,9 @@ static void draw_bitmaptable(FL_OBJECT *ob)
int handle_bitmaptable(FL_OBJECT * ob, int event, FL_Coord mx, int handle_bitmaptable(FL_OBJECT * ob, int event, FL_Coord mx,
FL_Coord my, int key, void * xev) FL_Coord my, int key, void * xev)
{ {
/* Silence warning about unused parameter */
(void) xev;
int i, j; int i, j;
BMTABLE_SPEC * sp = (BMTABLE_SPEC *)ob->spec; 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) 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"); 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) 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"); fprintf(stderr, "Get bmtable item: Sorry, not yet implemented!\n");
} }

View File

@ -367,6 +367,12 @@ static int
combox_handle(FL_OBJECT * ob, int event, FL_Coord mx, FL_Coord my, int key, combox_handle(FL_OBJECT * ob, int event, FL_Coord mx, FL_Coord my, int key,
void * ev) void * ev)
{ {
/* Silence warnings about unused parameters */
(void) mx;
(void) my;
(void) key;
(void) ev;
if (!ob || ob->objclass != FL_COMBOX) if (!ob || ob->objclass != FL_COMBOX)
return 0; return 0;
@ -452,6 +458,9 @@ show_browser(COMBOX_SPEC * sp)
static void static void
state_cb(FL_OBJECT * ob, long data) state_cb(FL_OBJECT * ob, long data)
{ {
/* Silence warning about unused parameter */
(void) data;
show_browser(ob->u_vdata); show_browser(ob->u_vdata);
} }
@ -459,6 +468,9 @@ state_cb(FL_OBJECT * ob, long data)
static void static void
chosen_cb(FL_OBJECT * ob, long data) chosen_cb(FL_OBJECT * ob, long data)
{ {
/* Silence warning about unused parameter */
(void) data;
show_browser(ob->u_vdata); show_browser(ob->u_vdata);
} }

View File

@ -125,6 +125,9 @@ fl_hide_freebrowser(FL_FREEBROWSER * fb)
static void static void
browser_cb(FL_OBJECT * ob, long data) browser_cb(FL_OBJECT * ob, long data)
{ {
/* Silence warning about unused parameter */
(void) data;
FL_FREEBROWSER * fb = ob->u_vdata; FL_FREEBROWSER * fb = ob->u_vdata;
fl_hide_freebrowser(fb); fl_hide_freebrowser(fb);
if (fb->callback) if (fb->callback)