hermet pushed a commit to branch master.


commit df96735657af7c2c5d787ab4eeb15d599647616a
Author: Hermet Park <her...@hermet.pe.kr>
Date:   Thu Apr 28 14:12:16 2016 +0900

    elementary/elm_prefs: preserve compatibility.
    C++ doens't allow empty size structure, empty structure looks harmful.
    I've thought about the solution and this patch is my conclusion.
    Because I'm not a big fan of elm_prefs,
    if you have any better idea then please fix it on your way.
 src/lib/elementary/elm_prefs_common.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/elementary/elm_prefs_common.h 
index cf73452..22489c3 100644
--- a/src/lib/elementary/elm_prefs_common.h
+++ b/src/lib/elementary/elm_prefs_common.h
@@ -19,7 +19,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++)
+   char dummy;  //for compatibility (warning: empty struct has size 0 in C, 
size 1 in C++)
 typedef struct _Elm_Prefs_Item_Spec_Bool Elm_Prefs_Item_Spec_Bool;


Reply via email to