diff options
author | Martyn Russell <martyn@lanedo.com> | 2013-03-12 20:08:10 +0000 |
---|---|---|
committer | Martyn Russell <martyn@lanedo.com> | 2013-03-12 21:40:20 +0000 |
commit | e801e3c095f78859dbb8848b0c0a9e92ed54beec (patch) | |
tree | 43ad82e879db8da03e41bc26227655f393d6bd60 /tests/gvdb | |
parent | 5c8468cf117543b1680709ee9b55fab97a31578d (diff) | |
download | tracker-e801e3c095f78859dbb8848b0c0a9e92ed54beec.tar.gz |
tests/gvdb: Fixed static vs non-static compilation warnings
Diffstat (limited to 'tests/gvdb')
-rw-r--r-- | tests/gvdb/gvdb-test.c | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/tests/gvdb/gvdb-test.c b/tests/gvdb/gvdb-test.c index 9c7730b5f..11afbfa8e 100644 --- a/tests/gvdb/gvdb-test.c +++ b/tests/gvdb/gvdb-test.c @@ -2,7 +2,7 @@ #include "gvdb/gvdb-builder.h" #include "gvdb/gvdb-reader.h" -void +static void remove_file (const gchar *filename) { GFile *f; @@ -10,7 +10,7 @@ remove_file (const gchar *filename) g_assert (g_file_delete (f, NULL, NULL)); } -void +static void walk_value_cb (G_GNUC_UNUSED const gchar *name, G_GNUC_UNUSED gsize name_len, G_GNUC_UNUSED GVariant *value, @@ -20,7 +20,7 @@ walk_value_cb (G_GNUC_UNUSED const gchar *name, (*counter) += 1; } -gboolean +static gboolean walk_open_cb (G_GNUC_UNUSED const gchar *name, G_GNUC_UNUSED gsize name_len, G_GNUC_UNUSED gpointer user_data) @@ -28,14 +28,14 @@ walk_open_cb (G_GNUC_UNUSED const gchar *name, return TRUE; } -void +static void walk_close_cb (G_GNUC_UNUSED gsize name_len, G_GNUC_UNUSED gpointer user_data) { } -void -test_gvdb_walk () +static void +test_gvdb_walk (void) { GHashTable *root_table, *ns_table; GvdbItem *root, *item; @@ -76,8 +76,8 @@ test_gvdb_walk () remove_file (DB_FILE); } -void -test_gvdb_nested_keys () +static void +test_gvdb_nested_keys (void) { GHashTable *root_table, *ns_table; GvdbItem *root, *item; @@ -129,7 +129,7 @@ test_gvdb_nested_keys () remove_file (DB_FILE); } -void +static void simple_test (const gchar *filename, gboolean use_byteswap) { GHashTable *table; @@ -157,8 +157,8 @@ simple_test (const gchar *filename, gboolean use_byteswap) gvdb_table_unref (read); } -void -test_gvdb_byteswapped () +static void +test_gvdb_byteswapped (void) { const gchar *DB_FILE = "./test_byteswpped.gvdb"; @@ -167,8 +167,8 @@ test_gvdb_byteswapped () remove_file (DB_FILE); } -void -test_gvdb_flat_strings () +static void +test_gvdb_flat_strings (void) { const gchar *DB_FILE = "./test_flat_strings.gvdb"; @@ -178,8 +178,8 @@ test_gvdb_flat_strings () remove_file (DB_FILE); } -void -test_gvdb_ref_unref () +static void +test_gvdb_ref_unref (void) { GHashTable *table; GvdbTable *read, *read_ref; @@ -214,8 +214,8 @@ test_gvdb_ref_unref () remove_file (DB_FILE); } -void -test_gvdb_corrupted_file () +static void +test_gvdb_corrupted_file (void) { GError *error = NULL; |