From 2616bd8f1562a39dd36a73afc94414f0bec025f6 Mon Sep 17 00:00:00 2001 From: 0blu Date: Thu, 5 Sep 2024 00:12:24 +0200 Subject: [PATCH] Remove unused variable in `source_location` --- src/utils/error.hpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/utils/error.hpp b/src/utils/error.hpp index f1ced12..6594c1f 100644 --- a/src/utils/error.hpp +++ b/src/utils/error.hpp @@ -31,13 +31,11 @@ namespace detail { // Lightweight std::source_location. struct source_location { const char* const file; - // const char* const function; // disabled, because there are many different compiler definitions for it (see for example BOOST_CURRENT_FUNCTION) const int line; constexpr source_location( const char* _file, - //const char* _function, int _line - ) : file(_file)/*, function(_function)*/, line(_line) {} + ) : file(_file), line(_line) {} }; #define CPPTRACE_CURRENT_LOCATION ::cpptrace::detail::source_location(__FILE__, __LINE__)