tests: Add ifdef clang to avoid warning on GCC and elsewhere

Avoids warning about unsupported pragma
This commit is contained in:
Jean-Philippe Andre 2016-07-19 17:41:37 +09:00
parent 3029227fa1
commit 0d3f5c9661
1 changed files with 4 additions and 0 deletions

View File

@ -106,14 +106,18 @@ static int _compare_meshes(Evas_Canvas3D_Mesh *mesh1, Evas_Canvas3D_Mesh *mesh2)
if ((pd1->vertex_count) != (pd2->vertex_count))
return 1;
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wtautological-compare"
#endif
COMPARE_GEOMETRICS(EVAS_CANVAS3D_VERTEX_ATTRIB_POSITION)
COMPARE_GEOMETRICS(EVAS_CANVAS3D_VERTEX_ATTRIB_NORMAL)
COMPARE_GEOMETRICS(EVAS_CANVAS3D_VERTEX_ATTRIB_TEXCOORD)
#ifdef __clang__
#pragma clang diagnostic pop
#endif
return 0;
}