Fix for compiler warnings
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -126,7 +126,7 @@ class Adaptive2d
|
||||
bool stopProcessing = false;
|
||||
long unclearLinkingMoveCount = 0;
|
||||
|
||||
time_t lastProgressTime = 0;
|
||||
clock_t lastProgressTime = 0;
|
||||
|
||||
std::function<bool(TPaths)> *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
|
||||
Reference in New Issue
Block a user