From 0119867223cce668a69b24607487612db6ff209b Mon Sep 17 00:00:00 2001 From: Hector Dearman Date: Thu, 20 Jun 2024 13:29:39 +0100 Subject: [PATCH] Resolve a number of minor warnings (#3495) --- src/commands/CmdCalendar.cpp | 2 -- src/commands/CmdCustom.h | 2 +- src/commands/CmdTimesheet.h | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/commands/CmdCalendar.cpp b/src/commands/CmdCalendar.cpp index caf211ffc..1a956a605 100644 --- a/src/commands/CmdCalendar.cpp +++ b/src/commands/CmdCalendar.cpp @@ -177,7 +177,6 @@ int CmdCalendar::execute (std::string& output) yFrom = argYear; // Now begin the data subset and rendering. - auto countDueDates = 0; if (getPendingDate == true) { // Find the oldest pending due date. @@ -190,7 +189,6 @@ int CmdCalendar::execute (std::string& output) if (task.has ("due") && !task.hasTag ("nocal")) { - ++countDueDates; Datetime d (task.get ("due")); if (d < oldest) oldest = d; } diff --git a/src/commands/CmdCustom.h b/src/commands/CmdCustom.h index 1c805a45c..521876d65 100644 --- a/src/commands/CmdCustom.h +++ b/src/commands/CmdCustom.h @@ -35,7 +35,7 @@ class CmdCustom : public Command public: CmdCustom (const std::string&, const std::string&, const std::string&); bool uses_context () const override; - int execute (std::string&); + int execute (std::string&) override; private: void validateReportColumns (std::vector &); diff --git a/src/commands/CmdTimesheet.h b/src/commands/CmdTimesheet.h index 666e7c830..3401abec6 100644 --- a/src/commands/CmdTimesheet.h +++ b/src/commands/CmdTimesheet.h @@ -34,7 +34,7 @@ class CmdTimesheet : public Command { public: CmdTimesheet (); - int execute (std::string&); + int execute (std::string&) override; bool uses_context () const override; };