Fix gcc 4.9.0 build

Signed-off-by: Jérôme Duval <[email protected]>
This commit is contained in:
Murai Takashi
2014-04-29 22:01:34 +02:00
committed by Jérôme Duval
parent 1d09e9cee3
commit 79895eed07
4 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -276,7 +276,7 @@ Shell::GetActiveProcessInfo(ActiveProcessInfo& _info) const
// fetch the name and the current directory from the info
const char* name;
int32 cwdDevice;
int64 cwdDirectory;
int64 cwdDirectory = 0;
if (info.FindString("name", &name) != B_OK
|| info.FindInt32("cwd device", &cwdDevice) != B_OK
|| info.FindInt64("cwd directory", &cwdDirectory) != B_OK) {
@@ -266,8 +266,8 @@ private:
return B_OK;
// get the chunk offset and size
uint64 offset;
uint32 compressedSize;
uint64 offset = 0;
uint32 compressedSize = 0;
status_t error = _GetCompressedChunkOffsetAndSize(chunkIndex, offset,
compressedSize);
if (error != B_OK)
+1 -1
View File
@@ -319,7 +319,7 @@ NetBootMethod::Init()
status_t status;
uint64 clientMAC;
uint32 clientIP;
uint32 clientIP = 0;
uint32 netMask;
if (fBootVolume.FindInt64("client MAC", (int64*)&clientMAC) != B_OK
|| fBootVolume.FindInt32("client IP", (int32*)&clientIP) != B_OK) {
+1 -1
View File
@@ -240,7 +240,7 @@ private:
MutexLocker locker(fLock);
int32 eventCode;
int32 teamID;
int32 teamID = 0;
if (event->FindInt32("event", &eventCode) != B_OK
|| event->FindInt32("team", &teamID) != B_OK) {
return;