From 28611bfaf785b9459fc2c7259e31fb097496e24b Mon Sep 17 00:00:00 2001 From: David Wells Date: Thu, 3 May 2018 20:29:15 -0400 Subject: [PATCH] Mark a few file-specific variables as static. --- source/base/exceptions.cc | 6 +++--- source/lac/constraint_matrix.cc | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/source/base/exceptions.cc b/source/base/exceptions.cc index 4e3873f1d3..ac83e72a92 100644 --- a/source/base/exceptions.cc +++ b/source/base/exceptions.cc @@ -42,21 +42,21 @@ DEAL_II_NAMESPACE_OPEN namespace deal_II_exceptions { - std::string additional_assert_output; + static std::string additional_assert_output; void set_additional_assert_output (const char *const p) { additional_assert_output = p; } - bool show_stacktrace = true; + static bool show_stacktrace = true; void suppress_stacktrace_in_exceptions () { show_stacktrace = false; } - bool abort_on_exception = true; + static bool abort_on_exception = true; void disable_abort_on_exception () { diff --git a/source/lac/constraint_matrix.cc b/source/lac/constraint_matrix.cc index e17c372269..5cd0e16dd6 100644 --- a/source/lac/constraint_matrix.cc +++ b/source/lac/constraint_matrix.cc @@ -1475,7 +1475,7 @@ ONLY_MATRIX_FUNCTIONS(PETScWrappers::MPI::BlockSparseMatrix); namespace internals { #define SCRATCH_INITIALIZER(MatrixScalar,VectorScalar,Name) \ - ConstraintMatrixData::ScratchData scratch_data_initializer_##Name; \ + static ConstraintMatrixData::ScratchData scratch_data_initializer_##Name; \ template <> Threads::ThreadLocalStorage::ScratchData> \ ConstraintMatrixData::scratch_data(scratch_data_initializer_##Name) -- 2.39.5