msvc: disable meaningless constant truncation warnings in SDCardUtil

This commit is contained in:
Shawn Hoffman 2017-06-07 04:10:23 -07:00
parent 4f9dd7277b
commit f7f1d5d2ca
1 changed files with 9 additions and 0 deletions

View File

@ -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