Skip to content

Commit b23bc42

Browse files
authored
test(stacktrace): make CPPTRACE_FORCE_INLINE static (#196)
This fixes compilation error: ``` > error: inlining failed in call to 'always_inline' 'int stacktrace_inline_resolution_2(std::vector<int>&)': function body can be overwritten at link time ```
1 parent 5b3f2fb commit b23bc42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/unit/stacktrace.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ using namespace std::literals;
1111
#ifdef _MSC_VER
1212
#define CPPTRACE_FORCE_INLINE [[msvc::flatten]]
1313
#else
14-
#define CPPTRACE_FORCE_INLINE [[gnu::always_inline]]
14+
#define CPPTRACE_FORCE_INLINE [[gnu::always_inline]] static
1515
#endif
1616

1717

0 commit comments

Comments
 (0)