Suppress Intel compiler warnings about noinline+inline on the same function

This commit is contained in:
Antony Polukhin
2017-05-06 15:07:21 +03:00
parent 77492bc517
commit 2381fa2011
2 changed files with 18 additions and 0 deletions

View File

@@ -14,6 +14,11 @@
#include <boost/stacktrace/detail/push_options.pp>
#ifdef BOOST_INTEL
# pragma warning(push)
# pragma warning(disable:2196) // warning #2196: routine is both "inline" and "noinline"
#endif
/// @file safe_dump_to.hpp This header contains low-level async-signal-safe functions for dumping call stacks. Dumps are binary serialized arrays of `void*`,
/// so you could read them by using 'od -tx8 -An stacktrace_dump_failename' Linux command or using boost::stacktrace::stacktrace::from_dump functions.
@@ -182,6 +187,10 @@ BOOST_FORCEINLINE std::size_t safe_dump_to(std::size_t skip, std::size_t max_dep
}} // namespace boost::stacktrace
#ifdef BOOST_INTEL
# pragma warning(pop)
#endif
#include <boost/stacktrace/detail/pop_options.pp>
#if !defined(BOOST_STACKTRACE_LINK) || defined(BOOST_STACKTRACE_INTERNAL_BUILD_LIBS)

View File

@@ -26,6 +26,11 @@
#include <boost/stacktrace/safe_dump_to.hpp>
#include <boost/stacktrace/detail/frame_decl.hpp>
#ifdef BOOST_INTEL
# pragma warning(push)
# pragma warning(disable:2196) // warning #2196: routine is both "inline" and "noinline"
#endif
/// @cond
namespace boost {
// Forward declaration
@@ -402,4 +407,8 @@ typedef basic_stacktrace<> stacktrace;
}} // namespace boost::stacktrace
#ifdef BOOST_INTEL
# pragma warning(pop)
#endif
#endif // BOOST_STACKTRACE_STACKTRACE_HPP