eina_value: silent -Wextra for EINA_VALUE_EMPTY
authorGustavo Sverzut Barbieri <barbieri@profusion.mobi>
Mon, 28 Aug 2017 21:26:29 +0000 (18:26 -0300)
committerGustavo Sverzut Barbieri <barbieri@profusion.mobi>
Mon, 28 Aug 2017 21:26:29 +0000 (18:26 -0300)
-Wextra complains about missing initializers, so provide the full 8
 bytes of the first member of the union.

src/lib/eina/eina_value.h

index 3617bfb..e9bfff2 100644 (file)
@@ -312,7 +312,7 @@ typedef struct _Eina_Value Eina_Value;
  *
  * @since 1.21
  */
-#define EINA_VALUE_EMPTY ((Eina_Value){ 0 })
+#define EINA_VALUE_EMPTY ((Eina_Value){ NULL, { { 0, 0, 0, 0, 0, 0, 0, 0 } } })
 
 /**
  * @typedef Eina_Value_Type