Avoid a few more compilation warnings

This commit is contained in:
Pierre Pronchery 2018-01-22 02:57:46 +01:00
parent 28c4afa5f6
commit 77c5e2ab48

View File

@ -111,6 +111,8 @@ char const * panel_get_config(Panel * panel, char const * section,
/* panel_error */ /* panel_error */
int panel_error(Panel * panel, char const * message, int ret) int panel_error(Panel * panel, char const * message, int ret)
{ {
(void) panel;
fprintf(stderr, "%s: %s\n", PROGNAME, (message != NULL) ? message fprintf(stderr, "%s: %s\n", PROGNAME, (message != NULL) ? message
: error_get(NULL)); : error_get(NULL));
return ret; return ret;
@ -120,6 +122,9 @@ int panel_error(Panel * panel, char const * message, int ret)
/* panel_show_preferences */ /* panel_show_preferences */
void panel_show_preferences(Panel * panel, gboolean show) void panel_show_preferences(Panel * panel, gboolean show)
{ {
(void) panel;
(void) show;
/* XXX just a stub */ /* XXX just a stub */
} }
@ -286,6 +291,8 @@ static void _helper_init(PanelAppletHelper * helper, Panel * panel,
PanelWindowType type, GtkIconSize iconsize) PanelWindowType type, GtkIconSize iconsize)
{ {
char const * p; char const * p;
(void) panel;
(void) iconsize;
memset(helper, 0, sizeof(*helper)); memset(helper, 0, sizeof(*helper));
helper->panel = panel; helper->panel = panel;