Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/wolfpld/tracy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenoit Jacob <benoitjacob@google.com>2022-04-12 20:47:14 +0300
committerBenoit Jacob <benoitjacob@google.com>2022-04-12 20:47:14 +0300
commitce1f6d0526e146bef6b29e21ade60b54c27aa57d (patch)
tree522ec9b7064864c3d4e2d134f63de67c62af8e81 /capture
parent331f39e6a51324703ebe19247fe9d76b27ea43e8 (diff)
explicitly initialize as false - hope the compiler optimizes that
Diffstat (limited to 'capture')
-rw-r--r--capture/src/capture.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/capture/src/capture.cpp b/capture/src/capture.cpp
index a0c83973..04ae243c 100644
--- a/capture/src/capture.cpp
+++ b/capture/src/capture.cpp
@@ -31,7 +31,7 @@
// technically not allowed there, even though in practice it would work.
// The good thing with C++11 atomics is that we can use atomic<bool> instead
// here and be on the actually supported path.
-static std::atomic<bool> s_disconnect;
+static std::atomic<bool> s_disconnect { false };
void SigInt( int )
{