fixed a few warnings and bugs, including ticket #1079

pull/13383/head
Vadim Pisarevsky 14 years ago
parent b6c19d365f
commit 9df999154c
  1. 2
      modules/core/src/system.cpp
  2. 1
      modules/objdetect/src/_lsvm_tbbversion.h
  3. 2
      modules/objdetect/src/lsvmtbbversion.cpp
  4. 2
      modules/python/src1/gen.py
  5. 2
      modules/ts/include/opencv2/ts/ts.hpp
  6. 2
      samples/cpp/letter_recog.cpp
  7. 2
      samples/gpu/cascadeclassifier_nvidia_api.cpp

@ -72,7 +72,7 @@
#include <sys/time.h>
#include <time.h>
#ifdef __MACH__ && defined __APPLE__
#if defined __MACH__ && defined __APPLE__
#include <mach/mach.h>
#include <mach/mach_time.h>
#endif

@ -2,7 +2,6 @@
#define _LSVM_TBBVERSION_H
#include "_lsvm_matching.h"
#include "precomp.hpp"
/*
// Computation score function using TBB tasks

@ -1,3 +1,5 @@
#include "precomp.hpp"
#ifdef HAVE_TBB
#include "_lsvm_tbbversion.h"

@ -325,7 +325,7 @@ for nm,args,ty,flags in sorted(api):
ds_args += o2s(optional)
ds = "%s(%s) -> %s" % (nm, ds_args, str(ty))
print ds
#print ds
if has_optional(args):
entry = '{"%%s", (PyCFunction)pycv%s, METH_KEYWORDS, "%s"},' % (cname(nm), ds)

@ -5,7 +5,7 @@
#define GTEST_LINKED_AS_SHARED_LIBRARY 1
#endif
#include <cstdarg> // for va_list
#include <stdarg.h> // for va_list
#include "opencv2/ts/ts_gtest.h"
#include "opencv2/core/core.hpp"

@ -610,7 +610,7 @@ int build_nbayes_classifier( char* data_filename )
true_results[j - ntrain_samples] = responses->data.fl[j];
}
CvMat *result = cvCreateMat(1, nsamples_all - ntrain_samples, CV_32FC1);
(int)nbayes.predict(&sample, result);
nbayes.predict(&sample, result);
int true_resp = 0;
//int accuracy = 0;
for (int i = 0; i < nsamples_all - ntrain_samples; i++)

@ -1,4 +1,6 @@
#if _MSC_VER >= 1400
#pragma warning( disable : 4201 4408 4127 4100)
#endif
#include "cvconfig.h"
#include <iostream>

Loading…
Cancel
Save