summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJiří Klimeš <jklimes@redhat.com>2015-06-19 13:06:37 +0200
committerJiří Klimeš <jklimes@redhat.com>2015-06-19 13:06:37 +0200
commit2dc27a99d70f083e0de2cdc353293eed31fb84d8 (patch)
treea90578293eaae14362d98850d892570ece1ddc73
parentb18f328967a97671b1ed9f662375a2becb5e2631 (diff)
downloadNetworkManager-2dc27a99d70f083e0de2cdc353293eed31fb84d8.tar.gz
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
-rw-r--r--libnm-core/tests/test-general.c2
-rw-r--r--src/nm-multi-index.c2
-rw-r--r--src/platform/tests/test-general.c2
-rw-r--r--src/platform/tests/test-nmp-object.c2
4 files changed, 4 insertions, 4 deletions
diff --git a/libnm-core/tests/test-general.c b/libnm-core/tests/test-general.c
index 24128862ba..2f330357d6 100644
--- a/libnm-core/tests/test-general.c
+++ b/libnm-core/tests/test-general.c
@@ -4395,7 +4395,7 @@ enum TEST_IS_POWER_OF_TWP_ENUM_UNSIGNED_64 {
} G_STMT_END
static void
-test_nm_utils_is_power_of_two ()
+test_nm_utils_is_power_of_two (void)
{
guint64 xyes, xno;
gint i, j;
diff --git a/src/nm-multi-index.c b/src/nm-multi-index.c
index 34695add7e..d45f4834fd 100644
--- a/src/nm-multi-index.c
+++ b/src/nm-multi-index.c
@@ -42,7 +42,7 @@ typedef struct {
/******************************************************************************************/
static ValuesData *
-_values_data_create ()
+_values_data_create (void)
{
ValuesData *values_data;
diff --git a/src/platform/tests/test-general.c b/src/platform/tests/test-general.c
index 9a6a79d44a..5684b67b81 100644
--- a/src/platform/tests/test-general.c
+++ b/src/platform/tests/test-general.c
@@ -31,7 +31,7 @@
/******************************************************************/
static void
-test_init_linux_platform ()
+test_init_linux_platform (void)
{
gs_unref_object NMPlatform *platform = NULL;
diff --git a/src/platform/tests/test-nmp-object.c b/src/platform/tests/test-nmp-object.c
index a2c7e7184d..b8fd9264fc 100644
--- a/src/platform/tests/test-nmp-object.c
+++ b/src/platform/tests/test-nmp-object.c
@@ -212,7 +212,7 @@ static const NMPlatformLink pl_link_3 = {
};
static void
-test_cache_link ()
+test_cache_link (void)
{
NMPCache *cache;
NMPObject *obj1, *obj2;