From e585c4d4f322d3409708d7cbca34362c00381b9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20Klime=C5=A1?= Date: Fri, 19 Jun 2015 13:06:37 +0200 Subject: [PATCH] all: fix additional compiler warningis about function declarations MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 2dc27a99d70f083e0de2cdc353293eed31fb84d8) --- libnm-core/tests/test-general.c | 2 +- src/nm-multi-index.c | 2 +- src/platform/tests/test-general.c | 2 +- src/platform/tests/test-nmp-object.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libnm-core/tests/test-general.c b/libnm-core/tests/test-general.c index 5b014d30cd..03c2eaf5b2 100644 --- a/libnm-core/tests/test-general.c +++ b/libnm-core/tests/test-general.c @@ -4208,7 +4208,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;