Silence compiler warnings in tests which are already partially disabled.
Most of these still haven't been updated since the ESource API changes.
#define NUM_VIEWS 200
+#if 0 /* ACCOUNT_MGMT */
static void
objects_added (EBookClientView *view,
const GSList *contacts)
return NULL;
}
+#endif /* ACCOUNT_MGMT */
gint
main (gint argc,
#define BATCH_SIZE 50
+#if 0 /* ACCOUNT_MGMT */
static gboolean
check_string_in_slist (GSList *list,
const gchar *str)
g_slist_free_full (contacts, g_object_unref);
return TRUE;
}
+#endif /* ACCOUNT_MGMT */
gint main (gint argc, gchar **argv)
{
#include <stdlib.h>
#include <libebook/libebook.h>
+#if 0 /* ACCOUNT_MGMT */
static GMainLoop *loop;
static void
printf ("printing one contact\n");
print_one_email (book);
}
+#endif /* ACCOUNT_MGMT */
gint
main (gint argc,
#include "ebook-test-utils.h"
+#if 0 /* ACCOUNT_MGMT */
static void
print_email (EContact *contact)
{
g_object_unref (contact);
}
+#endif /* ACCOUNT_MGMT */
gint
main (gint argc,
#include <stdlib.h>
#include <libebook/libebook.h>
+#if 0 /* ACCOUNT_MGMT */
static void
print_contact (EContact *contact)
{
{
printf ("view_complete (status == %d, error_msg == %s%s%s)\n", status, error_msg ? "'" : "", error_msg ? error_msg : "NULL", error_msg ? "'" : "");
}
+#endif /* ACCOUNT_MGMT */
gint
main (gint argc,
return 1;
}
+#if !GLIB_CHECK_VERSION (2, 35, 1)
g_type_init_with_debug_flags (G_TYPE_DEBUG_OBJECTS);
+#endif
fp = fopen (argv[1], "r");
if (fp == NULL) {
#define NUM_VIEWS 200
+#if 0 /* ACCOUNT_MGMT */
static void
objects_added (ECalClientView *cal_view,
const GSList *objects)
return NULL;
}
+#endif /* ACCOUNT_MGMT */
gint
main (gint argc,
{
gchar *uri = NULL;
ECal *cal;
+#if 0
gint i;
+#endif
g_type_init ();
gboolean changed;
};
+#if 0 /* ACCOUNT_MGMT */
static void
source_changed_cb (ESource *source,
TestESource *test)
test->file = g_file_new_for_path (filename);
/* Create an ESource from the GFile and load the key file. */
-#if 0 /* ACCOUNT_MGMT */
test->source = e_source_new (test->file, &error);
g_assert_no_error (error);
-#endif /* ACCOUNT_MGMT */
g_signal_connect (
test->source, "changed",
g_object_unref (test->file);
g_object_unref (test->source);
}
+#endif /* ACCOUNT_MGMT */
static void
test_fixture_setup_key_file (TestFixture *fixture,