diff --git a/example/assert_handler.cpp b/example/assert_handler.cpp index e853ffe..0b6bbad 100644 --- a/example/assert_handler.cpp +++ b/example/assert_handler.cpp @@ -35,7 +35,7 @@ namespace std { inline void ignore_abort(){ std::exit(0); } } #include namespace boost { - inline void assertion_failed_msg(char const* expr, char const* msg, char const* function, char const* file, long line) { + inline void assertion_failed_msg(char const* expr, char const* msg, char const* function, char const* /*file*/, long /*line*/) { std::cerr << "Expression '" << expr << "' is false in function '" << function << "': " << (msg ? msg : "<...>") << ".\n" << "Backtrace:\n" << boost::stacktrace::stacktrace() << '\n'; std::abort(); diff --git a/example/debug_function.cpp b/example/debug_function.cpp index 033f5c3..0a9159c 100644 --- a/example/debug_function.cpp +++ b/example/debug_function.cpp @@ -19,7 +19,7 @@ void print_signal_handler_and_exit() { //] -void my_signal_handler(int signum) { +void my_signal_handler(int /*signum*/) { std::exit(1); } diff --git a/include/boost/stacktrace/detail/collect_msvc.ipp b/include/boost/stacktrace/detail/collect_msvc.ipp index 033f274..2f17b00 100644 --- a/include/boost/stacktrace/detail/collect_msvc.ipp +++ b/include/boost/stacktrace/detail/collect_msvc.ipp @@ -20,7 +20,7 @@ namespace boost { namespace stacktrace { namespace detail { std::size_t this_thread_frames::collect(native_frame_ptr_t* out_frames, std::size_t max_frames_count, std::size_t skip) BOOST_NOEXCEPT { return boost::detail::winapi::RtlCaptureStackBackTrace( - skip, + static_cast(skip), static_cast(max_frames_count), const_cast(out_frames), 0 diff --git a/include/boost/stacktrace/detail/frame_decl.hpp b/include/boost/stacktrace/detail/frame_decl.hpp index 088d2c9..bdb6e08 100644 --- a/include/boost/stacktrace/detail/frame_decl.hpp +++ b/include/boost/stacktrace/detail/frame_decl.hpp @@ -21,12 +21,16 @@ #include + +/// @headerfile boost/stacktrace/detail/frame_decl.hpp boost/stacktrace/detail/frame.hpp +/// Use instead! + /// @file boost/stacktrace/detail/frame_decl.hpp /// Use instead! namespace boost { namespace stacktrace { -/// @class boost::stacktrace::frame boost/stacktrace/detail/frame_decl.hpp "boost/stacktrace/frame.hpp" +/// @class boost::stacktrace::frame boost/stacktrace/detail/frame_decl.hpp "boost/stacktrace/frame.hpp" /// @brief Non-owning class that references the frame information stored inside the boost::stacktrace::stacktrace class. class frame { public: