diff --git a/lapiz/smclient/eggsmclient-xsmp.c b/lapiz/smclient/eggsmclient-xsmp.c index 7f514e8c..a49ec289 100644 --- a/lapiz/smclient/eggsmclient-xsmp.c +++ b/lapiz/smclient/eggsmclient-xsmp.c @@ -121,22 +121,22 @@ static void sm_client_xsmp_set_restart_command (EggSMClient *client, static void sm_client_xsmp_will_quit (EggSMClient *client, gboolean will_quit); static gboolean sm_client_xsmp_end_session (EggSMClient *client, - EggSMClientEndStyle style, + EggSMClientEndStyle style G_GNUC_UNUSED, gboolean request_confirmation); -static void xsmp_save_yourself (SmcConn smc_conn, +static void xsmp_save_yourself (SmcConn smc_conn G_GNUC_UNUSED, SmPointer client_data, int save_style, Bool shutdown, int interact_style, Bool fast); -static void xsmp_die (SmcConn smc_conn, +static void xsmp_die (SmcConn smc_conn G_GNUC_UNUSED, SmPointer client_data); -static void xsmp_save_complete (SmcConn smc_conn, +static void xsmp_save_complete (SmcConn smc_conn G_GNUC_UNUSED, SmPointer client_data); -static void xsmp_shutdown_cancelled (SmcConn smc_conn, +static void xsmp_shutdown_cancelled (SmcConn smc_conn G_GNUC_UNUSED, SmPointer client_data); -static void xsmp_interact (SmcConn smc_conn, +static void xsmp_interact (SmcConn smc_conn G_GNUC_UNUSED, SmPointer client_data); static SmProp *array_prop (const char *name, @@ -161,13 +161,13 @@ static void update_pending_events (EggSMClientXSMP *xsmp); static void ice_init (void); static gboolean process_ice_messages (IceConn ice_conn); -static void smc_error_handler (SmcConn smc_conn, - Bool swap, - int offending_minor_opcode, - unsigned long offending_sequence, - int error_class, - int severity, - SmPointer values); +static void smc_error_handler (SmcConn smc_conn G_GNUC_UNUSED, + Bool swap G_GNUC_UNUSED, + int offending_minor_opcode G_GNUC_UNUSED, + unsigned long offending_sequence G_GNUC_UNUSED, + int error_class G_GNUC_UNUSED, + int severity G_GNUC_UNUSED, + SmPointer values G_GNUC_UNUSED); G_DEFINE_TYPE (EggSMClientXSMP, egg_sm_client_xsmp, EGG_TYPE_SM_CLIENT) @@ -442,7 +442,7 @@ sm_client_xsmp_will_quit (EggSMClient *client, static gboolean sm_client_xsmp_end_session (EggSMClient *client, - EggSMClientEndStyle style, + EggSMClientEndStyle style G_GNUC_UNUSED, gboolean request_confirmation) { EggSMClientXSMP *xsmp = (EggSMClientXSMP *)client; @@ -605,7 +605,7 @@ fix_broken_state (EggSMClientXSMP *xsmp, const char *message, /* SM callbacks */ static void -xsmp_save_yourself (SmcConn smc_conn, +xsmp_save_yourself (SmcConn smc_conn G_GNUC_UNUSED, SmPointer client_data, int save_type, Bool shutdown, @@ -924,7 +924,7 @@ save_state (EggSMClientXSMP *xsmp) } static void -xsmp_interact (SmcConn smc_conn, +xsmp_interact (SmcConn smc_conn G_GNUC_UNUSED, SmPointer client_data) { EggSMClientXSMP *xsmp = client_data; @@ -944,7 +944,7 @@ xsmp_interact (SmcConn smc_conn, } static void -xsmp_die (SmcConn smc_conn, +xsmp_die (SmcConn smc_conn G_GNUC_UNUSED, SmPointer client_data) { EggSMClientXSMP *xsmp = client_data; @@ -958,7 +958,7 @@ xsmp_die (SmcConn smc_conn, } static void -xsmp_save_complete (SmcConn smc_conn, +xsmp_save_complete (SmcConn smc_conn G_GNUC_UNUSED, SmPointer client_data) { EggSMClientXSMP *xsmp = client_data; @@ -973,7 +973,7 @@ xsmp_save_complete (SmcConn smc_conn, } static void -xsmp_shutdown_cancelled (SmcConn smc_conn, +xsmp_shutdown_cancelled (SmcConn smc_conn G_GNUC_UNUSED, SmPointer client_data) { EggSMClientXSMP *xsmp = client_data; @@ -1253,16 +1253,16 @@ card8_prop (const char *name, unsigned char value) #include #include -static void ice_error_handler (IceConn ice_conn, - Bool swap, - int offending_minor_opcode, - unsigned long offending_sequence, - int error_class, - int severity, - IcePointer values); -static void ice_io_error_handler (IceConn ice_conn); +static void ice_error_handler (IceConn ice_conn G_GNUC_UNUSED, + Bool swap G_GNUC_UNUSED, + int offending_minor_opcode G_GNUC_UNUSED, + unsigned long offending_sequence G_GNUC_UNUSED, + int error_class G_GNUC_UNUSED, + int severity G_GNUC_UNUSED, + IcePointer values G_GNUC_UNUSED); +static void ice_io_error_handler (IceConn ice_conn G_GNUC_UNUSED); static void ice_connection_watch (IceConn ice_conn, - IcePointer client_data, + IcePointer client_data G_GNUC_UNUSED, Bool opening, IcePointer *watch_data); @@ -1299,8 +1299,8 @@ process_ice_messages (IceConn ice_conn) } static gboolean -ice_iochannel_watch (GIOChannel *channel, - GIOCondition condition, +ice_iochannel_watch (GIOChannel *channel G_GNUC_UNUSED, + GIOCondition condition G_GNUC_UNUSED, gpointer client_data) { return process_ice_messages (client_data); @@ -1308,7 +1308,7 @@ ice_iochannel_watch (GIOChannel *channel, static void ice_connection_watch (IceConn ice_conn, - IcePointer client_data, + IcePointer client_data G_GNUC_UNUSED, Bool opening, IcePointer *watch_data) { @@ -1335,31 +1335,31 @@ ice_connection_watch (IceConn ice_conn, } static void -ice_error_handler (IceConn ice_conn, - Bool swap, - int offending_minor_opcode, - unsigned long offending_sequence, - int error_class, - int severity, - IcePointer values) +ice_error_handler (IceConn ice_conn G_GNUC_UNUSED, + Bool swap G_GNUC_UNUSED, + int offending_minor_opcode G_GNUC_UNUSED, + unsigned long offending_sequence G_GNUC_UNUSED, + int error_class G_GNUC_UNUSED, + int severity G_GNUC_UNUSED, + IcePointer values G_GNUC_UNUSED) { /* Do nothing */ } static void -ice_io_error_handler (IceConn ice_conn) +ice_io_error_handler (IceConn ice_conn G_GNUC_UNUSED) { /* Do nothing */ } static void -smc_error_handler (SmcConn smc_conn, - Bool swap, - int offending_minor_opcode, - unsigned long offending_sequence, - int error_class, - int severity, - SmPointer values) +smc_error_handler (SmcConn smc_conn G_GNUC_UNUSED, + Bool swap G_GNUC_UNUSED, + int offending_minor_opcode G_GNUC_UNUSED, + unsigned long offending_sequence G_GNUC_UNUSED, + int error_class G_GNUC_UNUSED, + int severity G_GNUC_UNUSED, + SmPointer values G_GNUC_UNUSED) { /* Do nothing */ }