Fixes the build with gcc 3.2.2 (still has many warnings, though)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7950 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -336,7 +336,7 @@ KDiskDevice::ShadowOwner() const
|
|||||||
void
|
void
|
||||||
KDiskDevice::WriteUserData(UserDataWriter &writer, bool shadow)
|
KDiskDevice::WriteUserData(UserDataWriter &writer, bool shadow)
|
||||||
{
|
{
|
||||||
KPartition *partition = (shadow ? ShadowPartition() : this);
|
KPartition *partition = shadow ? ShadowPartition() : static_cast<KPartition *>(this);
|
||||||
if (!partition)
|
if (!partition)
|
||||||
partition = this;
|
partition = this;
|
||||||
user_disk_device_data *data
|
user_disk_device_data *data
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ UserDataWriter::Unset()
|
|||||||
|
|
||||||
// AllocateData
|
// AllocateData
|
||||||
void *
|
void *
|
||||||
UserDataWriter::AllocateData(size_t size, size_t align = 1)
|
UserDataWriter::AllocateData(size_t size, size_t align)
|
||||||
{
|
{
|
||||||
// handles size == 0 gracefully
|
// handles size == 0 gracefully
|
||||||
// get a properly aligned offset
|
// get a properly aligned offset
|
||||||
|
|||||||
Reference in New Issue
Block a user