Merge pull request from thunder2/warnings-plugins

Removed unused parameter from plugins
This commit is contained in:
csoler 2022-01-08 17:51:32 +01:00 committed by GitHub
commit dab101116b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions
plugins

View File

@ -90,7 +90,7 @@ void FeedReaderFeedNotify::msgChanged(uint32_t feedId, const QString &msgId, int
mMutex->unlock(); mMutex->unlock();
} }
FeedItem *FeedReaderFeedNotify::feedItem(FeedHolder *parent) FeedItem *FeedReaderFeedNotify::feedItem(FeedHolder */*parent*/)
{ {
bool msgPending = false; bool msgPending = false;
FeedInfo feedInfo; FeedInfo feedInfo;
@ -119,7 +119,7 @@ FeedItem *FeedReaderFeedNotify::feedItem(FeedHolder *parent)
return new FeedReaderFeedItem(mFeedReader, mNotify, feedInfo, msgInfo); return new FeedReaderFeedItem(mFeedReader, mNotify, feedInfo, msgInfo);
} }
FeedItem *FeedReaderFeedNotify::testFeedItem(FeedHolder *parent) FeedItem *FeedReaderFeedNotify::testFeedItem(FeedHolder */*parent*/)
{ {
FeedInfo feedInfo; FeedInfo feedInfo;
feedInfo.name = tr("Test").toUtf8().constData(); feedInfo.name = tr("Test").toUtf8().constData();

View File

@ -153,6 +153,8 @@ void QVideoInputDevice::errorHandling(CameraStatus status,QCamera::Error error)
{ {
#ifdef DEBUG_QVIDEODEVICE #ifdef DEBUG_QVIDEODEVICE
std::cerr << "Received msg from camera capture: status=" << (int)status << " error=" << (int)error << std::endl; std::cerr << "Received msg from camera capture: status=" << (int)status << " error=" << (int)error << std::endl;
#else
Q_UNUSED(error);
#endif #endif
if(status == CANNOT_INITIALIZE_CAMERA) if(status == CANNOT_INITIALIZE_CAMERA)
{ {
@ -179,6 +181,8 @@ void QVideoInputDevice::grabFrame(int id,QVideoFrame frame)
#ifdef DEBUG_QVIDEODEVICE #ifdef DEBUG_QVIDEODEVICE
std::cerr << "Frame " << id << ". Pixel format: " << frame.pixelFormat() << ". Size: " << image.size().width() << " x " << image.size().height() << std::endl; // if(frame.pixelFormat() != QVideoFrame::Format_Jpeg) std::cerr << "Frame " << id << ". Pixel format: " << frame.pixelFormat() << ". Size: " << image.size().width() << " x " << image.size().height() << std::endl; // if(frame.pixelFormat() != QVideoFrame::Format_Jpeg)
#else
Q_UNUSED(id);
#endif #endif
if(_video_processor != NULL) if(_video_processor != NULL)