msvc: remove warning disables which no longer fire

This commit is contained in:
Shawn Hoffman 2021-07-17 18:24:36 -07:00
parent d7a5558dc5
commit c89ae53677
4 changed files with 3 additions and 29 deletions

View File

@ -11,11 +11,6 @@
#include "Common/Random.h"
#include "Common/StringUtil.h"
#ifdef _MSC_VER
#pragma warning(push)
#pragma warning(disable : 4505)
#endif
namespace Common::ec
{
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());
return shared_secret;
}
#ifdef _MSC_VER
#pragma warning(pop)
#endif
} // namespace Common::ec

View File

@ -49,11 +49,6 @@
#include <unistd.h> // for unlink()
#endif
#ifdef _MSC_VER
#pragma warning(push)
#pragma warning(disable : 4310)
#endif
namespace Common
{
// Believe me, you *don't* want to change these constants !!
@ -288,7 +283,3 @@ FailWrite:
return false;
}
} // namespace Common
#ifdef _MSC_VER
#pragma warning(pop)
#endif

View File

@ -10,12 +10,6 @@
#include "Core/HW/WiimoteCommon/WiimoteConstants.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
{
#pragma pack(push, 1)
@ -27,7 +21,8 @@ struct OutputReportGeneric
union
{
u8 data[0];
// Actual size varies
u8 data[1];
struct
{
// Enable/disable rumble. (Valid for ALL output reports)
@ -309,7 +304,3 @@ struct AccelCalibrationData
} // namespace WiimoteCommon
#pragma pack(pop)
#ifdef _MSC_VER
#pragma warning(pop)
#endif

View File

@ -53,7 +53,7 @@ void Wiimote::InvokeHandler(H&& handler, const WiimoteCommon::OutputReportGeneri
return;
}
(this->*handler)(Common::BitCastPtr<T>(rpt.data));
(this->*handler)(Common::BitCastPtr<T>(&rpt.data[0]));
}
void Wiimote::EventLinked()