aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2023-09-13 00:29:25 +0200
committerShauren <shauren.trinity@gmail.com>2023-09-13 09:25:35 +0200
commit08eac7a09a182b6d5a3ce64bdfd3acfc18fdd63e (patch)
tree34461a601260ac1f76921bdbc4a75aad0415709a
parent79544e5fbe15d485f67511b9d99c488e93c396ff (diff)
Core/Misc: Silence compile warning in boost::process with version 1.83
(cherry picked from commit d8c98579d4a2c4191e42c2542901274ffe53083c)
-rw-r--r--src/common/Utilities/StartProcess.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/common/Utilities/StartProcess.cpp b/src/common/Utilities/StartProcess.cpp
index dc4fc4e7646..5b4071c9eef 100644
--- a/src/common/Utilities/StartProcess.cpp
+++ b/src/common/Utilities/StartProcess.cpp
@@ -82,8 +82,23 @@ static int CreateChildProcess(T waiter, std::string const& executable,
std::string const& logger, std::string const& input,
bool secure)
{
+#if TRINITY_COMPILER == TRINITY_COMPILER_MICROSOFT
+#pragma warning(push)
+#pragma warning(disable:4297)
+/*
+ Silence warning with boost 1.83
+
+ boost/process/pipe.hpp(132,5): warning C4297: 'boost::process::basic_pipebuf<char,std::char_traits<char>>::~basic_pipebuf': function assumed not to throw an exception but does
+ boost/process/pipe.hpp(132,5): message : destructor or deallocator has a (possibly implicit) non-throwing exception specification
+ boost/process/pipe.hpp(124,6): message : while compiling class template member function 'boost::process::basic_pipebuf<char,std::char_traits<char>>::~basic_pipebuf(void)'
+ boost/process/pipe.hpp(304,42): message : see reference to class template instantiation 'boost::process::basic_pipebuf<char,std::char_traits<char>>' being compiled
+*/
+#endif
ipstream outStream;
ipstream errStream;
+#if TRINITY_COMPILER == TRINITY_COMPILER_MICROSOFT
+#pragma warning(pop)
+#endif
if (!secure)
{