id summary reporter owner description type status milestone component version severity resolution keywords cc 5867 The warning stack is not maintained Tsukasa Kusakabe Joel de Guzman " === Problem === When ""#include"" is executed for the following file, the warning stack is destroyed. The cause is to have forgotten to write ""#pragma warning(pop)"". File list * boost/spirit/home/classic/core/composite/composite.hpp * boost/spirit/home/classic/core/composite/actions.hpp === Impact === When the VisualStudio user uses a specific header, a part of a necessary warning is not displayed. === Reproduction code === {{{ #!cpp #include #pragma warning(error: 4193) //boost/spirit/home/classic/core/composite/composite.hpp #pragma warning(pop) // => warning C4193 #include #pragma warning(pop) // !!! There is not warning. !!! //boost/spirit/home/classic/core/composite/actions.hpp #pragma warning(pop) // => warning C4193 #include #pragma warning(pop) // !!! There is not warning. !!! int main() { return 0; } }}} === Patch === {{{ #!diff Index: boost/spirit/home/classic/core/composite/actions.hpp =================================================================== --- boost/spirit/home/classic/core/composite/actions.hpp (revision 74236) +++ boost/spirit/home/classic/core/composite/actions.hpp (working copy) @@ -125,6 +125,10 @@ ActionT actor; }; +#if BOOST_WORKAROUND(BOOST_MSVC, >= 1400) +#pragma warning(pop) +#endif + BOOST_SPIRIT_CLASSIC_NAMESPACE_END }} // namespace BOOST_SPIRIT_CLASSIC_NS Index: boost/spirit/home/classic/core/composite/composite.hpp =================================================================== --- boost/spirit/home/classic/core/composite/composite.hpp (revision 74236) +++ boost/spirit/home/classic/core/composite/composite.hpp (working copy) @@ -140,6 +140,10 @@ boost::compressed_pair subj; }; +#if BOOST_WORKAROUND(BOOST_MSVC, >= 1400) +#pragma warning(pop) +#endif + BOOST_SPIRIT_CLASSIC_NAMESPACE_END }} // namespace BOOST_SPIRIT_CLASSIC_NS }}} === Environment === * OS: Windows 7 Professional SP1 * Compiler: {{{ Microsoft Visual Studio 2010 Version 10.0.30319.1 RTMRel Microsoft .NET Framework Version 4.0.30319 RTMRel }}} === Comments === Division origin #5577 " Bugs closed To Be Determined spirit Boost 1.48.0 Problem fixed