Fix some warnings
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user