diff options
| author | Saleem Abdulrasool <compnerd@compnerd.org> | 2014-04-04 04:06:10 +0000 |
|---|---|---|
| committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2014-04-04 04:06:10 +0000 |
| commit | 324a1036194f95385b26c941bc82cc6dadf50ac7 (patch) | |
| tree | 06bb7d9660aafa1ff4e69cfa813b5c122038e09f /lldb/source/Core/Event.cpp | |
| parent | f3aefca7c1bcdd3a6445b7ae04a9f69af567a7e7 (diff) | |
| download | bcm5719-llvm-324a1036194f95385b26c941bc82cc6dadf50ac7.tar.gz bcm5719-llvm-324a1036194f95385b26c941bc82cc6dadf50ac7.zip | |
sweep up -Wformat warnings from gcc
This is a purely mechanical change explicitly casting any parameters for printf
style conversion. This cleans up the warnings emitted by gcc 4.8 on Linux.
llvm-svn: 205607
Diffstat (limited to 'lldb/source/Core/Event.cpp')
| -rw-r--r-- | lldb/source/Core/Event.cpp | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/lldb/source/Core/Event.cpp b/lldb/source/Core/Event.cpp index 2d4899dd6dc..bf5ff222a12 100644 --- a/lldb/source/Core/Event.cpp +++ b/lldb/source/Core/Event.cpp @@ -57,20 +57,19 @@ Event::Dump (Stream *s) const StreamString event_name; if (m_broadcaster->GetEventNames (event_name, m_type, false)) s->Printf("%p Event: broadcaster = %p (%s), type = 0x%8.8x (%s), data = ", - this, - m_broadcaster, + static_cast<const void*>(this), + static_cast<void*>(m_broadcaster), m_broadcaster->GetBroadcasterName().GetCString(), - m_type, - event_name.GetString().c_str()); + m_type, event_name.GetString().c_str()); else s->Printf("%p Event: broadcaster = %p (%s), type = 0x%8.8x, data = ", - this, - m_broadcaster, - m_broadcaster->GetBroadcasterName().GetCString(), - m_type); + static_cast<const void*>(this), + static_cast<void*>(m_broadcaster), + m_broadcaster->GetBroadcasterName().GetCString(), m_type); } else - s->Printf("%p Event: broadcaster = NULL, type = 0x%8.8x, data = ", this, m_type); + s->Printf("%p Event: broadcaster = NULL, type = 0x%8.8x, data = ", + static_cast<const void*>(this), m_type); if (m_data_ap.get() == NULL) s->Printf ("<NULL>"); |

