Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /home/saphire/shogun/src/shogun/classifier/svm/NewtonSVM.cpp: In member function ‘void shogun::CNewtonSVM::line_search_linear(shogun::SGVector<double>)’:
- /home/saphire/shogun/src/shogun/classifier/svm/NewtonSVM.cpp:171:26: warning: declaration of ‘sv’ shadows a member of ‘shogun::CNewtonSVM’ [-Wshadow]
- SGVector<int32_t> sv(x_n);
- ^
- In file included from /home/saphire/shogun/src/shogun/classifier/svm/NewtonSVM.cpp:10:0:
- /home/saphire/shogun/src/shogun/classifier/svm/NewtonSVM.h:108:21: note: shadowed declaration is here
- SGVector<int32_t> sv;
- ^~
- /home/saphire/shogun/src/shogun/classifier/svm/SGDQN.cpp: In member function ‘virtual bool shogun::CSGDQN::train(shogun::CFeatures*)’:
- /home/saphire/shogun/src/shogun/classifier/svm/SGDQN.cpp:133:12: warning: unused variable ‘e’ [-Wunused-variable]
- for (auto e : SG_PROGRESS(range(epochs)))
- ^
- /home/saphire/shogun/src/shogun/clustering/KMeansMiniBatch.cpp: In member function ‘void shogun::CKMeansMiniBatch::minibatch_KMeans()’:
- /home/saphire/shogun/src/shogun/clustering/KMeansMiniBatch.cpp:79:12: warning: unused variable ‘i’ [-Wunused-variable]
- for (auto i : SG_PROGRESS(range(max_iter)))
- ^
- /home/saphire/shogun/src/shogun/converter/ica/FastICA.cpp: In member function ‘virtual void shogun::CFastICA::fit_dense(shogun::CDenseFeatures<double>*)’:
- /home/saphire/shogun/src/shogun/converter/ica/FastICA.cpp:128:12: warning: unused variable ‘i’ [-Wunused-variable]
- for (auto i : SG_PROGRESS(range(0, max_iter), [&] { return lim > tol; }))
- ^
- /home/saphire/shogun/src/shogun/evaluation/StratifiedCrossValidationSplitting.cpp: In member function ‘virtual void shogun::CStratifiedCrossValidationSplitting::build_subsets()’:
- /home/saphire/shogun/src/shogun/evaluation/StratifiedCrossValidationSplitting.cpp:72:12: warning: unused variable ‘i’ [-Wunused-variable]
- for (auto i : range(classes.size()))
- ^
- /home/saphire/shogun/src/shogun/features/Alphabet.cpp: In instantiation of ‘static void shogun::CAlphabet::translate_from_single_order_reversed(ST*, int32_t, int32_t, int32_t, int32_t) [with ST = bool; int32_t = int]’:
- /home/saphire/shogun/src/shogun/features/Alphabet.cpp:1003:152: required from here
- /home/saphire/shogun/src/shogun/features/Alphabet.cpp:814:18: warning: ‘<<’ in boolean context, did you mean ‘<’ ? [-Wint-in-bool-context]
- value= (value << max_val);
- ~~~~~~~^~~~~~~~~~~
- /home/saphire/shogun/src/shogun/features/Alphabet.cpp: In instantiation of ‘static void shogun::CAlphabet::translate_from_single_order_reversed(ST*, int32_t, int32_t, int32_t, int32_t, int32_t) [with ST = bool; int32_t = int]’:
- /home/saphire/shogun/src/shogun/features/Alphabet.cpp:1014:165: required from here
- /home/saphire/shogun/src/shogun/features/Alphabet.cpp:935:18: warning: ‘<<’ in boolean context, did you mean ‘<’ ? [-Wint-in-bool-context]
- value= value << max_val;
- ~~~~~~^~~~~~~~~~
- /home/saphire/shogun/src/shogun/features/Alphabet.cpp:941:18: warning: ‘<<’ in boolean context, did you mean ‘<’ ? [-Wint-in-bool-context]
- value= value << max_val;
- ~~~~~~^~~~~~~~~~
- /home/saphire/shogun/src/shogun/features/StringFeatures.cpp: In instantiation of ‘ST shogun::CStringFeatures<ST>::embed_word(ST*, int32_t) [with ST = bool; int32_t = int]’:
- /home/saphire/shogun/src/shogun/features/StringFeatures.cpp:2048:16: required from here
- /home/saphire/shogun/src/shogun/features/StringFeatures.cpp:1412:8: warning: ‘<<’ in boolean context, did you mean ‘<’ ? [-Wint-in-bool-context]
- value<<=nbits;
- ~~~~~^~~~~~~~
- /home/saphire/shogun/src/shogun/features/streaming/StreamingSparseFeatures.cpp: In instantiation of ‘static T shogun::CStreamingSparseFeatures<T>::sparse_dot(T, shogun::SGSparseVectorEntry<T>*, int32_t, shogun::SGSparseVectorEntry<T>*, int32_t) [with T = bool; int32_t = int]’:
- /home/saphire/shogun/src/shogun/features/streaming/StreamingSparseFeatures.cpp:371:16: required from here
- /home/saphire/shogun/src/shogun/features/streaming/StreamingSparseFeatures.cpp:71:15: warning: ‘*’ in boolean context, suggest ‘&&’ instead [-Wint-in-bool-context]
- result=alpha*SGSparseVector<T>::sparse_dot(asv, bsv);
- ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- /home/saphire/shogun/src/shogun/kernel/string/WeightedDegreePositionStringKernel.cpp: In member function ‘float64_t* shogun::CWeightedDegreePositionStringKernel::compute_scoring(int32_t, int32_t&, int32_t&, float64_t*, int32_t, int32_t*, float64_t*)’:
- /home/saphire/shogun/src/shogun/kernel/string/WeightedDegreePositionStringKernel.cpp:1417:12: warning: declaration of ‘k’ shadows a previous local [-Wshadow]
- for (auto k : SG_PROGRESS(range(max_degree)))
- ^
- /home/saphire/shogun/src/shogun/kernel/string/WeightedDegreePositionStringKernel.cpp:1359:10: note: shadowed declaration is here
- int32_t k;
- ^
- /home/saphire/shogun/src/shogun/lib/SGStringList.cpp: In member function ‘shogun::SGStringList<T> shogun::SGStringList<T>::clone() const’:
- /home/saphire/shogun/src/shogun/lib/SGStringList.cpp:96:7: warning: declaration of ‘strings’ shadows a member of ‘shogun::SGStringList<T>’ [-Wshadow]
- auto strings = SG_MALLOC(SGString<T>, num_strings);
- ^~~~~~~
- In file included from /home/saphire/shogun/src/shogun/lib/SGStringList.cpp:5:0:
- /home/saphire/shogun/src/shogun/lib/SGStringList.h:88:15: note: shadowed declaration is here
- SGString<T>* strings;
- ^~~~~~~
- /home/saphire/shogun/src/shogun/lib/SGStringList.cpp: In instantiation of ‘shogun::SGStringList<T> shogun::SGStringList<T>::clone() const [with T = bool]’:
- /home/saphire/shogun/src/shogun/lib/SGStringList.cpp:104:16: required from here
- /home/saphire/shogun/src/shogun/lib/SGStringList.cpp:96:7: warning: declaration of ‘strings’ shadows a member of ‘shogun::SGStringList<bool>’ [-Wshadow]
- auto strings = SG_MALLOC(SGString<T>, num_strings);
- ^~~~~~~
- In file included from /home/saphire/shogun/src/shogun/lib/SGStringList.cpp:5:0:
- /home/saphire/shogun/src/shogun/lib/SGStringList.h:88:15: note: shadowed declaration is here
- SGString<T>* strings;
- ^~~~~~~
- /home/saphire/shogun/src/shogun/lib/SGStringList.cpp: In instantiation of ‘shogun::SGStringList<T> shogun::SGStringList<T>::clone() const [with T = char]’:
- /home/saphire/shogun/src/shogun/lib/SGStringList.cpp:105:16: required from here
- /home/saphire/shogun/src/shogun/lib/SGStringList.cpp:96:7: warning: declaration of ‘strings’ shadows a member of ‘shogun::SGStringList<char>’ [-Wshadow]
- auto strings = SG_MALLOC(SGString<T>, num_strings);
- ^~~~~~~
- In file included from /home/saphire/shogun/src/shogun/lib/SGStringList.cpp:5:0:
- /home/saphire/shogun/src/shogun/lib/SGStringList.h:88:15: note: shadowed declaration is here
- SGString<T>* strings;
- ^~~~~~~
- /home/saphire/shogun/src/shogun/lib/SGStringList.cpp: In instantiation of ‘shogun::SGStringList<T> shogun::SGStringList<T>::clone() const [with T = signed char]’:
- /home/saphire/shogun/src/shogun/lib/SGStringList.cpp:106:16: required from here
- /home/saphire/shogun/src/shogun/lib/SGStringList.cpp:96:7: warning: declaration of ‘strings’ shadows a member of ‘shogun::SGStringList<signed char>’ [-Wshadow]
- auto strings = SG_MALLOC(SGString<T>, num_strings);
- ^~~~~~~
- In file included from /home/saphire/shogun/src/shogun/lib/SGStringList.cpp:5:0:
- /home/saphire/shogun/src/shogun/lib/SGStringList.h:88:15: note: shadowed declaration is here
- SGString<T>* strings;
- ^~~~~~~
- /home/saphire/shogun/src/shogun/lib/SGStringList.cpp: In instantiation of ‘shogun::SGStringList<T> shogun::SGStringList<T>::clone() const [with T = unsigned char]’:
- /home/saphire/shogun/src/shogun/lib/SGStringList.cpp:107:16: required from here
- /home/saphire/shogun/src/shogun/lib/SGStringList.cpp:96:7: warning: declaration of ‘strings’ shadows a member of ‘shogun::SGStringList<unsigned char>’ [-Wshadow]
- auto strings = SG_MALLOC(SGString<T>, num_strings);
- ^~~~~~~
- In file included from /home/saphire/shogun/src/shogun/lib/SGStringList.cpp:5:0:
- /home/saphire/shogun/src/shogun/lib/SGStringList.h:88:15: note: shadowed declaration is here
- SGString<T>* strings;
- ^~~~~~~
- /home/saphire/shogun/src/shogun/lib/SGStringList.cpp: In instantiation of ‘shogun::SGStringList<T> shogun::SGStringList<T>::clone() const [with T = short int]’:
- /home/saphire/shogun/src/shogun/lib/SGStringList.cpp:108:16: required from here
- /home/saphire/shogun/src/shogun/lib/SGStringList.cpp:96:7: warning: declaration of ‘strings’ shadows a member of ‘shogun::SGStringList<short int>’ [-Wshadow]
- auto strings = SG_MALLOC(SGString<T>, num_strings);
- ^~~~~~~
- In file included from /home/saphire/shogun/src/shogun/lib/SGStringList.cpp:5:0:
- /home/saphire/shogun/src/shogun/lib/SGStringList.h:88:15: note: shadowed declaration is here
- SGString<T>* strings;
- ^~~~~~~
- /home/saphire/shogun/src/shogun/lib/SGStringList.cpp: In instantiation of ‘shogun::SGStringList<T> shogun::SGStringList<T>::clone() const [with T = short unsigned int]’:
- /home/saphire/shogun/src/shogun/lib/SGStringList.cpp:109:16: required from here
- /home/saphire/shogun/src/shogun/lib/SGStringList.cpp:96:7: warning: declaration of ‘strings’ shadows a member of ‘shogun::SGStringList<short unsigned int>’ [-Wshadow]
- auto strings = SG_MALLOC(SGString<T>, num_strings);
- ^~~~~~~
- In file included from /home/saphire/shogun/src/shogun/lib/SGStringList.cpp:5:0:
- /home/saphire/shogun/src/shogun/lib/SGStringList.h:88:15: note: shadowed declaration is here
- SGString<T>* strings;
- ^~~~~~~
- /home/saphire/shogun/src/shogun/lib/SGStringList.cpp: In instantiation of ‘shogun::SGStringList<T> shogun::SGStringList<T>::clone() const [with T = int]’:
- /home/saphire/shogun/src/shogun/lib/SGStringList.cpp:110:16: required from here
- /home/saphire/shogun/src/shogun/lib/SGStringList.cpp:96:7: warning: declaration of ‘strings’ shadows a member of ‘shogun::SGStringList<int>’ [-Wshadow]
- auto strings = SG_MALLOC(SGString<T>, num_strings);
- ^~~~~~~
- In file included from /home/saphire/shogun/src/shogun/lib/SGStringList.cpp:5:0:
- /home/saphire/shogun/src/shogun/lib/SGStringList.h:88:15: note: shadowed declaration is here
- SGString<T>* strings;
- ^~~~~~~
- /home/saphire/shogun/src/shogun/lib/SGStringList.cpp: In instantiation of ‘shogun::SGStringList<T> shogun::SGStringList<T>::clone() const [with T = unsigned int]’:
- /home/saphire/shogun/src/shogun/lib/SGStringList.cpp:111:16: required from here
- /home/saphire/shogun/src/shogun/lib/SGStringList.cpp:96:7: warning: declaration of ‘strings’ shadows a member of ‘shogun::SGStringList<unsigned int>’ [-Wshadow]
- auto strings = SG_MALLOC(SGString<T>, num_strings);
- ^~~~~~~
- In file included from /home/saphire/shogun/src/shogun/lib/SGStringList.cpp:5:0:
- /home/saphire/shogun/src/shogun/lib/SGStringList.h:88:15: note: shadowed declaration is here
- SGString<T>* strings;
- ^~~~~~~
- /home/saphire/shogun/src/shogun/lib/SGStringList.cpp: In instantiation of ‘shogun::SGStringList<T> shogun::SGStringList<T>::clone() const [with T = long int]’:
- /home/saphire/shogun/src/shogun/lib/SGStringList.cpp:112:16: required from here
- /home/saphire/shogun/src/shogun/lib/SGStringList.cpp:96:7: warning: declaration of ‘strings’ shadows a member of ‘shogun::SGStringList<long int>’ [-Wshadow]
- auto strings = SG_MALLOC(SGString<T>, num_strings);
- ^~~~~~~
- In file included from /home/saphire/shogun/src/shogun/lib/SGStringList.cpp:5:0:
- /home/saphire/shogun/src/shogun/lib/SGStringList.h:88:15: note: shadowed declaration is here
- SGString<T>* strings;
- ^~~~~~~
- /home/saphire/shogun/src/shogun/lib/SGStringList.cpp: In instantiation of ‘shogun::SGStringList<T> shogun::SGStringList<T>::clone() const [with T = long unsigned int]’:
- /home/saphire/shogun/src/shogun/lib/SGStringList.cpp:113:16: required from here
- /home/saphire/shogun/src/shogun/lib/SGStringList.cpp:96:7: warning: declaration of ‘strings’ shadows a member of ‘shogun::SGStringList<long unsigned int>’ [-Wshadow]
- auto strings = SG_MALLOC(SGString<T>, num_strings);
- ^~~~~~~
- In file included from /home/saphire/shogun/src/shogun/lib/SGStringList.cpp:5:0:
- /home/saphire/shogun/src/shogun/lib/SGStringList.h:88:15: note: shadowed declaration is here
- SGString<T>* strings;
- ^~~~~~~
- /home/saphire/shogun/src/shogun/lib/SGStringList.cpp: In instantiation of ‘shogun::SGStringList<T> shogun::SGStringList<T>::clone() const [with T = float]’:
- /home/saphire/shogun/src/shogun/lib/SGStringList.cpp:114:16: required from here
- /home/saphire/shogun/src/shogun/lib/SGStringList.cpp:96:7: warning: declaration of ‘strings’ shadows a member of ‘shogun::SGStringList<float>’ [-Wshadow]
- auto strings = SG_MALLOC(SGString<T>, num_strings);
- ^~~~~~~
- In file included from /home/saphire/shogun/src/shogun/lib/SGStringList.cpp:5:0:
- /home/saphire/shogun/src/shogun/lib/SGStringList.h:88:15: note: shadowed declaration is here
- SGString<T>* strings;
- ^~~~~~~
- /home/saphire/shogun/src/shogun/lib/SGStringList.cpp: In instantiation of ‘shogun::SGStringList<T> shogun::SGStringList<T>::clone() const [with T = double]’:
- /home/saphire/shogun/src/shogun/lib/SGStringList.cpp:115:16: required from here
- /home/saphire/shogun/src/shogun/lib/SGStringList.cpp:96:7: warning: declaration of ‘strings’ shadows a member of ‘shogun::SGStringList<double>’ [-Wshadow]
- auto strings = SG_MALLOC(SGString<T>, num_strings);
- ^~~~~~~
- In file included from /home/saphire/shogun/src/shogun/lib/SGStringList.cpp:5:0:
- /home/saphire/shogun/src/shogun/lib/SGStringList.h:88:15: note: shadowed declaration is here
- SGString<T>* strings;
- ^~~~~~~
- /home/saphire/shogun/src/shogun/lib/SGStringList.cpp: In instantiation of ‘shogun::SGStringList<T> shogun::SGStringList<T>::clone() const [with T = long double]’:
- /home/saphire/shogun/src/shogun/lib/SGStringList.cpp:116:16: required from here
- /home/saphire/shogun/src/shogun/lib/SGStringList.cpp:96:7: warning: declaration of ‘strings’ shadows a member of ‘shogun::SGStringList<long double>’ [-Wshadow]
- auto strings = SG_MALLOC(SGString<T>, num_strings);
- ^~~~~~~
- In file included from /home/saphire/shogun/src/shogun/lib/SGStringList.cpp:5:0:
- /home/saphire/shogun/src/shogun/lib/SGStringList.h:88:15: note: shadowed declaration is here
- SGString<T>* strings;
- ^~~~~~~
- In file included from /home/saphire/shogun/src/shogun/lib/SGVector.cpp:12:0:
- /home/saphire/shogun/src/shogun/lib/SGVector.h: In instantiation of ‘static void shogun::SGVector<T>::vector_multiply(T*, const T*, const T*, int32_t) [with T = bool; int32_t = int]’:
- /home/saphire/shogun/src/shogun/lib/SGVector.cpp:1076:16: required from here
- /home/saphire/shogun/src/shogun/lib/SGVector.h:423:21: warning: ‘*’ in boolean context, suggest ‘&&’ instead [-Wint-in-bool-context]
- target[i]=v1[i]*v2[i];
- ~~~~~^~~~
- /home/saphire/shogun/src/shogun/lib/SGVector.cpp: In instantiation of ‘static void shogun::SGVector<T>::scale_vector(T, T*, int32_t) [with T = bool; int32_t = int]’:
- /home/saphire/shogun/src/shogun/lib/SGVector.cpp:1076:16: required from here
- /home/saphire/shogun/src/shogun/lib/SGVector.cpp:921:9: warning: ‘*’ in boolean context, suggest ‘&&’ instead [-Wint-in-bool-context]
- vec[i]*=alpha;
- ~~~~~~^~~~~~~
- In file included from /home/saphire/shogun/src/shogun/lib/SGVector.cpp:12:0:
- /home/saphire/shogun/src/shogun/lib/SGVector.h: In instantiation of ‘static T shogun::SGVector<T>::product(T*, int32_t) [with T = bool; int32_t = int]’:
- /home/saphire/shogun/src/shogun/lib/SGVector.cpp:1076:16: required from here
- /home/saphire/shogun/src/shogun/lib/SGVector.h:467:11: warning: ‘*’ in boolean context, suggest ‘&&’ instead [-Wint-in-bool-context]
- result*=vec[i];
- ~~~~~~^~~~~~
- /home/saphire/shogun/src/shogun/machine/StochasticGBMachine.cpp: In member function ‘virtual bool shogun::CStochasticGBMachine::train_machine(shogun::CFeatures*)’:
- /home/saphire/shogun/src/shogun/machine/StochasticGBMachine.cpp:191:12: warning: unused variable ‘i’ [-Wunused-variable]
- for (auto i : SG_PROGRESS(range(m_num_iter)))
- ^
- In file included from /home/saphire/shogun/src/shogun/lib/SGMatrix.h:13:0,
- from /home/saphire/shogun/src/shogun/mathematics/Statistics.cpp:10:
- /home/saphire/shogun/src/shogun/io/SGIO.h: In static member function ‘static shogun::CStatistics::SigmoidParamters shogun::CStatistics::fit_sigmoid(shogun::SGVector<double>, shogun::SGVector<double>, index_t, float64_t, float64_t, float64_t)’:
- /home/saphire/shogun/src/shogun/io/SGIO.h:173:42: warning: ‘g2’ may be used uninitialized in this function [-Wmaybe-uninitialized]
- #define SG_SWARNING(...) { sg_io->message(MSG_WARN,__PRETTY_FUNCTION__, __FILE__, __LINE__, __VA_ARGS__); }
- ^
- /home/saphire/shogun/src/shogun/mathematics/Statistics.cpp:866:12: note: ‘g2’ was declared here
- float64_t g2;
- ^~
- In file included from /home/saphire/shogun/src/shogun/lib/SGMatrix.h:13:0,
- from /home/saphire/shogun/src/shogun/mathematics/Statistics.cpp:10:
- /home/saphire/shogun/src/shogun/io/SGIO.h:173:42: warning: ‘g1’ may be used uninitialized in this function [-Wmaybe-uninitialized]
- #define SG_SWARNING(...) { sg_io->message(MSG_WARN,__PRETTY_FUNCTION__, __FILE__, __LINE__, __VA_ARGS__); }
- ^
- /home/saphire/shogun/src/shogun/mathematics/Statistics.cpp:865:12: note: ‘g1’ was declared here
- float64_t g1;
- ^~
- /home/saphire/shogun/src/shogun/mathematics/linalg/backend/eigen/BasicOps.cpp: In instantiation of ‘void shogun::LinalgBackendEigen::pinvh_impl(const shogun::SGMatrix<T>&, shogun::SGMatrix<T>&) const [with T = float]’:
- /home/saphire/shogun/src/shogun/mathematics/linalg/backend/eigen/BasicOps.cpp:85:1: required from here
- /home/saphire/shogun/src/shogun/mathematics/linalg/backend/eigen/BasicOps.cpp:261:41: warning: variable ‘A_eig’ set but not used [-Wunused-but-set-variable]
- typename SGMatrix<T>::EigenMatrixXtMap A_eig = A;
- ^~~~~
- /home/saphire/shogun/src/shogun/mathematics/linalg/backend/eigen/BasicOps.cpp: In instantiation of ‘void shogun::LinalgBackendEigen::pinvh_impl(const shogun::SGMatrix<T>&, shogun::SGMatrix<T>&) const [with T = double]’:
- /home/saphire/shogun/src/shogun/mathematics/linalg/backend/eigen/BasicOps.cpp:85:1: required from here
- /home/saphire/shogun/src/shogun/mathematics/linalg/backend/eigen/BasicOps.cpp:261:41: warning: variable ‘A_eig’ set but not used [-Wunused-but-set-variable]
- /home/saphire/shogun/src/shogun/mathematics/linalg/backend/eigen/BasicOps.cpp: In instantiation of ‘void shogun::LinalgBackendEigen::pinvh_impl(const shogun::SGMatrix<T>&, shogun::SGMatrix<T>&) const [with T = long double]’:
- /home/saphire/shogun/src/shogun/mathematics/linalg/backend/eigen/BasicOps.cpp:85:1: required from here
- /home/saphire/shogun/src/shogun/mathematics/linalg/backend/eigen/BasicOps.cpp:261:41: warning: variable ‘A_eig’ set but not used [-Wunused-but-set-variable]
- /home/saphire/shogun/src/shogun/mathematics/linalg/backend/eigen/BasicOps.cpp: In instantiation of ‘void shogun::LinalgBackendEigen::pinvh_impl(const shogun::SGMatrix<T>&, shogun::SGMatrix<T>&) const [with T = std::complex<double>]’:
- /home/saphire/shogun/src/shogun/mathematics/linalg/backend/eigen/BasicOps.cpp:85:1: required from here
- /home/saphire/shogun/src/shogun/mathematics/linalg/backend/eigen/BasicOps.cpp:261:41: warning: variable ‘A_eig’ set but not used [-Wunused-but-set-variable]
- /home/saphire/shogun/src/shogun/mathematics/linalg/backend/eigen/BasicOps.cpp: In instantiation of ‘void shogun::LinalgBackendEigen::rank_update_impl(shogun::SGMatrix<T>&, const shogun::SGVector<ST>&, T) const [with T = bool]’:
- /home/saphire/shogun/src/shogun/mathematics/linalg/backend/eigen/BasicOps.cpp:94:1: required from here
- /home/saphire/shogun/src/shogun/mathematics/linalg/backend/eigen/BasicOps.cpp:305:23: warning: ‘*’ in boolean context, suggest ‘&&’ instead [-Wint-in-bool-context]
- update = alpha * x * b[i];
- ~~~~~~~~~~^~~~
- /home/saphire/shogun/src/shogun/multiclass/LSHKNNSolver.cpp: In member function ‘virtual shogun::CMulticlassLabels* shogun::CLSHKNNSolver::classify_objects(shogun::CDistance*, int32_t, shogun::SGVector<int>&, shogun::SGVector<double>&) const’:
- /home/saphire/shogun/src/shogun/multiclass/LSHKNNSolver.cpp:117:1: warning: control reaches end of non-void function [-Wreturn-type]
- }
- ^
- /home/saphire/shogun/src/shogun/multiclass/tree/CARTree.cpp: In member function ‘void shogun::CCARTree::handle_missing_vecs_for_continuous_surrogate(shogun::SGMatrix<double>, const std::vector<int>&, std::vector<double>&, std::vector<int>&, shogun::SGVector<bool>, shogun::SGVector<double>, float64_t, index_t) const’:
- /home/saphire/shogun/src/shogun/multiclass/tree/CARTree.cpp:919:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
- for (index_t j = 0; j < intersect_vecs.size(); ++j)
- ~~^~~~~~~~~~~~~~~~~~~~~~~
- /home/saphire/shogun/src/shogun/multiclass/tree/CARTree.cpp: In member function ‘void shogun::CCARTree::handle_missing_vecs_for_nominal_surrogate(shogun::SGMatrix<double>, const std::vector<int>&, std::vector<double>&, const std::vector<int>&, shogun::SGVector<bool>, shogun::SGVector<double>, float64_t, index_t) const’:
- /home/saphire/shogun/src/shogun/multiclass/tree/CARTree.cpp:973:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
- for (index_t j = 0; j < intersect_vecs.size(); ++j)
- ~~^~~~~~~~~~~~~~~~~~~~~~~
- /home/saphire/shogun/src/shogun/multiclass/tree/CARTree.cpp:991:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
- for (int32_t k=0;k<intersect_vecs.size();++k)
- ~^~~~~~~~~~~~~~~~~~~~~~
- /home/saphire/shogun/src/shogun/multiclass/tree/CARTree.cpp:1005:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
- for (int32_t k=0;k<intersect_vecs.size();++k)
- ~^~~~~~~~~~~~~~~~~~~~~~
- /home/saphire/shogun/src/shogun/multiclass/tree/CARTree.cpp: In member function ‘void shogun::CCARTree::prune_by_cross_validation(shogun::CDenseFeatures<double>*, int32_t)’:
- /home/saphire/shogun/src/shogun/multiclass/tree/CARTree.cpp:1211:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
- for (index_t j = 0; j < train_indices.size(); ++j)
- ~~^~~~~~~~~~~~~~~~~~~~~~
- /home/saphire/shogun/src/shogun/multiclass/tree/CARTree.cpp:1226:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
- for (int32_t j=0;j<test_indices.size();++j)
- ~^~~~~~~~~~~~~~~~~~~~
- /home/saphire/shogun/src/shogun/preprocessor/KernelPCA.cpp: In member function ‘virtual shogun::CDenseFeatures<double>* shogun::CKernelPCA::apply_to_string_features(shogun::CFeatures*)’:
- /home/saphire/shogun/src/shogun/preprocessor/KernelPCA.cpp:192:54: warning: ‘*’ in boolean context, suggest ‘&&’ instead [-Wint-in-bool-context]
- SGMatrix<float64_t> new_feature_matrix(m_target_dim * num_vectors);
- ~~~~~~~~~~~~~^~~~~~~~~~~~~
- /home/saphire/shogun/src/shogun/preprocessor/SortWordString.cpp: In member function ‘virtual void shogun::CSortWordString::apply_to_string_list(shogun::SGStringList<short unsigned int>)’:
- /home/saphire/shogun/src/shogun/preprocessor/SortWordString.cpp:48:11: warning: unused variable ‘len’ [-Wunused-variable]
- int32_t len = 0 ;
- ^~~
- /home/saphire/shogun/src/shogun/regression/LinearRidgeRegression.cpp: In member function ‘bool shogun::CLinearRidgeRegression::train_machine_templated(const shogun::CDenseFeatures<T>*) [with T = double]’:
- /home/saphire/shogun/src/shogun/regression/LinearRidgeRegression.cpp:91:13: warning: ‘y_mean’ may be used uninitialized in this function [-Wmaybe-uninitialized]
- float64_t intercept = y_mean - linalg::dot(w, x_mean);
- ^~~~~~~~~
- /home/saphire/shogun/src/shogun/regression/LinearRidgeRegression.cpp: In member function ‘bool shogun::CLinearRidgeRegression::train_machine_templated(const shogun::CDenseFeatures<T>*) [with T = float]’:
- /home/saphire/shogun/src/shogun/regression/LinearRidgeRegression.cpp:91:32: warning: ‘y_mean’ may be used uninitialized in this function [-Wmaybe-uninitialized]
- float64_t intercept = y_mean - linalg::dot(w, x_mean);
- ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
- /home/saphire/shogun/src/shogun/regression/LinearRidgeRegression.cpp: In member function ‘bool shogun::CLinearRidgeRegression::train_machine_templated(const shogun::CDenseFeatures<T>*) [with T = long double]’:
- /home/saphire/shogun/src/shogun/regression/LinearRidgeRegression.cpp:91:32: warning: ‘y_mean’ may be used uninitialized in this function [-Wmaybe-uninitialized]
- float64_t intercept = y_mean - linalg::dot(w, x_mean);
- ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
- /home/saphire/shogun/build/src/interfaces/python/shogun.i:49: Error: Unable to find 'shogun_doxygen.i'
- /home/saphire/shogun/build/src/interfaces/python/shogun.i:51: Error: Extraneous #endif.
- make[2]: *** [src/interfaces/python/shogunPYTHON_wrap.cxx] Error 1
- make[1]: *** [src/interfaces/python/CMakeFiles/_interface_python.dir/all] Error 2
- make: *** [all] Error 2
Add Comment
Please, Sign In to add comment