Fix some warnings

This commit is contained in:
SirLynix
2023-06-27 19:31:24 +02:00
parent b01ee18eaf
commit 96618cbb5b
11 changed files with 28 additions and 23 deletions

View File

@@ -20,7 +20,7 @@ namespace Nz
public:
inline StateMachine(std::shared_ptr<State> originalState);
StateMachine(const StateMachine&) = delete;
inline StateMachine(StateMachine&& fsm) = default;
StateMachine(StateMachine&&) = default;
inline ~StateMachine();
inline void ChangeState(std::shared_ptr<State> state);
@@ -35,7 +35,7 @@ namespace Nz
inline bool Update(Time elapsedTime);
inline StateMachine& operator=(StateMachine&& fsm) = default;
StateMachine& operator=(StateMachine&& fsm) = default;
StateMachine& operator=(const StateMachine&) = delete;
private:

View File

@@ -379,7 +379,6 @@ namespace Nz
for (const auto& plane : m_planes)
{
bool outside = true;
std::size_t insidePoint = 0;
for (std::size_t i = 0; i < pointCount; ++i)
{
// If at least one point is outside of the frustum, we're intersecting

View File

@@ -37,9 +37,11 @@ namespace Nz
case ImageType::E1D:
NazaraAssert(baseLayer == 0, "out of bounds");
NazaraAssert(layerCount <= 1, "out of bounds");
[[fallthrough]];
case ImageType::E2D:
NazaraAssert(baseLayer == 0, "out of bounds");
NazaraAssert(layerCount <= 1, "out of bounds");
[[fallthrough]];
case ImageType::E3D:
region.z = 0;
region.depth = 1;