Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.0
qtox
fix_compiler_warnings.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File fix_compiler_warnings.patch of Package qtox
From bc18990fd248c117916c88d640456e6b967a4802 Mon Sep 17 00:00:00 2001 From: Anthony Bilinski <me@abilinski.com> Date: Thu, 15 Mar 2018 15:23:46 -0700 Subject: [PATCH] fix(build): Remove unused vars, add default case for switch Fix #5006 --- src/core/core.cpp | 4 ++++ src/widget/friendwidget.cpp | 4 ---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/core/core.cpp b/src/core/core.cpp index deb9174b1..2b59ecc96 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp @@ -713,6 +713,10 @@ bool parseConferenceSendMessageError(TOX_ERR_CONFERENCE_SEND_MESSAGE error) case TOX_ERR_CONFERENCE_SEND_MESSAGE_TOO_LONG: qCritical() << "Message too long"; return false; + + default: + qCritical() << "Unknown TOX_ERR_CONFERENCE_SEND_MESSAGE error"; + return false; } } diff --git a/src/widget/friendwidget.cpp b/src/widget/friendwidget.cpp index 568cefabc..c3b0399a1 100644 --- a/src/widget/friendwidget.cpp +++ b/src/widget/friendwidget.cpp @@ -139,10 +139,6 @@ void FriendWidget::onContextMenuCalled(QContextMenuEvent* event) const auto& s = Settings::getInstance(); const auto circleId = s.getFriendCircleID(frnd->getPublicKey()); - auto circleWidget = CircleWidget::getFromID(circleId); - auto w = circleWidget ? circleWidget : static_cast<QWidget*>(this); - auto friendList = qobject_cast<FriendListWidget*>(w->parentWidget()); - auto circleMenu = menu.addMenu(tr("Move to circle...", "Menu to move a friend into a different circle"));
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor