mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-30 21:20:10 +01:00
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:
parent
05d144dfb9
commit
5b71ec822a
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue