@@ -967,6 +967,10 @@ TEST_CASE("Callbacks test: count number of callback calls")
967967 auto cdt = Triangulation<double >();
968968 // REQUIRE(sizeof(cdt) == 368);
969969
970+ // parameter names are used for documentation purposes, even if they are un-used
971+ // in the interface's default implementation
972+ #pragma GCC diagnostic push
973+ #pragma GCC diagnostic ignored "-Wunused-parameter"
970974 struct CallbackHandler final : public CDT ::ICallbackHandler
971975 {
972976 void onAddSuperTriangle () override
@@ -1016,11 +1020,16 @@ TEST_CASE("Callbacks test: count number of callback calls")
10161020 nModifiedTriangles += tris.size ();
10171021 }
10181022
1019- int nAddedVertices = 0 ;
1020- int nModifiedTriangles = 0 ;
1021- int nAddedTriangles = 0 ;
1022- int nAddedEdges = 0 ;
1023+ std:: size_t nAddedVertices = 0 ;
1024+ std:: size_t nModifiedTriangles = 0 ;
1025+ std:: size_t nAddedTriangles = 0 ;
1026+ std:: size_t nAddedEdges = 0 ;
10231027 };
1028+
1029+ // parameter names are used for documentation purposes, even if they are
1030+ // un-used in the interface's default implementation
1031+ #pragma GCC diagnostic pop
1032+
10241033 CallbackHandler callbackHandler;
10251034 cdt.setCallbackHandler (&callbackHandler);
10261035
@@ -1073,7 +1082,7 @@ TEST_CASE("Callbacks test: test aborting the calculation")
10731082 {
10741083 struct CallbackHandler final : public CDT ::ICallbackHandler
10751084 {
1076- void onAddEdgeStart (const Edge& edge) override
1085+ void onAddEdgeStart (const Edge& /* edge*/ ) override
10771086 {
10781087 ++n;
10791088 }
0 commit comments