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
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 #2

Updated by Javier M. Mellid about 8 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!

Actions #3

Updated by Greg Farnum about 8 years ago

  • Status changed from New to Fix Under Review

Thanks!

Actions #4

Updated by Sage Weil about 8 years ago

  • Status changed from Fix Under Review to Resolved
Actions

Also available in: Atom PDF