Browse Source

Fix warnings with Clang

add-code-of-conduct-1
Trevor Irons 5 years ago
parent
commit
712a485158
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      Modules/FDEM1D/include/FHT.h

+ 3
- 3
Modules/FDEM1D/include/FHT.h View File

@@ -169,8 +169,8 @@ namespace Lemma {
169 169
 
170 170
     }; // -----  end of class  FHT  ----
171 171
 
172
-    // Forward declarations
173
-/*
172
+    // Clang wants forward declarations, MSVC doesn't
173
+#if defined( __clang__) || defined(__GNUC__) || defined(__GNUG__) || defined(__ICC) || defined(__INTEL_COMPILER)
174 174
     template<>
175 175
     const Eigen::Matrix<Real, Eigen::Dynamic, 3>  FHT<FHTKEY201>::WT;
176 176
     template<>
@@ -185,7 +185,7 @@ namespace Lemma {
185 185
     const Eigen::Matrix<Real, Eigen::Dynamic, 3>  FHT<FHTKONG241>::WT;
186 186
     template<>
187 187
     const Eigen::Matrix<Real, Eigen::Dynamic, 3>  FHT<IRONS>::WT;
188
-*/
188
+#endif
189 189
 
190 190
     template < HANKELTRANSFORMTYPE Type >
191 191
     Complex FHT<Type>::Zgauss(const int& ii, const Lemma::EMMODE& mode, const int& jj, const Real& val,

Loading…
Cancel
Save