diff --git a/src/Mod/Path/libarea/Adaptive.cpp b/src/Mod/Path/libarea/Adaptive.cpp index ca7b393c8a..4d2ee0c4fb 100644 --- a/src/Mod/Path/libarea/Adaptive.cpp +++ b/src/Mod/Path/libarea/Adaptive.cpp @@ -2129,7 +2129,7 @@ bool Adaptive2d::ResolveLinkPath(const IntPoint &startPoint, const IntPoint &end double par; // put a time limit on the resolving the link path - time_t time_out = clock() + CLOCKS_PER_SEC / 2; // 0.5 sec + clock_t time_out = clock() + CLOCKS_PER_SEC / 2; // 0.5 sec while (!queue.empty()) { @@ -2291,7 +2291,7 @@ void Adaptive2d::AppendToolPath(TPaths &progressPaths, AdaptiveOutput &output, UNUSED(progressPaths); // to silence compiler warning,var is occasionally used in dev. for debugging IntPoint endPoint(passToolPath[0]); - IntPoint endNextPoint(passToolPath[1]); + //IntPoint endNextPoint(passToolPath[1]); // if there is a previous path - need to resolve linking move to new path if (output.AdaptivePaths.size() > 0 && output.AdaptivePaths.back().second.size() > 1) diff --git a/src/Mod/Path/libarea/Adaptive.hpp b/src/Mod/Path/libarea/Adaptive.hpp index 88cde1caa4..ba1f99e690 100644 --- a/src/Mod/Path/libarea/Adaptive.hpp +++ b/src/Mod/Path/libarea/Adaptive.hpp @@ -126,7 +126,7 @@ class Adaptive2d bool stopProcessing = false; long unclearLinkingMoveCount = 0; - time_t lastProgressTime = 0; + clock_t lastProgressTime = 0; std::function *progressCallback = NULL; Path toolGeometry; // tool geometry at coord 0,0, should not be modified @@ -171,7 +171,7 @@ class Adaptive2d const long PASSES_LIMIT = __LONG_MAX__; // limit used while debugging const long POINTS_PER_PASS_LIMIT = __LONG_MAX__; // limit used while debugging - const time_t PROGRESS_TICKS = CLOCKS_PER_SEC / 10; // progress report interval + const clock_t PROGRESS_TICKS = CLOCKS_PER_SEC / 10; // progress report interval }; } // namespace AdaptivePath #endif \ No newline at end of file