Skip to content

Commit

Permalink
Reduce warnings using clang
Browse files Browse the repository at this point in the history
  • Loading branch information
bear101 committed Sep 11, 2024
1 parent 9e5fa50 commit 7067ffe
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Client/qtTeamTalk/changestatusdlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ void ChangeStatusDlg::slotAccepted()
case STATUSMODE_QUESTION :
m_user.nStatusMode |= STATUSMODE_QUESTION;
break;
default :
Q_ASSERT(false /* this status mode is not implemented*/);
break;
}

ttSettings->setValue(SETTINGS_GENERAL_STATUSMESSAGE, ui.msgEdit->text());
Expand Down
4 changes: 4 additions & 0 deletions Client/qtTeamTalk/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2309,6 +2309,10 @@ void MainWindow::hotkeyToggle(HotKeyID id, bool active)
{
switch(id)
{
case HOTKEY_NONE :
case HOTKEY_NEXT_UNUSED :
Q_ASSERT(false /* these hotkey are not implemented*/);
break;
case HOTKEY_PUSHTOTALK :
pttHotKey(active);
break;
Expand Down
5 changes: 5 additions & 0 deletions Client/qtTeamTalk/preferencesdlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -839,6 +839,11 @@ void PreferencesDlg::slotSaveChanges()

switch(newsndsys)
{
case SOUNDSYSTEM_NONE :
case SOUNDSYSTEM_OPENSLES_ANDROID :
case SOUNDSYSTEM_AUDIOUNIT :
Q_ASSERT(false /* these sound systems are not supported*/);
break;
case SOUNDSYSTEM_WASAPI:
ttSettings->setValue(SETTINGS_SOUND_SOUNDSYSTEM, SOUNDSYSTEM_WASAPI);
break;
Expand Down

0 comments on commit 7067ffe

Please sign in to comment.