Silence some warnings
This commit is contained in:
@@ -26,6 +26,7 @@ namespace OpenVulkano::AR::ArKit
|
|||||||
case ARTrackingStateReasonInitializing: return ArTrackingState::INITIALIZING;
|
case ARTrackingStateReasonInitializing: return ArTrackingState::INITIALIZING;
|
||||||
case ARTrackingStateReasonInsufficientFeatures: return ArTrackingState::INSUFFICIENT_FEATURES;
|
case ARTrackingStateReasonInsufficientFeatures: return ArTrackingState::INSUFFICIENT_FEATURES;
|
||||||
case ARTrackingStateReasonRelocalizing: return ArTrackingState::RELOCALIZING;
|
case ARTrackingStateReasonRelocalizing: return ArTrackingState::RELOCALIZING;
|
||||||
|
case ARTrackingStateReasonNone: return ArTrackingState::UNKNOWN;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|||||||
@@ -113,6 +113,7 @@ namespace OpenVulkano
|
|||||||
case UIUserInterfaceIdiomTV: return DeviceType::TV;
|
case UIUserInterfaceIdiomTV: return DeviceType::TV;
|
||||||
case UIUserInterfaceIdiomMac: return DeviceType::PC;
|
case UIUserInterfaceIdiomMac: return DeviceType::PC;
|
||||||
case UIUserInterfaceIdiomVision: return DeviceType::VR;
|
case UIUserInterfaceIdiomVision: return DeviceType::VR;
|
||||||
|
default: break;
|
||||||
}
|
}
|
||||||
return DeviceType::Unknown;
|
return DeviceType::Unknown;
|
||||||
}
|
}
|
||||||
@@ -176,6 +177,7 @@ namespace OpenVulkano
|
|||||||
case UIDeviceBatteryStateUnplugged: return BatteryState::Unplugged;
|
case UIDeviceBatteryStateUnplugged: return BatteryState::Unplugged;
|
||||||
case UIDeviceBatteryStateCharging: return BatteryState::Charging;
|
case UIDeviceBatteryStateCharging: return BatteryState::Charging;
|
||||||
case UIDeviceBatteryStateFull: return BatteryState::ChargingFull;
|
case UIDeviceBatteryStateFull: return BatteryState::ChargingFull;
|
||||||
|
default: break;
|
||||||
}
|
}
|
||||||
return BatteryState::Unavailable;
|
return BatteryState::Unavailable;
|
||||||
}
|
}
|
||||||
@@ -200,6 +202,7 @@ namespace OpenVulkano
|
|||||||
case UIDeviceOrientationLandscapeRight: return DeviceOrientation::LandscapeRight;
|
case UIDeviceOrientationLandscapeRight: return DeviceOrientation::LandscapeRight;
|
||||||
case UIDeviceOrientationFaceUp: return DeviceOrientation::FaceUp;
|
case UIDeviceOrientationFaceUp: return DeviceOrientation::FaceUp;
|
||||||
case UIDeviceOrientationFaceDown: return DeviceOrientation::FaceDown;
|
case UIDeviceOrientationFaceDown: return DeviceOrientation::FaceDown;
|
||||||
|
default: break;
|
||||||
}
|
}
|
||||||
return DeviceOrientation::Unknown;
|
return DeviceOrientation::Unknown;
|
||||||
}
|
}
|
||||||
@@ -231,6 +234,7 @@ namespace OpenVulkano
|
|||||||
case UIInterfaceOrientationPortraitUpsideDown: return InterfaceOrientation::PortraitUpsideDown;
|
case UIInterfaceOrientationPortraitUpsideDown: return InterfaceOrientation::PortraitUpsideDown;
|
||||||
case UIInterfaceOrientationLandscapeLeft: return InterfaceOrientation::LandscapeLeft;
|
case UIInterfaceOrientationLandscapeLeft: return InterfaceOrientation::LandscapeLeft;
|
||||||
case UIInterfaceOrientationLandscapeRight: return InterfaceOrientation::LandscapeRight;
|
case UIInterfaceOrientationLandscapeRight: return InterfaceOrientation::LandscapeRight;
|
||||||
|
default: break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@@ -241,6 +245,7 @@ namespace OpenVulkano
|
|||||||
case DeviceOrientation::PortraitUpsideDown: return InterfaceOrientation::PortraitUpsideDown;
|
case DeviceOrientation::PortraitUpsideDown: return InterfaceOrientation::PortraitUpsideDown;
|
||||||
case DeviceOrientation::LandscapeLeft: return InterfaceOrientation::LandscapeRight;
|
case DeviceOrientation::LandscapeLeft: return InterfaceOrientation::LandscapeRight;
|
||||||
case DeviceOrientation::LandscapeRight: return InterfaceOrientation::LandscapeLeft;
|
case DeviceOrientation::LandscapeRight: return InterfaceOrientation::LandscapeLeft;
|
||||||
|
default: break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return InterfaceOrientation::Landscape;
|
return InterfaceOrientation::Landscape;
|
||||||
|
|||||||
@@ -213,7 +213,7 @@ namespace OpenVulkano
|
|||||||
ChkErr(archive_write_disk_set_options(a.get(), ARCHIVE_EXTRACT_TIME | ARCHIVE_EXTRACT_PERM | ARCHIVE_EXTRACT_ACL | ARCHIVE_EXTRACT_FFLAGS));
|
ChkErr(archive_write_disk_set_options(a.get(), ARCHIVE_EXTRACT_TIME | ARCHIVE_EXTRACT_PERM | ARCHIVE_EXTRACT_ACL | ARCHIVE_EXTRACT_FFLAGS));
|
||||||
|
|
||||||
ChkErr(archive_write_header(a.get(), entry.get()));
|
ChkErr(archive_write_header(a.get(), entry.get()));
|
||||||
int result = LibArchiveHelper::CopyArchiveData<true>(m_archive, a.get());
|
long result = LibArchiveHelper::CopyArchiveData<true>(m_archive, a.get());
|
||||||
ChkErr(result);
|
ChkErr(result);
|
||||||
LibArchiveHelper::CheckError(result, a.get(), m_logger);
|
LibArchiveHelper::CheckError(result, a.get(), m_logger);
|
||||||
|
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ namespace OpenVulkano::Input
|
|||||||
|
|
||||||
int GestureTap::GetTouchCount() const
|
int GestureTap::GetTouchCount() const
|
||||||
{
|
{
|
||||||
return std::count_if(m_touchMap.begin(), m_touchMap.end(), [](const auto& t) { return t.second; });
|
return std::count_if(m_touchMap.begin(), m_touchMap.end(), [](const std::pair<TouchId, bool>& t) { return t.second; });
|
||||||
}
|
}
|
||||||
|
|
||||||
void GestureTap::Cancel()
|
void GestureTap::Cancel()
|
||||||
|
|||||||
@@ -15,9 +15,7 @@ namespace OpenVulkano::Scene
|
|||||||
|
|
||||||
const SequenceAnimationController::PoseDurationPair& SequenceAnimationController::GetStep(int index) const
|
const SequenceAnimationController::PoseDurationPair& SequenceAnimationController::GetStep(int index) const
|
||||||
{
|
{
|
||||||
if(index >= 0 && index < m_steps.size())
|
return m_steps[std::max(0, std::min(index, static_cast<int>(m_steps.size() - 1)))];
|
||||||
return m_steps[index];
|
|
||||||
return PoseDurationPair();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void SequenceAnimationController::SequenceCompletedCallback(SimpleAnimationController *ignored)
|
void SequenceAnimationController::SequenceCompletedCallback(SimpleAnimationController *ignored)
|
||||||
|
|||||||
Reference in New Issue
Block a user