Skip to content

Commit

Permalink
clang16 warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
atupone committed Dec 15, 2023
1 parent c3840a5 commit 1eb20f4
Show file tree
Hide file tree
Showing 29 changed files with 63 additions and 65 deletions.
2 changes: 1 addition & 1 deletion include/BillboardSceneNode.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class BillboardSceneNode : public SceneNode
BillboardRenderNode(const BillboardSceneNode*);
~BillboardRenderNode();
void setColor(const GLfloat* rgba);
void render();
void render() override;
const GLfloat* getPosition() const override;
void setFrame(float u, float v);
void setFrameSize(float du, float dv);
Expand Down
2 changes: 1 addition & 1 deletion include/BoltSceneNode.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class BoltSceneNode : public SceneNode
~BoltRenderNode();
void setColor(const GLfloat* rgba);
void setTextureColor(const GLfloat* rgba);
void render();
void render() override;
const GLfloat* getPosition() const override;
void setAnimation(int cu, int cv);

Expand Down
2 changes: 1 addition & 1 deletion include/EighthDBaseSceneNode.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class EighthDBaseSceneNode : public EighthDimSceneNode
const float pos[3],
const float size[3], float rotation);
~EighthDBaseRenderNode();
void render();
void render() override;
const GLfloat* getPosition() const override;
private:
const EighthDBaseSceneNode *sceneNode;
Expand Down
2 changes: 1 addition & 1 deletion include/EighthDBoxSceneNode.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class EighthDBoxSceneNode : public EighthDimSceneNode
const float pos[3],
const float size[3], float rotation);
~EighthDBoxRenderNode();
void render();
void render() override;
const GLfloat* getPosition() const override;
private:
const EighthDBoxSceneNode* sceneNode;
Expand Down
2 changes: 1 addition & 1 deletion include/EighthDPyrSceneNode.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class EighthDPyrSceneNode : public EighthDimSceneNode
const float pos[3],
const float size[3], float rotation);
~EighthDPyrRenderNode();
void render();
void render() override;
const GLfloat* getPosition() const override;
private:
const EighthDPyrSceneNode* sceneNode;
Expand Down
2 changes: 1 addition & 1 deletion include/EighthDimSceneNode.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class EighthDimSceneNode : public SceneNode
const EighthDimSceneNode*,
int numPolygons);
~EighthDimRenderNode();
void render();
void render() override;
void setPolygon(int index, const GLfloat[3][3]);
const GLfloat* getPosition() const override;
private:
Expand Down
4 changes: 2 additions & 2 deletions include/EighthDimShellNode.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ class EighthDimShellNode : public SceneNode
ShellRenderNode(RenderNode *renderNode,
const OpenGLGState* gstate);
~ShellRenderNode();
void render();
void renderShadow()
void render() override;
void renderShadow() override
{
return;
}
Expand Down
2 changes: 1 addition & 1 deletion include/FlagWarpSceneNode.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class FlagWarpSceneNode : public SceneNode
public:
FlagWarpRenderNode(const FlagWarpSceneNode*);
~FlagWarpRenderNode();
void render();
void render() override;
const GLfloat* getPosition() const override;
private:
const FlagWarpSceneNode* sceneNode;
Expand Down
4 changes: 2 additions & 2 deletions include/LaserSceneNode.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#ifndef BZF_LASER_SCENE_NODE_H
#define BZF_LASER_SCENE_NODE_H

#include "common.h"
// Inherits from
#include "SceneNode.h"

class LaserSceneNode : public SceneNode
Expand Down Expand Up @@ -47,7 +47,7 @@ class LaserSceneNode : public SceneNode
public:
LaserRenderNode(const LaserSceneNode*);
~LaserRenderNode();
void render();
void render() override;
const GLfloat* getPosition() const override;
private:
void renderFlatLaser();
Expand Down
4 changes: 2 additions & 2 deletions include/MeshPolySceneNode.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ class MeshPolySceneNode : public WallSceneNode
{
style = _style;
}
void render();
void renderShadow();
void render() override;
void renderShadow() override;
const GLfloat* getVertex(int i) const;
const GLfloat (*getVertices() const)[3];
int getVertexCount() const;
Expand Down
2 changes: 1 addition & 1 deletion include/PolyWallSceneNode.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class PolyWallSceneNode : public WallSceneNode
{
style = _style;
}
void render();
void render() override;
const GLfloat* getPosition() const override;
private:
void drawV() const;
Expand Down
4 changes: 2 additions & 2 deletions include/QuadWallSceneNode.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ class QuadWallSceneNode : public WallSceneNode
{
style = _style;
}
void render();
void renderShadow();
void render() override;
void renderShadow() override;
const GLfloat* getVertex(int i) const;
const GLfloat* getPosition() const override;
private:
Expand Down
6 changes: 3 additions & 3 deletions include/SphereSceneNode.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ class SphereLodSceneNode : public SphereSceneNode
SphereLodRenderNode(const SphereLodSceneNode*);
~SphereLodRenderNode();
void setLod(int lod);
void render();
void render() override;
const GLfloat* getPosition() const override;

