From 79895eed07bbe1918686c6bf26869116369c3596 Mon Sep 17 00:00:00 2001 From: Murai Takashi Date: Thu, 24 Apr 2014 05:26:03 +0900 Subject: [PATCH] Fix gcc 4.9.0 build MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Duval --- src/apps/terminal/Shell.cpp | 2 +- src/kits/package/hpkg/v1/PackageDataReaderV1.cpp | 4 ++-- src/system/kernel/fs/vfs_net_boot.cpp | 2 +- src/system/kernel/system_info.cpp | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/apps/terminal/Shell.cpp b/src/apps/terminal/Shell.cpp index 9fdd2de818..dce942e35d 100644 --- a/src/apps/terminal/Shell.cpp +++ b/src/apps/terminal/Shell.cpp @@ -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) { diff --git a/src/kits/package/hpkg/v1/PackageDataReaderV1.cpp b/src/kits/package/hpkg/v1/PackageDataReaderV1.cpp index c45e0ab556..6893103a14 100644 --- a/src/kits/package/hpkg/v1/PackageDataReaderV1.cpp +++ b/src/kits/package/hpkg/v1/PackageDataReaderV1.cpp @@ -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) diff --git a/src/system/kernel/fs/vfs_net_boot.cpp b/src/system/kernel/fs/vfs_net_boot.cpp index 981c226f93..8880c890f2 100644 --- a/src/system/kernel/fs/vfs_net_boot.cpp +++ b/src/system/kernel/fs/vfs_net_boot.cpp @@ -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) { diff --git a/src/system/kernel/system_info.cpp b/src/system/kernel/system_info.cpp index 4308c44b7f..f09a7a0956 100644 --- a/src/system/kernel/system_info.cpp +++ b/src/system/kernel/system_info.cpp @@ -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;