summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorShawn Hoffman <godisgovernment@gmail.com>2017-06-07 04:10:23 -0700
committerShawn Hoffman <godisgovernment@gmail.com>2017-06-07 18:44:03 -0700
commitf7f1d5d2ca1e5de5eda350a7af3bd46519bde2f8 (patch)
tree3ecf875047c7eaa55ae7db343ded39c31a5e55bf /Source/Core
parent4f9dd7277b8d2f1f56071f753081451d361bb7e2 (diff)
msvc: disable meaningless constant truncation warnings in SDCardUtil
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/Common/SDCardUtil.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/Core/Common/SDCardUtil.cpp b/Source/Core/Common/SDCardUtil.cpp
index 1bb09878b6..9e72990747 100644
--- a/Source/Core/Common/SDCardUtil.cpp
+++ b/Source/Core/Common/SDCardUtil.cpp
@@ -49,6 +49,11 @@
#include <unistd.h> // for unlink()
#endif
+#ifdef _MSC_VER
+#pragma warning(push)
+#pragma warning(disable : 4310)
+#endif
+
/* Believe me, you *don't* want to change these constants !! */
#define BYTES_PER_SECTOR 512
#define RESERVED_SECTORS 32
@@ -289,3 +294,7 @@ FailWrite:
ERROR_LOG(COMMON, "unlink(%s) failed: %s", filename.c_str(), GetLastErrorMsg().c_str());
return false;
}
+
+#ifdef _MSC_VER
+#pragma warning(pop)
+#endif