private:
Expand Down Expand Up @@ -144,7 +144,7 @@ class SphereFragmentSceneNode : public SceneNode
int theta, int phi);
~FragmentRenderNode();
const GLfloat* getVertex() const;
void render();
void render() override;
const GLfloat* getPosition() const override;
private:
const SphereBspSceneNode* sceneNode;
Expand Down Expand Up @@ -190,7 +190,7 @@ class SphereBspSceneNode : public SphereSceneNode
~SphereBspRenderNode();
void setHighResolution(bool);
void setBaseIndex(int index);
void render();
void render() override;
const GLfloat* getPosition() const override;
private:
const SphereBspSceneNode* sceneNode;
Expand Down
8 changes: 5 additions & 3 deletions include/TankSceneNode.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@
#ifndef BZF_TANK_SCENE_NODE_H
#define BZF_TANK_SCENE_NODE_H

#include "common.h"
// Inherits from
#include "SceneNode.h"

// Common headers
#include "OpenGLLight.h"
#include "TankGeometryMgr.h"

Expand Down Expand Up @@ -79,7 +81,7 @@ class TankIDLSceneNode : public SceneNode
public:
IDLRenderNode(const TankIDLSceneNode*);
~IDLRenderNode();
void render();
void render() override;
const GLfloat* getPosition() const override;
private:
const TankIDLSceneNode* sceneNode;
Expand Down Expand Up @@ -171,7 +173,7 @@ class TankSceneNode : public SceneNode
void setNarrowWithDepth(bool narrow);
const GLfloat* getPosition() const override;

void render();
void render() override;
void renderPart(TankGeometryEnums::TankPart part);
void renderParts();
void renderTopParts();
Expand Down
4 changes: 2 additions & 2 deletions include/TriWallSceneNode.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ class TriWallSceneNode : public WallSceneNode
{
style = _style;
}
void render();
void renderShadow();
void render() override;
void renderShadow() override;
const GLfloat* getVertex(int i) const;
const GLfloat* getPosition() const override;
private:
Expand Down
4 changes: 2 additions & 2 deletions src/bzflag/TrackMarks.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,8 @@ class TrackRenderNode : public RenderNode
public:
TrackRenderNode(const TrackEntry* te, TrackType type);
~TrackRenderNode();
void render();
void renderShadow()
void render() override;
void renderShadow() override
{
return;
}
Expand Down
8 changes: 4 additions & 4 deletions src/bzfs/CustomArc.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,19 @@
/* interface header */
#include "WorldFileObstacle.h"

/* local interface headers */
#include "WorldInfo.h"

/* common interface headers */
#include "BzMaterial.h"

/* local interface headers */
#include "WorldInfo.h"


class CustomArc : public WorldFileObstacle
{
public:
CustomArc(bool boxStyle);
~CustomArc();
virtual bool read(const char* cmd, std::istream& input);
bool read(const char* cmd, std::istream& input) override;
void writeToGroupDef(GroupDefinition*) override;

private:
Expand Down
4 changes: 1 addition & 3 deletions src/bzfs/CustomBase.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
#ifndef __CUSTOMBASE_H__
#define __CUSTOMBASE_H__

#include "common.h"

/* interface header */
#include "WorldFileObstacle.h"

Expand All @@ -29,7 +27,7 @@ class CustomBase : public WorldFileObstacle
{
public:
CustomBase();
virtual bool read(const char *cmd, std::istream&);
bool read(const char *cmd, std::istream&) override;
void writeToGroupDef(GroupDefinition*) override;

protected:
Expand Down
8 changes: 4 additions & 4 deletions src/bzfs/CustomBox.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,19 @@
/* interface header */
#include "WorldFileObstacle.h"

/* local interface headers */
#include "WorldInfo.h"

/* common interface headers */
#include "BzMaterial.h"

/* local interface headers */
#include "WorldInfo.h"


class CustomBox : public WorldFileObstacle
{
public:
CustomBox();
~CustomBox();
virtual bool read(const char* cmd, std::istream& input);
bool read(const char* cmd, std::istream& input) override;
void writeToGroupDef(GroupDefinition*) override;

private:
Expand Down
8 changes: 4 additions & 4 deletions src/bzfs/CustomCone.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,19 @@
/* interface header */
#include "WorldFileObstacle.h"

/* local interface headers */
#include "WorldInfo.h"

/* common interface headers */
#include "BzMaterial.h"

/* local interface headers */
#include "WorldInfo.h"


class CustomCone : public WorldFileObstacle
{
public:
CustomCone(bool pyramidStyle);
~CustomCone();
virtual bool read(const char* cmd, std::istream& input);
bool read(const char* cmd, std::istream& input) override;
void writeToGroupDef(GroupDefinition*) override;

private:
Expand Down
4 changes: 1 addition & 3 deletions src/bzfs/CustomGate.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
#ifndef __CUSTOMGATE_H__
#define __CUSTOMGATE_H__

#include "common.h"

/* interface header */
#include "WorldFileObstacle.h"

Expand All @@ -30,7 +28,7 @@ class CustomGate : public WorldFileObstacle
{
public:
CustomGate(const char* telename);
virtual bool read(const char *cmd, std::istream&);
bool read(const char *cmd, std::istream&) override;
void writeToGroupDef(GroupDefinition*) override;

protected:
Expand Down
6 changes: 3 additions & 3 deletions src/bzfs/CustomGroup.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
#ifndef __CUSTOM_GROUP_H__
#define __CUSTOM_GROUP_H__

#include "common.h"
// Inherits from
#include "WorldFileObstacle.h"

/* system interface headers */
#include <string>
Expand All @@ -22,7 +23,6 @@

/* local interface headers */
#include "WorldInfo.h"
#include "WorldFileObstacle.h"

class GroupInstance;

Expand All @@ -31,7 +31,7 @@ class CustomGroup : public WorldFileObstacle
public:
CustomGroup(const std::string& groupdef);
~CustomGroup();
virtual bool read(const char *cmd, std::istream&);
bool read(const char *cmd, std::istream&) override;
void writeToGroupDef(GroupDefinition*) override;

protected:
Expand Down
2 changes: 1 addition & 1 deletion src/bzfs/CustomMesh.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class CustomMesh : public WorldFileObstacle
public:
CustomMesh();
~CustomMesh();
virtual bool read(const char *cmd, std::istream& input);
bool read(const char *cmd, std::istream& input) override;
void writeToGroupDef(GroupDefinition*) override;

private:
Expand Down
8 changes: 4 additions & 4 deletions src/bzfs/CustomPyramid.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,19 @@
/* interface header */
#include "WorldFileObstacle.h"

/* local interface headers */
#include "WorldInfo.h"

/* common interface headers */
#include "BzMaterial.h"

/* local interface headers */
#include "WorldInfo.h"


class CustomPyramid : public WorldFileObstacle
{
public:
CustomPyramid();
~CustomPyramid();
virtual bool read(const char* cmd, std::istream& input);
bool read(const char* cmd, std::istream& input) override;
void writeToGroupDef(GroupDefinition*) override;

private:
Expand Down
8 changes: 4 additions & 4 deletions src/bzfs/CustomSphere.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,19 @@
/* interface header */
#include "WorldFileObstacle.h"

/* local interface headers */
#include "WorldInfo.h"

/* common interface headers */
#include "BzMaterial.h"

/* local interface headers */
#include "WorldInfo.h"


class CustomSphere : public WorldFileObstacle
{
public:
CustomSphere();
~CustomSphere();
virtual bool read(const char *cmd, std::istream& input);
bool read(const char *cmd, std::istream& input) override;
void writeToGroupDef(GroupDefinition*) override;

private:
Expand Down
Loading

0 comments on commit 1eb20f4

Please sign in to comment.