Skip to content

Commit

Permalink
Resolve a number of minor warnings (#3495)
Browse files Browse the repository at this point in the history
  • Loading branch information
chromy committed Jun 20, 2024
1 parent 210ec10 commit 0119867
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions src/commands/CmdCalendar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion src/commands/CmdCustom.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 <std::string>&);
Expand Down
2 changes: 1 addition & 1 deletion src/commands/CmdTimesheet.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class CmdTimesheet : public Command
{
public:
CmdTimesheet ();
int execute (std::string&);
int execute (std::string&) override;
bool uses_context () const override;
};

Expand Down

0 comments on commit 0119867

Please sign in to comment.