mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-21 04:37:33 +00:00
Changed how the SA warning is suppressed to avoid pragma stuff
This commit is contained in:
@@ -210,10 +210,7 @@ inline void EnsureDirExists(const std::string &filepath) {
|
|||||||
auto parent = StripFileName(filepath);
|
auto parent = StripFileName(filepath);
|
||||||
if (parent.length()) EnsureDirExists(parent);
|
if (parent.length()) EnsureDirExists(parent);
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
#ifdef _MSC_VER
|
(void)_mkdir(filepath.c_str());
|
||||||
#pragma warning(suppress: 6031) // "return value ignored: <function> could return unexpected value"
|
|
||||||
#endif
|
|
||||||
_mkdir(filepath.c_str());
|
|
||||||
#else
|
#else
|
||||||
mkdir(filepath.c_str(), S_IRWXU|S_IRGRP|S_IXGRP);
|
mkdir(filepath.c_str(), S_IRWXU|S_IRGRP|S_IXGRP);
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user