diff options
| author | Daniel Malea <daniel.malea@intel.com> | 2012-12-07 22:21:08 +0000 |
|---|---|---|
| committer | Daniel Malea <daniel.malea@intel.com> | 2012-12-07 22:21:08 +0000 |
| commit | a85e6b6c323d97c3c5b3c2b45f15ef3066aa9e79 (patch) | |
| tree | 31449c19dec1fb8ed688c82c056fc1dc880ba6ae /lldb/source/Utility/StringExtractor.cpp | |
| parent | 84b2a795705d994d2a333d49a00ff7132627cbe3 (diff) | |
Fix a few more clang (3.2) warnings on Linux:
- remove unused members
- add NO_PEDANTIC to selected Makefiles
- fix return values (removed NULL as needed)
- disable warning about four-char-constants
- remove unneeded const from operator*() declaration
- add missing lambda function return types
- fix printf() with no format string
- change sizeof to use a type name instead of variable name
- fix Linux ProcessMonitor.cpp to be 32/64 bit friendly
- disable warnings emitted by swig-generated C++ code
Patch by Matt Kopec!
llvm-svn: 169645
Diffstat (limited to 'lldb/source/Utility/StringExtractor.cpp')
| -rw-r--r-- | lldb/source/Utility/StringExtractor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Utility/StringExtractor.cpp b/lldb/source/Utility/StringExtractor.cpp index 77cb456f2f4b..bbe01d240a39 100644 --- a/lldb/source/Utility/StringExtractor.cpp +++ b/lldb/source/Utility/StringExtractor.cpp @@ -148,8 +148,8 @@ StringExtractor::GetHexU8 (uint8_t fail_value, bool set_eof_on_fail) uint32_t i = m_index; if ((i + 2) <= m_packet.size()) { - const uint8_t hi_nibble = g_hex_ascii_to_hex_integer[m_packet[i]]; - const uint8_t lo_nibble = g_hex_ascii_to_hex_integer[m_packet[i+1]]; + const uint8_t hi_nibble = g_hex_ascii_to_hex_integer[static_cast<uint8_t>(m_packet[i])]; + const uint8_t lo_nibble = g_hex_ascii_to_hex_integer[static_cast<uint8_t>(m_packet[i+1])]; if (hi_nibble < 16 && lo_nibble < 16) { m_index += 2; |
