Skip to content

Commit

Permalink
Changed MagFields verbose::debugOut to constexpr to avoid threading p…
Browse files Browse the repository at this point in the history
…roblems

The thread-safey checker complains about the static verbose::debugOut.
Given that no code exists which changes the value after it is initialized
changing this to a constexpr has no functional effect. The default remains
the same 'false'. If one wants the debug output they have to edit the code
and recompile.
  • Loading branch information
Dr15Jones committed Oct 25, 2013
1 parent 3ad9025 commit 3739654
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion MagneticField/Layers/interface/MagVerbosity.h
Expand Up @@ -9,7 +9,7 @@


struct verbose {
static bool debugOut;
static constexpr bool debugOut = false;
};

#endif
Expand Down
3 changes: 0 additions & 3 deletions MagneticField/Layers/src/MagVerbosity.cc

This file was deleted.

0 comments on commit 3739654

Please sign in to comment.