eina_inline_value: use void to force empty function parameters
authorStefan Schmidt <stefan@osg.samsung.com>
Mon, 11 Jan 2016 21:18:37 +0000 (22:18 +0100)
committerStefan Schmidt <stefan@osg.samsung.com>
Mon, 11 Jan 2016 21:55:34 +0000 (22:55 +0100)
We have to use void in a function declaration if we want no function
parameters. Using just empty parenthesis means the function takes an
unspecified number of parameters.

src/lib/eina/eina_inline_value.x

index 04f8c89..3117f73 100644 (file)
@@ -1657,7 +1657,7 @@ eina_value_struct_member_value_set(Eina_Value *dst, const Eina_Value_Struct_Memb
   EINA_SAFETY_ON_FALSE_RETURN_VAL(value->type->setup == EINA_VALUE_TYPE_OPTIONAL->setup, retval)
 
 static inline Eina_Value*
-eina_value_optional_empty_new()
+eina_value_optional_empty_new(void)
 {
   return eina_value_new(EINA_VALUE_TYPE_OPTIONAL);
 }