Skip to content

Commit

Permalink
Remove redundant pragma warning disable statements
Browse files Browse the repository at this point in the history
  • Loading branch information
SamVanheer committed Jan 21, 2022
1 parent 2b6b624 commit bae95e1
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 18 deletions.
5 changes: 0 additions & 5 deletions src/game/client/cl_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,4 @@ void VectorScale(const float* in, float scale, float* out);
float VectorNormalize(float* v);
void VectorInverse(float* v);

// disable 'possible loss of data converting float to int' warning message
#pragma warning(disable : 4244)
// disable 'truncation from 'const double' to 'float' warning message
#pragma warning(disable : 4305)

HSPRITE LoadSprite(const char* pszName);
2 changes: 0 additions & 2 deletions src/game/client/ui/hud/hud_spectator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@
#include "screenfade.h"


#pragma warning(disable : 4244)

extern bool iJumpSpectator;
extern float vJumpOrigin[3];
extern float vJumpAngles[3];
Expand Down
2 changes: 0 additions & 2 deletions src/game/server/entities/animation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@
#include "animation.h"
#include "scriptevent.h"

#pragma warning(disable : 4244)



bool ExtractBbox(void* pmodel, int sequence, float* mins, float* maxs)
Expand Down
3 changes: 0 additions & 3 deletions src/game/shared/player_movement/pm_debug.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@
#include "pm_movevars.h"
#include "pm_debug.h"

#pragma warning(disable : 4244)
#pragma warning(disable : 4305)

extern playermove_t* pmove;

// Expand debugging BBOX particle hulls by this many units.
Expand Down
2 changes: 0 additions & 2 deletions src/game/shared/player_movement/pm_math.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@
// fall over
#define ROLL 2

#pragma warning(disable : 4244)

int nanmask = 255 << 23;

float anglemod(float a)
Expand Down
4 changes: 0 additions & 4 deletions src/game/shared/player_movement/pm_shared.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ float vJumpAngles[3];

static bool pm_shared_initialized = false;

#pragma warning(disable : 4305)

typedef enum
{
mod_brush,
Expand Down Expand Up @@ -112,8 +110,6 @@ typedef struct hull_s

#define PLAYER_DUCKING_MULTIPLIER 0.333

// double to float warning
#pragma warning(disable : 4244)
// up / down
#define PITCH 0
// left / right
Expand Down

0 comments on commit bae95e1

Please sign in to comment.