From 5b71ec822ab6a184d2f0aabedd6d6d960f77ef3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20Klime=C5=A1?= Date: Wed, 10 Jun 2015 10:01:49 +0200 Subject: [PATCH] all: fix a compiler warning about function declarations MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit warning: function declaration isn’t a prototype [-Wstrict-prototypes] In C function() and function(void) are two different prototypes (as opposed to C++). function() accepts an arbitrary number of arguments function(void) accepts zero arguments (cherry picked from commit 94a393e9ed453615360f41ffd931cc83fd01fbee) --- src/tests/test-general-with-expect.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tests/test-general-with-expect.c b/src/tests/test-general-with-expect.c index 08a58106cf..fe76e3fad3 100644 --- a/src/tests/test-general-with-expect.c +++ b/src/tests/test-general-with-expect.c @@ -36,7 +36,7 @@ /*******************************************/ static void -test_nm_utils_monotonic_timestamp_as_boottime () +test_nm_utils_monotonic_timestamp_as_boottime (void) { gint64 timestamp_ns_per_tick, now, now_boottime, now_boottime_2, now_boottime_3; struct timespec tp; @@ -421,7 +421,7 @@ _remove_at_indexes_init_random_idx (GArray *idx, guint array_len, guint idx_len) } static void -test_nm_utils_array_remove_at_indexes () +test_nm_utils_array_remove_at_indexes (void) { gs_unref_array GArray *idx = NULL, *array = NULL; gs_unref_hashtable GHashTable *unique = NULL;