mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2025-11-29 17:38:24 +08:00
chore(Core/Misc): Silence compile warning in boost::process with vers… (#17251)
chore(Core/Misc): Silence compile warning in boost::process with version 1.83
* Cherry-pick commit d8c98579d4
Co-authored-by: Shauren <shauren.trinity@gmail.com>
This commit is contained in:
@@ -72,8 +72,22 @@ namespace Acore
|
|||||||
std::string const& logger, std::string const& input,
|
std::string const& logger, std::string const& input,
|
||||||
bool secure)
|
bool secure)
|
||||||
{
|
{
|
||||||
|
#if AC_COMPILER == AC_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 outStream;
|
||||||
ipstream errStream;
|
ipstream errStream;
|
||||||
|
#if AC_COMPILER == AC_COMPILER_MICROSOFT
|
||||||
|
#pragma warning(pop)
|
||||||
|
#endif
|
||||||
|
|
||||||
if (!secure)
|
if (!secure)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user