mirror of
https://github.com/yuzu-emu/breakpad.git
synced 2024-11-28 04:24:22 +01:00
Fix several clang warnings in breakpad.
uploader.mm:549:5: warning: instance method '-uploadData:name:url:' not found (return type defaults to 'id') [self uploadData:logFileData_ name:@"log" url:url]; => it looks like this method does in fact not exist, the last parameter needs to be removed. breakpad_nlist_64.cc:193:59: warning: '&&' within '||' [-Wlogical-op-parentheses] => Just add parentheses, no functionality change. Patch by Nico Weber <thakis@chromium.org> BUG=none TEST=breakpad stil works. git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@907 4c0a9323-5329-0410-9bdc-e9ce6186880e
This commit is contained in:
parent
4ab7db99c1
commit
1197f761a4
@ -190,9 +190,9 @@ int __breakpad_fdnlist(int fd, nlist_type *list, const char **symbolNames,
|
||||
struct exec buf;
|
||||
if (read(fd, (char *)&buf, sizeof(buf)) != sizeof(buf) ||
|
||||
(N_BADMAG(buf) && *((uint32_t *)&buf) != magic &&
|
||||
NXSwapBigLongToHost(*((long *)&buf)) != FAT_MAGIC) &&
|
||||
/* The following is the big-endian ppc64 check */
|
||||
(*((uint32_t*)&buf)) != FAT_MAGIC) {
|
||||
NXSwapBigLongToHost(*((long *)&buf)) != FAT_MAGIC &&
|
||||
/* The following is the big-endian ppc64 check */
|
||||
(*((uint32_t*)&buf)) != FAT_MAGIC)) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
@ -546,7 +546,7 @@ NSDictionary *readConfigurationData(const char *configFile) {
|
||||
}
|
||||
|
||||
if (logFileData_) {
|
||||
[self uploadData:logFileData_ name:@"log" url:url];
|
||||
[self uploadData:logFileData_ name:@"log"];
|
||||
}
|
||||
|
||||
[upload release];
|
||||
|
Loading…
Reference in New Issue
Block a user