From 6ec854723d6d48b6499d4c096adbd2101439b855 Mon Sep 17 00:00:00 2001 From: Simo Piiroinen Date: Thu, 10 Sep 2015 11:44:18 +0300 Subject: [PATCH] [libngf] Do not use C++ style function prototypes. Fixes JB#32195 Incorrect function prototypes in libngfd causes compilation warnings when strict error checking is used. Declare functions that take no parameters as int foo(void); instead of int foo(); The latter is valid in C++, but in C compilation it is "old style" prototype meaning the number/type of parameters is not specified. --- libngf/proplist.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libngf/proplist.h b/libngf/proplist.h index 57fa71e..2ce9330 100644 --- a/libngf/proplist.h +++ b/libngf/proplist.h @@ -49,7 +49,7 @@ typedef void (*NgfProplistExtendedCallback) (const char *key, const void *val * @return NgfProplist or NULL if no memory. */ -NgfProplist* ngf_proplist_new (); +NgfProplist* ngf_proplist_new (void); /** * Create an identical copy of other proplist.