Skip to content

Commit c71f03b

Browse files
authored
Added volatile has_initialised to avoid compiler optimisations around it
1 parent 3ef2e07 commit c71f03b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/rtcheck.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ inline std::string get_stacktrace()
8989

9090
//==============================================================================
9191
//==============================================================================
92-
static bool has_initialised = false;
92+
static volatile bool has_initialised = false;
9393

9494

9595
//==============================================================================

0 commit comments

Comments
 (0)