From 661bb522cf5221f60e13e0f72492fd519c382c3f Mon Sep 17 00:00:00 2001 From: Lukas Matena Date: Fri, 12 Aug 2022 09:40:19 +0200 Subject: [PATCH] Fixed compiler warnings --- src/libslic3r/Format/STEP.cpp | 2 ++ src/occt_wrapper/OCCTWrapper.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/libslic3r/Format/STEP.cpp b/src/libslic3r/Format/STEP.cpp index f63d56f1b..00d692fc6 100644 --- a/src/libslic3r/Format/STEP.cpp +++ b/src/libslic3r/Format/STEP.cpp @@ -30,7 +30,9 @@ LoadStepFn get_load_step_fn() { static LoadStepFn load_step_fn = nullptr; +#ifndef __APPLE__ constexpr const char* fn_name = "load_step_internal"; +#endif if (!load_step_fn) { auto libpath = boost::dll::program_location().parent_path(); diff --git a/src/occt_wrapper/OCCTWrapper.cpp b/src/occt_wrapper/OCCTWrapper.cpp index 87f15e7f9..e41d8953f 100644 --- a/src/occt_wrapper/OCCTWrapper.cpp +++ b/src/occt_wrapper/OCCTWrapper.cpp @@ -80,7 +80,7 @@ static void getNamedSolids(const TopLoc_Location& location, const Handle(XCAFDoc extern "C" OCCTWRAPPER_EXPORT bool load_step_internal(const char *path, OCCTResult* res /*BBS:, ImportStepProgressFn proFn*/) { try { - bool cb_cancel = false; + //bool cb_cancel = false; //if (proFn) { // proFn(LOAD_STEP_STAGE_READ_FILE, 0, 1, cb_cancel); // if (cb_cancel)