Fixed warning: FindFloppyDevice() and UnmountIfMatchingID() are not used if
compiled without _INCLUDES_CLASS_DEVICE_MAP. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14894 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
6d01b66d30
commit
fdcd381f42
@ -671,16 +671,16 @@ AutoMounter::WatchVolumes()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#if _INCLUDES_CLASS_DEVICE_MAP
|
||||||
static Device *
|
static Device *
|
||||||
FindFloppyDevice(Device *_DEVICE_MAP_ONLY(device), void *)
|
FindFloppyDevice(Device *_DEVICE_MAP_ONLY(device), void *)
|
||||||
{
|
{
|
||||||
#if _INCLUDES_CLASS_DEVICE_MAP
|
|
||||||
if (device->IsFloppy())
|
if (device->IsFloppy())
|
||||||
return device;
|
return device;
|
||||||
#endif
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
@ -957,11 +957,12 @@ struct UnmountDeviceParams {
|
|||||||
status_t result;
|
status_t result;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
#if _INCLUDES_CLASS_DEVICE_MAP
|
||||||
static Partition *
|
static Partition *
|
||||||
UnmountIfMatchingID(Partition *_DEVICE_MAP_ONLY(partition),
|
UnmountIfMatchingID(Partition *_DEVICE_MAP_ONLY(partition),
|
||||||
void *_DEVICE_MAP_ONLY(castToParams))
|
void *_DEVICE_MAP_ONLY(castToParams))
|
||||||
{
|
{
|
||||||
#if _INCLUDES_CLASS_DEVICE_MAP
|
|
||||||
UnmountDeviceParams *params = (UnmountDeviceParams *)castToParams;
|
UnmountDeviceParams *params = (UnmountDeviceParams *)castToParams;
|
||||||
|
|
||||||
if (partition->VolumeDeviceID() == params->device) {
|
if (partition->VolumeDeviceID() == params->device) {
|
||||||
@ -1008,9 +1009,9 @@ UnmountIfMatchingID(Partition *_DEVICE_MAP_ONLY(partition),
|
|||||||
return partition;
|
return partition;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Loading…
x
Reference in New Issue
Block a user