]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Always initialize a variable in AlignedVector. 18062/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Thu, 30 Jan 2025 16:53:15 +0000 (09:53 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Thu, 30 Jan 2025 16:53:15 +0000 (09:53 -0700)
include/deal.II/base/aligned_vector.h

index 973277db05136d1f2b3ede6db765656565b61bd3..8b34da278e0f00dd4ddb11480534b643b81c85cd 100644 (file)
@@ -1208,9 +1208,7 @@ inline AlignedVector<T>::AlignedVector()
   : elements(nullptr, Deleter(this))
   , used_elements_end(nullptr)
   , allocated_elements_end(nullptr)
-#  ifdef DEBUG
   , replicated_across_communicator(false)
-#  endif
 {}
 
 
@@ -1237,9 +1235,7 @@ inline AlignedVector<T>::AlignedVector(const size_type size, const T &init)
   : elements(nullptr, Deleter(this))
   , used_elements_end(nullptr)
   , allocated_elements_end(nullptr)
-#  ifdef DEBUG
   , replicated_across_communicator(false)
-#  endif
 {
   if (size > 0)
     resize(size, init);
@@ -1252,9 +1248,7 @@ inline AlignedVector<T>::AlignedVector(const AlignedVector<T> &vec)
   : elements(nullptr, Deleter(this))
   , used_elements_end(nullptr)
   , allocated_elements_end(nullptr)
-#  ifdef DEBUG
   , replicated_across_communicator(false)
-#  endif
 {
   // copy the data from vec
   reserve(vec.size());

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.