diff --git a/3rdparty/stasm4.0.0/stasm/MOD_1/facedet.cpp b/3rdparty/stasm4.0.0/stasm/MOD_1/facedet.cpp index 6e5d196..2db5c70 100755 --- a/3rdparty/stasm4.0.0/stasm/MOD_1/facedet.cpp +++ b/3rdparty/stasm4.0.0/stasm/MOD_1/facedet.cpp @@ -146,7 +146,10 @@ static void TraceFaces( // write image showing detected face rects const Image& img, // in const char* filename) // in { - (void) detpars, img, filename; + (void) detpars; + (void) img; + (void) filename; + #if TRACE_IMAGES // will be 0 unless debugging (defined in stasm.h) CImage cimg; cvtColor(img, cimg, CV_GRAY2BGR); // color image diff --git a/openbr/plugins/gui.cpp b/openbr/plugins/gui.cpp index 29b28a6..c92a20c 100644 --- a/openbr/plugins/gui.cpp +++ b/openbr/plugins/gui.cpp @@ -292,6 +292,9 @@ public: void projectUpdate(const TemplateList &src, TemplateList &dst) { + if (Globals->parallelism > 1) + qFatal("ManualTransform cannot execute in parallel."); + dst = src; if (src.empty()) @@ -320,9 +323,6 @@ public: void init() { - if (Globals->parallelism > 1) - qFatal("ManualTransform cannot be run in parallel."); - if (!Globals->useGui) return;