jpeg pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=015554e57e3a88aba6b5a03ef70d023a5bdc5e5e

commit 015554e57e3a88aba6b5a03ef70d023a5bdc5e5e
Author: Jean-Philippe Andre <jp.an...@samsung.com>
Date:   Fri Mar 25 17:51:17 2016 +0900

    Evas 3d: Hide warning with clang
    
    An otherwise good looking macro triggers a warning with clang,
    because of self comparison of constants (always true or always
    false). Let's just silence the warning in this specific spot
    with a pragma.
---
 src/tests/evas/evas_test_mesh.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/tests/evas/evas_test_mesh.c b/src/tests/evas/evas_test_mesh.c
index 40a2239..aba8a0b 100644
--- a/src/tests/evas/evas_test_mesh.c
+++ b/src/tests/evas/evas_test_mesh.c
@@ -106,10 +106,15 @@ static int _compare_meshes(Evas_Canvas3D_Mesh *mesh1, 
Evas_Canvas3D_Mesh *mesh2)
    if ((pd1->vertex_count) != (pd2->vertex_count))
       return 1;
 
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wtautological-compare"
+
    COMPARE_GEOMETRICS(EVAS_CANVAS3D_VERTEX_ATTRIB_POSITION)
    COMPARE_GEOMETRICS(EVAS_CANVAS3D_VERTEX_ATTRIB_NORMAL)
    COMPARE_GEOMETRICS(EVAS_CANVAS3D_VERTEX_ATTRIB_TEXCOORD)
 
+#pragma clang diagnostic pop
+
    return 0;
 }
 

-- 


Reply via email to