From 3e8b387af23a8a6e20f83128a742def3b1f08e88 Mon Sep 17 00:00:00 2001 From: Scot Breitenfeld Date: Sat, 29 Oct 2011 14:18:04 -0500 Subject: [svn-r21689] Albert noted for *AIX 5.3: *Hostname: nsipada0X: "../../../hdf5/fortran/src/H5Ef.c", line 301.40: 1506-280 (E) Function argument assignment between types "int(*)(int,void*)" and "int(*)(int,struct {...}*)" is not allowed. Fixed by casting has H5E_auto2_t. tested: jam (gfortran, intel) --- fortran/src/H5Ef.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fortran/src/H5Ef.c b/fortran/src/H5Ef.c index c0d7a77..8671b18 100644 --- a/fortran/src/H5Ef.c +++ b/fortran/src/H5Ef.c @@ -309,7 +309,7 @@ nh5eset_auto2_c(int_f *printflag, hid_t_f *estack_id, H5E_auto2_t func, void *cl herr_t status = -1; if (*printflag == 1 && *estack_id == -1) - status = H5Eset_auto2(H5E_DEFAULT, H5Eprint2, stderr); + status = H5Eset_auto2(H5E_DEFAULT, (H5E_auto2_t)H5Eprint2, stderr); else if (*printflag == 1) status = H5Eset_auto2((hid_t)*estack_id, func, client_data); else if (*printflag == 0) -- cgit v0.12