Skip to content

Commit 62af223

Browse files
committed
fix(warn): Fix C4100, unused function parameters.
1 parent fd8074f commit 62af223

File tree

400 files changed

+3106
-3562
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

400 files changed

+3106
-3562
lines changed

.github/workflows/openw3d.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
cmake-args: -GNinja -DCMAKE_BUILD_TYPE=Release
2424
shell: pwsh
2525
arch: x86
26-
options: "/W4;/WX;/wd4840;/wd4456;/wd4702;/wd4100"
26+
options: "/W4;/WX;/wd4840;/wd4456;/wd4702"
2727
- name: MSVC x64
2828
os: windows-latest
2929
cmake-args: -GNinja -DCMAKE_BUILD_TYPE=Release

Code/BinkMovie/NullMoviePlayer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class FontCharsClass;
2424
class NullMovieClass : public MovieClass
2525
{
2626
public:
27-
NullMovieClass(const char* filename, const char* subtitlename, FontCharsClass* font) {}
27+
NullMovieClass(const char* /* filename */, const char* /* subtitlename */, FontCharsClass* /* font */) {}
2828
~NullMovieClass() override {}
2929

3030
void Update() override {}

Code/Combat/WeatherMgr.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1272,7 +1272,7 @@ void WeatherSystemClass::Get_Obj_Space_Bounding_Box (AABoxClass &box) const
12721272
* HISTORY: *
12731273
* 03/06/01 IML : Created. *
12741274
*=============================================================================================*/
1275-
RainSystemClass::RainSystemClass (PhysicsSceneClass *scene, float particledensity, WindClass *wind, SoundEnvironmentClass *soundenvironment, bool prime)
1275+
RainSystemClass::RainSystemClass (PhysicsSceneClass *scene, float particledensity, WindClass * /* wind */, SoundEnvironmentClass *soundenvironment, bool prime)
12761276
: WeatherSystemClass (scene, 20.0f, 20.0f, particledensity, 0.2f, 0.15f, 0.45f, 15.0f, Vector2 (0.0f, 0.0f), Vector2 (1.0f, 0.5f), PAGE_COUNT, true, 0.1f, 0.2f, WeatherSystemClass::RENDER_MODE_AXIS_ALIGNED, false, prime),
12771277
SoundEnvironment (soundenvironment)
12781278
{
@@ -1355,7 +1355,7 @@ bool RainSystemClass::Update (WindClass *wind, const Vector3 &cameraposition)
13551355
* HISTORY: *
13561356
* 03/06/01 IML : Created. *
13571357
*=============================================================================================*/
1358-
SnowSystemClass::SnowSystemClass (PhysicsSceneClass *scene, float particledensity, WindClass *wind, bool prime)
1358+
SnowSystemClass::SnowSystemClass (PhysicsSceneClass *scene, float particledensity, WindClass * /* wind */, bool prime)
13591359
: WeatherSystemClass (scene, 40.0f, 20.0f, particledensity, 0.1f, 0.32f, 0.32f, 3.5f, Vector2 (0.0f, 0.5f), Vector2 (1.0f, 0.25f), PAGE_COUNT, false, 1.0f, 2.0f, WeatherSystemClass::RENDER_MODE_CAMERA_ALIGNED, true, prime)
13601360
{
13611361
}
@@ -1392,7 +1392,7 @@ bool SnowSystemClass::Update (WindClass *wind, const Vector3 &cameraposition)
13921392
* HISTORY: *
13931393
* 03/06/01 IML : Created. *
13941394
*=============================================================================================*/
1395-
AshSystemClass::AshSystemClass (PhysicsSceneClass *scene, float particledensity, WindClass *wind, bool prime)
1395+
AshSystemClass::AshSystemClass (PhysicsSceneClass *scene, float particledensity, WindClass * /* wind */, bool prime)
13961396
: WeatherSystemClass (scene, 40.0f, 20.0f, particledensity, 0.1f, 0.32f, 0.32f, 3.0f, Vector2 (0.0f, 0.75f), Vector2 (1.0f, 0.25f), PAGE_COUNT, false, 1.0f, 2.0f, WeatherSystemClass::RENDER_MODE_CAMERA_ALIGNED, true, prime)
13971397
{
13981398
}

Code/Combat/action.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ class ActionCodeClass : public PersistClass {
156156
}
157157
}
158158

159-
virtual void Modify_Parameters( const SafeActionParamsStruct & parameters, bool modify_move, bool modify_attack ) {}
159+
virtual void Modify_Parameters( const SafeActionParamsStruct & /* parameters */, bool /* modify_move */, bool /* modify_attack */ ) {}
160160

161161
virtual void Set_Action( ActionClass * action ) { WWASSERT( action ); WWASSERT( Action == NULL ); Action = action; }
162162
virtual void Shutdown( void ) { Action = NULL; }

Code/Combat/animcontrol.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ struct AnimationDataRecord {
7171
float Frame;
7272
float Weight;
7373

74-
bool operator == (AnimationDataRecord const & rec) const { return false; }
75-
bool operator != (AnimationDataRecord const & rec) const { return true; }
74+
bool operator == (AnimationDataRecord const & ) const { return false; }
75+
bool operator != (AnimationDataRecord const & ) const { return true; }
7676
};
7777

7878
typedef DynamicVectorClass<AnimationDataRecord> AnimationDataList;

Code/Combat/armedgameobj.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ void ArmedGameObj::Init_Muzzle_Bones( void )
475475
}
476476
}
477477

