mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 913548 part 2: Replace unused variable "ignored" with unused<< in nsExceptionHandler.cpp, and add a few other unused<< for consistency. r=ted
This commit is contained in:
parent
421eb33150
commit
2038bed17a
@ -613,29 +613,30 @@ bool MinidumpCallback(
|
||||
|
||||
if (fd != -1) {
|
||||
// not much we can do in case of error
|
||||
ssize_t ignored = sys_write(fd, crashReporterAPIData->get(),
|
||||
unused << sys_write(fd, crashReporterAPIData->get(),
|
||||
crashReporterAPIData->Length());
|
||||
ignored = sys_write(fd, kCrashTimeParameter, kCrashTimeParameterLen);
|
||||
ignored = sys_write(fd, crashTimeString, crashTimeStringLen);
|
||||
ignored = sys_write(fd, "\n", 1);
|
||||
unused << sys_write(fd, kCrashTimeParameter, kCrashTimeParameterLen);
|
||||
unused << sys_write(fd, crashTimeString, crashTimeStringLen);
|
||||
unused << sys_write(fd, "\n", 1);
|
||||
if (timeSinceLastCrash != 0) {
|
||||
ignored = sys_write(fd, kTimeSinceLastCrashParameter,
|
||||
unused << sys_write(fd, kTimeSinceLastCrashParameter,
|
||||
kTimeSinceLastCrashParameterLen);
|
||||
ignored = sys_write(fd, timeSinceLastCrashString,
|
||||
unused << sys_write(fd, timeSinceLastCrashString,
|
||||
timeSinceLastCrashStringLen);
|
||||
ignored = sys_write(fd, "\n", 1);
|
||||
unused << sys_write(fd, "\n", 1);
|
||||
}
|
||||
if (isGarbageCollecting) {
|
||||
ignored = sys_write(fd, kIsGarbageCollectingParameter, kIsGarbageCollectingParameterLen);
|
||||
ignored = sys_write(fd, isGarbageCollecting ? "1" : "0", 1);
|
||||
ignored = sys_write(fd, "\n", 1);
|
||||
unused << sys_write(fd, kIsGarbageCollectingParameter, kIsGarbageCollectingParameterLen);
|
||||
unused << sys_write(fd, isGarbageCollecting ? "1" : "0", 1);
|
||||
unused << sys_write(fd, "\n", 1);
|
||||
}
|
||||
if (oomAllocationSizeBufferLen) {
|
||||
sys_write(fd, kOOMAllocationSizeParameter,
|
||||
kOOMAllocationSizeParameterLen);
|
||||
sys_write(fd, oomAllocationSizeBuffer, oomAllocationSizeBufferLen);
|
||||
sys_write(fd, "\n", 1);
|
||||
}
|
||||
unused << sys_write(fd, kOOMAllocationSizeParameter,
|
||||
kOOMAllocationSizeParameterLen);
|
||||
unused << sys_write(fd, oomAllocationSizeBuffer,
|
||||
oomAllocationSizeBufferLen);
|
||||
unused << sys_write(fd, "\n", 1);
|
||||
}
|
||||
sys_close(fd);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user