Fixed a ton of gcc compile warnings

Removed some unused variables, added some consts, changed some casts
to const_cast. I don't think any of these changes are very
controversial.

Differential Revision: http://reviews.llvm.org/D9674

llvm-svn: 237218
diff --git a/lldb/source/Symbol/DWARFCallFrameInfo.cpp b/lldb/source/Symbol/DWARFCallFrameInfo.cpp
index ea108f6..49e8dc5 100644
--- a/lldb/source/Symbol/DWARFCallFrameInfo.cpp
+++ b/lldb/source/Symbol/DWARFCallFrameInfo.cpp
@@ -804,7 +804,7 @@
                         // the DWARF expression.
                         reg_num = (uint32_t)m_cfi_data.GetULEB128(&offset);
                         uint32_t block_len = (uint32_t)m_cfi_data.GetULEB128(&offset);
-                        const uint8_t *block_data = (uint8_t *)m_cfi_data.GetData(&offset, block_len);
+                        const uint8_t *block_data = (const uint8_t *)m_cfi_data.GetData(&offset, block_len);
 
                         reg_location.SetAtDWARFExpression(block_data, block_len);
                         row->SetRegisterInfo (reg_num, reg_location);
@@ -858,7 +858,7 @@
                         // evaluation stack prior to execution of the DWARF expression.
                         reg_num = (uint32_t)m_cfi_data.GetULEB128(&offset);
                         uint32_t block_len = (uint32_t)m_cfi_data.GetULEB128(&offset);
-                        const uint8_t* block_data = (uint8_t*)m_cfi_data.GetData(&offset, block_len);
+                        const uint8_t* block_data = (const uint8_t*)m_cfi_data.GetData(&offset, block_len);
 //#if defined(__i386__) || defined(__x86_64__)
 //                      // The EH frame info for EIP and RIP contains code that looks for traps to
 //                      // be a specific type and increments the PC.