From fac57028e4da9a90850b23564287702aa48f552c Mon Sep 17 00:00:00 2001 From: Alexander Stillich Date: Fri, 2 Nov 2018 16:46:36 +0100 Subject: [PATCH] Fixed warning about unused parameters in QZXing::decodeSubImageQM when QZXING_QML is not defined --- src/QZXing.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/QZXing.cpp b/src/QZXing.cpp index a431099..2eb1d2d 100644 --- a/src/QZXing.cpp +++ b/src/QZXing.cpp @@ -487,6 +487,11 @@ QString QZXing::decodeSubImageQML(const QUrl &imageUrl, img = img.copy(offsetX, offsetY, width, height); return decodeImage(img); #else + Q_UNUSED(imageUrl); + Q_UNUSED(offsetX); + Q_UNUSED(offsetY); + Q_UNUSED(width); + Q_UNUSED(height); return decodeImage(QImage()); #endif //QZXING_QML }