Hi Francesco,

On Oct 22, 2010, at 12:27 PM, Francesco Petrogalli wrote:

> Hello everybody,
> 
> the compiler is complaining:
> libcompute.c:330: warning: passing argument 1 of `H5Tcreate' with
> different width due to prototype
> libcompute.c:331: warning: passing argument 3 of `H5Tinsert' with
> different width due to prototype
> 
> Line 330 and 331 are:
> 
>  /* Create the memory data type for gsl_complex */
> 330:  gsl_complex_tid = H5Tcreate (H5T_COMPOUND, sizeof (gsl_complex));
> 331:  H5Tinsert (gsl_complex_tid, "Re", 0, H5T_NATIVE_DOUBLE);
> 332:  H5Tinsert (gsl_complex_tid, "Im", sizeof (double), H5T_NATIVE_DOUBLE);
> 
> 
> What does it means? It's not an error, it's just a compiler warning.

        The warning for H5Tinsert() probably just means you need to cast the 
'0' to '(size_t)0'. The one for H5Tcreate() is unusual though - are you 
compiling with a C++ compiler?  Also, what version of HDF5 are you building 
against?

        Quincey


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

Reply via email to