mirror of
https://github.com/opencv/opencv.git
synced 2026-09-15 07:29:07 -05:00
Updated warning options for GCC; fixed new warnings.
This commit is contained in:
@@ -368,7 +368,7 @@ static void print_params(CvVSModule* pM, const char* module, const char* log_nam
|
||||
int main(int argc, char* argv[])
|
||||
{ /* Main function: */
|
||||
CvCapture* pCap = NULL;
|
||||
CvBlobTrackerAutoParam1 param = {0};
|
||||
CvBlobTrackerAutoParam1 param = {0,0,0,0,0,0,0,0};
|
||||
CvBlobTrackerAuto* pTracker = NULL;
|
||||
|
||||
//float scale = 1;
|
||||
|
||||
@@ -19,6 +19,7 @@ CvSeq* contours = 0;
|
||||
|
||||
static void on_trackbar(int pos)
|
||||
{
|
||||
(void)pos;
|
||||
IplImage* cnt_img = cvCreateImage( cvSize(w,w), 8, 3 );
|
||||
CvSeq* _contours = contours;
|
||||
int _levels = levels - 3;
|
||||
@@ -52,6 +53,7 @@ static void findCComp( IplImage* img )
|
||||
|
||||
int main(int argc, char* argv[])
|
||||
{
|
||||
(void)argc; (void)argv;
|
||||
int i, j;
|
||||
CvMemStorage* storage = cvCreateMemStorage(0);
|
||||
IplImage* img = cvCreateImage( cvSize(w,w), 8, 1 );
|
||||
|
||||
@@ -231,9 +231,7 @@ static void run(void)
|
||||
|
||||
int main( int argc, char** argv )
|
||||
{
|
||||
#ifdef _MSC_VER
|
||||
argc, argv;
|
||||
#endif
|
||||
(void)argc; (void)argv;
|
||||
help();
|
||||
run();
|
||||
return 0;
|
||||
|
||||
@@ -16,6 +16,7 @@ static void help(void)
|
||||
static void drawOptFlowMap(const CvMat* flow, CvMat* cflowmap, int step,
|
||||
double scale, CvScalar color)
|
||||
{
|
||||
(void)scale;
|
||||
int x, y;
|
||||
for( y = 0; y < cflowmap->rows; y += step)
|
||||
for( x = 0; x < cflowmap->cols; x += step)
|
||||
@@ -29,6 +30,7 @@ static void drawOptFlowMap(const CvMat* flow, CvMat* cflowmap, int step,
|
||||
|
||||
int main( int argc, char** argv )
|
||||
{
|
||||
(void)argc; (void)argv;
|
||||
CvCapture* capture = cvCreateCameraCapture(0);
|
||||
CvMat* prevgray = 0, *gray = 0, *flow = 0, *cflow = 0;
|
||||
|
||||
|
||||
@@ -17,6 +17,7 @@ int erode_dilate_pos = 0;
|
||||
// callback function for open/close trackbar
|
||||
static void OpenClose(int pos)
|
||||
{
|
||||
(void)pos;
|
||||
int n = open_close_pos - max_iters;
|
||||
int an = n > 0 ? n : -n;
|
||||
element = cvCreateStructuringElementEx( an*2+1, an*2+1, an, an, element_shape, 0 );
|
||||
@@ -37,6 +38,7 @@ static void OpenClose(int pos)
|
||||
// callback function for erode/dilate trackbar
|
||||
static void ErodeDilate(int pos)
|
||||
{
|
||||
(void)pos;
|
||||
int n = erode_dilate_pos - max_iters;
|
||||
int an = n > 0 ? n : -n;
|
||||
element = cvCreateStructuringElementEx( an*2+1, an*2+1, an, an, element_shape, 0 );
|
||||
|
||||
@@ -34,6 +34,7 @@ CvPoint pt1, pt2;
|
||||
|
||||
static void ON_SEGMENT(int a)
|
||||
{
|
||||
(void)a;
|
||||
cvPyrSegmentation(image0, image1, storage, &comp,
|
||||
level, threshold1+1, threshold2+1);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user