diff options
author | Nelson Billing <nbilling@google.com> | 2019-06-27 12:47:45 -0700 |
---|---|---|
committer | Nelson Billing <nbilling@google.com> | 2019-06-27 20:02:30 +0000 |
commit | a5a607b0b01c7022d7ccba282491c40da204cba2 (patch) | |
tree | fa16ad8029386fce5b7dea3906fac0f5367bb229 /src/tools/windows/converter | |
parent | Fix windows symbol converter blacklisting. (diff) | |
download | breakpad-a5a607b0b01c7022d7ccba282491c40da204cba2.tar.xz |
Fix clang build warnings/errors for windows symbol converter.
Change-Id: Ib7f6e37af1466b5bed3e7d2921e0d9774394ad1e
Reviewed-on: https://chromium-review.googlesource.com/c/breakpad/breakpad/+/1680056
Reviewed-by: Mark Mentovai <mark@chromium.org>
Diffstat (limited to 'src/tools/windows/converter')
-rw-r--r-- | src/tools/windows/converter/ms_symbol_server_converter.cc | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/tools/windows/converter/ms_symbol_server_converter.cc b/src/tools/windows/converter/ms_symbol_server_converter.cc index e3215ba5..4b0dcf6e 100644 --- a/src/tools/windows/converter/ms_symbol_server_converter.cc +++ b/src/tools/windows/converter/ms_symbol_server_converter.cc @@ -154,7 +154,7 @@ class AutoSymSrv { if (!Cleanup()) { // Print the error message here, because destructors have no return // value. - fprintf(stderr, "~AutoSymSrv: SymCleanup: error %d\n", GetLastError()); + fprintf(stderr, "~AutoSymSrv: SymCleanup: error %lu\n", GetLastError()); } } @@ -238,7 +238,7 @@ MSSymbolServerConverter::LocateFile(const string &debug_or_code_file, if (!symsrv.Initialize(process, const_cast<char *>(symbol_path_.c_str()), false)) { - fprintf(stderr, "LocateFile: SymInitialize: error %d for %s %s %s\n", + fprintf(stderr, "LocateFile: SymInitialize: error %lu for %s %s %s\n", GetLastError(), debug_or_code_file.c_str(), debug_or_code_id.c_str(), @@ -249,7 +249,7 @@ MSSymbolServerConverter::LocateFile(const string &debug_or_code_file, if (!SymRegisterCallback64(process, SymCallback, reinterpret_cast<ULONG64>(this))) { fprintf(stderr, - "LocateFile: SymRegisterCallback64: error %d for %s %s %s\n", + "LocateFile: SymRegisterCallback64: error %lu for %s %s %s\n", GetLastError(), debug_or_code_file.c_str(), debug_or_code_id.c_str(), @@ -304,7 +304,7 @@ MSSymbolServerConverter::LocateFile(const string &debug_or_code_file, } fprintf(stderr, - "LocateFile: SymFindFileInPath: error %d for %s %s %s\n", + "LocateFile: SymFindFileInPath: error %lu for %s %s %s\n", error, debug_or_code_file.c_str(), debug_or_code_id.c_str(), @@ -322,7 +322,7 @@ MSSymbolServerConverter::LocateFile(const string &debug_or_code_file, // Do the cleanup here even though it will happen when symsrv goes out of // scope, to allow it to influence the return value. if (!symsrv.Cleanup()) { - fprintf(stderr, "LocateFile: SymCleanup: error %d for %s %s %s\n", + fprintf(stderr, "LocateFile: SymCleanup: error %lu for %s %s %s\n", GetLastError(), debug_or_code_file.c_str(), debug_or_code_id.c_str(), @@ -405,7 +405,8 @@ BOOL CALLBACK MSSymbolServerConverter::SymCallback(HANDLE process, }; for (int desc_action_index = 0; - desc_action_index < sizeof(desc_actions) / sizeof(desc_action); + desc_action_index < + static_cast<int>(sizeof(desc_actions) / sizeof(desc_action)); ++desc_action_index) { if (desc.find(desc_actions[desc_action_index].desc) != string::npos) { *(desc_actions[desc_action_index].action) = true; |