Project

General

Profile

Cleanup #15292

compiler warning on unused variable

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

Status:
Resolved
Priority:
Normal
Category:
-
Target version:
-
Start date:
03/28/2016
Due date:
% 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());
...

History

#2 Updated by Javier M. Mellid about 3 years ago

I have not enough privileges to handle tags in this part of the tracker. Anyone changing the status of 'New' to 'Need Review' in this ticket? Thanks in advance!

#3 Updated by Greg Farnum about 3 years ago

  • Status changed from New to Need Review

Thanks!

#4 Updated by Sage Weil about 3 years ago

  • Status changed from Need Review to Resolved

Also available in: Atom PDF