From df96735657af7c2c5d787ab4eeb15d599647616a Mon Sep 17 00:00:00 2001 From: Hermet Park Date: Thu, 28 Apr 2016 14:12:16 +0900 Subject: [PATCH] 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 b/src/lib/elementary/elm_prefs_common.h index cf734527b8..22489c3baf 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;