Skip to content

Commit

Permalink
Merge pull request #3634 from gartung/MagneticField-clang-workaround
Browse files Browse the repository at this point in the history
Static Analyser -- Temporary work around for clang 3.4 which is not parsing
  • Loading branch information
ktf committed May 2, 2014
2 parents 9d0dc4c + 9bdc48e commit 2d6c97b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion MagneticField/Engine/interface/MagneticField.h
Expand Up @@ -62,7 +62,9 @@ class MagneticField
//nominal field value
virtual int computeNominalValue() const;
mutable std::atomic<char> nominalValueCompiuted;
[[cms::thread_guard("nominalValueCompiuted")]] mutable int theNominalValue;
// [[cms::thread_guard("nominalValueCompiuted")]] mutable int theNominalValue;
// PG temporary fix for clang 3.4 which is not parsing thread_guard correctly
[[cms::thread_safe]] mutable int theNominalValue;
enum FooStates {kUnset, kSetting, kSet};
};

Expand Down

0 comments on commit 2d6c97b

Please sign in to comment.