[gupnp] all: Fix minor compiler warnings
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gupnp] all: Fix minor compiler warnings
- Date: Wed, 9 Jun 2021 21:59:16 +0000 (UTC)
commit ca0998ef4f406d763d121a142d69344f1ded6978
Author: Jens Georg <mail jensge org>
Date: Sat Jun 5 19:47:37 2021 +0200
all: Fix minor compiler warnings
libgupnp/gupnp-context-manager.c | 2 +-
libgupnp/gupnp-context.c | 2 +-
libgupnp/gupnp-control-point.c | 2 +-
libgupnp/gupnp-device-info.c | 2 +-
libgupnp/gupnp-device-proxy.c | 2 +-
libgupnp/gupnp-device.c | 2 +-
libgupnp/gupnp-linux-context-manager.c | 2 +-
libgupnp/gupnp-resource-factory.c | 2 +-
libgupnp/gupnp-root-device.c | 2 +-
libgupnp/gupnp-service-info.c | 2 +-
libgupnp/gupnp-service-introspection.c | 2 +-
libgupnp/gupnp-service-proxy.c | 2 +-
libgupnp/gupnp-service.c | 2 +-
libgupnp/gupnp-simple-context-manager.c | 2 +-
libgupnp/gupnp-unix-context-manager.c | 2 +-
libgupnp/gupnp-white-list.c | 2 +-
libgupnp/gupnp-xml-doc.c | 3 +--
17 files changed, 17 insertions(+), 18 deletions(-)
---
diff --git a/libgupnp/gupnp-context-manager.c b/libgupnp/gupnp-context-manager.c
index 2ad6a60..1648fd4 100644
--- a/libgupnp/gupnp-context-manager.c
+++ b/libgupnp/gupnp-context-manager.c
@@ -80,7 +80,7 @@ typedef struct _GUPnPContextManagerPrivate GUPnPContextManagerPrivate;
G_DEFINE_ABSTRACT_TYPE_WITH_PRIVATE (GUPnPContextManager,
gupnp_context_manager,
- G_TYPE_OBJECT);
+ G_TYPE_OBJECT)
enum {
PROP_0,
diff --git a/libgupnp/gupnp-context.c b/libgupnp/gupnp-context.c
index 44e67e5..2f5ef9e 100644
--- a/libgupnp/gupnp-context.c
+++ b/libgupnp/gupnp-context.c
@@ -98,7 +98,7 @@ G_DEFINE_TYPE_EXTENDED (GUPnPContext,
G_ADD_PRIVATE(GUPnPContext)
G_IMPLEMENT_INTERFACE
(G_TYPE_INITABLE,
- gupnp_context_initable_iface_init));
+ gupnp_context_initable_iface_init))
enum {
PROP_0,
diff --git a/libgupnp/gupnp-control-point.c b/libgupnp/gupnp-control-point.c
index 6a59fb0..c808cff 100644
--- a/libgupnp/gupnp-control-point.c
+++ b/libgupnp/gupnp-control-point.c
@@ -57,7 +57,7 @@ typedef struct _GUPnPControlPointPrivate GUPnPControlPointPrivate;
G_DEFINE_TYPE_WITH_PRIVATE (GUPnPControlPoint,
gupnp_control_point,
- GSSDP_TYPE_RESOURCE_BROWSER);
+ GSSDP_TYPE_RESOURCE_BROWSER)
enum {
PROP_0,
diff --git a/libgupnp/gupnp-device-info.c b/libgupnp/gupnp-device-info.c
index 04709fd..0533b26 100644
--- a/libgupnp/gupnp-device-info.c
+++ b/libgupnp/gupnp-device-info.c
@@ -53,7 +53,7 @@ typedef struct _GUPnPDeviceInfoPrivate GUPnPDeviceInfoPrivate;
G_DEFINE_ABSTRACT_TYPE_WITH_PRIVATE (GUPnPDeviceInfo,
gupnp_device_info,
- G_TYPE_OBJECT);
+ G_TYPE_OBJECT)
enum {
diff --git a/libgupnp/gupnp-device-proxy.c b/libgupnp/gupnp-device-proxy.c
index be47f56..02a9ead 100644
--- a/libgupnp/gupnp-device-proxy.c
+++ b/libgupnp/gupnp-device-proxy.c
@@ -37,7 +37,7 @@
G_DEFINE_TYPE (GUPnPDeviceProxy,
gupnp_device_proxy,
- GUPNP_TYPE_DEVICE_INFO);
+ GUPNP_TYPE_DEVICE_INFO)
static GUPnPDeviceInfo *
diff --git a/libgupnp/gupnp-device.c b/libgupnp/gupnp-device.c
index 3775835..880ad01 100644
--- a/libgupnp/gupnp-device.c
+++ b/libgupnp/gupnp-device.c
@@ -44,7 +44,7 @@ typedef struct _GUPnPDevicePrivate GUPnPDevicePrivate;
G_DEFINE_TYPE_WITH_PRIVATE (GUPnPDevice,
gupnp_device,
- GUPNP_TYPE_DEVICE_INFO);
+ GUPNP_TYPE_DEVICE_INFO)
enum {
diff --git a/libgupnp/gupnp-linux-context-manager.c b/libgupnp/gupnp-linux-context-manager.c
index 03e951d..8f46e7b 100644
--- a/libgupnp/gupnp-linux-context-manager.c
+++ b/libgupnp/gupnp-linux-context-manager.c
@@ -96,7 +96,7 @@ struct _GUPnPLinuxContextManager {
G_DEFINE_TYPE_WITH_PRIVATE (GUPnPLinuxContextManager,
gupnp_linux_context_manager,
- GUPNP_TYPE_CONTEXT_MANAGER);
+ GUPNP_TYPE_CONTEXT_MANAGER)
typedef enum {
/* Interface is up */
diff --git a/libgupnp/gupnp-resource-factory.c b/libgupnp/gupnp-resource-factory.c
index baea7b4..b6540f4 100644
--- a/libgupnp/gupnp-resource-factory.c
+++ b/libgupnp/gupnp-resource-factory.c
@@ -214,7 +214,7 @@ gupnp_resource_factory_create_device_proxy
const SoupURI *url_base)
{
GUPnPDeviceProxy *proxy;
- GType proxy_type = GUPNP_TYPE_DEVICE_PROXY;
+ GType proxy_type;
GUPnPResourceFactoryPrivate *priv;
g_return_val_if_fail (GUPNP_IS_RESOURCE_FACTORY (factory), NULL);
diff --git a/libgupnp/gupnp-root-device.c b/libgupnp/gupnp-root-device.c
index e00d315..bb4cd01 100644
--- a/libgupnp/gupnp-root-device.c
+++ b/libgupnp/gupnp-root-device.c
@@ -64,7 +64,7 @@ G_DEFINE_TYPE_EXTENDED (GUPnPRootDevice,
G_ADD_PRIVATE(GUPnPRootDevice)
G_IMPLEMENT_INTERFACE
(G_TYPE_INITABLE,
- gupnp_root_device_initable_iface_init));
+ gupnp_root_device_initable_iface_init))
enum {
PROP_0,
diff --git a/libgupnp/gupnp-service-info.c b/libgupnp/gupnp-service-info.c
index f1e0ab9..5c65cd2 100644
--- a/libgupnp/gupnp-service-info.c
+++ b/libgupnp/gupnp-service-info.c
@@ -63,7 +63,7 @@ typedef struct _GUPnPServiceInfoPrivate GUPnPServiceInfoPrivate;
G_DEFINE_ABSTRACT_TYPE_WITH_PRIVATE (GUPnPServiceInfo,
gupnp_service_info,
- G_TYPE_OBJECT);
+ G_TYPE_OBJECT)
enum {
PROP_0,
diff --git a/libgupnp/gupnp-service-introspection.c b/libgupnp/gupnp-service-introspection.c
index 3255313..cfd28d2 100644
--- a/libgupnp/gupnp-service-introspection.c
+++ b/libgupnp/gupnp-service-introspection.c
@@ -74,7 +74,7 @@ typedef struct _GUPnPServiceIntrospectionPrivate
G_DEFINE_TYPE_WITH_PRIVATE (GUPnPServiceIntrospection,
gupnp_service_introspection,
- G_TYPE_OBJECT);
+ G_TYPE_OBJECT)
enum {
PROP_0,
PROP_SCPD
diff --git a/libgupnp/gupnp-service-proxy.c b/libgupnp/gupnp-service-proxy.c
index 959eaaa..16525b9 100644
--- a/libgupnp/gupnp-service-proxy.c
+++ b/libgupnp/gupnp-service-proxy.c
@@ -67,7 +67,7 @@ typedef struct _GUPnPServiceProxyPrivate GUPnPServiceProxyPrivate;
G_DEFINE_TYPE_WITH_PRIVATE (GUPnPServiceProxy,
gupnp_service_proxy,
- GUPNP_TYPE_SERVICE_INFO);
+ GUPNP_TYPE_SERVICE_INFO)
enum {
PROP_0,
diff --git a/libgupnp/gupnp-service.c b/libgupnp/gupnp-service.c
index faf8004..5298ac9 100644
--- a/libgupnp/gupnp-service.c
+++ b/libgupnp/gupnp-service.c
@@ -74,7 +74,7 @@ typedef struct _GUPnPServicePrivate GUPnPServicePrivate;
G_DEFINE_TYPE_WITH_PRIVATE (GUPnPService,
gupnp_service,
- GUPNP_TYPE_SERVICE_INFO);
+ GUPNP_TYPE_SERVICE_INFO)
enum {
PROP_0,
diff --git a/libgupnp/gupnp-simple-context-manager.c b/libgupnp/gupnp-simple-context-manager.c
index 08c350a..f070735 100644
--- a/libgupnp/gupnp-simple-context-manager.c
+++ b/libgupnp/gupnp-simple-context-manager.c
@@ -45,7 +45,7 @@ typedef struct _GUPnPSimpleContextManagerPrivate GUPnPSimpleContextManagerPrivat
G_DEFINE_ABSTRACT_TYPE_WITH_PRIVATE (GUPnPSimpleContextManager,
gupnp_simple_context_manager,
- GUPNP_TYPE_CONTEXT_MANAGER);
+ GUPNP_TYPE_CONTEXT_MANAGER)
static GList*
gupnp_simple_context_manager_get_interfaces (GUPnPSimpleContextManager *manager)
diff --git a/libgupnp/gupnp-unix-context-manager.c b/libgupnp/gupnp-unix-context-manager.c
index ecaeb15..267a2ca 100644
--- a/libgupnp/gupnp-unix-context-manager.c
+++ b/libgupnp/gupnp-unix-context-manager.c
@@ -55,7 +55,7 @@ struct _GUPnPUnixContextManager {
G_DEFINE_TYPE (GUPnPUnixContextManager,
gupnp_unix_context_manager,
- GUPNP_TYPE_SIMPLE_CONTEXT_MANAGER);
+ GUPNP_TYPE_SIMPLE_CONTEXT_MANAGER)
/*
* Create a context for all network interfaces that are up.
diff --git a/libgupnp/gupnp-white-list.c b/libgupnp/gupnp-white-list.c
index 806f9cb..bfe48bd 100644
--- a/libgupnp/gupnp-white-list.c
+++ b/libgupnp/gupnp-white-list.c
@@ -44,7 +44,7 @@ typedef struct _GUPnPWhiteListPrivate GUPnPWhiteListPrivate;
G_DEFINE_TYPE_WITH_PRIVATE (GUPnPWhiteList,
gupnp_white_list,
- G_TYPE_OBJECT);
+ G_TYPE_OBJECT)
enum {
PROP_0,
diff --git a/libgupnp/gupnp-xml-doc.c b/libgupnp/gupnp-xml-doc.c
index df3c7b0..1e9ff97 100644
--- a/libgupnp/gupnp-xml-doc.c
+++ b/libgupnp/gupnp-xml-doc.c
@@ -45,13 +45,12 @@
*/
struct _GUPnPXMLDoc {
GObject parent;
- /*< public >*/
xmlDoc *doc;
};
G_DEFINE_TYPE (GUPnPXMLDoc,
gupnp_xml_doc,
- G_TYPE_OBJECT);
+ G_TYPE_OBJECT)
static void
gupnp_xml_doc_init (G_GNUC_UNUSED GUPnPXMLDoc *doc)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]