mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-08 20:38:10 +02:00
all: fix additional compiler warningis 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
b18f328967
commit
2dc27a99d7
4 changed files with 4 additions and 4 deletions
|
|
@ -4395,7 +4395,7 @@ enum TEST_IS_POWER_OF_TWP_ENUM_UNSIGNED_64 {
|
||||||
} G_STMT_END
|
} G_STMT_END
|
||||||
|
|
||||||
static void
|
static void
|
||||||
test_nm_utils_is_power_of_two ()
|
test_nm_utils_is_power_of_two (void)
|
||||||
{
|
{
|
||||||
guint64 xyes, xno;
|
guint64 xyes, xno;
|
||||||
gint i, j;
|
gint i, j;
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,7 @@ typedef struct {
|
||||||
/******************************************************************************************/
|
/******************************************************************************************/
|
||||||
|
|
||||||
static ValuesData *
|
static ValuesData *
|
||||||
_values_data_create ()
|
_values_data_create (void)
|
||||||
{
|
{
|
||||||
ValuesData *values_data;
|
ValuesData *values_data;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@
|
||||||
/******************************************************************/
|
/******************************************************************/
|
||||||
|
|
||||||
static void
|
static void
|
||||||
test_init_linux_platform ()
|
test_init_linux_platform (void)
|
||||||
{
|
{
|
||||||
gs_unref_object NMPlatform *platform = NULL;
|
gs_unref_object NMPlatform *platform = NULL;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -212,7 +212,7 @@ static const NMPlatformLink pl_link_3 = {
|
||||||
};
|
};
|
||||||
|
|
||||||
static void
|
static void
|
||||||
test_cache_link ()
|
test_cache_link (void)
|
||||||
{
|
{
|
||||||
NMPCache *cache;
|
NMPCache *cache;
|
||||||
NMPObject *obj1, *obj2;
|
NMPObject *obj1, *obj2;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue