Commit 0ff319cb authored by Alexander Alekhin's avatar Alexander Alekhin

build: eliminate hdf5 warnings

parent e36e2ff0
......@@ -433,8 +433,8 @@ void HDF5Impl::dscreate( const int rows, const int cols, const int type,
String dslabel, const int compresslevel,
const vector<int>& dims_chunks ) const
{
CV_Assert( &dims_chunks[0] == NULL || dims_chunks.size() == 2 );
dscreate( rows, cols, type, dslabel, compresslevel, &dims_chunks[0] );
CV_Assert( dims_chunks.empty() || dims_chunks.size() == 2 );
dscreate( rows, cols, type, dslabel, compresslevel, dims_chunks.empty() ? NULL : &(dims_chunks[0]) );
}
void HDF5Impl::dscreate( const int rows, const int cols, const int type,
......@@ -466,10 +466,10 @@ void HDF5Impl::dscreate( const vector<int>& sizes, const int type,
String dslabel, const int compresslevel,
const vector<int>& dims_chunks ) const
{
CV_Assert( &dims_chunks[0] == NULL || dims_chunks.size() == sizes.size() );
CV_Assert( dims_chunks.empty() || dims_chunks.size() == sizes.size() );
const int n_dims = (int) sizes.size();
dscreate( n_dims, &sizes[0], type, dslabel, compresslevel, &dims_chunks[0] );
dscreate( n_dims, &sizes[0], type, dslabel, compresslevel, dims_chunks.empty() ? NULL : &(dims_chunks[0]) );
}
void HDF5Impl::dscreate( const int n_dims, const int* sizes, const int type,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment