From 324a1036194f95385b26c941bc82cc6dadf50ac7 Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Fri, 4 Apr 2014 04:06:10 +0000 Subject: 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 --- lldb/source/Host/common/Host.cpp | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) (limited to 'lldb/source/Host/common/Host.cpp') diff --git a/lldb/source/Host/common/Host.cpp b/lldb/source/Host/common/Host.cpp index e9ea781e736..c5fa2378212 100644 --- a/lldb/source/Host/common/Host.cpp +++ b/lldb/source/Host/common/Host.cpp @@ -1891,12 +1891,10 @@ Host::LaunchProcessPosixSpawn (const char *exe_path, ProcessLaunchInfo &launch_i if (error.Fail() || log) { error.PutToLog(log, "::posix_spawnp ( pid => %i, path = '%s', file_actions = %p, attr = %p, argv = %p, envp = %p )", - pid, - exe_path, - &file_actions, - &attr, - argv, - envp); + pid, exe_path, static_cast(&file_actions), + static_cast(&attr), + reinterpret_cast(argv), + reinterpret_cast(envp)); if (log) { for (int ii=0; argv[ii]; ++ii) @@ -1918,11 +1916,9 @@ Host::LaunchProcessPosixSpawn (const char *exe_path, ProcessLaunchInfo &launch_i if (error.Fail() || log) { error.PutToLog(log, "::posix_spawnp ( pid => %i, path = '%s', file_actions = NULL, attr = %p, argv = %p, envp = %p )", - pid, - exe_path, - &attr, - argv, - envp); + pid, exe_path, static_cast(&attr), + reinterpret_cast(argv), + reinterpret_cast(envp)); if (log) { for (int ii=0; argv[ii]; ++ii) -- cgit v1.2.3