Explorar el Código

Fix warnings with Clang

add-code-of-conduct-1
Trevor Irons hace 5 años
padre
commit
712a485158
Se han modificado 1 ficheros con 3 adiciones y 3 borrados
  1. 3
    3
      Modules/FDEM1D/include/FHT.h

+ 3
- 3
Modules/FDEM1D/include/FHT.h Ver fichero

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…
Cancelar
Guardar