msvc: remove warning disables which no longer fire
This commit is contained in:
parent
d7a5558dc5
commit
c89ae53677
|
@ -11,11 +11,6 @@
|
||||||
#include "Common/Random.h"
|
#include "Common/Random.h"
|
||||||
#include "Common/StringUtil.h"
|
#include "Common/StringUtil.h"
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
|
||||||
#pragma warning(push)
|
|
||||||
#pragma warning(disable : 4505)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
namespace Common::ec
|
namespace Common::ec
|
||||||
{
|
{
|
||||||
static const u8 square[16] = {0x00, 0x01, 0x04, 0x05, 0x10, 0x11, 0x14, 0x15,
|
static const u8 square[16] = {0x00, 0x01, 0x04, 0x05, 0x10, 0x11, 0x14, 0x15,
|
||||||
|
@ -298,7 +293,4 @@ std::array<u8, 60> ComputeSharedSecret(const u8* private_key, const u8* public_k
|
||||||
std::copy_n(data.Data(), shared_secret.size(), shared_secret.begin());
|
std::copy_n(data.Data(), shared_secret.size(), shared_secret.begin());
|
||||||
return shared_secret;
|
return shared_secret;
|
||||||
}
|
}
|
||||||
#ifdef _MSC_VER
|
|
||||||
#pragma warning(pop)
|
|
||||||
#endif
|
|
||||||
} // namespace Common::ec
|
} // namespace Common::ec
|
||||||
|
|
|
@ -49,11 +49,6 @@
|
||||||
#include <unistd.h> // for unlink()
|
#include <unistd.h> // for unlink()
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
|
||||||
#pragma warning(push)
|
|
||||||
#pragma warning(disable : 4310)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
namespace Common
|
namespace Common
|
||||||
{
|
{
|
||||||
// Believe me, you *don't* want to change these constants !!
|
// Believe me, you *don't* want to change these constants !!
|
||||||
|
@ -288,7 +283,3 @@ FailWrite:
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} // namespace Common
|
} // namespace Common
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
|
||||||
#pragma warning(pop)
|
|
||||||
#endif
|
|
||||||
|
|
|
@ -10,12 +10,6 @@
|
||||||
#include "Core/HW/WiimoteCommon/WiimoteConstants.h"
|
#include "Core/HW/WiimoteCommon/WiimoteConstants.h"
|
||||||
#include "InputCommon/ControllerEmu/ControllerEmu.h"
|
#include "InputCommon/ControllerEmu/ControllerEmu.h"
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
|
||||||
#pragma warning(push)
|
|
||||||
// Disable warning for zero-sized array:
|
|
||||||
#pragma warning(disable : 4200)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
namespace WiimoteCommon
|
namespace WiimoteCommon
|
||||||
{
|
{
|
||||||
#pragma pack(push, 1)
|
#pragma pack(push, 1)
|
||||||
|
@ -27,7 +21,8 @@ struct OutputReportGeneric
|
||||||
|
|
||||||
union
|
union
|
||||||
{
|
{
|
||||||
u8 data[0];
|
// Actual size varies
|
||||||
|
u8 data[1];
|
||||||
struct
|
struct
|
||||||
{
|
{
|
||||||
// Enable/disable rumble. (Valid for ALL output reports)
|
// Enable/disable rumble. (Valid for ALL output reports)
|
||||||
|
@ -309,7 +304,3 @@ struct AccelCalibrationData
|
||||||
} // namespace WiimoteCommon
|
} // namespace WiimoteCommon
|
||||||
|
|
||||||
#pragma pack(pop)
|
#pragma pack(pop)
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
|
||||||
#pragma warning(pop)
|
|
||||||
#endif
|
|
||||||
|
|
|
@ -53,7 +53,7 @@ void Wiimote::InvokeHandler(H&& handler, const WiimoteCommon::OutputReportGeneri
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
(this->*handler)(Common::BitCastPtr<T>(rpt.data));
|
(this->*handler)(Common::BitCastPtr<T>(&rpt.data[0]));
|
||||||
}
|
}
|
||||||
|
|
||||||
void Wiimote::EventLinked()
|
void Wiimote::EventLinked()
|
||||||
|
|
Loading…
Reference in New Issue