mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-05 15:50:36 +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
This commit is contained in:
parent
036901b82e
commit
94a393e9ed
5 changed files with 10 additions and 10 deletions
|
|
@ -102,7 +102,7 @@ test_defaults (GType type, const char *name)
|
|||
}
|
||||
|
||||
static void
|
||||
defaults ()
|
||||
defaults (void)
|
||||
{
|
||||
/* The tests */
|
||||
test_defaults (NM_TYPE_SETTING_CONNECTION, NM_SETTING_CONNECTION_SETTING_NAME);
|
||||
|
|
|
|||
|
|
@ -160,7 +160,7 @@ parse_state_file (const char *filename,
|
|||
}
|
||||
|
||||
static void
|
||||
_set_g_fatal_warnings ()
|
||||
_set_g_fatal_warnings (void)
|
||||
{
|
||||
GLogLevelFlags fatal_mask;
|
||||
|
||||
|
|
|
|||
|
|
@ -325,7 +325,7 @@ static int _support_user_ipv6ll = 0;
|
|||
#endif
|
||||
|
||||
static gboolean
|
||||
_support_user_ipv6ll_get ()
|
||||
_support_user_ipv6ll_get (void)
|
||||
{
|
||||
#if HAVE_LIBNL_INET6_ADDR_GEN_MODE
|
||||
if (G_UNLIKELY (_support_user_ipv6ll == 0)) {
|
||||
|
|
@ -391,7 +391,7 @@ _support_kernel_extended_ifa_flags_detect (struct nl_msg *msg)
|
|||
}
|
||||
|
||||
static gboolean
|
||||
_support_kernel_extended_ifa_flags_get ()
|
||||
_support_kernel_extended_ifa_flags_get (void)
|
||||
{
|
||||
if (_support_kernel_extended_ifa_flags_still_undecided ()) {
|
||||
nm_log_warn (LOGD_PLATFORM, "Unable to detect kernel support for extended IFA_FLAGS. Assume no kernel support.");
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
|
||||
gboolean
|
||||
nmtst_platform_is_root_test ()
|
||||
nmtst_platform_is_root_test (void)
|
||||
{
|
||||
NM_PRAGMA_WARNING_DISABLE("-Wtautological-compare")
|
||||
return (SETUP == nm_linux_platform_setup);
|
||||
|
|
@ -20,7 +20,7 @@ nmtst_platform_is_root_test ()
|
|||
}
|
||||
|
||||
gboolean
|
||||
nmtst_platform_is_sysfs_writable ()
|
||||
nmtst_platform_is_sysfs_writable (void)
|
||||
{
|
||||
return !nmtst_platform_is_root_test ()
|
||||
|| (access ("/sys/devices", W_OK) == 0);
|
||||
|
|
@ -271,7 +271,7 @@ run_command (const char *format, ...)
|
|||
NMTST_DEFINE();
|
||||
|
||||
static gboolean
|
||||
unshare_user ()
|
||||
unshare_user (void)
|
||||
{
|
||||
FILE *f;
|
||||
uid_t uid = geteuid ();
|
||||
|
|
|
|||
|
|
@ -35,7 +35,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;
|
||||
|
|
@ -420,7 +420,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;
|
||||
|
|
@ -468,7 +468,7 @@ test_nm_utils_array_remove_at_indexes ()
|
|||
/*******************************************/
|
||||
|
||||
static void
|
||||
test_nm_ethernet_address_is_valid ()
|
||||
test_nm_ethernet_address_is_valid (void)
|
||||
{
|
||||
g_assert (!nm_ethernet_address_is_valid (NULL, -1));
|
||||
g_assert (!nm_ethernet_address_is_valid (NULL, ETH_ALEN));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue