mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice-common
synced 2026-01-06 09:47:43 +00:00
silence -Wunused-parameter
This commit is contained in:
parent
215b7571d4
commit
63e575d5fc
@ -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)
|
||||
|
||||
@ -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()
|
||||
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user