diff options
author | Dana Robinson <derobins@hdfgroup.org> | 2015-11-21 03:48:01 (GMT) |
---|---|---|
committer | Dana Robinson <derobins@hdfgroup.org> | 2015-11-21 03:48:01 (GMT) |
commit | 05b604da9abdb85e0aeeec5128cb9ebb57aeea32 (patch) | |
tree | de721c0885aa96413f88aa64fdc8fb7505b5a6be /fortran | |
parent | c327c727cf633192e64bf90405f581454de770b3 (diff) | |
download | hdf5-05b604da9abdb85e0aeeec5128cb9ebb57aeea32.zip hdf5-05b604da9abdb85e0aeeec5128cb9ebb57aeea32.tar.gz hdf5-05b604da9abdb85e0aeeec5128cb9ebb57aeea32.tar.bz2 |
[svn-r28433] Misc warning and cleanup fixes.
Tested on Ubuntu 15.10 (Linux 4.2.0 x86_64) gcc 5.2.1
serial only
Diffstat (limited to 'fortran')
-rw-r--r-- | fortran/src/H5Pf.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/fortran/src/H5Pf.c b/fortran/src/H5Pf.c index 9735f48..523ed0b 100644 --- a/fortran/src/H5Pf.c +++ b/fortran/src/H5Pf.c @@ -4843,6 +4843,10 @@ h5pset_link_phase_change_c(hid_t_f *gcpl_id, int_f *max_compact, int_f *min_dens * * SOURCE */ +#ifndef H5_HAVE_DIRECT +/* Only gets gcc const attribute when the direct VFD is not built. */ +H5_ATTR_CONST +#endif int_f h5pset_fapl_direct_c(hid_t_f H5_ATTR_UNUSED *fapl_id, size_t_f H5_ATTR_UNUSED *alignment, size_t_f H5_ATTR_UNUSED *block_size, size_t_f H5_ATTR_UNUSED *cbuf_size) /******/ @@ -4886,6 +4890,10 @@ h5pset_fapl_direct_c(hid_t_f H5_ATTR_UNUSED *fapl_id, size_t_f H5_ATTR_UNUSED *a * * SOURCE */ +#ifndef H5_HAVE_DIRECT +/* Only gets gcc const attribute when the direct VFD is not built. */ +H5_ATTR_CONST +#endif int_f h5pget_fapl_direct_c(hid_t_f H5_ATTR_UNUSED *fapl_id, size_t_f H5_ATTR_UNUSED *alignment, size_t_f H5_ATTR_UNUSED *block_size, size_t_f H5_ATTR_UNUSED *cbuf_size) /******/ |