silence -Wunused-parameter

This commit is contained in:
Pavel Grunt 2016-11-01 14:13:22 +01:00
parent 215b7571d4
commit 63e575d5fc
4 changed files with 4 additions and 4 deletions

View File

@ -121,7 +121,7 @@ static void spice_log_set_abort_level(void)
static void spice_logger(const gchar *log_domain,
GLogLevelFlags log_level,
const gchar *message,
gpointer user_data)
gpointer user_data G_GNUC_UNUSED)
{
if (glib_debug_level != 0) {
if ((log_level & G_LOG_LEVEL_MASK) > glib_debug_level)

View File

@ -72,7 +72,7 @@ def write_parser_helpers(writer):
writer.statement("return val")
writer.end_block()
writer.function("SPICE_GNUC_UNUSED consume_fd", "int", "uint8_t **ptr", True)
writer.function("SPICE_GNUC_UNUSED consume_fd", "int", "uint8_t **ptr SPICE_GNUC_UNUSED", True)
writer.statement("return -1")
writer.end_block()

View File

@ -364,7 +364,7 @@ static void test_spice_g_messages_debug_all(void)
}
#endif /* GLIB_CHECK_VERSION(2,38,0) */
static void handle_sigabrt(int sig)
static void handle_sigabrt(int sig G_GNUC_UNUSED)
{
_Exit(1);
}

View File

@ -14,7 +14,7 @@ static uint8_t expected_data[] = { 0x02, 0x00, 0x00, 0x00, /* data_size */
0xef, 0xcd, 0xab, 0x90, 0x78, 0x56, 0x34, 0x12, /* data */
};
int main(int argc, char **argv)
int main(int argc G_GNUC_UNUSED, char **argv G_GNUC_UNUSED)
{
SpiceMarshaller *marshaller;
SpiceMsgMainShortDataSubMarshall *msg;