1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 15:23:05 +04:00

Solve warnings, and adjusted the test case.

This commit is contained in:
MYLS
2016-06-19 02:00:32 +08:00
parent 882e4221e7
commit 958263d245
2 changed files with 8 additions and 8 deletions
+3 -3
View File
@@ -3498,7 +3498,7 @@ cvWriteRawData( CvFileStorage* fs, const void* _data, int len, const char* dt )
data += sizeof(size_t);
break;
default:
CV_Assert(!"elem_type is not support.");
CV_Error( CV_StsUnsupportedFormat, "Unsupported type" );
return;
}
@@ -3620,7 +3620,7 @@ cvReadRawDataSlice( const CvFileStorage* fs, CvSeqReader* reader,
data += sizeof(size_t);
break;
default:
CV_Assert(0);
CV_Error( CV_StsUnsupportedFormat, "Unsupported type" );
return;
}
}
@@ -3670,7 +3670,7 @@ cvReadRawDataSlice( const CvFileStorage* fs, CvSeqReader* reader,
data += sizeof(size_t);
break;
default:
CV_Assert(0);
CV_Error( CV_StsUnsupportedFormat, "Unsupported type" );
return;
}
}