diff --git a/src/Mod/Image/Gui/Command.cpp b/src/Mod/Image/Gui/Command.cpp index 593547b20..7c5bdc9cd 100644 --- a/src/Mod/Image/Gui/Command.cpp +++ b/src/Mod/Image/Gui/Command.cpp @@ -60,6 +60,8 @@ CmdImageOpen::CmdImageOpen() void CmdImageOpen::activated(int iMsg) { + Q_UNUSED(iMsg); + // add all supported QImage formats QString formats; QTextStream str(&formats); @@ -102,6 +104,8 @@ CmdCreateImagePlane::CmdCreateImagePlane() void CmdCreateImagePlane::activated(int iMsg) { + Q_UNUSED(iMsg); + QString formats; QTextStream str(&formats); str << QObject::tr("Images") << " ("; diff --git a/src/Mod/Image/Gui/ImageView.cpp b/src/Mod/Image/Gui/ImageView.cpp index 0da18047d..1f3bdf74c 100644 --- a/src/Mod/Image/Gui/ImageView.cpp +++ b/src/Mod/Image/Gui/ImageView.cpp @@ -457,7 +457,7 @@ void ImageView::wheelEvent(QWheelEvent * cEvent) } } -void ImageView::showEvent (QShowEvent * e) +void ImageView::showEvent (QShowEvent *) { _pGLImageBox->setFocus(); } @@ -607,6 +607,8 @@ void ImageView::select(int currX, int currY) { // base class implementation does nothing // override this method and implement selection capability if required + Q_UNUSED(currX); + Q_UNUSED(currY); } // Add selection at the given position @@ -614,6 +616,8 @@ void ImageView::addSelect(int currX, int currY) { // base class implementation does nothing // override this method and implement selection capability if required + Q_UNUSED(currX); + Q_UNUSED(currY); } // Draw any 2D graphics necessary diff --git a/src/Mod/Image/Gui/ImageView.h b/src/Mod/Image/Gui/ImageView.h index 7ff60ef05..092ce9824 100644 --- a/src/Mod/Image/Gui/ImageView.h +++ b/src/Mod/Image/Gui/ImageView.h @@ -41,8 +41,8 @@ public: const char *getName(void) const {return "ImageView";} void onUpdate(void){}; - bool onMsg(const char* pMsg,const char** ppReturn){ return true; } - bool onHasMsg(const char* pMsg) const { return false; } + bool onMsg(const char* ,const char** ){ return true; } + bool onHasMsg(const char* ) const { return false; } virtual void clearImage(); virtual int createImageCopy(void* pSrcPixelData, unsigned long width, unsigned long height, int format, unsigned short numSigBitsPerSample, int displayMode = IV_DISPLAY_RESET);