Skip to content

Commit

Permalink
silence clang-17 warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
atupone committed Jul 27, 2024
1 parent 5b0e9cf commit ab526a0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion include/BoltSceneNode.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class BoltSceneNode : public SceneNode
}

void move(const GLfloat pos[3], const GLfloat forward[3]);
void addLight(SceneRenderer&);
void addLight(SceneRenderer&) override;

void notifyStyleChange() override;
void addRenderNodes(SceneRenderer&) override;
Expand Down
2 changes: 1 addition & 1 deletion include/EighthDimSceneNode.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class EighthDimSceneNode : public SceneNode
public:
~EighthDimSceneNode();

bool cull(const ViewFrustum&) const;
bool cull(const ViewFrustum&) const override;
void notifyStyleChange() override;
void addRenderNodes(SceneRenderer&) override;

Expand Down
6 changes: 2 additions & 4 deletions plugins/serverSidePlayerSample/playerHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,18 @@ void PlayerHandler::textMessage(int dest, int source, const char *text)
sendChatMessage(text,source);
}

void PlayerHandler::playerSpawned(int player, const float pos[3], float rot)
void PlayerHandler::playerSpawned(int player, const float[3], float)
{
std::string playerName = bz_getPlayerCallsign(player);
std::string msg = "Oh look, " + playerName + " decided to join us!";
sendChatMessage(msg.c_str());
rot += pos[0]; // use these variables in a useless way to silence warning
}

void PlayerHandler::shotFired(int player, unsigned short shotID)
void PlayerHandler::shotFired(int player, unsigned short)
{
std::string playerName = bz_getPlayerCallsign(player);
std::string msg = "Hey, " + playerName + " I bet you think you are special now!";
sendChatMessage(msg.c_str());
++shotID; // use this variable in a useless way to silence warning
}


Expand Down

0 comments on commit ab526a0

Please sign in to comment.