mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-02-20 10:07:02 +00:00
Disabling a spurious deprecation warning about using PathV1 from within the PathV1 implementation file.
llvm-svn: 158274
This commit is contained in:
parent
503bbff367
commit
36a978cca2
@ -189,7 +189,17 @@ static Path *TempDirectory;
|
||||
Path
|
||||
Path::GetTemporaryDirectory(std::string* ErrMsg) {
|
||||
if (TempDirectory) {
|
||||
#if defined(_MSC_VER)
|
||||
// Visual Studio gets confused and emits a diagnostic about calling exists,
|
||||
// even though this is the implementation for PathV1. Temporarily
|
||||
// disable the deprecated warning message
|
||||
#pragma warning(push)
|
||||
#pragma warning(disable:4996)
|
||||
#endif
|
||||
assert(TempDirectory->exists() && "Who has removed TempDirectory?");
|
||||
#if defined(_MSC_VER)
|
||||
#pragma warning(pop)
|
||||
#endif
|
||||
return *TempDirectory;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user