Skip to content

Commit

Permalink
Fix warnings reported by clang
Browse files Browse the repository at this point in the history
  • Loading branch information
sfan5 committed Jul 6, 2014
1 parent 5f9962e commit 37b7f09
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 16 deletions.
13 changes: 6 additions & 7 deletions src/clientobject.h
Expand Up @@ -61,27 +61,27 @@ class ClientActiveObject : public ActiveObject
virtual scene::IMeshSceneNode *getMeshSceneNode(){return NULL;}
virtual scene::IAnimatedMeshSceneNode *getAnimatedMeshSceneNode(){return NULL;}
virtual scene::IBillboardSceneNode *getSpriteSceneNode(){return NULL;}
virtual bool isPlayer(){return false;}
virtual bool isLocalPlayer(){return false;}
virtual bool isPlayer() const {return false;}
virtual bool isLocalPlayer() const {return false;}
virtual void setAttachments(){}
virtual bool doShowSelectionBox(){return true;}
virtual void updateCameraOffset(v3s16 camera_offset){};

// Step object in time
virtual void step(float dtime, ClientEnvironment *env){}

// Process a message sent by the server side object
virtual void processMessage(const std::string &data){}

virtual std::string infoText() {return "";}
virtual std::string debugInfoText() {return "";}

/*
This takes the return value of
ServerActiveObject::getClientInitializationData
*/
virtual void initialize(const std::string &data){}

// Create a certain type of ClientActiveObject
static ClientActiveObject* create(u8 type, IGameDef *gamedef,
ClientEnvironment *env);
Expand Down Expand Up @@ -120,4 +120,3 @@ struct DistanceSortedActiveObject
};

#endif

1 change: 0 additions & 1 deletion src/content_cao.h
Expand Up @@ -197,4 +197,3 @@ class GenericCAO : public ClientActiveObject


#endif

2 changes: 1 addition & 1 deletion src/jthread/jsemaphore.h
Expand Up @@ -54,10 +54,10 @@ class JSemaphore {
HANDLE m_hSemaphore;
#elif __MACH__
semaphore_t m_semaphore;
int semcount;
#else
sem_t m_semaphore;
#endif
int semcount;
};


Expand Down
2 changes: 0 additions & 2 deletions src/main.cpp
Expand Up @@ -381,8 +381,6 @@ class MyEventReceiver : public IEventReceiver
#endif

private:
IrrlichtDevice *m_device;

// The current state of keys
KeyList keyIsDown;
// Whether a key has been pressed or not
Expand Down
6 changes: 1 addition & 5 deletions src/shader.cpp
Expand Up @@ -211,8 +211,7 @@ class ShaderCallback : public video::IShaderConstantSetCallBack
class MainShaderConstantSetter : public IShaderConstantSetter
{
public:
MainShaderConstantSetter(IrrlichtDevice *device):
m_device(device)
MainShaderConstantSetter(IrrlichtDevice *device)
{}
~MainShaderConstantSetter() {}

Expand Down Expand Up @@ -256,9 +255,6 @@ class MainShaderConstantSetter : public IShaderConstantSetter
services->setVertexShaderConstant(world.pointer(), 8, 4);

}

private:
IrrlichtDevice *m_device;
};

/*
Expand Down

0 comments on commit 37b7f09

Please sign in to comment.