瀏覽代碼

Fix warnings with Clang

add-code-of-conduct-1
Trevor Irons 5 年之前
父節點
當前提交
712a485158
共有 1 個檔案被更改,包括 3 行新增3 行删除
  1. 3
    3
      Modules/FDEM1D/include/FHT.h

+ 3
- 3
Modules/FDEM1D/include/FHT.h 查看文件

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…
取消
儲存