grimbough / Rhdf5lib

Distribution of the HDF5 library in an R package
https://bioconductor.org/packages/Rhdf5lib/
6 stars 14 forks source link

Error with implicit function declaration in HDF5 library #36

Closed grimbough closed 3 years ago

grimbough commented 3 years ago

Implicit declarations are not allowed by C99 but until recently compilers have not enforced this. The latest Apple compilers do.

You can enforce this on other versions (and other platforms including with gcc) by using -Werror=implicit-function-declaration in CFLAGS.

H5Fsuper.c:1397:16: error: implicit declaration of function
'H5O__fsinfo_set_version' is invalid in C99
[-Werror,-Wimplicit-function-declaration]
             if(H5O__fsinfo_set_version(f, &fsinfo) < 0)
grimbough commented 3 years ago

This should have been address in the move to HDF5 1.10.7