[Bf-blender-cvs] [714dbf273ce] master: Clang Tidy: Fix warning

Hans Goudey noreply at git.blender.org
Thu Aug 27 21:19:02 CEST 2020


Commit: 714dbf273ce6393a0d2b57c3549830cc7df17750
Author: Hans Goudey
Date:   Thu Aug 27 14:18:06 2020 -0500
Branches: master
https://developer.blender.org/rB714dbf273ce6393a0d2b57c3549830cc7df17750

Clang Tidy: Fix warning

Fix readability-static-definition-in-anonymous-namespace in new code

===================================================================

M	intern/guardedalloc/intern/leak_detector.cc

===================================================================

diff --git a/intern/guardedalloc/intern/leak_detector.cc b/intern/guardedalloc/intern/leak_detector.cc
index bb816e7f2d3..0ecf2ed8ba7 100644
--- a/intern/guardedalloc/intern/leak_detector.cc
+++ b/intern/guardedalloc/intern/leak_detector.cc
@@ -31,7 +31,7 @@ char free_after_leak_detection_message[] =
 
 namespace {
 
-static bool fail_on_memleak = false;
+bool fail_on_memleak = false;
 
 class MemLeakPrinter {
  public:



More information about the Bf-blender-cvs mailing list