<html>
<head>
<base href="http://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - Clean up unused variable warnings in MI code"
href="http://llvm.org/bugs/show_bug.cgi?id=19818">19818</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Clean up unused variable warnings in MI code
</td>
</tr>
<tr>
<th>Product</th>
<td>lldb
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>All Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>lldb-dev@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Reporter</th>
<td>tfiala@google.com
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>I'm seeing quite a few unused variable warnings on the Linux gcc-based build in
the MI code:
tools/lldb-mi/MICmdFactory.cpp: In member function ‘bool
CMICmdFactory::CmdCreate(const CMIUtilString&, const SMICmdData&,
CMICmdBase*&)’:
tools/lldb-mi/MICmdFactory.cpp:218:24: warning: unused variable ‘rMiCmd’
[-Wunused-variable]
const CMIUtilString & rMiCmd( (*it).first );
tools/lldb-mi/MICmdInvoker.cpp: In member function ‘void
CMICmdInvoker::CmdDeleteAll()’:
tools/lldb-mi/MICmdInvoker.cpp:109:16: warning: unused variable ‘cmdId’
[-Wunused-variable]
const MIuint cmdId( (*it).first );
^
tools/lldb-mi/MICmdInvoker.cpp:111:25: warning: unused variable ‘rCmdName’
[-Wunused-variable]
const CMIUtilString & rCmdName( pCmd->GetCmdData().strMiCmd );
[73/90] Building CXX object
tools/lldb/tools/lldb-mi/CMakeFiles/lldb-mi.dir/MIDriver.cpp.o
tools/lldb-mi/MIDriverMgr.cpp: In member function ‘CMIDriverMgr::IDriver*
CMIDriverMgr::GetFirstMIDriver() const’:
tools/lldb-mi/MIDriverMgr.cpp:625:25: warning: unused variable ‘dvrId’
[-Wunused-variable]
const CMIUtilString & dvrId = (*it).first;
^
tools/lldb-mi/MIDriverMgr.cpp: In member function ‘CMIDriverMgr::IDriver*
CMIDriverMgr::GetFirstNonMIDriver() const’:
tools/lldb-mi/MIDriverMgr.cpp:654:25: warning: unused variable ‘dvrId’
[-Wunused-variable]
const CMIUtilString & dvrId = (*it).first;
[74/90] Building CXX object
tools/lldb/tools/lldb-mi/CMakeFiles/lldb-mi.dir/MIDriverMain.cpp.o
[75/90] Building CXX object
tools/lldb/tools/lldb-mi/CMakeFiles/lldb-mi.dir/MIUtilFileStd.cpp.o
tools/lldb-mi/MICmdCmdData.cpp: In member function ‘virtual bool
CMICmdCmdDataEvaluateExpression::Execute()’:
tools/lldb-mi/MICmdCmdData.cpp:134:25: warning: unused variable ‘eValueType’
[-Wunused-variable]
const lldb::ValueType eValueType = value.GetValueType();
^
At global scope:
[76/90] Building CXX object
tools/lldb/tools/lldb-mi/CMakeFiles/lldb-mi.dir/MIUtilString.cpp.o
[77/90] Building CXX object
tools/lldb/tools/lldb-mi/CMakeFiles/lldb-mi.dir/MIUtilSetID.cpp.o
tools/lldb-mi/MICmdCmdTarget.cpp: In member function ‘virtual bool
CMICmdCmdTargetSelect::Execute()’:
tools/lldb-mi/MICmdCmdTarget.cpp:143:14: warning: unused variable ‘bOk’
[-Wunused-variable]
const bool bOk = error.GetDescription( errMsg );
[enabled by default]
tools/lldb-mi/MICmdCmdBreak.cpp: In member function ‘virtual bool
CMICmdCmdBreakInsert::Execute()’:
tools/lldb-mi/MICmdCmdBreak.cpp:151:16: warning: unused variable ‘nSplits’
[-Wunused-variable]
const MIuint nSplits = m_brkName.Split( cColon, vecFileAndLocation );
^
tools/lldb-mi/MICmdCmdBreak.cpp:142:7: warning: unused variable ‘bIsFileLine’
[-Wunused-variable]
bool bIsFileLine = false;
^
tools/lldb-mi/MICmdCmdBreak.cpp:143:7: warning: unused variable ‘bIsFileFn’
[-Wunused-variable]
bool bIsFileFn = false;
^
tools/lldb-mi/MICmdCmdBreak.cpp: In member function ‘virtual bool
CMICmdCmdBreakInsert::Acknowledge()’:
tools/lldb-mi/MICmdCmdBreak.cpp:252:15: warning: unused variable ‘pModule’
[-Wunused-variable]
const char * pModule = rModule.IsValid() ?
rModule.GetFileSpec().GetFilename() : pUnkwn;
... (quite a few more)</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>