diff options
| author | Johnny Chen <johnny.chen@apple.com> | 2011-07-19 19:48:13 +0000 |
|---|---|---|
| committer | Johnny Chen <johnny.chen@apple.com> | 2011-07-19 19:48:13 +0000 |
| commit | 4480530a0f9764a6ce69d9545a444e631e820edf (patch) | |
| tree | 4469bec712bd4f403f8318ebf9baf74958763916 /lldb/source/Host/common | |
| parent | 81ebc733b470ef111432657dda14707da9a9344d (diff) | |
| download | bcm5719-llvm-4480530a0f9764a6ce69d9545a444e631e820edf.tar.gz bcm5719-llvm-4480530a0f9764a6ce69d9545a444e631e820edf.zip | |
Patch by Matt Johnson to silence G++ warnings!
Used hand merge to apply the diffs. I did not apply the diffs for FormatManager.h and
the diffs for memberwise initialization for ValueObject.cpp because they changed since.
I will ask my colleague to apply them later.
llvm-svn: 135508
Diffstat (limited to 'lldb/source/Host/common')
| -rw-r--r-- | lldb/source/Host/common/FileSpec.cpp | 2 | ||||
| -rw-r--r-- | lldb/source/Host/common/Host.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Host/common/FileSpec.cpp b/lldb/source/Host/common/FileSpec.cpp index 1b6a69b3ef8..ba9f9201fc4 100644 --- a/lldb/source/Host/common/FileSpec.cpp +++ b/lldb/source/Host/common/FileSpec.cpp @@ -913,7 +913,7 @@ FileSpec::EnumerateDirectory { char child_path[PATH_MAX]; const int child_path_len = ::snprintf (child_path, sizeof(child_path), "%s/%s", dir_path, dp->d_name); - if (child_path_len < sizeof(child_path) - 1) + if (child_path_len < (int)(sizeof(child_path) - 1)) { // Don't resolve the file type or path FileSpec child_path_spec (child_path, false); diff --git a/lldb/source/Host/common/Host.cpp b/lldb/source/Host/common/Host.cpp index b699bc8bcd5..6908eb1949a 100644 --- a/lldb/source/Host/common/Host.cpp +++ b/lldb/source/Host/common/Host.cpp @@ -183,7 +183,7 @@ MonitorChildProcessThreadFunction (void *arg) } else { - status_cstr = "(???)"; + status_cstr = "(\?\?\?)"; } // Scope for pthread_cancel_disabler |

