Преглед на файлове

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,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…
Отказ
Запис