[Gridflow-cvs] [svn] commit: r6161 - /trunk/src/opencv.cxx

svn-gridflow at artengine.ca svn-gridflow at artengine.ca
Mon Aug 16 18:11:06 EDT 2010


Author: matju
Date: Mon Aug 16 18:11:06 2010
New Revision: 6161

Log:
avoid another warning

Modified:
    trunk/src/opencv.cxx

Modified: trunk/src/opencv.cxx
==============================================================================
--- trunk/src/opencv.cxx (original)
+++ trunk/src/opencv.cxx Mon Aug 16 18:11:06 2010
@@ -104,8 +104,8 @@
 
 CvTermCriteria convert (const t_atom2 &a, CvTermCriteria *foo) {
 	USELIST;
-	CvTermCriteria tc;
-	tc.type = 0;
+	CvTermCriteria tc; tc.type = 0;
+	tc.max_iter = 0; tc.epsilon = 0; // avoid gcc warning
 	if (argc>0 && argv[0]!=gensym("nil")) {tc.type |= CV_TERMCRIT_ITER; tc.max_iter = GETI(0);}
 	if (argc>1 && argv[1]!=gensym("nil")) {tc.type |= CV_TERMCRIT_EPS ; tc.epsilon  = GETF(1);}
 	if (argc>2) RAISE("invalid CvTermCriteria (too many args)");



More information about the Gridflow-cvs mailing list