mirror of
https://github.com/minetest/minetest.git
synced 2024-12-02 12:33:45 +01:00
Fix warnings reported by clang
This commit is contained in:
parent
5f9962e1cc
commit
37b7f094e3
@ -61,8 +61,8 @@ public:
|
|||||||
virtual scene::IMeshSceneNode *getMeshSceneNode(){return NULL;}
|
virtual scene::IMeshSceneNode *getMeshSceneNode(){return NULL;}
|
||||||
virtual scene::IAnimatedMeshSceneNode *getAnimatedMeshSceneNode(){return NULL;}
|
virtual scene::IAnimatedMeshSceneNode *getAnimatedMeshSceneNode(){return NULL;}
|
||||||
virtual scene::IBillboardSceneNode *getSpriteSceneNode(){return NULL;}
|
virtual scene::IBillboardSceneNode *getSpriteSceneNode(){return NULL;}
|
||||||
virtual bool isPlayer(){return false;}
|
virtual bool isPlayer() const {return false;}
|
||||||
virtual bool isLocalPlayer(){return false;}
|
virtual bool isLocalPlayer() const {return false;}
|
||||||
virtual void setAttachments(){}
|
virtual void setAttachments(){}
|
||||||
virtual bool doShowSelectionBox(){return true;}
|
virtual bool doShowSelectionBox(){return true;}
|
||||||
virtual void updateCameraOffset(v3s16 camera_offset){};
|
virtual void updateCameraOffset(v3s16 camera_offset){};
|
||||||
@ -120,4 +120,3 @@ struct DistanceSortedActiveObject
|
|||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -197,4 +197,3 @@ public:
|
|||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -54,10 +54,10 @@ private:
|
|||||||
HANDLE m_hSemaphore;
|
HANDLE m_hSemaphore;
|
||||||
#elif __MACH__
|
#elif __MACH__
|
||||||
semaphore_t m_semaphore;
|
semaphore_t m_semaphore;
|
||||||
|
int semcount;
|
||||||
#else
|
#else
|
||||||
sem_t m_semaphore;
|
sem_t m_semaphore;
|
||||||
#endif
|
#endif
|
||||||
int semcount;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@ -381,8 +381,6 @@ public:
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
private:
|
private:
|
||||||
IrrlichtDevice *m_device;
|
|
||||||
|
|
||||||
// The current state of keys
|
// The current state of keys
|
||||||
KeyList keyIsDown;
|
KeyList keyIsDown;
|
||||||
// Whether a key has been pressed or not
|
// Whether a key has been pressed or not
|
||||||
|
@ -211,8 +211,7 @@ public:
|
|||||||
class MainShaderConstantSetter : public IShaderConstantSetter
|
class MainShaderConstantSetter : public IShaderConstantSetter
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
MainShaderConstantSetter(IrrlichtDevice *device):
|
MainShaderConstantSetter(IrrlichtDevice *device)
|
||||||
m_device(device)
|
|
||||||
{}
|
{}
|
||||||
~MainShaderConstantSetter() {}
|
~MainShaderConstantSetter() {}
|
||||||
|
|
||||||
@ -256,9 +255,6 @@ public:
|
|||||||
services->setVertexShaderConstant(world.pointer(), 8, 4);
|
services->setVertexShaderConstant(world.pointer(), 8, 4);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
|
||||||
IrrlichtDevice *m_device;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user