projects
/
platform
/
upstream
/
efl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ad5d9e2
)
prefs: add empty field to avoid build warning.
author
ChunEon Park
<hermet@hermet.pe.kr>
Mon, 3 Aug 2015 04:56:01 +0000
(13:56 +0900)
committer
ChunEon 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
patch
|
blob
|
history
diff --git
a/legacy/elementary/src/lib/elm_prefs_common.h
b/legacy/elementary/src/lib/elm_prefs_common.h
index
3ebe9e2
..
8552fbf
100644
(file)
--- a/
legacy/elementary/src/lib/elm_prefs_common.h
+++ b/
legacy/elementary/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;