1. fix warning from Xcode 7.x

2. fixed parsing of "cat[range_spec]ord[range_spec]" type specification string when using ml::TrainData::loadFromCSV(). Thanks to A. Kaehler for reporting it
This commit is contained in:
Vadim Pisarevsky 2016-08-04 12:52:10 +03:00
parent b2698f24b0
commit d7ee62f03b
2 changed files with 1 additions and 4 deletions

View File

@ -747,9 +747,6 @@ public:
}
}
while(*stopstring != ']');
if( stopstring[1] != '\0' && stopstring[1] != ',')
CV_Error( CV_StsBadArg, errmsg );
}
}

View File

@ -371,8 +371,8 @@ public:
class PerfSkipTestException: public cv::Exception
{
int dummy; // workaround for MacOSX Xcode 7.3 bug (don't make class "empty")
public:
int dummy; // workaround for MacOSX Xcode 7.3 bug (don't make class "empty")
PerfSkipTestException() : dummy(0) {}
};