diff options
author | Mike Brady <mikebrady@eircom.net> | 2018-03-07 20:48:21 +0000 |
---|---|---|
committer | Mike Brady <mikebrady@eircom.net> | 2018-03-07 20:48:21 +0000 |
commit | 8991f3420cfe82961d2a7e1f70cf746598f633cf (patch) | |
tree | 40b551fb6a6a5fe0c8cf2998cb7af3f1b9da2e6a /shairport-sync-mpris-test-client.c | |
parent | cfd40af87ebb15559da2da0b47c470597fc17422 (diff) |
Remove many causes of warnings at the -Wextra level
Diffstat (limited to 'shairport-sync-mpris-test-client.c')
-rw-r--r-- | shairport-sync-mpris-test-client.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/shairport-sync-mpris-test-client.c b/shairport-sync-mpris-test-client.c index dcff138..c2daa5b 100644 --- a/shairport-sync-mpris-test-client.c +++ b/shairport-sync-mpris-test-client.c @@ -7,8 +7,9 @@ GMainLoop *loop; -void on_properties_changed(GDBusProxy *proxy, GVariant *changed_properties, - const gchar *const *invalidated_properties, gpointer user_data) { +void on_properties_changed(__attribute__((unused)) GDBusProxy *proxy, GVariant *changed_properties, + const gchar *const *invalidated_properties, + __attribute__((unused)) gpointer user_data) { /* Note that we are guaranteed that changed_properties and * invalidated_properties are never NULL */ @@ -40,7 +41,7 @@ void on_properties_changed(GDBusProxy *proxy, GVariant *changed_properties, } pthread_t dbus_thread; -void *dbus_thread_func(void *arg) { +void *dbus_thread_func(__attribute__((unused)) void *arg) { loop = g_main_loop_new(NULL, FALSE); @@ -63,7 +64,7 @@ int main(int argc, char *argv[]) { "Listen on the D-Bus session bus -- pick this option or the \'--system\' option, but not " "both.", NULL}, - POPT_AUTOHELP{NULL, 0, 0, NULL, 0}}; + POPT_AUTOHELP{NULL, 0, 0, NULL, 0, NULL, NULL}}; optCon = poptGetContext(NULL, argc, (const char **)argv, optionsTable, 0); poptSetOtherOptionHelp(optCon, "[--system | --session]"); |