/pidgin/main: 146f70142fd7: Silence G_DEFINE_TYPE_WITH_CODE warn...
Tomasz Wasilczyk
twasilczyk at pidgin.im
Sun Dec 7 07:25:59 EST 2014
Changeset: 146f70142fd7d384c9a97cdab0aa4e7bde38790e
Author: Tomasz Wasilczyk <twasilczyk at pidgin.im>
Date: 2014-12-07 13:25 +0100
Branch: default
URL: https://hg.pidgin.im/pidgin/main/rev/146f70142fd7
Description:
Silence G_DEFINE_TYPE_WITH_CODE warnings about _get_instance_private routines
diffstat:
libpurple/media/backend-fs2.c | 5 ++++-
libpurple/media/candidate.c | 3 +++
libpurple/media/codec.c | 3 +++
libpurple/mediamanager.c | 3 +++
4 files changed, 13 insertions(+), 1 deletions(-)
diffs (54 lines):
diff --git a/libpurple/media/backend-fs2.c b/libpurple/media/backend-fs2.c
--- a/libpurple/media/backend-fs2.c
+++ b/libpurple/media/backend-fs2.c
@@ -174,7 +174,10 @@ enum {
static void
purple_media_backend_fs2_init(PurpleMediaBackendFs2 *self)
-{}
+{
+ /* silence a warning */
+ (void)purple_media_backend_fs2_get_instance_private;
+}
static FsCandidateType
purple_media_candidate_type_to_fs(PurpleMediaCandidateType type)
diff --git a/libpurple/media/candidate.c b/libpurple/media/candidate.c
--- a/libpurple/media/candidate.c
+++ b/libpurple/media/candidate.c
@@ -92,6 +92,9 @@ purple_media_candidate_init(PurpleMediaC
priv->username = NULL;
priv->password = NULL;
priv->ttl = 0;
+
+ /* silence a warning */
+ (void)purple_media_candidate_get_instance_private;
}
static void
diff --git a/libpurple/media/codec.c b/libpurple/media/codec.c
--- a/libpurple/media/codec.c
+++ b/libpurple/media/codec.c
@@ -74,6 +74,9 @@ purple_media_codec_init(PurpleMediaCodec
PURPLE_MEDIA_CODEC_GET_PRIVATE(info);
priv->encoding_name = NULL;
priv->optional_params = NULL;
+
+ /* silence a warning */
+ (void)purple_media_codec_get_instance_private;
}
static void
diff --git a/libpurple/mediamanager.c b/libpurple/mediamanager.c
--- a/libpurple/mediamanager.c
+++ b/libpurple/mediamanager.c
@@ -167,6 +167,9 @@ purple_media_manager_init (PurpleMediaMa
purple_prefs_add_none("/purple/media/audio/volume");
purple_prefs_add_int("/purple/media/audio/volume/input", 10);
purple_prefs_add_int("/purple/media/audio/volume/output", 10);
+
+ /* silence a warning */
+ (void)purple_media_element_info_get_instance_private;
}
static void
More information about the Commits
mailing list