diff --git a/modules/stitching/src/matchers.cpp b/modules/stitching/src/matchers.cpp index 94b788395..565d4ffed 100644 --- a/modules/stitching/src/matchers.cpp +++ b/modules/stitching/src/matchers.cpp @@ -346,6 +346,11 @@ SurfFeaturesFinder::SurfFeaturesFinder(double hess_thresh, int num_octaves, int extractor_->set(SURF::NOCTAVE_LAYERS, num_layers_descr); } #else + (void)hess_thresh; + (void)num_octaves; + (void)num_layers; + (void)num_octaves_descr; + (void)num_layers_descr; CV_Error( Error::StsNotImplemented, "OpenCV was built without SURF support" ); #endif }