Browse Source

Mark parameters with [[maybe_unused]] in StateRecorderFilter methods (#675)

n.savichev 2 years ago
parent
commit
b8ce0e3765
1 changed files with 3 additions and 3 deletions
  1. 3 3
      Jolt/Physics/StateRecorder.h

+ 3 - 3
Jolt/Physics/StateRecorder.h

@@ -32,13 +32,13 @@ public:
 	virtual				~StateRecorderFilter() = default;
 
 	/// If the state of a specific body should be saved
-	virtual bool		ShouldSaveBody(const Body &inBody) const					{ return true; }
+	virtual bool		ShouldSaveBody([[maybe_unused]] const Body &inBody) const					{ return true; }
 
 	/// If the state of a specific constraint should be saved
-	virtual bool		ShouldSaveConstraint(const Constraint &inConstraint) const	{ return true; }
+	virtual bool		ShouldSaveConstraint([[maybe_unused]] const Constraint &inConstraint) const	{ return true; }
 
 	/// If the state of a specific contact should be saved
-	virtual bool		ShouldSaveContact(const BodyID &inBody1, const BodyID &inBody2) const { return true; }
+	virtual bool		ShouldSaveContact([[maybe_unused]] const BodyID &inBody1, [[maybe_unused]] const BodyID &inBody2) const { return true; }
 };
 
 /// Class that records the state of a physics system. Can be used to check if the simulation is deterministic by putting the recorder in validation mode.