[gmime] Fixed warnings for glib >= 2.35.1



commit ef1d865efac4eafb437e29b16f2f88a97d5074ce
Author: Jeffrey Stedfast <fejj gnome org>
Date:   Sat Oct 19 09:38:09 2013 -0400

    Fixed warnings for glib >= 2.35.1

 examples/uudecode.c |    2 ++
 examples/uuencode.c |    2 ++
 2 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/examples/uudecode.c b/examples/uudecode.c
index 41a44ca..4f20d40 100644
--- a/examples/uudecode.c
+++ b/examples/uudecode.c
@@ -252,7 +252,9 @@ int main (int argc, char **argv)
 {
        const char *progname;
        
+#if !GLIB_CHECK_VERSION(2, 35, 1)
        g_type_init ();
+#endif
        
        if (!(progname = strrchr (argv[0], '/')))
                progname = argv[0];
diff --git a/examples/uuencode.c b/examples/uuencode.c
index bb25c36..ba3b2a5 100644
--- a/examples/uuencode.c
+++ b/examples/uuencode.c
@@ -198,7 +198,9 @@ int main (int argc, char **argv)
 {
        const char *progname;
        
+#if !GLIB_CHECK_VERSION(2, 35, 1)
        g_type_init ();
+#endif
        
        if (!(progname = strrchr (argv[0], '/')))
                progname = argv[0];


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