msvc: disable meaningless constant truncation warnings in SDCardUtil
This commit is contained in:
parent
4f9dd7277b
commit
f7f1d5d2ca
|
@ -49,6 +49,11 @@
|
||||||
#include <unistd.h> // for unlink()
|
#include <unistd.h> // for unlink()
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef _MSC_VER
|
||||||
|
#pragma warning(push)
|
||||||
|
#pragma warning(disable : 4310)
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Believe me, you *don't* want to change these constants !! */
|
/* Believe me, you *don't* want to change these constants !! */
|
||||||
#define BYTES_PER_SECTOR 512
|
#define BYTES_PER_SECTOR 512
|
||||||
#define RESERVED_SECTORS 32
|
#define RESERVED_SECTORS 32
|
||||||
|
@ -289,3 +294,7 @@ FailWrite:
|
||||||
ERROR_LOG(COMMON, "unlink(%s) failed: %s", filename.c_str(), GetLastErrorMsg().c_str());
|
ERROR_LOG(COMMON, "unlink(%s) failed: %s", filename.c_str(), GetLastErrorMsg().c_str());
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef _MSC_VER
|
||||||
|
#pragma warning(pop)
|
||||||
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue