Minor changes to avoid compiler warnings in gcc

This commit is contained in:
Davis King 2011-11-06 09:20:57 -05:00
parent f829ad63db
commit a1632e02fb
5 changed files with 8 additions and 7 deletions

View File

@ -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;

View File

@ -73,7 +73,7 @@ namespace dlib
eps = eps_;
}
const double get_epsilon (
double get_epsilon (
) const { return eps; }
void set_max_cache_size (

View File

@ -759,6 +759,7 @@ namespace
matrix<double,N,N> v;
matrix<double,M,N> a2;
a2 = 0;
a2 = tmp(a/2);

View File

@ -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;

View File

@ -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;