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:
7c05a95
)
els_box: Fix warning with clang
author
Jean-Philippe Andre
<jp.andre@samsung.com>
Wed, 6 Apr 2016 06:16:37 +0000
(15:16 +0900)
committer
Jean-Philippe Andre
<jp.andre@samsung.com>
Wed, 6 Apr 2016 07:28:33 +0000
(16:28 +0900)
warning: comparison of constant 100 with expression of type
'Evas_Aspect_Control' is always true
[-Wtautological-constant-out-of-range-compare]
src/lib/elementary/els_box.c
patch
|
blob
|
history
diff --git
a/src/lib/elementary/els_box.c
b/src/lib/elementary/els_box.c
index 1499c0b2cac7d228d64b7bc5fb2d1b2ea432003c..b874c79f3334f7e6a3ce8db25b13634add4bd7e6 100644
(file)
--- a/
src/lib/elementary/els_box.c
+++ b/
src/lib/elementary/els_box.c
@@
-265,7
+265,7
@@
_smart_extents_calculate(Evas_Object *box, Evas_Object_Box_Data *priv, int w, in
aspect = EVAS_ASPECT_CONTROL_NONE;
ERR("Invalid aspect specified!");
}
- if (paspect < 100) //value starts overflowed as UINT_MAX
+ if (
(unsigned)
paspect < 100) //value starts overflowed as UINT_MAX
{
/* this condition can cause some items to not be the same size,
* resulting in a non-homogeneous homogeneous layout