summaryrefslogtreecommitdiff
path: root/libgupnp-dlna
diff options
context:
space:
mode:
Diffstat (limited to 'libgupnp-dlna')
-rw-r--r--libgupnp-dlna/Makefile.am20
-rw-r--r--libgupnp-dlna/gupnp-dlna-profile-loader.c3
-rw-r--r--libgupnp-dlna/gupnp-dlna-value-list-private.h3
3 files changed, 16 insertions, 10 deletions
diff --git a/libgupnp-dlna/Makefile.am b/libgupnp-dlna/Makefile.am
index 7b34825..3364e8f 100644
--- a/libgupnp-dlna/Makefile.am
+++ b/libgupnp-dlna/Makefile.am
@@ -85,6 +85,7 @@ libloader_la_CFLAGS = \
$(metadata_cflags) \
$(common_cflags) \
$(LIBXML_CFLAGS) \
+ $(WARN_CFLAGS) \
-DDATA_DIR='"$(shareddir)"'
libguesser_la_SOURCES = \
@@ -95,7 +96,8 @@ libguesser_la_LIBADD = \
libguesser_la_CFLAGS = \
$(guesser_log_cflags) \
$(metadata_cflags) \
- $(common_cflags)
+ $(common_cflags) \
+ $(WARN_CFLAGS)
libmetadata_la_SOURCES = \
gupnp-dlna-metadata-backend.c \
@@ -108,10 +110,13 @@ libmetadata_la_CFLAGS = \
$(metadata_cflags) \
$(GUPNP_DLNA_METADATA_BACKEND_CFLAGS) \
$(common_cflags) \
- $(GMODULE_CFLAGS)
+ $(GMODULE_CFLAGS) \
+ $(WARN_CFLAGS)
+libmetadata_la_LDFLAGS = $(WARN_LDFLAGS)
libgupnp_dlna_2_0_la_LDFLAGS = \
- $(gupnp_ldflags)
+ $(gupnp_ldflags) \
+ $(WARN_LDFLAGS)
libgupnp_dlna_2_0_la_SOURCES = \
gupnp-dlna-audio-information.c \
gupnp-dlna-container-information.c \
@@ -136,7 +141,8 @@ libgupnp_dlna_2_0_la_LIBADD = \
libgupnp_dlna_2_0_la_CFLAGS = \
$(general_log_cflags) \
$(metadata_cflags) \
- $(gupnp_cflags)
+ $(gupnp_cflags) \
+ $(WARN_CFLAGS)
libgupnp_dlna_inc_HEADERS += \
gupnp-dlna-profile-guesser.h \
@@ -215,7 +221,8 @@ GUPnPDLNA_2_0_gir_LIBS = libgupnp-dlna-2.0.la
GUPnPDLNA_2_0_gir_INCLUDES = GObject-2.0
GUPnPDLNA_2_0_gir_SCANNERFLAGS = \
--symbol-prefix=gupnp_dlna \
- --identifier-prefix=GUPnPDLNA
+ --identifier-prefix=GUPnPDLNA \
+ $(WARN_SCANNERFLAGS)
GUPnPDLNA_2_0_gir_CFLAGS = \
-I$(top_srcdir)
@@ -233,7 +240,8 @@ GUPnPDLNAGst_2_0_gir_INCLUDES = GObject-2.0 GUPnPDLNA-2.0 Gst-1.0 GstPbutils-1.0
GUPnPDLNAGst_2_0_gir_SCANNERFLAGS = \
--symbol-prefix=gupnp_dlna_gst \
--identifier-prefix=GUPnPDLNAGst \
- --add-include-path=.
+ --add-include-path=. \
+ $(WARN_SCANNERFLAGS)
GUPnPDLNAGst_2_0_gir_CFLAGS = \
-I$(top_srcdir)
endif
diff --git a/libgupnp-dlna/gupnp-dlna-profile-loader.c b/libgupnp-dlna/gupnp-dlna-profile-loader.c
index 18da2df..8b0e3e5 100644
--- a/libgupnp-dlna/gupnp-dlna-profile-loader.c
+++ b/libgupnp-dlna/gupnp-dlna-profile-loader.c
@@ -376,6 +376,7 @@ merge_restrictions (GUPnPDLNAProfileLoader *loader,
target_list = &data->videos;
break;
+ case GUPNP_DLNA_RESTRICTION_TYPE_INVALID:
default:
g_assert_not_reached ();
}
@@ -1500,7 +1501,7 @@ out:
static GList *
gupnp_dlna_profile_loader_get_from_dir (GUPnPDLNAProfileLoader *loader,
- gchar *profile_dir)
+ const gchar *profile_dir)
{
GDir *dir;
GList *profiles = NULL;
diff --git a/libgupnp-dlna/gupnp-dlna-value-list-private.h b/libgupnp-dlna/gupnp-dlna-value-list-private.h
index cd268aa..8446b42 100644
--- a/libgupnp-dlna/gupnp-dlna-value-list-private.h
+++ b/libgupnp-dlna/gupnp-dlna-value-list-private.h
@@ -33,9 +33,6 @@ G_BEGIN_DECLS
GUPnPDLNAValueList *
gupnp_dlna_value_list_new (GUPnPDLNAValueType *type);
-void
-gupnp_dlna_value_list_free (GUPnPDLNAValueList *list);
-
gboolean
gupnp_dlna_value_list_add_range (GUPnPDLNAValueList *list,
const gchar *min,