mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-25 10:11:17 -03:00
Make debug_level an atomic
Fixes a tsan warning
This commit is contained in:
@@ -75,7 +75,7 @@ int omitted_newline_width;
|
||||
wchar_t obfuscation_read_char;
|
||||
bool g_profiling_active = false;
|
||||
const wchar_t *program_name;
|
||||
int debug_level = 1; // default maximum debug output level (errors and warnings)
|
||||
std::atomic<int> debug_level{1}; // default maximum debug output level (errors and warnings)
|
||||
int debug_stack_frames = 0; // default number of stack frames to show on debug() calls
|
||||
|
||||
/// Be able to restore the term's foreground process group.
|
||||
|
||||
Reference in New Issue
Block a user