eliminate warnings

This commit is contained in:
Roy Qu 2024-04-01 21:28:36 +08:00
parent 97a7a62fb1
commit 775148eb43
4 changed files with 3 additions and 3 deletions

View File

@ -4170,6 +4170,7 @@ void CppParser::handleVar(const QString& typePrefix,bool isExtern,bool isStatic,
break; break;
} }
//not function pointer, fall through //not function pointer, fall through
[[fallthrough]];
case '{': case '{':
tempType=""; tempType="";
if (mIndex+1<maxIndex if (mIndex+1<maxIndex

View File

@ -246,7 +246,7 @@ void ProjectGeneralWidget::updateIcons(const QSize &)
} }
void ProjectGeneralWidget::on_cbType_currentIndexChanged(int index) void ProjectGeneralWidget::on_cbType_currentIndexChanged(int /*index*/)
{ {
std::shared_ptr<Project> project = pMainWindow->project(); std::shared_ptr<Project> project = pMainWindow->project();
if (!project) if (!project)

View File

@ -167,7 +167,7 @@
</widget> </widget>
</item> </item>
<item row="0" column="0" rowspan="2"> <item row="0" column="0" rowspan="2">
<widget class="QWidget" name="widget" native="true"> <widget class="QWidget" name="widget_3" native="true">
<layout class="QVBoxLayout" name="verticalLayout_2"> <layout class="QVBoxLayout" name="verticalLayout_2">
<item> <item>
<spacer name="verticalSpacer_2"> <spacer name="verticalSpacer_2">

View File

@ -3786,7 +3786,6 @@ ScrollStyle QSynEdit::scrollBars() const
void QSynEdit::setScrollBars(ScrollStyle newScrollBars) void QSynEdit::setScrollBars(ScrollStyle newScrollBars)
{ {
ScrollStyle oldScrollBars = mScrollBars;
mScrollBars = newScrollBars; mScrollBars = newScrollBars;
if (mScrollBars == ScrollStyle::ssBoth || mScrollBars == ScrollStyle::ssHorizontal) { if (mScrollBars == ScrollStyle::ssBoth || mScrollBars == ScrollStyle::ssHorizontal) {
if (mOptions.testFlag(eoHideShowScrollbars)) { if (mOptions.testFlag(eoHideShowScrollbars)) {