Fixed compiler warnings

This commit is contained in:
Lukas Matena 2022-08-12 09:40:19 +02:00
parent 0df757895e
commit 661bb522cf
2 changed files with 3 additions and 1 deletions

View File

@ -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();

View File

@ -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)