prefs: add empty field to avoid build warning.
authorChunEon Park <hermet@hermet.pe.kr>
Mon, 3 Aug 2015 04:56:01 +0000 (13:56 +0900)
committerChunEon Park <hermet@hermet.pe.kr>
Mon, 3 Aug 2015 04:56:01 +0000 (13:56 +0900)
this addition is a trick to avoid g/gcc compile warning.
warning: empty struct has size 0 in C, size 1 in C++.

legacy/elementary/src/lib/elm_prefs_common.h

index 3ebe9e2..8552fbf 100644 (file)
@@ -32,6 +32,7 @@ EAPI Evas_Object       *elm_prefs_add(Evas_Object *parent);
 typedef struct _Elm_Prefs_Item_Spec_Void Elm_Prefs_Item_Spec_Void;
 struct _Elm_Prefs_Item_Spec_Void
 {
+   int:0;  //Trick for removing warning (warning: empty struct has size 0 in C, size 1 in C++)
 };
 
 typedef struct _Elm_Prefs_Item_Spec_Bool Elm_Prefs_Item_Spec_Bool;