fixed many warnings from GCC 4.6.1
This commit is contained in:
@@ -169,7 +169,7 @@ int Sampler::hasbars()
|
||||
|
||||
void Sampler::timing()
|
||||
{
|
||||
uchar light, dark = getpixel(9, 0);
|
||||
/*uchar light, dark = getpixel(9, 0);
|
||||
for (int i = 1; i < 3; i += 2) {
|
||||
light = getpixel(9, i);
|
||||
// if (light <= dark)
|
||||
@@ -177,7 +177,7 @@ void Sampler::timing()
|
||||
dark = getpixel(9, i + 1);
|
||||
// if (up <= down)
|
||||
// goto endo;
|
||||
}
|
||||
}*/
|
||||
}
|
||||
|
||||
CvMat *Sampler::extract()
|
||||
@@ -528,8 +528,8 @@ namespace
|
||||
line(image, code.corners[2], code.corners[3], c);
|
||||
line(image, code.corners[3], code.corners[0], c);
|
||||
string code_text(code.msg,4);
|
||||
int baseline = 0;
|
||||
Size sz = getTextSize(code_text, CV_FONT_HERSHEY_SIMPLEX, 1, 1, &baseline);
|
||||
//int baseline = 0;
|
||||
//Size sz = getTextSize(code_text, CV_FONT_HERSHEY_SIMPLEX, 1, 1, &baseline);
|
||||
putText(image, code_text, code.corners[0], CV_FONT_HERSHEY_SIMPLEX, 0.8, c2, 1, CV_AA, false);
|
||||
}
|
||||
cv::Mat& image;
|
||||
|
||||
@@ -657,8 +657,6 @@ CV_IMPL int
|
||||
cvRunHaarClassifierCascadeSum( const CvHaarClassifierCascade* _cascade,
|
||||
CvPoint pt, double& stage_sum, int start_stage )
|
||||
{
|
||||
int result = -1;
|
||||
|
||||
int p_offset, pq_offset;
|
||||
int i, j;
|
||||
double mean, variance_norm_factor;
|
||||
@@ -690,12 +688,9 @@ cvRunHaarClassifierCascadeSum( const CvHaarClassifierCascade* _cascade,
|
||||
|
||||
if( cascade->is_tree )
|
||||
{
|
||||
CvHidHaarStageClassifier* ptr;
|
||||
CvHidHaarStageClassifier* ptr = cascade->stage_classifier;
|
||||
assert( start_stage == 0 );
|
||||
|
||||
result = 1;
|
||||
ptr = cascade->stage_classifier;
|
||||
|
||||
while( ptr )
|
||||
{
|
||||
stage_sum = 0.0;
|
||||
|
||||
@@ -929,7 +929,9 @@ void orUnaligned8u(const uchar * src, const int src_stride,
|
||||
{
|
||||
#if CV_SSE2
|
||||
volatile bool haveSSE2 = checkHardwareSupport(CV_CPU_SSE2);
|
||||
#if CV_SSE3
|
||||
volatile bool haveSSE3 = checkHardwareSupport(CV_CPU_SSE3);
|
||||
#endif
|
||||
bool src_aligned = reinterpret_cast<unsigned long long>(src) % 16 == 0;
|
||||
#endif
|
||||
|
||||
@@ -1203,7 +1205,9 @@ void similarity(const std::vector<Mat>& linear_memories, const Template& templ,
|
||||
|
||||
#if CV_SSE2
|
||||
volatile bool haveSSE2 = checkHardwareSupport(CV_CPU_SSE2);
|
||||
#if CV_SSE3
|
||||
volatile bool haveSSE3 = checkHardwareSupport(CV_CPU_SSE3);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
// Compute the similarity measure for this template by accumulating the contribution of
|
||||
@@ -1281,7 +1285,9 @@ void similarityLocal(const std::vector<Mat>& linear_memories, const Template& te
|
||||
|
||||
#if CV_SSE2
|
||||
volatile bool haveSSE2 = checkHardwareSupport(CV_CPU_SSE2);
|
||||
#if CV_SSE3
|
||||
volatile bool haveSSE3 = checkHardwareSupport(CV_CPU_SSE3);
|
||||
#endif
|
||||
__m128i* dst_ptr_sse = dst.ptr<__m128i>();
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user