fixed several gcc 4.1 warnings

This commit is contained in:
Vadim Pisarevsky
2010-10-21 18:30:57 +00:00
parent b80bdf324d
commit 4a14795eb6
15 changed files with 34 additions and 33 deletions

View File

@@ -10,7 +10,7 @@
#define min(a,b) (((a) < (b)) ? (a) : (b))
#endif
int sign(float r){
static inline int sign(float r){
if(r > 0.0001f) return 1;
if(r < -0.0001f) return -1;
return 0;
@@ -574,4 +574,4 @@ int addBordersToFeatureMaps(CvLSVMFeatureMap *map, const int bX, const int bY){
map->Map = new_data;
return LATENT_SVM_OK;
}
}