hermet pushed a commit to branch master.

http://git.enlightenment.org/core/elementary.git/commit/?id=d2270809299e7c0b3dfb669f753484be9c100362

commit d2270809299e7c0b3dfb669f753484be9c100362
Author: ChunEon Park <her...@hermet.pe.kr>
Date:   Mon Aug 3 13:56:01 2015 +0900

    prefs: add empty field to avoid build warning.
    
    this addition is a trick to avoid g/gcc compile warning.
    warning: empty struct has size 0 in C, size 1 in C++.
---
 src/lib/elm_prefs_common.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/lib/elm_prefs_common.h b/src/lib/elm_prefs_common.h
index 3ebe9e2..8552fbf 100644
--- a/src/lib/elm_prefs_common.h
+++ b/src/lib/elm_prefs_common.h
@@ -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;

-- 


Reply via email to