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

(cherry picked from commit 2dc27a99d7)
This commit is contained in:
Jiří Klimeš 2015-06-19 13:06:37 +02:00 committed by Thomas Haller
parent bc9a673d1e
commit e585c4d4f3
4 changed files with 4 additions and 4 deletions

View file

@ -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;

View file

@ -42,7 +42,7 @@ typedef struct {
/******************************************************************************************/
static ValuesData *
_values_data_create ()
_values_data_create (void)
{
ValuesData *values_data;

View file

@ -31,7 +31,7 @@
/******************************************************************/
static void
test_init_linux_platform ()
test_init_linux_platform (void)
{
gs_unref_object NMPlatform *platform = NULL;

View file

@ -212,7 +212,7 @@ static const NMPlatformLink pl_link_3 = {
};
static void
test_cache_link ()
test_cache_link (void)
{
NMPCache *cache;
NMPObject *obj1, *obj2;