Ver código fonte

UI: Fix unused-parameter warnings

tytan652 4 anos atrás
pai
commit
f4809b614e
2 arquivos alterados com 4 adições e 0 exclusões
  1. 2 0
      UI/auth-oauth.cpp
  2. 2 0
      UI/auth-youtube.cpp

+ 2 - 0
UI/auth-oauth.cpp

@@ -64,6 +64,8 @@ OAuthLogin::OAuthLogin(QWidget *parent, const std::string &url, bool token)
 	QVBoxLayout *topLayout = new QVBoxLayout(this);
 	topLayout->addWidget(cefWidget);
 	topLayout->addLayout(bottomLayout);
+#else
+	UNUSED_PARAMETER(url);
 #endif
 }
 

+ 2 - 0
UI/auth-youtube.cpp

@@ -181,6 +181,8 @@ void YoutubeAuth::SetChatId(QString &chat_id)
 	if (chat && chat->cefWidget) {
 		chat->cefWidget->setURL(chat_url.toStdString());
 	}
+#else
+	UNUSED_PARAMETER(chat_id);
 #endif
 }