Clang warnings.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2016-11-01 11:46:51 +02:00
parent 4301df79c1
commit 2c7bb5d5fc
3 changed files with 6 additions and 3 deletions

View File

@ -83,7 +83,7 @@ VTextManager &VTextManager::operator=(const VTextManager &text)
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------
/** /**
* @brief GetSpacing returns the vertical spacing between the lines * @brief GetSpacing returns the vertical spacing between the lines
* @return * @return spacing
*/ */
int VTextManager::GetSpacing() const int VTextManager::GetSpacing() const
{ {

View File

@ -37,7 +37,8 @@ unix {
# -isystem key works only for headers. In some cases it's not enough. But we can't delete these warnings and # -isystem key works only for headers. In some cases it's not enough. But we can't delete these warnings and
# want them in global list. Compromise decision delete them from local list. # want them in global list. Compromise decision delete them from local list.
QMAKE_CXXFLAGS -= \ QMAKE_CXXFLAGS -= \
-Wmissing-prototypes -Wmissing-prototypes \
-Wundefined-reinterpret-cast
} }
*-icc-*{ *-icc-*{

View File

@ -175,6 +175,7 @@ static void halfedge_free( halfedge_t* d )
/* /*
* free all delaunay halfedges * free all delaunay halfedges
*/ */
void del_free_halfedges( delaunay_t *del );
void del_free_halfedges( delaunay_t *del ) void del_free_halfedges( delaunay_t *del )
{ {
quint32 i; quint32 i;
@ -979,6 +980,7 @@ static void build_halfedge_face( delaunay_t *del, halfedge_t *d )
/* /*
* build the faces for all the halfedge * build the faces for all the halfedge
*/ */
void del_build_faces( delaunay_t *del );
void del_build_faces( delaunay_t *del ) void del_build_faces( delaunay_t *del )
{ {
quint32 i; quint32 i;
@ -1035,7 +1037,7 @@ delaunay2d_t* delaunay2d_from(del_point2d_t *points, quint32 num_points) {
quint32 fbuff_size = 0; quint32 fbuff_size = 0;
quint32 j = 0; quint32 j = 0;
del_divide_and_conquer( &del, 0, num_points - 1 ); del_divide_and_conquer( &del, 0, static_cast<int>(num_points - 1) );
del_build_faces( &del ); del_build_faces( &del );
for( i = 0; i < del.num_faces; i++ ) for( i = 0; i < del.num_faces; i++ )