Fix compiler warnings

This commit is contained in:
Janek Bevendorff 2017-03-10 14:28:26 +01:00
parent 31494ec327
commit da0afd3939
No known key found for this signature in database
GPG key ID: CFEC2F6850BFFA53
4 changed files with 5 additions and 11 deletions

View file

@ -148,7 +148,7 @@ void Application::handleUnixSignal(int sig)
case SIGTERM: case SIGTERM:
{ {
char buf = 0; char buf = 0;
::write(unixSignalSocket[0], &buf, sizeof(buf)); Q_UNUSED(::write(unixSignalSocket[0], &buf, sizeof(buf)));
return; return;
} }
case SIGHUP: case SIGHUP:
@ -160,7 +160,7 @@ void Application::quitBySignal()
{ {
m_unixSignalNotifier->setEnabled(false); m_unixSignalNotifier->setEnabled(false);
char buf; char buf;
::read(unixSignalSocket[1], &buf, sizeof(buf)); Q_UNUSED(::read(unixSignalSocket[1], &buf, sizeof(buf)));
if (nullptr != m_mainWindow) if (nullptr != m_mainWindow)
static_cast<MainWindow*>(m_mainWindow)->appExit(); static_cast<MainWindow*>(m_mainWindow)->appExit();

View file

@ -48,9 +48,9 @@ EditWidgetIcons::EditWidgetIcons(QWidget* parent)
, m_defaultIconModel(new DefaultIconModel(this)) , m_defaultIconModel(new DefaultIconModel(this))
, m_customIconModel(new CustomIconModel(this)) , m_customIconModel(new CustomIconModel(this))
#ifdef WITH_XC_HTTP #ifdef WITH_XC_HTTP
, m_httpClient(nullptr)
, m_fallbackToGoogle(true) , m_fallbackToGoogle(true)
, m_redirectCount(0) , m_redirectCount(0)
, m_httpClient(nullptr)
#endif #endif
{ {
m_ui->setupUi(this); m_ui->setupUi(this);
@ -149,6 +149,7 @@ void EditWidgetIcons::setUrl(const QString& url)
m_ui->faviconButton->setVisible(!url.isEmpty()); m_ui->faviconButton->setVisible(!url.isEmpty());
resetFaviconDownload(); resetFaviconDownload();
#else #else
Q_UNUSED(url);
m_ui->faviconButton->setVisible(false); m_ui->faviconButton->setVisible(false);
#endif #endif
} }

View file

@ -123,9 +123,7 @@
</spacer> </spacer>
</item> </item>
<item> <item>
<widget class="WelcomeWidget" name="welcomeWidget" native="true"> <widget class="WelcomeWidget" name="welcomeWidget" native="true"/>
<zorder>horizontalSpacer_2</zorder>
</widget>
</item> </item>
<item> <item>
<spacer name="horizontalSpacer_2"> <spacer name="horizontalSpacer_2">

View file

@ -259,11 +259,6 @@
</layout> </layout>
</item> </item>
</layout> </layout>
<zorder></zorder>
<zorder></zorder>
<zorder></zorder>
<zorder></zorder>
<zorder></zorder>
</widget> </widget>
</item> </item>
</layout> </layout>