[libdmapsharing/LIBDMAPSHARING_3_0] Fix a number of GCC warnings



commit c79350d96410e75c83921c62fd4296aa5c0c35fd
Author: W. Michael Petullo <mike flyn org>
Date:   Fri Jul 3 09:07:43 2020 -0500

    Fix a number of GCC warnings

 libdmapsharing/daap-connection.c           | 10 ++--
 libdmapsharing/daap-record.c               |  8 +--
 libdmapsharing/daap-share.c                | 29 +++++-----
 libdmapsharing/dacp-connection.c           | 12 +++--
 libdmapsharing/dacp-player.c               |  8 +--
 libdmapsharing/dacp-share.c                | 13 ++---
 libdmapsharing/dmap-connection.c           | 40 +++++++-------
 libdmapsharing/dmap-container-db.c         | 10 ++--
 libdmapsharing/dmap-container-record.c     |  8 +--
 libdmapsharing/dmap-db.c                   | 10 ++--
 libdmapsharing/dmap-gst-input-stream.c     | 86 ++++++++++++++++--------------
 libdmapsharing/dmap-gst-mp3-input-stream.c |  2 +-
 libdmapsharing/dmap-gst-qt-input-stream.c  |  2 +-
 libdmapsharing/dmap-gst-wav-input-stream.c |  2 +-
 libdmapsharing/dmap-md5.c                  |  4 +-
 libdmapsharing/dmap-private-utils.c        |  3 +-
 libdmapsharing/dmap-record-factory.c       | 10 ++--
 libdmapsharing/dmap-record.c               | 10 ++--
 libdmapsharing/dmap-share.c                | 54 +++++++++++--------
 libdmapsharing/dmap-structure.c            |  6 +--
 libdmapsharing/dpap-connection.c           |  8 +--
 libdmapsharing/dpap-record.c               |  8 +--
 libdmapsharing/dpap-share.c                | 37 +++++++------
 libdmapsharing/test-daap-record-factory.c  | 10 ++--
 libdmapsharing/test-daap-record.c          |  6 ++-
 libdmapsharing/test-dpap-record-factory.c  | 10 ++--
 libdmapsharing/test-dpap-record.c          |  4 +-
 27 files changed, 225 insertions(+), 185 deletions(-)
---
diff --git a/libdmapsharing/daap-connection.c b/libdmapsharing/daap-connection.c
index 20bb9c5..9014317 100644
--- a/libdmapsharing/daap-connection.c
+++ b/libdmapsharing/daap-connection.c
@@ -24,13 +24,13 @@
 #include <libdmapsharing/dmap-structure.h>
 
 static DMAPContentCode
-_get_protocol_version_cc (DMAPConnection * connection)
+_get_protocol_version_cc (G_GNUC_UNUSED DMAPConnection * connection)
 {
        return DMAP_CC_APRO;
 }
 
 static gchar *
