Browse Source

Fix warnings with Clang

add-code-of-conduct-1
Trevor Irons 6 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
 
169
 
170
     }; // -----  end of class  FHT  ----
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
     template<>
174
     template<>
175
     const Eigen::Matrix<Real, Eigen::Dynamic, 3>  FHT<FHTKEY201>::WT;
175
     const Eigen::Matrix<Real, Eigen::Dynamic, 3>  FHT<FHTKEY201>::WT;
176
     template<>
176
     template<>
185
     const Eigen::Matrix<Real, Eigen::Dynamic, 3>  FHT<FHTKONG241>::WT;
185
     const Eigen::Matrix<Real, Eigen::Dynamic, 3>  FHT<FHTKONG241>::WT;
186
     template<>
186
     template<>
187
     const Eigen::Matrix<Real, Eigen::Dynamic, 3>  FHT<IRONS>::WT;
187
     const Eigen::Matrix<Real, Eigen::Dynamic, 3>  FHT<IRONS>::WT;
188
-*/
188
+#endif
189
 
189
 
190
     template < HANKELTRANSFORMTYPE Type >
190
     template < HANKELTRANSFORMTYPE Type >
191
     Complex FHT<Type>::Zgauss(const int& ii, const Lemma::EMMODE& mode, const int& jj, const Real& val,
191
     Complex FHT<Type>::Zgauss(const int& ii, const Lemma::EMMODE& mode, const int& jj, const Real& val,

Loading…
Cancel
Save