Re: compile error with latest svn



Dear Nuno:

Am 10.04.07 18:36 schrieb(en) Nuno Monteiro:
cc1: warnings being treated as errors
libbalsa-conf.c: In function ‘libbalsa_conf_get_double_with_default_’:
libbalsa-conf.c:429: warning: implicit declaration of function ‘g_key_file_get_d ouble’

Do you use glib 2.10? These functions were only added in glib 2.12, but the sources request at least 2.10, which is actually a bug... Can you try the attached trivial patch? It *should* fix your problem.

Cheers, Albrecht.


--
 Albrecht Dreß  -  Johanna-Kirchner-Straße 13  -  D-53123 Bonn (Germany)
       Phone (+49) 228 6199571  -  mailto:albrecht dress arcor de
  GnuPG public key:  http://www.mynetcologne.de/~nc-dreszal/pubkey.asc
Index: libbalsa/libbalsa-conf.c
===================================================================
--- libbalsa/libbalsa-conf.c	(Revision 7576)
+++ libbalsa/libbalsa-conf.c	(Arbeitskopie)
@@ -424,7 +424,7 @@
     GError *error = NULL;
 
     key = lbc_get_key(path, &defval);
-#if GLIB_CHECK_VERSION(2, 10, 0)
+#if GLIB_CHECK_VERSION(2, 12, 0)
     retval =
         g_key_file_get_double(LBC_KEY_FILE(priv), lbc_groups->data, key,
 			      &error);
@@ -461,7 +461,7 @@
 void
 libbalsa_conf_set_double_(const char *path, double value, gboolean priv)
 {
-#if GLIB_CHECK_VERSION(2, 10, 0)
+#if GLIB_CHECK_VERSION(2, 12, 0)
     g_key_file_set_double(LBC_KEY_FILE(priv), lbc_groups->data, path,
 			  value);
 #else

Attachment: pgpb8xGQX0IxH.pgp
Description: PGP signature



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