Project

General

Profile

Actions

Cleanup #15292

closed

compiler warning on unused variable

Added by Javier M. Mellid about 8 years ago. Updated about 8 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Javier M. Mellid
Category:
-
Target version:
-
% Done:

0%

Tags:
Backport:
Reviewed:
Affected Versions:
Pull request ID:

Description

I am watching this warning from some time ago. It seems the 'm' variable is dead code in MDSMonitor. Compiler shows the following warning:

...
mon/MDSMonitor.cc: In member function ‘int MDSMonitor::filesystem_command(MonOpRequestRef, const string&, std::map<std::basic_string<char>, boost::variant<std::basic_string<char>, bool, long int, double, std::vector<std::basic_string<char> > > >&, std::stringstream&)’:
mon/MDSMonitor.cc:2115:16: warning: unused variable ‘m’ [-Wunused-variable]
MMonCommand m = static_cast<MMonCommand>(op->get_req());
...

Actions

Also available in: Atom PDF