Let breakpad build with -Wall on OS X and Linux.
A=thakis@chromium.org Original Review: https://codereview.chromium.org/1550933002/ R=thakis@chromium.org Review URL: https://codereview.chromium.org/1554613002 .
This commit is contained in:
parent
1be3027941
commit
257123ca70
@ -364,7 +364,7 @@ static uint64_t LookupSymbol(const char* symbol_name,
|
||||
return list.n_value;
|
||||
}
|
||||
|
||||
#if TARGET_OS_IPHONE
|
||||
#if TARGET_OS_IPHONE || MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_6
|
||||
static bool HasTaskDyldInfo() {
|
||||
return true;
|
||||
}
|
||||
@ -381,13 +381,9 @@ static SInt32 GetOSVersion() {
|
||||
}
|
||||
|
||||
static bool HasTaskDyldInfo() {
|
||||
#if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_6
|
||||
return true;
|
||||
#else
|
||||
return GetOSVersion() >= 0x1060;
|
||||
#endif
|
||||
}
|
||||
#endif // TARGET_OS_IPHONE
|
||||
#endif // TARGET_OS_IPHONE || MAC_OS_X_VERSION_MIN_REQUIRED >= 10_6
|
||||
|
||||
uint64_t DynamicImages::GetDyldAllImageInfosPointer() {
|
||||
if (HasTaskDyldInfo()) {
|
||||
|
@ -517,8 +517,10 @@ void CompilationUnit::ProcessDIEs() {
|
||||
|
||||
LineInfo::LineInfo(const char* buffer, uint64 buffer_length,
|
||||
ByteReader* reader, LineInfoHandler* handler):
|
||||
handler_(handler), reader_(reader), buffer_(buffer),
|
||||
buffer_length_(buffer_length) {
|
||||
handler_(handler), reader_(reader), buffer_(buffer) {
|
||||
#ifndef NDEBUG
|
||||
buffer_length_ = buffer_length;
|
||||
#endif
|
||||
header_.std_opcode_lengths = NULL;
|
||||
}
|
||||
|
||||
|
@ -140,7 +140,9 @@ class LineInfo {
|
||||
// the line info to read is. after_header is the place right after
|
||||
// the end of the line information header.
|
||||
const char* buffer_;
|
||||
#ifndef NDEBUG
|
||||
uint64 buffer_length_;
|
||||
#endif
|
||||
const char* after_header_;
|
||||
};
|
||||
|
||||
|
@ -889,7 +889,6 @@ bool ReadSymbolDataElfClass(const typename ElfClass::Ehdr* elf_header,
|
||||
const DumpOptions& options,
|
||||
Module** out_module) {
|
||||
typedef typename ElfClass::Ehdr Ehdr;
|
||||
typedef typename ElfClass::Shdr Shdr;
|
||||
|
||||
*out_module = NULL;
|
||||
|
||||
|
@ -43,7 +43,7 @@ namespace google_breakpad {
|
||||
class LibcurlWrapper {
|
||||
public:
|
||||
LibcurlWrapper();
|
||||
~LibcurlWrapper();
|
||||
virtual ~LibcurlWrapper();
|
||||
virtual bool Init();
|
||||
virtual bool SetProxy(const string& proxy_host,
|
||||
const string& proxy_userpwd);
|
||||
|
@ -213,8 +213,10 @@ void ELF::Finish() {
|
||||
SymbolTable::SymbolTable(Endianness endianness,
|
||||
size_t addr_size,
|
||||
StringTable& table) : Section(endianness),
|
||||
addr_size_(addr_size),
|
||||
table_(table) {
|
||||
#ifndef NDEBUG
|
||||
addr_size_ = addr_size;
|
||||
#endif
|
||||
assert(addr_size_ == 4 || addr_size_ == 8);
|
||||
}
|
||||
|
||||
|
@ -173,7 +173,9 @@ class SymbolTable : public Section {
|
||||
uint64_t size, unsigned info, uint16_t shndx);
|
||||
|
||||
private:
|
||||
#ifndef NDEBUG
|
||||
size_t addr_size_;
|
||||
#endif
|
||||
StringTable& table_;
|
||||
};
|
||||
|
||||
|
@ -165,19 +165,10 @@ static void Swap(uint128_struct* value) {
|
||||
}
|
||||
|
||||
// Swapping signed integers
|
||||
static inline void Swap(int16_t* value) {
|
||||
Swap(reinterpret_cast<uint16_t*>(value));
|
||||
}
|
||||
|
||||
static inline void Swap(int32_t* value) {
|
||||
Swap(reinterpret_cast<uint32_t*>(value));
|
||||
}
|
||||
|
||||
static inline void Swap(int64_t* value) {
|
||||
Swap(reinterpret_cast<uint64_t*>(value));
|
||||
}
|
||||
|
||||
|
||||
static inline void Swap(MDLocationDescriptor* location_descriptor) {
|
||||
Swap(&location_descriptor->data_size);
|
||||
Swap(&location_descriptor->rva);
|
||||
|
@ -81,15 +81,6 @@ static NSArray *ModuleDataForSymbolFile(NSString *file) {
|
||||
return parts;
|
||||
}
|
||||
|
||||
//=============================================================================
|
||||
static NSString *CompactIdentifier(NSString *uuid) {
|
||||
NSMutableString *str = [NSMutableString stringWithString:uuid];
|
||||
[str replaceOccurrencesOfString:@"-" withString:@"" options:0
|
||||
range:NSMakeRange(0, [str length])];
|
||||
|
||||
return str;
|
||||
}
|
||||
|
||||
//=============================================================================
|
||||
static void Start(Options *options) {
|
||||
NSURL *url = [NSURL URLWithString:options->uploadURLStr];
|
||||
|
Loading…
Reference in New Issue
Block a user