Hi, I'm using the last stable release of the gfortran compiler (4.7.1)
with the flags -Wconversion -Wconversion-extra.
I'm trying to build an extensible dataset, by using the command

     use hdf5
     implicit none
     integer(hsize_t), dimension(7), parameter::  dims_scalar =
INT((/1,0,0,0,0,0,0/),hsize_t)
     integer, parameter :: rank = 1
     integer(hid_t) :: dataspace_id
     integer :: error
     integer(hsize_t), dimension(1) :: maxdims


      maxdims = H5S_UNLIMITED_F
      CALL h5screate_simple_f(RANK, dims, dataspace_id, error, &
    &  maxdims)



and the compiler returns the warning:

      maxdims = H5S_UNLIMITED_F
                1
Warning: Conversion from INTEGER(4) to INTEGER(8) at (1)



I have checked in the file H5f90global.f90 and H5S_UNLIMITED_F is
declared as integer, whereas h5screate_simple_f actually requests an
integer(hsize_t) for the maxdims argument.

I have "fixed" the warning by converting the H5S_UNLIMITED_F variable:
      maxdims = INT(H5S_UNLIMITED_F, HSIZE_T)


but the inconsistency still remains.

_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

Reply via email to