Fixed gcc warning: mainwindow.cpp: In member function ‘Settings MainWindow::GetCppcheckSettings()’:
mainwindow.cpp:575:24: warning: enumeration value ‘UNSUPPORTED_FORMAT’ not handled in switch [-Wswitch] switch (error.errorcode) { ^
This commit is contained in:
parent
3a14441699
commit
c3c8132bbd
|
@ -593,6 +593,9 @@ Settings MainWindow::GetCppcheckSettings()
|
|||
case Library::ErrorCode::BAD_ATTRIBUTE_VALUE:
|
||||
errmsg = tr("Bad attribute value");
|
||||
break;
|
||||
case Library::ErrorCode::UNSUPPORTED_FORMAT:
|
||||
errmsg = tr("Unsupported format");
|
||||
break;
|
||||
}
|
||||
if (!error.reason.empty())
|
||||
errmsg += " '" + QString::fromStdString(error.reason) + "'";
|
||||
|
|
Loading…
Reference in New Issue