mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-03-31 17:10:47 +08:00
[svn-r2189] Fixed some compiler warnings
This commit is contained in:
parent
7a52d6ce9b
commit
75574e92e1
@ -1572,10 +1572,10 @@ void test_datareg(void){
|
||||
free(drbuf);
|
||||
|
||||
}
|
||||
void test_nestcomp(){
|
||||
void test_nestcomp(void){
|
||||
|
||||
hid_t file,space,type,type2,dataset;
|
||||
int i, maxdim = 5, status;
|
||||
int i, maxdim = 5;
|
||||
hsize_t dim = 5;
|
||||
int y = 1;
|
||||
|
||||
@ -1616,13 +1616,13 @@ void test_nestcomp(){
|
||||
*/
|
||||
type = H5Tcreate (H5T_COMPOUND, sizeof(complex_t));
|
||||
|
||||
status = H5Tinsert(type, "re", HOFFSET(complex_t, re), H5T_NATIVE_DOUBLE);
|
||||
status = H5Tinsert(type, "im", HOFFSET(complex_t, im), H5T_NATIVE_DOUBLE);
|
||||
H5Tinsert(type, "re", HOFFSET(complex_t, re), H5T_NATIVE_DOUBLE);
|
||||
H5Tinsert(type, "im", HOFFSET(complex_t, im), H5T_NATIVE_DOUBLE);
|
||||
|
||||
type2 = H5Tcreate (H5T_COMPOUND, sizeof(surf_t));
|
||||
|
||||
status = H5Tinsert(type2, "x", HOFFSET(surf_t, x), type);
|
||||
status = H5Tinsert(type2, "y", HOFFSET(surf_t, y), type);
|
||||
H5Tinsert(type2, "x", HOFFSET(surf_t, x), type);
|
||||
H5Tinsert(type2, "y", HOFFSET(surf_t, y), type);
|
||||
|
||||
/*
|
||||
* Create the dataset.
|
||||
|
Loading…
x
Reference in New Issue
Block a user