[Lldb-commits] [lldb] r257692 - Fix -Wformat-pedantic warning
Hans Wennborg via lldb-commits
lldb-commits at lists.llvm.org
Wed Jan 13 14:40:27 PST 2016
Author: hans
Date: Wed Jan 13 16:40:26 2016
New Revision: 257692
URL: http://llvm.org/viewvc/llvm-project?rev=257692&view=rev
Log:
Fix -Wformat-pedantic warning
/work/llvm-3.8/llvm.src/tools/lldb/source/API/SBProcess.cpp:1003:73:
error: format specifies type 'void *' but the argument has type 'lldb_private::Event *' [-Werror,-Wformat-pedantic]
log->Printf ("SBProcess::%s (event.sp=%p) => %d", __FUNCTION__, event.get(), ret_val);
~~ ^~~~~~~~~~~
1 error generated.
Modified:
lldb/trunk/source/API/SBProcess.cpp
Modified: lldb/trunk/source/API/SBProcess.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/API/SBProcess.cpp?rev=257692&r1=257691&r2=257692&view=diff
==============================================================================
--- lldb/trunk/source/API/SBProcess.cpp (original)
+++ lldb/trunk/source/API/SBProcess.cpp Wed Jan 13 16:40:26 2016
@@ -1000,7 +1000,8 @@ SBProcess::GetRestartedFromEvent (const
bool ret_val = Process::ProcessEventData::GetRestartedFromEvent (event.get());
if (log)
- log->Printf ("SBProcess::%s (event.sp=%p) => %d", __FUNCTION__, event.get(), ret_val);
+ log->Printf ("SBProcess::%s (event.sp=%p) => %d", __FUNCTION__,
+ static_cast<void*>(event.get()), ret_val);
return ret_val;
}
More information about the lldb-commits
mailing list