Skip to content

Commit

Permalink
Compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
dxli committed Dec 8, 2024
1 parent 058391f commit 25646f2
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion libraries/libdxfrw/src/drw_objects.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1431,7 +1431,7 @@ bool DRW_View::parseCode(int code, dxfReader *reader) {
return true;
}

bool DRW_View::parseDwg(DRW::Version version, dwgBuffer *buf, duint32 bs) {
bool DRW_View::parseDwg(DRW::Version /*version*/, dwgBuffer *buf, duint32 /*bs*/) {
// fixme - sand - complete reading VIEW from DWG
DRW_DBG("\n********************** parsing VIEW Settings from DWG is not yet implemented **************************\n");
return buf->isGood();
Expand Down
2 changes: 1 addition & 1 deletion librecad/src/lib/engine/document/rs_graphic.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class RS_Graphic : public RS_Document {

RS_LayerList* getLayerList() override {return &layerList;}
RS_BlockList* getBlockList() override {return &blockList;}
LC_ViewList* getViewList() {return &namedViewsList;}
LC_ViewList* getViewList() override {return &namedViewsList;}

void newDoc() override;
bool save(bool isAutoSave = false) override;
Expand Down
2 changes: 1 addition & 1 deletion librecad/src/lib/gui/rs_dialogfactoryadapter.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ class RS_DialogFactoryAdapter : public RS_DialogFactoryInterface {
void hideSnapOptions() override {};
void removeOptionsWidget([[maybe_unused]]QWidget *options) override {}
void addOptionsWidget([[maybe_unused]]QWidget * options) override {}
void setCurrentQAction([[maybe_unused]]QAction *action) override{};
void setCurrentQAction([[maybe_unused]] QAction *action) override{};
};

#endif
2 changes: 1 addition & 1 deletion librecad/src/ui/lc_widgetfactory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,7 @@ void LC_WidgetFactory::createMenus(QMenuBar* menu_bar){
});


/*auto views_restore_menu = */subMenu(view_menu, tr("&Views Restore"), "view_restore", ":/icons/nview_visible.svg",
[[maybe_unused]] auto views_restore_menu = subMenu(view_menu, tr("&Views Restore"), "view_restore", ":/icons/nview_visible.svg",
{"ZoomViewRestore1",
"ZoomViewRestore2",
"ZoomViewRestore3",
Expand Down
2 changes: 1 addition & 1 deletion librecad/src/ui/main/qc_mdiwindow.h
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public slots:
setWindowModified(document->isModified());
}

void viewsListModified([[maybe_unused]]bool changed) {
void viewsListModified([[maybe_unused]]bool changed) override {
setWindowModified(document->isModified());
}

Expand Down

0 comments on commit 25646f2

Please sign in to comment.