Author: zturner Date: Wed Jan 13 15:22:00 2016 New Revision: 257671 URL: http://llvm.org/viewvc/llvm-project?rev=257671&view=rev Log: Fix some compiler warnings with MSVC 2015.
Modified: lldb/trunk/source/DataFormatters/StringPrinter.cpp lldb/trunk/source/Expression/ExpressionSourceCode.cpp lldb/trunk/source/Plugins/ExpressionParser/Go/GoAST.h lldb/trunk/source/Plugins/Instruction/MIPS/EmulateInstructionMIPS.cpp lldb/trunk/source/Plugins/OperatingSystem/Go/OperatingSystemGo.cpp lldb/trunk/source/Target/Process.cpp Modified: lldb/trunk/source/DataFormatters/StringPrinter.cpp URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/DataFormatters/StringPrinter.cpp?rev=257671&r1=257670&r2=257671&view=diff ============================================================================== --- lldb/trunk/source/DataFormatters/StringPrinter.cpp (original) +++ lldb/trunk/source/DataFormatters/StringPrinter.cpp Wed Jan 13 15:22:00 2016 @@ -207,7 +207,7 @@ GetPrintableImpl<StringPrinter::StringEl else { uint8_t* data = new uint8_t[11]; - sprintf((char*)data,"\\U%08x",codepoint); + sprintf((char *)data, "\\U%08x", (unsigned)codepoint); retval = { data,10,[] (const uint8_t* c) {delete[] c;} }; break; } Modified: lldb/trunk/source/Expression/ExpressionSourceCode.cpp URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Expression/ExpressionSourceCode.cpp?rev=257671&r1=257670&r2=257671&view=diff ============================================================================== --- lldb/trunk/source/Expression/ExpressionSourceCode.cpp (original) +++ lldb/trunk/source/Expression/ExpressionSourceCode.cpp Wed Jan 13 15:22:00 2016 @@ -118,6 +118,8 @@ public: return false; else return true; + default: + return false; } } Modified: lldb/trunk/source/Plugins/ExpressionParser/Go/GoAST.h URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/ExpressionParser/Go/GoAST.h?rev=257671&r1=257670&r2=257671&view=diff ============================================================================== --- lldb/trunk/source/Plugins/ExpressionParser/Go/GoAST.h (original) +++ lldb/trunk/source/Plugins/ExpressionParser/Go/GoAST.h Wed Jan 13 15:22:00 2016 @@ -2764,6 +2764,7 @@ R GoASTExpr::Visit(V* v) const return v->VisitUnaryExpr(llvm::cast<const GoASTUnaryExpr>(this)); default: assert(false && "Invalid kind"); + return R(); } } Modified: lldb/trunk/source/Plugins/Instruction/MIPS/EmulateInstructionMIPS.cpp URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Instruction/MIPS/EmulateInstructionMIPS.cpp?rev=257671&r1=257670&r2=257671&view=diff ============================================================================== --- lldb/trunk/source/Plugins/Instruction/MIPS/EmulateInstructionMIPS.cpp (original) +++ lldb/trunk/source/Plugins/Instruction/MIPS/EmulateInstructionMIPS.cpp Wed Jan 13 15:22:00 2016 @@ -1142,7 +1142,7 @@ EmulateInstructionMIPS::Emulate_SWSP (ll // We look for sp based non-volatile register stores. if (base == dwarf_sp_mips && nonvolatile_reg_p (src)) { - RegisterInfo reg_info_src; + RegisterInfo reg_info_src = {}; Context context; RegisterValue data_src; context.type = eContextPushRegisterOnStack; Modified: lldb/trunk/source/Plugins/OperatingSystem/Go/OperatingSystemGo.cpp URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/OperatingSystem/Go/OperatingSystemGo.cpp?rev=257671&r1=257670&r2=257671&view=diff ============================================================================== --- lldb/trunk/source/Plugins/OperatingSystem/Go/OperatingSystemGo.cpp (original) +++ lldb/trunk/source/Plugins/OperatingSystem/Go/OperatingSystemGo.cpp Wed Jan 13 15:22:00 2016 @@ -506,7 +506,7 @@ OperatingSystemGo::Goroutine OperatingSystemGo::CreateGoroutineAtIndex(uint64_t idx, Error &err) { err.Clear(); - Goroutine result; + Goroutine result = {}; ValueObjectSP g = m_allg_sp->GetSyntheticArrayMember(idx, true)->Dereference(err); if (err.Fail()) { Modified: lldb/trunk/source/Target/Process.cpp URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Target/Process.cpp?rev=257671&r1=257670&r2=257671&view=diff ============================================================================== --- lldb/trunk/source/Target/Process.cpp (original) +++ lldb/trunk/source/Target/Process.cpp Wed Jan 13 15:22:00 2016 @@ -1504,6 +1504,8 @@ Process::IsAlive () case eStateCrashed: case eStateSuspended: return true; + default: + return false; } } _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits