From 178f768f7f8fb2cb96027fe2ec029be96bbca504 Mon Sep 17 00:00:00 2001 From: Chris Pickett Date: Wed, 6 Jan 2016 14:21:18 -0600 Subject: [PATCH] Changed how the SA warning is suppressed to avoid pragma stuff --- include/flatbuffers/util.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/include/flatbuffers/util.h b/include/flatbuffers/util.h index 41a6ce07e..8af592302 100644 --- a/include/flatbuffers/util.h +++ b/include/flatbuffers/util.h @@ -210,10 +210,7 @@ inline void EnsureDirExists(const std::string &filepath) { auto parent = StripFileName(filepath); if (parent.length()) EnsureDirExists(parent); #ifdef _WIN32 - #ifdef _MSC_VER - #pragma warning(suppress: 6031) // "return value ignored: could return unexpected value" - #endif - _mkdir(filepath.c_str()); + (void)_mkdir(filepath.c_str()); #else mkdir(filepath.c_str(), S_IRWXU|S_IRGRP|S_IXGRP); #endif