478-
bool ArmedGameObj::Set_Targeting( const Vector3 & pos, bool do_tilt )
478+
bool ArmedGameObj::Set_Targeting( const Vector3 & pos, bool /* do_tilt */ )
479479
{
480480
TargetingPos = pos;
481481
// Move the turret to match the target

Code/Combat/backgroundmgr.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ void HazeClass::Render()
363363
* HISTORY: *
364364
* 10/18/00 IML : Created. *
365365
*=============================================================================================*/
366-
StarfieldClass::StarfieldClass (float extent, unsigned starcount)
366+
StarfieldClass::StarfieldClass (float /* extent */, unsigned starcount)
367367
{
368368
const Vector3 white (1.0f, 1.0f, 1.0f);
369369

@@ -2158,7 +2158,7 @@ bool WarBlitzClass::Update (Matrix3D &t, Vector3 &additivecolor)
21582158
* HISTORY: *
21592159
* 06/26/01 IML : Created. *
21602160
*=============================================================================================*/
2161-
void WarBlitzClass::Render (RenderInfoClass &rinfo)
2161+
void WarBlitzClass::Render (RenderInfoClass &/* rinfo */)
21622162
{
21632163
WarBlitzGlow->Render();
21642164
}
@@ -3631,7 +3631,7 @@ bool BackgroundMgrClass::Set_War_Blitz (float intensity, float ramptime)
36313631
* HISTORY: *
36323632
* 09/15/00 IML : Created. *
36333633
*=============================================================================================*/
3634-
bool BackgroundMgrClass::Set_War_Blitz (float intensity, float startdistance, float enddistance, float heading, float distribution, float ramptime, bool override)
3634+
bool BackgroundMgrClass::Set_War_Blitz (float intensity, float startdistance, float enddistance, float heading, float distribution, float ramptime, bool /* override */)
36353635
{
36363636
if ((intensity >= 0.0f) && (intensity <= 1.0f) && (startdistance >= 0.0f) && (startdistance <= 1.0f) &&
36373637
(enddistance >= 0.0f) && (enddistance <= 1.0f) && (heading >= 0.0f) && (heading <= 360.0f) &&

Code/Combat/basecontroller.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ BaseControllerClass::On_Vehicle_Generated (VehicleGameObj *vehicle)
300300
}
301301

302302

303-
void BaseControllerClass::On_Vehicle_Delivered(VehicleGameObj *vehicle)
303+
void BaseControllerClass::On_Vehicle_Delivered(VehicleGameObj * /* vehicle */)
304304
{
305305
SoldierGameObj* thePlayer = COMBAT_STAR;
306306
bool isAllied = (thePlayer && (thePlayer->Get_Player_Type() == PlayerType));
@@ -459,7 +459,7 @@ BaseControllerClass::Are_All_Buildings_Destroyed (void)
459459
//
460460
////////////////////////////////////////////////////////////////
461461
void
462-
BaseControllerClass::Notify_Team (Notification event, BuildingType type)
462+
BaseControllerClass::Notify_Team (Notification /* event */, BuildingType /* type */)
463463
{
464464
return ;
465465
}

Code/Combat/beacongameobj.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1033,7 +1033,7 @@ BeaconGameObj::Get_Enemy_Base (void)
10331033
//
10341034
////////////////////////////////////////////////////////////////
10351035
bool
1036-
BeaconGameObj::Can_Place_Here (const Vector3 &position)
1036+
BeaconGameObj::Can_Place_Here (const Vector3 &/* position */)
10371037
{
10381038
// always return true;
10391039
return true;
@@ -1315,7 +1315,7 @@ BeaconGameObj::Get_Owner (void)
13151315
//
13161316
////////////////////////////////////////////////////////////////
13171317
void
1318-
BeaconGameObj::Completely_Damaged (const OffenseObjectClass &damager)
1318+
BeaconGameObj::Completely_Damaged (const OffenseObjectClass &/* damager */)
13191319
{
13201320
if (!Is_Delete_Pending()) {
13211321
Set_State (STATE_DISARMED);

Code/Combat/buildingmonitor.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
//
4646
////////////////////////////////////////////////////////////////
4747
void
48-
BuildingMonitorClass::Killed (GameObject *game_obj, GameObject *killer)
48+
BuildingMonitorClass::Killed (GameObject * /* game_obj */, GameObject * /* killer */)
4949
{
5050
WWASSERT (Building != NULL);
5151

@@ -63,7 +63,7 @@ BuildingMonitorClass::Killed (GameObject *game_obj, GameObject *killer)
6363
//
6464
////////////////////////////////////////////////////////////////
6565
void
66-
BuildingMonitorClass::Damaged (GameObject *game_obj, GameObject *killer, float amount )
66+
BuildingMonitorClass::Damaged (GameObject * /* game_obj */, GameObject *killer, float amount )
6767
{
6868
// Only report damage not heal
6969
if (amount > 0.0f) {
@@ -100,7 +100,7 @@ BuildingMonitorClass::Damaged (GameObject *game_obj, GameObject *killer, float a
100100
//
101101
////////////////////////////////////////////////////////////////
102102
void
103-
BuildingMonitorClass::Custom (GameObject *game_obj, int type, intptr_t param, GameObject *sender)
103+
BuildingMonitorClass::Custom (GameObject * /* game_obj */, int type, intptr_t /* param */, GameObject * /* sender */)
104104
{
105105
WWASSERT (Building != NULL);
106106

0 commit comments

Comments
 (0)