mirror of https://github.com/davisking/dlib.git
Minor changes to avoid compiler warnings in gcc
This commit is contained in:
parent
f829ad63db
commit
a1632e02fb
|
@ -93,7 +93,7 @@ namespace dlib
|
|||
eps = eps_;
|
||||
}
|
||||
|
||||
const scalar_type get_epsilon (
|
||||
scalar_type get_epsilon (
|
||||
) const { return eps; }
|
||||
|
||||
void set_max_cache_size (
|
||||
|
@ -149,7 +149,7 @@ namespace dlib
|
|||
C = C_;
|
||||
}
|
||||
|
||||
const scalar_type get_c (
|
||||
scalar_type get_c (
|
||||
) const
|
||||
{
|
||||
return C;
|
||||
|
|
|
@ -73,7 +73,7 @@ namespace dlib
|
|||
eps = eps_;
|
||||
}
|
||||
|
||||
const double get_epsilon (
|
||||
double get_epsilon (
|
||||
) const { return eps; }
|
||||
|
||||
void set_max_cache_size (
|
||||
|
|
|
@ -759,6 +759,7 @@ namespace
|
|||
matrix<double,N,N> v;
|
||||
|
||||
matrix<double,M,N> a2;
|
||||
a2 = 0;
|
||||
a2 = tmp(a/2);
|
||||
|
||||
|
||||
|
|
|
@ -155,7 +155,7 @@ namespace
|
|||
inline friend void serialize ( const very_simple_feature_extractor& item, std::ostream& out) { serialize(item.feat_image, out); }
|
||||
inline friend void deserialize ( very_simple_feature_extractor& item, std::istream& in ) { deserialize(item.feat_image, in); }
|
||||
|
||||
void copy_configuration ( const very_simple_feature_extractor& item){}
|
||||
void copy_configuration ( const very_simple_feature_extractor& ){}
|
||||
|
||||
private:
|
||||
array2d<unsigned char> feat_image;
|
||||
|
|
|
@ -85,9 +85,9 @@ namespace
|
|||
|
||||
template <typename EXP>
|
||||
bool reject_labeling (
|
||||
const std::vector<sample_type>& x,
|
||||
const matrix_exp<EXP>& y,
|
||||
unsigned long position
|
||||
const std::vector<sample_type>& ,
|
||||
const matrix_exp<EXP>& ,
|
||||
unsigned long
|
||||
) const
|
||||
{
|
||||
called_rejct_labeling = true;
|
||||
|
|
Loading…
Reference in New Issue