-_get_query_metadata (DMAPConnection * connection)
+_get_query_metadata (G_GNUC_UNUSED DMAPConnection * connection)
 {
        return g_strdup ("dmap.itemid,dmap.itemname,daap.songalbum,"
                         "daap.songartist,daap.songgenre,daap.songsize,"
@@ -41,8 +41,8 @@ _get_query_metadata (DMAPConnection * connection)
 }
 
 static DMAPRecord *
-_handle_mlcl (DMAPConnection * connection, DMAPRecordFactory * factory,
-             GNode * n, int *item_id)
+_handle_mlcl (G_GNUC_UNUSED DMAPConnection * connection,
+              DMAPRecordFactory * factory, GNode * n, int *item_id)
 {
        GNode *n2;
        DMAPRecord *record = NULL;
@@ -178,7 +178,7 @@ daap_connection_new (const char *name,
 }
 
 static void
-daap_connection_init (DAAPConnection * connection)
+daap_connection_init (G_GNUC_UNUSED DAAPConnection * connection)
 {
 }
 
diff --git a/libdmapsharing/daap-record.c b/libdmapsharing/daap-record.c
index 8e9e3c0..772ecd7 100644
--- a/libdmapsharing/daap-record.c
+++ b/libdmapsharing/daap-record.c
@@ -199,7 +199,7 @@ daap_record_init (DAAPRecordIface * iface)
 }
 
 static void
-daap_record_finalize (DAAPRecordIface * iface)
+daap_record_finalize (G_GNUC_UNUSED DAAPRecordIface * iface)
 {
        daap_record_init_count--;
 }
@@ -212,9 +212,9 @@ daap_record_get_type (void)
 
        if (!object_type) {
                static const GTypeInfo object_info = {
-                       sizeof (DAAPRecordIface),
-                       (GBaseInitFunc) daap_record_init,
-                       (GBaseFinalizeFunc) daap_record_finalize
+                       class_size:     sizeof (DAAPRecordIface),
+                       base_init:     (GBaseInitFunc) daap_record_init,
+                       base_finalize: (GBaseFinalizeFunc) daap_record_finalize
                };
                object_type =
                        g_type_register_static (G_TYPE_INTERFACE,
diff --git a/libdmapsharing/daap-share.c b/libdmapsharing/daap-share.c
index 4e266a6..8899a9f 100644
--- a/libdmapsharing/daap-share.c
+++ b/libdmapsharing/daap-share.c
@@ -90,7 +90,7 @@ daap_share_class_init (DAAPShareClass * klass)
 }
 
 static void
-daap_share_init (DAAPShare * share)
+daap_share_init (G_GNUC_UNUSED DAAPShare * share)
 {
 }
 
@@ -120,7 +120,7 @@ daap_share_new (const char *name,
 }
 
 void
-daap_share_message_add_standard_headers (DMAPShare * share,
+daap_share_message_add_standard_headers (G_GNUC_UNUSED DMAPShare * share,
                                         SoupMessage * message)
 {
        soup_message_headers_append (message->response_headers, "DMAP-Server",
@@ -132,23 +132,24 @@ daap_share_message_add_standard_headers (DMAPShare * share,
 #define DAAP_TIMEOUT 1800
 
 guint
-daap_share_get_desired_port (DMAPShare * share)
+daap_share_get_desired_port (G_GNUC_UNUSED DMAPShare * share)
 {
        return DAAP_PORT;
 }
 
 const char *
-daap_share_get_type_of_service (DMAPShare * share)
+daap_share_get_type_of_service (G_GNUC_UNUSED DMAPShare * share)
 {
        return DAAP_TYPE_OF_SERVICE;
 }
 
 void
 daap_share_server_info (DMAPShare * share,
-                       SoupServer * server,
+                       G_GNUC_UNUSED SoupServer * server,
                        SoupMessage * message,
                        const char *path,
-                       GHashTable * query, SoupClientContext * context)
+                       G_GNUC_UNUSED GHashTable * query,
+                        G_GNUC_UNUSED SoupClientContext * context)
 {
 /* MSRV        server info response
  *     MSTT status
@@ -686,7 +687,7 @@ add_entry_to_mlcl (gpointer id, DMAPRecord * record, gpointer _mb)
 }
 
 static void
-genre_tabulator (gpointer id, DMAPRecord * record, GHashTable * ht)
+genre_tabulator (G_GNUC_UNUSED gpointer id, DMAPRecord * record, GHashTable * ht)
 {
        const gchar *genre;
 
@@ -698,7 +699,7 @@ genre_tabulator (gpointer id, DMAPRecord * record, GHashTable * ht)
 }
 
 static void
-artist_tabulator (gpointer id, DMAPRecord * record, GHashTable * ht)
+artist_tabulator (G_GNUC_UNUSED gpointer id, DMAPRecord * record, GHashTable * ht)
 {
        const gchar *artist;
 
@@ -710,7 +711,7 @@ artist_tabulator (gpointer id, DMAPRecord * record, GHashTable * ht)
 }
 
 static void
-album_tabulator (gpointer id, DMAPRecord * record, GHashTable * ht)
+album_tabulator (G_GNUC_UNUSED gpointer id, DMAPRecord * record, GHashTable * ht)
 {
        const gchar *album;
 
@@ -733,10 +734,11 @@ add_to_category_listing (gpointer key, gpointer user_data)
 
 static void
 databases_browse_xxx (DMAPShare * share,
-                     SoupServer * server,
+                     G_GNUC_UNUSED SoupServer * server,
                      SoupMessage * msg,
                      const char *path,
-                     GHashTable * query, SoupClientContext * context)
+                     GHashTable * query,
+                      G_GNUC_UNUSED SoupClientContext * context)
 {
        /* ABRO database browse
         *      MSTT status
@@ -821,7 +823,8 @@ databases_items_xxx (DMAPShare * share,
                     SoupServer * server,
                     SoupMessage * msg,
                     const char *path,
-                    GHashTable * query, SoupClientContext * context)
+                    G_GNUC_UNUSED GHashTable * query,
+                     G_GNUC_UNUSED SoupClientContext * context)
 {
        DMAPDb *db;
        const gchar *transcode_mimetype;
@@ -881,7 +884,7 @@ databases_items_xxx (DMAPShare * share,
 }
 
 static struct DMAPMetaDataMap *
-get_meta_data_map (DMAPShare * share)
+get_meta_data_map (G_GNUC_UNUSED DMAPShare * share)
 {
        return meta_data_map;
 }
diff --git a/libdmapsharing/dacp-connection.c b/libdmapsharing/dacp-connection.c
index c1811f1..81908f5 100644
--- a/libdmapsharing/dacp-connection.c
+++ b/libdmapsharing/dacp-connection.c
@@ -24,7 +24,7 @@
 #include <libdmapsharing/dmap-structure.h>
 
 static DMAPContentCode
-get_protocol_version_cc (DMAPConnection * connection)
+get_protocol_version_cc (G_GNUC_UNUSED DMAPConnection * connection)
 {
        /* FIXME: */
        g_error ("Not implemented");
@@ -32,7 +32,7 @@ get_protocol_version_cc (DMAPConnection * connection)
 }
 
 static gchar *
-get_query_metadata (DMAPConnection * connection)
+get_query_metadata (G_GNUC_UNUSED DMAPConnection * connection)
 {
        /* FIXME: */
        g_error ("Not implemented");
@@ -40,8 +40,10 @@ get_query_metadata (DMAPConnection * connection)
 }
 
 static DMAPRecord *
-handle_mlcl (DMAPConnection * connection, DMAPRecordFactory * factory,
-            GNode * n, int *item_id)
+handle_mlcl (G_GNUC_UNUSED DMAPConnection * connection,
+             G_GNUC_UNUSED DMAPRecordFactory * factory,
+            G_GNUC_UNUSED GNode * n,
+             G_GNUC_UNUSED int *item_id)
 {
        /* FIXME: */
        g_error ("Not implemented");
@@ -78,7 +80,7 @@ dacp_connection_new (const char *name,
 }
 
 static void
-dacp_connection_init (DACPConnection * connection)
+dacp_connection_init (G_GNUC_UNUSED DACPConnection * connection)
 {
 }
 
diff --git a/libdmapsharing/dacp-player.c b/libdmapsharing/dacp-player.c
index 9eaab08..50df0dd 100644
--- a/libdmapsharing/dacp-player.c
+++ b/libdmapsharing/dacp-player.c
@@ -69,7 +69,7 @@ dacp_player_init (DACPPlayerIface * iface)
 }
 
 static void
-dacp_player_finalize (DACPPlayerIface * iface)
+dacp_player_finalize (G_GNUC_UNUSED DACPPlayerIface * iface)
 {
 }
 
@@ -80,9 +80,9 @@ dacp_player_get_type (void)
 
        if (!object_type) {
                static const GTypeInfo object_info = {
-                       sizeof (DACPPlayerIface),
-                       (GBaseInitFunc) dacp_player_init,
-                       (GBaseFinalizeFunc) dacp_player_finalize
+                       class_size:     sizeof (DACPPlayerIface),
+                       base_init:     (GBaseInitFunc) dacp_player_init,
+                       base_finalize: (GBaseFinalizeFunc) dacp_player_finalize
                };
                object_type = g_type_register_static (G_TYPE_INTERFACE,
                                                      "DACPPlayer",
diff --git a/libdmapsharing/dacp-share.c b/libdmapsharing/dacp-share.c
index 01cb7d6..fff4d12 100644
--- a/libdmapsharing/dacp-share.c
+++ b/libdmapsharing/dacp-share.c
@@ -379,7 +379,7 @@ dacp_share_dispose (GObject * object)
 }
 
 void
-mdns_remote_added (DMAPMdnsBrowser * browser,
+mdns_remote_added (G_GNUC_UNUSED DMAPMdnsBrowser * browser,
                   DMAPMdnsBrowserService * service, DACPShare * share)
 {
        DACPRemoteInfo *remote_info;
@@ -404,7 +404,7 @@ mdns_remote_added (DMAPMdnsBrowser * browser,
 }
 
 void
-mdns_remote_removed (DMAPMdnsBrowser * browser,
+mdns_remote_removed (G_GNUC_UNUSED DMAPMdnsBrowser * browser,
                     const char *service_name, DACPShare * share)
 {
        g_signal_emit (share, signals[REMOTE_LOST], 0, service_name);
@@ -468,7 +468,7 @@ dacp_share_start_lookup (DACPShare * share)
 }
 
 static gboolean
-remove_remotes_cb (gpointer service_name, gpointer remote_info,
+remove_remotes_cb (gpointer service_name, G_GNUC_UNUSED gpointer remote_info,
                   gpointer share)
 {
        g_signal_emit ((DACPShare *) share,
@@ -501,7 +501,7 @@ dacp_share_stop_lookup (DACPShare * share)
 }
 
 const char *
-dacp_share_get_type_of_service (DMAPShare * share)
+dacp_share_get_type_of_service (G_GNUC_UNUSED DMAPShare * share)
 {
        return DACP_TYPE_OF_SERVICE;
 }
@@ -612,7 +612,7 @@ dacp_share_fill_playstatusupdate (DACPShare * share, SoupMessage * message)
 }
 
 static void
-debug_param (gpointer key, gpointer val, gpointer user_data)
+debug_param (gpointer key, gpointer val, G_GNUC_UNUSED gpointer user_data)
 {
        g_debug ("%s %s", (char *) key, (char *) val);
 }
@@ -968,7 +968,8 @@ dacp_share_ctrl_int (DMAPShare * share,
 #define PASSCODE_LENGTH 4
 
 static gchar *
-dacp_share_pairing_code (DACPShare * share, gchar * pair_txt,
+dacp_share_pairing_code (G_GNUC_UNUSED DACPShare * share,
+                         gchar * pair_txt,
                         gchar passcode[4])
 {
        int i;
diff --git a/libdmapsharing/dmap-connection.c b/libdmapsharing/dmap-connection.c
index 1a3901e..5f73242 100644
--- a/libdmapsharing/dmap-connection.c
+++ b/libdmapsharing/dmap-connection.c
@@ -338,9 +338,10 @@ connection_operation_done (DMAPConnection * connection)
 SoupMessage *
 dmap_connection_build_message (DMAPConnection * connection,
                               const char *path,
-                              gboolean need_hash,
-                              gdouble version,
-                              gint req_id, gboolean send_close)
+                              G_GNUC_UNUSED gboolean need_hash,
+                              G_GNUC_UNUSED gdouble version,
+                              G_GNUC_UNUSED gint req_id,
+                               G_GNUC_UNUSED gboolean send_close)
 {
        SoupMessage *message = NULL;
        SoupURI *base_uri = NULL;
@@ -378,7 +379,7 @@ dmap_connection_build_message (DMAPConnection * connection,
 
 #ifdef HAVE_LIBZ
 static void *
-g_zalloc_wrapper (voidpf opaque, uInt items, uInt size)
+g_zalloc_wrapper (G_GNUC_UNUSED voidpf opaque, uInt items, uInt size)
 {
        if ((items != 0) && (size >= G_MAXUINT / items)) {
                return Z_NULL;
@@ -390,7 +391,7 @@ g_zalloc_wrapper (voidpf opaque, uInt items, uInt size)
 }
 
 static void
-g_zfree_wrapper (voidpf opaque, voidpf address)
+g_zfree_wrapper (G_GNUC_UNUSED voidpf opaque, voidpf address)
 {
        g_free (address);
 }
@@ -419,7 +420,7 @@ typedef struct
        gpointer user_data;
 } DAAPResponseData;
 
-static void
+static gpointer
 actual_http_response_handler (DAAPResponseData * data)
 {
        DMAPConnectionPrivate *priv;
@@ -606,13 +607,15 @@ actual_http_response_handler (DAAPResponseData * data)
        g_object_unref (G_OBJECT (data->connection));
        g_object_unref (G_OBJECT (data->message));
        g_free (data);
+
+       return NULL;
 }
 
 static void
-http_response_handler (SoupSession * session,
+http_response_handler (G_GNUC_UNUSED SoupSession * session,
                       SoupMessage * message, DAAPResponseData * data)
 {
-       int response_length;
+       goffset response_length;
 
        if (message->status_code == SOUP_STATUS_CANCELLED) {
                g_debug ("Message cancelled");
@@ -712,7 +715,7 @@ emit_progress_idle (DMAPConnection * connection)
 
 static void
 handle_server_info (DMAPConnection * connection,
-                   guint status, GNode * structure, gpointer user_data)
+                   guint status, GNode * structure, G_GNUC_UNUSED gpointer user_data)
 {
        DMAPConnectionPrivate *priv = connection->priv;
        DMAPStructureItem *item = NULL;
@@ -738,7 +741,7 @@ handle_server_info (DMAPConnection * connection,
 
 static void
 handle_login (DMAPConnection * connection,
-             guint status, GNode * structure, gpointer user_data)
+             guint status, GNode * structure, G_GNUC_UNUSED gpointer user_data)
 {
        DMAPConnectionPrivate *priv = connection->priv;
        DMAPStructureItem *item = NULL;
@@ -777,7 +780,7 @@ handle_login (DMAPConnection * connection,
 
 static void
 handle_update (DMAPConnection * connection,
-              guint status, GNode * structure, gpointer user_data)
+              guint status, GNode * structure, G_GNUC_UNUSED gpointer user_data)
 {
        DMAPConnectionPrivate *priv = connection->priv;
        DMAPStructureItem *item;
@@ -801,7 +804,7 @@ handle_update (DMAPConnection * connection,
 
 static void
 handle_database_info (DMAPConnection * connection,
-                     guint status, GNode * structure, gpointer user_data)
+                     guint status, GNode * structure, G_GNUC_UNUSED gpointer user_data)
 {
        DMAPConnectionPrivate *priv = connection->priv;
        DMAPStructureItem *item = NULL;
@@ -848,7 +851,7 @@ handle_database_info (DMAPConnection * connection,
 
 static void
 handle_song_listing (DMAPConnection * connection,
-                    guint status, GNode * structure, gpointer user_data)
+                    guint status, GNode * structure, G_GNUC_UNUSED gpointer user_data)
 {
        DMAPConnectionPrivate *priv = connection->priv;
        DMAPStructureItem *item = NULL;
@@ -989,7 +992,7 @@ compare_playlists_by_name (gconstpointer a, gconstpointer b)
 
 static void
 handle_playlists (DMAPConnection * connection,
-                 guint status, GNode * structure, gpointer user_data)
+                 guint status, GNode * structure, G_GNUC_UNUSED gpointer user_data)
 {
        DMAPConnectionPrivate *priv = connection->priv;
        GNode *listing_node;
@@ -1052,7 +1055,7 @@ handle_playlists (DMAPConnection * connection,
 
 static void
 handle_playlist_entries (DMAPConnection * connection,
-                        guint status, GNode * structure, gpointer user_data)
+                        guint status, GNode * structure, G_GNUC_UNUSED gpointer user_data)
 {
        DMAPConnectionPrivate *priv = connection->priv;
        DMAPPlaylist *playlist;
@@ -1112,7 +1115,9 @@ handle_playlist_entries (DMAPConnection * connection,
 
 static void
 handle_logout (DMAPConnection * connection,
-              guint status, GNode * structure, gpointer user_data)
+              G_GNUC_UNUSED guint status,
+               G_GNUC_UNUSED GNode * structure,
+               G_GNUC_UNUSED gpointer user_data)
 {
        connection_disconnected (connection);
 
@@ -1655,8 +1660,7 @@ dmap_connection_dispose (GObject * object)
                        DMAPPlaylist *playlist = l->data;
 
                        /* FIXME: refstring: */
-                       g_list_foreach (playlist->uris, (GFunc) g_free, NULL);
-                       g_list_free (playlist->uris);
+                       g_list_free_full (playlist->uris, g_free);
                        g_free (playlist->name);
                        g_free (playlist);
                        l->data = NULL;
diff --git a/libdmapsharing/dmap-container-db.c b/libdmapsharing/dmap-container-db.c
index 899827e..10ff091 100644
--- a/libdmapsharing/dmap-container-db.c
+++ b/libdmapsharing/dmap-container-db.c
@@ -23,13 +23,13 @@
 static gint dmap_container_db_init_count = 0;
 
 static void
-dmap_container_db_init (DMAPContainerDbIface * iface)
+dmap_container_db_init (G_GNUC_UNUSED DMAPContainerDbIface * iface)
 {
        dmap_container_db_init_count++;
 }
 
 static void
-dmap_container_db_finalize (DMAPContainerDbIface * iface)
+dmap_container_db_finalize (G_GNUC_UNUSED DMAPContainerDbIface * iface)
 {
        dmap_container_db_init_count--;
 }
@@ -42,9 +42,9 @@ dmap_container_db_get_type (void)
 
        if (!object_type) {
                static const GTypeInfo object_info = {
-                       sizeof (DMAPContainerDbIface),
-                       (GBaseInitFunc) dmap_container_db_init,
-                       (GBaseFinalizeFunc) dmap_container_db_finalize
+                       class_size:     sizeof (DMAPContainerDbIface),
+                       base_init:     (GBaseInitFunc) dmap_container_db_init,
+                       base_finalize: (GBaseFinalizeFunc) dmap_container_db_finalize
                };
                object_type =
                        g_type_register_static (G_TYPE_INTERFACE,
diff --git a/libdmapsharing/dmap-container-record.c b/libdmapsharing/dmap-container-record.c
index 2e70706..43faca1 100644
--- a/libdmapsharing/dmap-container-record.c
+++ b/libdmapsharing/dmap-container-record.c
@@ -42,7 +42,7 @@ dmap_container_record_init (DMAPContainerRecordIface * iface)
 }
 
 static void
-dmap_container_record_finalize (DMAPContainerRecordIface * iface)
+dmap_container_record_finalize (G_GNUC_UNUSED DMAPContainerRecordIface * iface)
 {
        dmap_container_record_init_count--;
 }
@@ -55,9 +55,9 @@ dmap_container_record_get_type (void)
 
        if (!object_type) {
                static const GTypeInfo object_info = {
-                       sizeof (DMAPContainerRecordIface),
-                       (GBaseInitFunc) dmap_container_record_init,
-                       (GBaseFinalizeFunc) dmap_container_record_finalize
+                       class_size:     sizeof (DMAPContainerRecordIface),
+                       base_init:     (GBaseInitFunc) dmap_container_record_init,
+                       base_finalize: (GBaseFinalizeFunc) dmap_container_record_finalize
                };
                object_type =
                        g_type_register_static (G_TYPE_INTERFACE,
diff --git a/libdmapsharing/dmap-db.c b/libdmapsharing/dmap-db.c
index e7dda13..fc73de8 100644
--- a/libdmapsharing/dmap-db.c
+++ b/libdmapsharing/dmap-db.c
@@ -32,13 +32,13 @@ typedef struct FilterData
 static gint dmap_db_init_count = 0;
 
 static void
-dmap_db_init (DMAPDbIface * iface)
+dmap_db_init (G_GNUC_UNUSED DMAPDbIface * iface)
 {
        dmap_db_init_count++;
 }
 
 static void
-dmap_db_finalize (DMAPDbIface * iface)
+dmap_db_finalize (G_GNUC_UNUSED DMAPDbIface * iface)
 {
        dmap_db_init_count--;
 }
@@ -51,9 +51,9 @@ dmap_db_get_type (void)
 
        if (!object_type) {
                static const GTypeInfo object_info = {
-                       sizeof (DMAPDbIface),
-                       (GBaseInitFunc) dmap_db_init,
-                       (GBaseFinalizeFunc) dmap_db_finalize
+                       class_size:     sizeof (DMAPDbIface),
+                       base_init:     (GBaseInitFunc) dmap_db_init,
+                       base_finalize: (GBaseFinalizeFunc) dmap_db_finalize
                };
                object_type =
                        g_type_register_static (G_TYPE_INTERFACE,
diff --git a/libdmapsharing/dmap-gst-input-stream.c b/libdmapsharing/dmap-gst-input-stream.c
index 8a355c5..dfda5a7 100644
--- a/libdmapsharing/dmap-gst-input-stream.c
+++ b/libdmapsharing/dmap-gst-input-stream.c
@@ -64,7 +64,7 @@ struct DMAPGstInputStreamPrivate
 };
 
 static goffset
-dmap_gst_input_stream_tell (GSeekable * seekable)
+dmap_gst_input_stream_tell (G_GNUC_UNUSED GSeekable * seekable)
 {
        /* FIXME: implement return current position in stream. */
        g_error ("Not implemented");
@@ -72,16 +72,17 @@ dmap_gst_input_stream_tell (GSeekable * seekable)
 }
 
 static gboolean
-dmap_gst_input_stream_can_seek (GSeekable * seekable)
+dmap_gst_input_stream_can_seek (G_GNUC_UNUSED GSeekable * seekable)
 {
        return TRUE;
 }
 
 static gboolean
-dmap_gst_input_stream_seek (GSeekable * seekable,
-                           goffset offset,
+dmap_gst_input_stream_seek (G_GNUC_UNUSED GSeekable * seekable,
+                           G_GNUC_UNUSED goffset offset,
                            GSeekType type,
-                           GCancellable * cacellable, GError ** error)
+                           G_GNUC_UNUSED GCancellable * cacellable,
+                            GError ** error)
 {
        // FIXME: implement: DMAPGstInputStream *stream;
        // FIXME: implement: goffset absolute;
@@ -139,15 +140,16 @@ dmap_gst_input_stream_seek (GSeekable * seekable,
 }
 
 static gboolean
-dmap_gst_input_stream_can_truncate (GSeekable * seekable)
+dmap_gst_input_stream_can_truncate (G_GNUC_UNUSED GSeekable * seekable)
 {
        return FALSE;
 }
 
 static gboolean
-dmap_gst_input_stream_truncate (GSeekable * seekable,
-                               goffset offset,
-                               GCancellable * cancellable, GError ** error)
+dmap_gst_input_stream_truncate (G_GNUC_UNUSED GSeekable * seekable,
+                               G_GNUC_UNUSED goffset offset,
+                               G_GNUC_UNUSED GCancellable * cancellable,
+                                GError ** error)
 {
        g_set_error (error, G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED,
                     "Cannot truncate DMAPGstInputStream");
@@ -297,9 +299,10 @@ static gssize
 dmap_gst_input_stream_read (GInputStream * stream,
                            void *buffer,
                            gsize count,
-                           GCancellable * cancellable, GError ** error)
+                           G_GNUC_UNUSED GCancellable * cancellable,
+                            G_GNUC_UNUSED GError ** error)
 {
-       int i;
+       gsize i;
        DMAPGstInputStream *gst_stream = DMAP_GST_INPUT_STREAM (stream);
        gint64 end_time;
 
@@ -342,9 +345,10 @@ dmap_gst_input_stream_read (GInputStream * stream,
 }
 
 static gssize
-dmap_gst_input_stream_skip (GInputStream * stream,
-                           gsize count,
-                           GCancellable * cancellable, GError ** error)
+dmap_gst_input_stream_skip (G_GNUC_UNUSED GInputStream * stream,
+                           G_GNUC_UNUSED gsize count,
+                           G_GNUC_UNUSED GCancellable * cancellable,
+                            G_GNUC_UNUSED GError ** error)
 {
        g_error ("Not implemented");
        return 0;
@@ -358,7 +362,8 @@ dmap_gst_input_stream_kill_pipeline (DMAPGstInputStream * stream)
 
 static gboolean
 dmap_gst_input_stream_close (GInputStream * stream,
-                            GCancellable * cancellable, GError ** error)
+                            G_GNUC_UNUSED GCancellable * cancellable,
+                             G_GNUC_UNUSED GError ** error)
 {
        DMAPGstInputStream *gst_stream = DMAP_GST_INPUT_STREAM (stream);
 
@@ -375,54 +380,57 @@ dmap_gst_input_stream_close (GInputStream * stream,
 }
 
 static gssize
-dmap_gst_input_stream_read_finish (GInputStream * stream,
-                                  GAsyncResult * result, GError ** error)
+dmap_gst_input_stream_read_finish (G_GNUC_UNUSED GInputStream * stream,
+                                  G_GNUC_UNUSED GAsyncResult * result,
+                                   G_GNUC_UNUSED GError ** error)
 {
        g_error ("Not implemented");
        return 0;
 }
 
 static gssize
-dmap_gst_input_stream_skip_finish (GInputStream * stream,
-                                  GAsyncResult * result, GError ** error)
+dmap_gst_input_stream_skip_finish (G_GNUC_UNUSED GInputStream * stream,
+                                  G_GNUC_UNUSED GAsyncResult * result,
+                                   G_GNUC_UNUSED GError ** error)
 {
        g_error ("Not implemented");
        return 0;
 }
 
 static void
-dmap_gst_input_stream_close_async (GInputStream * stream,
-                                  int io_priority,
-                                  GCancellable * cancellabl,
-                                  GAsyncReadyCallback callback,
-                                  gpointer data)
+dmap_gst_input_stream_close_async (G_GNUC_UNUSED GInputStream * stream,
+                                  G_GNUC_UNUSED int io_priority,
+                                  G_GNUC_UNUSED GCancellable * cancellabl,
+                                  G_GNUC_UNUSED GAsyncReadyCallback callback,
+                                  G_GNUC_UNUSED gpointer data)
 {
 }
 
 static void
-dmap_gst_input_stream_read_async (GInputStream * stream,
-                                 void *buffer,
-                                 gsize count,
-                                 int io_priority,
-                                 GCancellable * cancellable,
-                                 GAsyncReadyCallback callback,
-                                 gpointer user_data)
+dmap_gst_input_stream_read_async (G_GNUC_UNUSED GInputStream * stream,
+                                 G_GNUC_UNUSED void *buffer,
+                                 G_GNUC_UNUSED gsize count,
+                                 G_GNUC_UNUSED int io_priority,
+                                 G_GNUC_UNUSED GCancellable * cancellable,
+                                 G_GNUC_UNUSED GAsyncReadyCallback callback,
+                                 G_GNUC_UNUSED gpointer user_data)
 {
 }
 
 static void
-dmap_gst_input_stream_skip_async (GInputStream * stream,
-                                 gsize count,
-                                 int io_priority,
-                                 GCancellable * cancellabl,
-                                 GAsyncReadyCallback callback,
-                                 gpointer datae)
+dmap_gst_input_stream_skip_async (G_GNUC_UNUSED GInputStream * stream,
+                                 G_GNUC_UNUSED gsize count,
+                                 G_GNUC_UNUSED int io_priority,
+                                 G_GNUC_UNUSED GCancellable * cancellabl,
+                                 G_GNUC_UNUSED GAsyncReadyCallback callback,
+                                 G_GNUC_UNUSED gpointer datae)
 {
 }
 
 static gboolean
-dmap_gst_input_stream_close_finish (GInputStream * stream,
-                                   GAsyncResult * result, GError ** error)
+dmap_gst_input_stream_close_finish (G_GNUC_UNUSED GInputStream * stream,
+                                   G_GNUC_UNUSED GAsyncResult * result,
+                                    G_GNUC_UNUSED GError ** error)
 {
        g_error ("Not implemented");
        return FALSE;
diff --git a/libdmapsharing/dmap-gst-mp3-input-stream.c b/libdmapsharing/dmap-gst-mp3-input-stream.c
index 170b7fd..550d174 100644
--- a/libdmapsharing/dmap-gst-mp3-input-stream.c
+++ b/libdmapsharing/dmap-gst-mp3-input-stream.c
@@ -43,7 +43,7 @@ void dmap_gst_input_stream_new_buffer_cb (GstElement * element,
                                          DMAPGstInputStream * stream);
 
 static void
-pad_added_cb (GstElement * element,
+pad_added_cb (G_GNUC_UNUSED GstElement * element,
               GstPad * pad,
               GstElement *convert)
 {
diff --git a/libdmapsharing/dmap-gst-qt-input-stream.c b/libdmapsharing/dmap-gst-qt-input-stream.c
index 12a6cee..e3f4874 100644
--- a/libdmapsharing/dmap-gst-qt-input-stream.c
+++ b/libdmapsharing/dmap-gst-qt-input-stream.c
@@ -44,7 +44,7 @@ void dmap_gst_input_stream_new_buffer_cb (GstElement * element,
                                          DMAPGstInputStream * stream);
 
 static void
-pad_added_cb (GstElement * element,
+pad_added_cb (G_GNUC_UNUSED GstElement * element,
               GstPad * pad,
               GstElement *convert)
 {
diff --git a/libdmapsharing/dmap-gst-wav-input-stream.c b/libdmapsharing/dmap-gst-wav-input-stream.c
index 301b448..ce229a4 100644
--- a/libdmapsharing/dmap-gst-wav-input-stream.c
+++ b/libdmapsharing/dmap-gst-wav-input-stream.c
@@ -44,7 +44,7 @@ void dmap_gst_input_stream_new_buffer_cb (GstElement * element,
                                          DMAPGstInputStream * stream);
 
 static void
-pad_added_cb (GstElement * element,
+pad_added_cb (G_GNUC_UNUSED GstElement * element,
               GstPad * pad,
               GstElement *convert)
 {
diff --git a/libdmapsharing/dmap-md5.c b/libdmapsharing/dmap-md5.c
index 0e38d21..e5cd882 100644
--- a/libdmapsharing/dmap-md5.c
+++ b/libdmapsharing/dmap-md5.c
@@ -443,7 +443,7 @@ dmap_hash_generate (short version_major,
 {
        unsigned char buf[16];
        DMAPHashContext ctx;
-       gint i;
+       size_t i;
 
        unsigned char *hashTable = (version_major == 3) ?
                staticHash_45 : staticHash_42;
@@ -507,7 +507,7 @@ void dmap_hash_progressive_final (DMAPHashContext *context,
        /* FIXME: This is only equivalent to dmap_hash_generate()
          *        when it is called with (3, x, 2, y, 0).
          */
-       int i;
+       size_t i;
 
        /* FIXME: Share this stuff with dmap_hash_generate() */
        if (ac_unfudged == FALSE) {
diff --git a/libdmapsharing/dmap-private-utils.c b/libdmapsharing/dmap-private-utils.c
index fc7999b..a905899 100644
--- a/libdmapsharing/dmap-private-utils.c
+++ b/libdmapsharing/dmap-private-utils.c
@@ -53,7 +53,8 @@ dmap_write_next_chunk (SoupMessage * message, ChunkData * cd)
 }
 
 void
-dmap_chunked_message_finished (SoupMessage * message, ChunkData * cd)
+dmap_chunked_message_finished (G_GNUC_UNUSED SoupMessage * message,
+                               ChunkData * cd)
 {
        g_debug ("Finished sending chunked file.");
        g_input_stream_close (cd->stream, NULL, NULL);
diff --git a/libdmapsharing/dmap-record-factory.c b/libdmapsharing/dmap-record-factory.c
index 6b77862..dcdf574 100644
--- a/libdmapsharing/dmap-record-factory.c
+++ b/libdmapsharing/dmap-record-factory.c
@@ -23,13 +23,13 @@
 static gint dmap_record_factory_init_count = 0;
 
 static void
-dmap_record_factory_init (DMAPRecordFactoryIface * iface)
+dmap_record_factory_init (G_GNUC_UNUSED DMAPRecordFactoryIface * iface)
 {
        dmap_record_factory_init_count++;
 }
 
 static void
-dmap_record_factory_finalize (DMAPRecordFactoryIface * iface)
+dmap_record_factory_finalize (G_GNUC_UNUSED DMAPRecordFactoryIface * iface)
 {
        dmap_record_factory_init_count--;
 }
@@ -42,9 +42,9 @@ dmap_record_factory_get_type (void)
 
        if (!object_type) {
                static const GTypeInfo object_info = {
-                       sizeof (DMAPRecordFactoryIface),
-                       (GBaseInitFunc) dmap_record_factory_init,
-                       (GBaseFinalizeFunc) dmap_record_factory_finalize
+                       class_size:     sizeof (DMAPRecordFactoryIface),
+                       base_init:     (GBaseInitFunc) dmap_record_factory_init,
+                       base_finalize: (GBaseFinalizeFunc) dmap_record_factory_finalize
                };
                object_type =
                        g_type_register_static (G_TYPE_INTERFACE,
diff --git a/libdmapsharing/dmap-record.c b/libdmapsharing/dmap-record.c
index a9071d9..3facae0 100644
--- a/libdmapsharing/dmap-record.c
+++ b/libdmapsharing/dmap-record.c
@@ -23,13 +23,13 @@
 static gint dmap_record_init_count = 0;
 
 static void
-dmap_record_init (DMAPRecordIface * iface)
+dmap_record_init (G_GNUC_UNUSED DMAPRecordIface * iface)
 {
        dmap_record_init_count++;
 }
 
 static void
-dmap_record_finalize (DMAPRecordIface * iface)
+dmap_record_finalize (G_GNUC_UNUSED DMAPRecordIface * iface)
 {
        dmap_record_init_count--;
 }
@@ -42,9 +42,9 @@ dmap_record_get_type (void)
 
        if (!object_type) {
                static const GTypeInfo object_info = {
-                       sizeof (DMAPRecordIface),
-                       (GBaseInitFunc) dmap_record_init,
-                       (GBaseFinalizeFunc) dmap_record_finalize
+                       class_size:     sizeof (DMAPRecordIface),
+                       base_init:     (GBaseInitFunc) dmap_record_init,
+                       base_finalize: (GBaseFinalizeFunc) dmap_record_finalize
                };
                object_type =
                        g_type_register_static (G_TYPE_INTERFACE,
diff --git a/libdmapsharing/dmap-share.c b/libdmapsharing/dmap-share.c
index fc1c36b..55054fe 100644
--- a/libdmapsharing/dmap-share.c
+++ b/libdmapsharing/dmap-share.c
@@ -117,7 +117,7 @@ static void dmap_share_class_init (DMAPShareClass * klass);
 G_DEFINE_ABSTRACT_TYPE_WITH_PRIVATE (DMAPShare, dmap_share, G_TYPE_OBJECT)
 
 static gboolean
-_dmap_share_soup_auth_callback (SoupAuthDomain * auth_domain,
+_dmap_share_soup_auth_callback (G_GNUC_UNUSED SoupAuthDomain * auth_domain,
                                 SoupMessage * msg,
                                 const char *username,
                                 gpointer password,
@@ -774,7 +774,7 @@ _dmap_share_get_revision_number_from_query (GHashTable * query,
 gboolean
 _dmap_share_session_id_validate (DMAPShare * share,
                                 SoupClientContext * context,
-                                SoupMessage * message,
+                                G_GNUC_UNUSED SoupMessage * message,
                                 GHashTable * query, guint32 * id)
 {
        guint32 session_id;
@@ -819,7 +819,8 @@ _dmap_share_session_id_validate (DMAPShare * share,
 }
 
 static guint32
-session_id_generate (DMAPShare * share, SoupClientContext * context)
+session_id_generate (G_GNUC_UNUSED DMAPShare * share,
+                     G_GNUC_UNUSED SoupClientContext * context)
 {
        guint32 id;
 
@@ -859,7 +860,8 @@ _dmap_share_session_id_create (DMAPShare * share, SoupClientContext * context)
 
 void
 _dmap_share_session_id_remove (DMAPShare * share,
-                              SoupClientContext * context, guint32 id)
+                              G_GNUC_UNUSED SoupClientContext * context,
+                               guint32 id)
 {
        g_hash_table_remove (share->priv->session_ids, GUINT_TO_POINTER (id));
 }
@@ -901,8 +903,9 @@ _dmap_share_uri_is_local (const char *text_uri)
 }
 
 gboolean
-_dmap_share_soup_auth_filter (SoupAuthDomain * auth_domain,
-                             SoupMessage * msg, gpointer user_data)
+_dmap_share_soup_auth_filter (G_GNUC_UNUSED SoupAuthDomain * auth_domain,
+                             SoupMessage * msg,
+                              G_GNUC_UNUSED gpointer user_data)
 {
        const char *path;
 
@@ -922,7 +925,8 @@ _dmap_share_soup_auth_filter (SoupAuthDomain * auth_domain,
 
 void
 _dmap_share_published (DMAPShare * share,
-                      DMAPMdnsPublisher * publisher, const char *name)
+                      G_GNUC_UNUSED DMAPMdnsPublisher * publisher,
+                       const char *name)
 {
        if (share->priv->name == NULL || name == NULL) {
                return;
@@ -936,7 +940,8 @@ _dmap_share_published (DMAPShare * share,
 
 void
 _dmap_share_name_collision (DMAPShare * share,
-                           DMAPMdnsPublisher * publisher, const char *name)
+                           G_GNUC_UNUSED DMAPMdnsPublisher * publisher,
+                            const char *name)
 {
        char *new_name = "FIXME";
 
@@ -956,10 +961,11 @@ _dmap_share_name_collision (DMAPShare * share,
 
 void
 _dmap_share_content_codes (DMAPShare * share,
-                          SoupServer * server,
+                          G_GNUC_UNUSED SoupServer * server,
                           SoupMessage * message,
                           const char *path,
-                          GHashTable * query, SoupClientContext * context)
+                          G_GNUC_UNUSED GHashTable * query,
+                           G_GNUC_UNUSED SoupClientContext * context)
 {
 /* MCCR content codes response
  *     MSTT status
@@ -1001,10 +1007,11 @@ _dmap_share_content_codes (DMAPShare * share,
 
 void
 _dmap_share_login (DMAPShare * share,
-                  SoupServer * server,
+                  G_GNUC_UNUSED SoupServer * server,
                   SoupMessage * message,
                   const char *path,
-                  GHashTable * query, SoupClientContext * context)
+                  G_GNUC_UNUSED GHashTable * query,
+                   SoupClientContext * context)
 {
 /* MLOG login response
  *     MSTT status
@@ -1027,7 +1034,7 @@ _dmap_share_login (DMAPShare * share,
 
 void
 _dmap_share_logout (DMAPShare * share,
-                   SoupServer * server,
+                   G_GNUC_UNUSED SoupServer * server,
                    SoupMessage * message,
                    const char *path,
                    GHashTable * query, SoupClientContext * context)
@@ -1054,7 +1061,8 @@ _dmap_share_update (DMAPShare * share,
                    SoupServer * server,
                    SoupMessage * message,
                    const char *path,
-                   GHashTable * query, SoupClientContext * context)
+                   GHashTable * query,
+                    G_GNUC_UNUSED SoupClientContext * context)
 {
        guint revision_number;
        gboolean res;
@@ -1138,7 +1146,8 @@ _dmap_share_parse_meta (GHashTable * query, struct DMAPMetaDataMap * mdm)
 }
 
 void
-_dmap_share_add_playlist_to_mlcl (gpointer id, DMAPContainerRecord * record,
+_dmap_share_add_playlist_to_mlcl (G_GNUC_UNUSED gpointer id,
+                                  DMAPContainerRecord * record,
                                  gpointer _mb)
 {
        /* MLIT listing item
@@ -1418,7 +1427,7 @@ typedef struct
 } GroupInfo;
 
 static void
-group_items (gpointer key, DMAPRecord * record, GHashTable * groups)
+group_items (G_GNUC_UNUSED gpointer key, DMAPRecord * record, GHashTable * groups)
 {
        gchar *album, *artist;
        GroupInfo *group_info;
@@ -1453,17 +1462,18 @@ group_info_cmp (gconstpointer group1, gconstpointer group2)
 }
 
 static void
-debug_param (gpointer key, gpointer val, gpointer user_data)
+debug_param (gpointer key, gpointer val, G_GNUC_UNUSED gpointer user_data)
 {
        g_debug ("%s %s", (char *) key, (char *) val);
 }
 
 void
-_dmap_share_ctrl_int (DMAPShare * share,
-                     SoupServer * server,
-                     SoupMessage * message,
+_dmap_share_ctrl_int (G_GNUC_UNUSED DMAPShare * share,
+                     G_GNUC_UNUSED SoupServer * server,
+                     G_GNUC_UNUSED SoupMessage * message,
                      const char *path,
-                     GHashTable * query, SoupClientContext * context)
+                     GHashTable * query,
+                      G_GNUC_UNUSED SoupClientContext * context)
 {
        g_debug ("Path is %s.", path);
        if (query) {
@@ -1554,7 +1564,7 @@ write_next_mlit (SoupMessage * message, struct share_bitwise_t *share_bitwise)
 }
 
 static void
-chunked_message_finished (SoupMessage * message,
+chunked_message_finished (G_GNUC_UNUSED SoupMessage * message,
                          struct share_bitwise_t *share_bitwise)
 {
        g_debug ("Finished sending chunked data.");
diff --git a/libdmapsharing/dmap-structure.c b/libdmapsharing/dmap-structure.c
index 2092463..77ec55b 100644
--- a/libdmapsharing/dmap-structure.c
+++ b/libdmapsharing/dmap-structure.c
@@ -877,7 +877,7 @@ dmap_item_free (DMAPStructureItem * item)
 }
 
 static gboolean
-gnode_free_dmap_item (GNode * node, gpointer data)
+gnode_free_dmap_item (GNode * node, G_GNUC_UNUSED gpointer data)
 {
        dmap_item_free ((DMAPStructureItem *) node->data);
 
@@ -921,12 +921,12 @@ dmap_content_code_string_as_int32 (const gchar * str)
 }
 
 static gboolean
-print_dmap_item (GNode * node, gpointer data)
+print_dmap_item (GNode * node, G_GNUC_UNUSED gpointer data)
 {
        DMAPStructureItem *item;
        const gchar *name;
        gchar *value;
-       gint i;
+       guint i;
 
        for (i = 1; i < g_node_depth (node); i++) {
                g_print ("\t");
diff --git a/libdmapsharing/dpap-connection.c b/libdmapsharing/dpap-connection.c
index 15d89e6..9b22eec 100644
--- a/libdmapsharing/dpap-connection.c
+++ b/libdmapsharing/dpap-connection.c
@@ -24,19 +24,19 @@
 #include <libdmapsharing/dmap-structure.h>
 
 static DMAPContentCode
-get_protocol_version_cc (DMAPConnection * connection)
+get_protocol_version_cc (G_GNUC_UNUSED DMAPConnection * connection)
 {
        return DMAP_CC_PPRO;
 }
 
 static gchar *
-get_query_metadata (DMAPConnection * connection)
+get_query_metadata (G_GNUC_UNUSED DMAPConnection * connection)
 {
        return g_strdup ("all");
 }
 
 static DMAPRecord *
-handle_mlcl (DMAPConnection * connection, DMAPRecordFactory * factory,
+handle_mlcl (G_GNUC_UNUSED DMAPConnection * connection, DMAPRecordFactory * factory,
             GNode * n, int *item_id)
 {
        GNode *n2;
@@ -166,7 +166,7 @@ dpap_connection_new (const char *name,
 }
 
 static void
-dpap_connection_init (DPAPConnection * connection)
+dpap_connection_init (G_GNUC_UNUSED DPAPConnection * connection)
 {
 }
 
diff --git a/libdmapsharing/dpap-record.c b/libdmapsharing/dpap-record.c
index 0cc75a3..c793277 100644
--- a/libdmapsharing/dpap-record.c
+++ b/libdmapsharing/dpap-record.c
@@ -132,7 +132,7 @@ dpap_record_init (DPAPRecordIface * iface)
 }
 
 static void
-dpap_record_finalize (DPAPRecordIface * iface)
+dpap_record_finalize (G_GNUC_UNUSED DPAPRecordIface * iface)
 {
        dpap_record_init_count--;
 }
@@ -145,9 +145,9 @@ dpap_record_get_type (void)
 
        if (!object_type) {
                static const GTypeInfo object_info = {
-                       sizeof (DPAPRecordIface),
-                       (GBaseInitFunc) dpap_record_init,
-                       (GBaseFinalizeFunc) dpap_record_finalize
+                       class_size:     sizeof (DPAPRecordIface),
+                       base_init:     (GBaseInitFunc) dpap_record_init,
+                       base_finalize: (GBaseFinalizeFunc) dpap_record_finalize
                };
                object_type =
                        g_type_register_static (G_TYPE_INTERFACE,
diff --git a/libdmapsharing/dpap-share.c b/libdmapsharing/dpap-share.c
index 65f7527..d3394b3 100644
--- a/libdmapsharing/dpap-share.c
+++ b/libdmapsharing/dpap-share.c
@@ -127,7 +127,8 @@ dpap_share_init (DPAPShare * share)
 static void
 dpap_share_set_property (GObject * object,
                         guint prop_id,
-                        const GValue * value, GParamSpec * pspec)
+                        G_GNUC_UNUSED const GValue * value,
+                         GParamSpec * pspec)
 {
        // DPAPShare *share = DPAP_SHARE (object);
 
@@ -140,8 +141,8 @@ dpap_share_set_property (GObject * object,
 }
 
 static void
-dpap_share_get_property (GObject * object,
-                        guint prop_id, GValue * value, GParamSpec * pspec)
+dpap_share_get_property (GObject * object, guint prop_id,
+                         G_GNUC_UNUSED GValue * value, GParamSpec * pspec)
 {
        // DPAPShare *share = DPAP_SHARE (object);
 
@@ -153,7 +154,7 @@ dpap_share_get_property (GObject * object,
 }
 
 static void
-dpap_share_dispose (GObject * object)
+dpap_share_dispose (G_GNUC_UNUSED GObject * object)
 {
        /* FIXME: implement in parent */
 }
@@ -165,7 +166,8 @@ DPAPShare *
 dpap_share_new (const char *name,
                const char *password,
                gpointer db,
-               gpointer container_db, gchar * transcode_mimetype)
+               gpointer container_db,
+                G_GNUC_UNUSED gchar * transcode_mimetype)
 {
        DPAPShare *share;
 
@@ -183,7 +185,7 @@ dpap_share_new (const char *name,
 }
 
 void
-dpap_share_message_add_standard_headers (DMAPShare * share,
+dpap_share_message_add_standard_headers (G_GNUC_UNUSED DMAPShare * share,
                                         SoupMessage * message)
 {
        soup_message_headers_append (message->response_headers, "DPAP-Server",
@@ -195,23 +197,24 @@ dpap_share_message_add_standard_headers (DMAPShare * share,
 #define DPAP_TIMEOUT 1800
 
 guint
-dpap_share_get_desired_port (DMAPShare * share)
+dpap_share_get_desired_port (G_GNUC_UNUSED DMAPShare * share)
 {
        return DPAP_PORT;
 }
 
 const char *
-dpap_share_get_type_of_service (DMAPShare * share)
+dpap_share_get_type_of_service (G_GNUC_UNUSED DMAPShare * share)
 {
        return DPAP_TYPE_OF_SERVICE;
 }
 
 void
 dpap_share_server_info (DMAPShare * share,
-                       SoupServer * server,
+                       G_GNUC_UNUSED SoupServer * server,
                        SoupMessage * message,
                        const char *path,
-                       GHashTable * query, SoupClientContext * context)
+                       G_GNUC_UNUSED GHashTable * query,
+                        G_GNUC_UNUSED SoupClientContext * context)
 {
 /* MSRV        server info response
  *     MSTT status
@@ -494,11 +497,12 @@ add_entry_to_mlcl (gpointer id, DMAPRecord * record, gpointer _mb)
 }
 
 static void
-databases_browse_xxx (DMAPShare * share,
-                     SoupServer * server,
-                     SoupMessage * msg,
+databases_browse_xxx (G_GNUC_UNUSED DMAPShare * share,
+                     G_GNUC_UNUSED SoupServer * server,
+                     G_GNUC_UNUSED SoupMessage * msg,
                      const char *path,
-                     GHashTable * query, SoupClientContext * context)
+                     G_GNUC_UNUSED GHashTable * query,
+                      G_GNUC_UNUSED SoupClientContext * context)
 {
        g_warning ("Unhandled: %s\n", path);
 }
@@ -560,7 +564,8 @@ databases_items_xxx (DMAPShare * share,
                     SoupServer * server,
                     SoupMessage * msg,
                     const char *path,
-                    GHashTable * query, SoupClientContext * context)
+                    G_GNUC_UNUSED GHashTable * query,
+                     G_GNUC_UNUSED SoupClientContext * context)
 {
        DMAPDb *db;
        const gchar *rest_of_path;
@@ -587,7 +592,7 @@ databases_items_xxx (DMAPShare * share,
 }
 
 static struct DMAPMetaDataMap *
-get_meta_data_map (DMAPShare * share)
+get_meta_data_map (G_GNUC_UNUSED DMAPShare * share)
 {
        return meta_data_map;
 }
diff --git a/libdmapsharing/test-daap-record-factory.c b/libdmapsharing/test-daap-record-factory.c
index afe47e6..54109ba 100644
--- a/libdmapsharing/test-daap-record-factory.c
+++ b/libdmapsharing/test-daap-record-factory.c
@@ -22,23 +22,25 @@
 #include "test-daap-record.h"
 
 static DMAPRecord *
-test_daap_record_factory_create  (DMAPRecordFactory *factory, gpointer user_data)
+test_daap_record_factory_create  (G_GNUC_UNUSED DMAPRecordFactory *factory,
+                                  G_GNUC_UNUSED gpointer user_data)
 {
        return DMAP_RECORD (test_daap_record_new ());
 }
 
 static void
-test_daap_record_factory_init (TestDAAPRecordFactory *factory)
+test_daap_record_factory_init (G_GNUC_UNUSED TestDAAPRecordFactory *factory)
 {
 }
 
 static void
-test_daap_record_factory_class_init (TestDAAPRecordFactoryClass *klass)
+test_daap_record_factory_class_init (G_GNUC_UNUSED TestDAAPRecordFactoryClass *klass)
 {
 }
 
 static void
-test_daap_record_factory_interface_init (gpointer iface, gpointer data)
+test_daap_record_factory_interface_init (gpointer iface,
+                                         G_GNUC_UNUSED gpointer data)
 {
        DMAPRecordFactoryIface *factory = iface;
 
diff --git a/libdmapsharing/test-daap-record.c b/libdmapsharing/test-daap-record.c
index 4346d99..d1b9170 100644
--- a/libdmapsharing/test-daap-record.c
+++ b/libdmapsharing/test-daap-record.c
@@ -232,7 +232,8 @@ test_daap_record_read (DAAPRecord *record, GError **error)
 }
 
 static void
-test_daap_record_daap_iface_init (gpointer iface, gpointer data)
+test_daap_record_daap_iface_init (gpointer iface,
+                                  G_GNUC_UNUSED gpointer data)
 {
        DAAPRecordIface *daap_record = iface;
 
@@ -242,7 +243,8 @@ test_daap_record_daap_iface_init (gpointer iface, gpointer data)
 }
 
 static void
-test_daap_record_dmap_iface_init (gpointer iface, gpointer data)
+test_daap_record_dmap_iface_init (gpointer iface,
+                                  G_GNUC_UNUSED gpointer data)
 {
        DMAPRecordIface *dmap_record = iface;
 
diff --git a/libdmapsharing/test-dpap-record-factory.c b/libdmapsharing/test-dpap-record-factory.c
index c0c3d1b..86cdd77 100644
--- a/libdmapsharing/test-dpap-record-factory.c
+++ b/libdmapsharing/test-dpap-record-factory.c
@@ -22,23 +22,25 @@
 #include "test-dpap-record.h"
 
 static DMAPRecord *
-test_dpap_record_factory_create  (DMAPRecordFactory *factory, gpointer user_data)
+test_dpap_record_factory_create  (G_GNUC_UNUSED DMAPRecordFactory *factory,
+                                  G_GNUC_UNUSED gpointer user_data)
 {
        return DMAP_RECORD (test_dpap_record_new ());
 }
 
 static void
-test_dpap_record_factory_init (TestDPAPRecordFactory *factory)
+test_dpap_record_factory_init (G_GNUC_UNUSED TestDPAPRecordFactory *factory)
 {
 }
 
 static void
-test_dpap_record_factory_class_init (TestDPAPRecordFactoryClass *klass)
+test_dpap_record_factory_class_init (G_GNUC_UNUSED TestDPAPRecordFactoryClass *klass)
 {
 }
 
 static void
-test_dpap_record_factory_interface_init (gpointer iface, gpointer data)
+test_dpap_record_factory_interface_init (gpointer iface,
+                                         G_GNUC_UNUSED gpointer data)
 {
        DMAPRecordFactoryIface *factory = iface;
 
diff --git a/libdmapsharing/test-dpap-record.c b/libdmapsharing/test-dpap-record.c
index e2503a7..70b5ec8 100644
--- a/libdmapsharing/test-dpap-record.c
+++ b/libdmapsharing/test-dpap-record.c
@@ -159,7 +159,7 @@ test_dpap_record_read (DPAPRecord *record, GError **error)
 }
 
 static void
-test_dpap_record_dpap_iface_init (gpointer iface, gpointer data)
+test_dpap_record_dpap_iface_init (gpointer iface, G_GNUC_UNUSED gpointer data)
 {
        DPAPRecordIface *dpap_record = iface;
 
@@ -169,7 +169,7 @@ test_dpap_record_dpap_iface_init (gpointer iface, gpointer data)
 }
 
 static void
-test_dpap_record_dmap_iface_init (gpointer iface, gpointer data)
+test_dpap_record_dmap_iface_init (gpointer iface, G_GNUC_UNUSED gpointer data)
 {
         DMAPRecordIface *dmap_record = iface;
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]