all: fix a compiler warning about function declarations

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 94a393e9ed)
This commit is contained in:
Jiří Klimeš 2015-06-10 10:01:49 +02:00
parent 05d144dfb9
commit 5b71ec822a

View file

@ -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;