mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-08 10:51:03 +00:00
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:
parent
ed6dae8a40
commit
4757e3cb6f
@ -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):
|
||||
|
@ -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;
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user