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:
Axel Dörfler 2005-11-13 13:53:59 +00:00
parent 6d01b66d30
commit fdcd381f42

@ -671,16 +671,16 @@ AutoMounter::WatchVolumes()
}
#if _INCLUDES_CLASS_DEVICE_MAP
static Device *
FindFloppyDevice(Device *_DEVICE_MAP_ONLY(device), void *)
{
#if _INCLUDES_CLASS_DEVICE_MAP
if (device->IsFloppy())
return device;
#endif
return 0;
}
#endif
void
@ -957,11 +957,12 @@ struct UnmountDeviceParams {
status_t result;
};
#if _INCLUDES_CLASS_DEVICE_MAP
static Partition *
UnmountIfMatchingID(Partition *_DEVICE_MAP_ONLY(partition),
void *_DEVICE_MAP_ONLY(castToParams))
{
#if _INCLUDES_CLASS_DEVICE_MAP
UnmountDeviceParams *params = (UnmountDeviceParams *)castToParams;
if (partition->VolumeDeviceID() == params->device) {
@ -1008,9 +1009,9 @@ UnmountIfMatchingID(Partition *_DEVICE_MAP_ONLY(partition),
return partition;
}
#endif
return NULL;
}
#endif
void