From 35172f5028e3421d3935285328616f85ad19dae6 Mon Sep 17 00:00:00 2001 From: SirLynix Date: Thu, 2 Feb 2023 13:28:36 +0100 Subject: [PATCH] Fix some warnings --- include/Nazara/Core/VirtualDirectory.inl | 2 +- src/Nazara/Core/ApplicationComponent.cpp | 2 +- src/Nazara/Utility/AlgorithmUtility.cpp | 2 +- src/Nazara/Utility/Components/SharedSkeletonComponent.cpp | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/Nazara/Core/VirtualDirectory.inl b/include/Nazara/Core/VirtualDirectory.inl index db9d4492c..4af786d5b 100644 --- a/include/Nazara/Core/VirtualDirectory.inl +++ b/include/Nazara/Core/VirtualDirectory.inl @@ -160,7 +160,7 @@ namespace Nz return false; }); - }, + }, [&](std::string_view name) { if (physicalPathBase) diff --git a/src/Nazara/Core/ApplicationComponent.cpp b/src/Nazara/Core/ApplicationComponent.cpp index ded32280f..22861b286 100644 --- a/src/Nazara/Core/ApplicationComponent.cpp +++ b/src/Nazara/Core/ApplicationComponent.cpp @@ -9,7 +9,7 @@ namespace Nz { ApplicationComponent::~ApplicationComponent() = default; - void ApplicationComponent::Update(Time elapsedTime) + void ApplicationComponent::Update(Time /*elapsedTime*/) { } } diff --git a/src/Nazara/Utility/AlgorithmUtility.cpp b/src/Nazara/Utility/AlgorithmUtility.cpp index 1ddcf23c9..b1cfa2769 100644 --- a/src/Nazara/Utility/AlgorithmUtility.cpp +++ b/src/Nazara/Utility/AlgorithmUtility.cpp @@ -418,7 +418,7 @@ namespace Nz m_vertices[index].totalValence++; m_vertices[index].remainingValence++; - m_vertices[index].triIndices.push_back(i / 3); + m_vertices[index].triIndices.push_back(SafeCast(i / 3)); } m_bestTri = FullScoreRecalculation(); diff --git a/src/Nazara/Utility/Components/SharedSkeletonComponent.cpp b/src/Nazara/Utility/Components/SharedSkeletonComponent.cpp index 124d2248b..7b1965534 100644 --- a/src/Nazara/Utility/Components/SharedSkeletonComponent.cpp +++ b/src/Nazara/Utility/Components/SharedSkeletonComponent.cpp @@ -58,7 +58,7 @@ namespace Nz return m_attachedSkeleton; } - void SharedSkeletonComponent::OnReferenceJointsInvalidated(const Skeleton* skeleton) + void SharedSkeletonComponent::OnReferenceJointsInvalidated(const Skeleton* /*skeleton*/) { m_skeletonJointInvalidated = true; }