Skip to content

Commit

Permalink
Avoid trailing ; warning thrown by QGSCOMPARENEAR macro
Browse files Browse the repository at this point in the history
(cherry picked from commit 849f315)
  • Loading branch information
nyalldawson authored and nirvn committed Nov 29, 2019
1 parent c5b8af8 commit 2f7314f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/qgstest.h
Expand Up @@ -44,7 +44,7 @@
qDebug( "Expecting %f got %f (diff %f > %f)", static_cast< double >( expected ), static_cast< double >( value ), std::fabs( static_cast< double >( expected ) - value ), static_cast< double >( epsilon ) ); \
} \
QVERIFY( qgsDoubleNear( value, expected, epsilon ) ); \
}
}(void)(0)

#define QGSCOMPARENOTNEAR(value,not_expected,epsilon) { \
bool _xxxresult = qgsDoubleNear( value, not_expected, epsilon ); \
Expand All @@ -53,7 +53,7 @@
qDebug( "Expecting %f to be differerent from %f (diff %f > %f)", static_cast< double >( value ), static_cast< double >( not_expected ), std::fabs( static_cast< double >( not_expected ) - value ), static_cast< double >( epsilon ) ); \
} \
QVERIFY( !qgsDoubleNear( value, not_expected, epsilon ) ); \
}
}(void)(0)

#define QGSCOMPARENEARPOINT(point1,point2,epsilon) { \
QGSCOMPARENEAR( point1.x(), point2.x(), epsilon ); \
Expand Down

0 comments on commit 2f7314f

Please sign in to comment.