stackwalk: fix warnings given by gcc 4.8
authorJosh Stone <jistone@redhat.com>
Thu, 30 May 2013 22:34:38 +0000 (15:34 -0700)
committerJosh Stone <jistone@redhat.com>
Thu, 30 May 2013 22:34:38 +0000 (15:34 -0700)
commit2aa975e80e6cbc8d6392ef98b620a9b1b5a87905
treecb992201a8c00aa7a2e2e7484118e5cc07854e82
parent5320f86f979384cbac5fe80a2e72ad8ce3bd1cd7
stackwalk: fix warnings given by gcc 4.8

Compiling ../src/dbginfo-stepper.C
../src/dbginfo-stepper.C: In member function ‘Dyninst::Stackwalker::gcframe_ret_t Dyninst::Stackwalker::DebugStepperImpl::getCallerFrameArch(Dyninst::Address, const Dyninst::Stackwalker::Frame&, Dyninst::Stackwalker::Frame&, Dyninst::Dwarf::DwarfFrameParser::Ptr, bool)’:
../src/dbginfo-stepper.C:306:26: warning: variable ‘arch’ set but not used [-Wunused-but-set-variable]
    Dyninst::Architecture arch;
                          ^
Compiling ../src/sw_pcontrol.C
../src/sw_pcontrol.C: In member function ‘std::string Dyninst::Stackwalker::ProcDebug::getExecutablePath()’:
../src/sw_pcontrol.C:378:216: warning: converting ‘false’ to pointer type for argument 1 of ‘std::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]’ [-Wconversion-null]
    CHECK_PROC_LIVE;
                                                                                                                                                                                                                        ^
stackwalk/src/dbginfo-stepper.C
stackwalk/src/sw_pcontrol.C