mirror of
https://git.suyu.dev/suyu/breakpad.git
synced 2025-12-27 01:35:06 +01:00
Fixing various compiler warnings and applying minor tweaks to allow running of
the mojority of breakpad unittests in Google. http://breakpad.appspot.com/399002/ git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@978 4c0a9323-5329-0410-9bdc-e9ce6186880e
This commit is contained in:
parent
eb3bf49197
commit
5f6e1f0fe7
20 changed files with 292 additions and 120 deletions
|
|
@ -49,10 +49,10 @@
|
|||
#include "client/linux/minidump_writer/minidump_extension_linux.h"
|
||||
#include "common/linux/memory_mapped_file.h"
|
||||
#include "google_breakpad/common/minidump_format.h"
|
||||
#include "processor/scoped_ptr.h"
|
||||
#include "third_party/lss/linux_syscall_support.h"
|
||||
#include "tools/linux/md2core/minidump_memory_range.h"
|
||||
|
||||
|
||||
#if __WORDSIZE == 64
|
||||
#define ELF_CLASS ELFCLASS64
|
||||
#else
|
||||
|
|
@ -1100,9 +1100,9 @@ main(int argc, char** argv) {
|
|||
}
|
||||
|
||||
if (note_align) {
|
||||
char scratch[note_align];
|
||||
memset(scratch, 0, sizeof(scratch));
|
||||
if (!writea(1, scratch, sizeof(scratch)))
|
||||
google_breakpad::scoped_array<char> scratch(new char[note_align]);
|
||||
memset(scratch.get(), 0, note_align);
|
||||
if (!writea(1, scratch.get(), note_align))
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue