Fix MSVC 2019 warnings
[alexxy/gromacs.git] / src / gromacs / simd / impl_x86_avx_256 / impl_x86_avx_256_simd4_float.h
index f3b3a776d7558a776209b726429fcef8ec8fb4e2..e1b902794864c4313af9f56f3b57df8f64fc6567 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * This file is part of the GROMACS molecular simulation package.
  *
- * Copyright (c) 2014,2015,2019, by the GROMACS development team, led by
+ * Copyright (c) 2014,2015,2019,2020, by the GROMACS development team, led by
  * Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
  * and including many others, as listed in the AUTHORS file in the
  * top-level source directory and at http://www.gromacs.org.
@@ -49,8 +49,9 @@ namespace gmx
 class Simd4Float
 {
 public:
+    MSVC_DIAGNOSTIC_IGNORE(26495) // simdInternal_ is not being initialized!
     Simd4Float() {}
-
+    MSVC_DIAGNOSTIC_RESET
     Simd4Float(float f) : simdInternal_(_mm_set1_ps(f)) {}
 
     // Internal utility constructor to simplify return statements
@@ -62,8 +63,9 @@ public:
 class Simd4FBool
 {
 public:
+    MSVC_DIAGNOSTIC_IGNORE(26495) // simdInternal_ is not being initialized!
     Simd4FBool() {}
-
+    MSVC_DIAGNOSTIC_RESET
     //! \brief Construct from scalar bool
     Simd4FBool(bool b) : simdInternal_(_mm_castsi128_ps(_mm_set1_epi32(b ? 0xFFFFFFFF : 0))) {}