From 7aa583f73a7f1280ca0e4556f35dd47d01e00160 Mon Sep 17 00:00:00 2001 From: Pablo Barciela Date: Wed, 22 May 2024 11:37:02 +0200 Subject: [PATCH] newtest --- lapiz/smclient/eggsmclient-xsmp.c | 92 +++++++++++++++---------------- 1 file changed, 46 insertions(+), 46 deletions(-) diff --git a/lapiz/smclient/eggsmclient-xsmp.c b/lapiz/smclient/eggsmclient-xsmp.c index 3edb1008..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 (void/*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 (void/*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 (void/*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 (void/*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 (void/*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*/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) { /* Do nothing */ }