diff options
-rw-r--r-- | config/gnu-fflags | 2 | ||||
-rw-r--r-- | src/H5private.h | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/config/gnu-fflags b/config/gnu-fflags index 3fc112d..185a4c6 100644 --- a/config/gnu-fflags +++ b/config/gnu-fflags @@ -58,8 +58,6 @@ if test "X-gfortran" = "X-$f9x_vendor"; then H5_FCFLAGS="$H5_FCFLAGS -std=f2008" elif test $f9x_vers_major -ge 5 -o $f9x_vers_major -eq 4 -a $f9x_vers_minor -ge 6; then H5_FCFLAGS="$H5_FCFLAGS -std=f2008ts" - else - H5_FCFLAGS="$H5_FCFLAGS -std=f2003" fi diff --git a/src/H5private.h b/src/H5private.h index 86cd615..00b7a07 100644 --- a/src/H5private.h +++ b/src/H5private.h @@ -317,8 +317,12 @@ # define H5_ATTR_NORETURN __attribute__((noreturn)) # define H5_ATTR_CONST __attribute__((const)) # define H5_ATTR_PURE __attribute__((pure)) +#if defined(__GNUC__) && __GNUC__ >= 7 # define H5_ATTR_FALLTHROUGH __attribute__((fallthrough)); #else +# define H5_ATTR_FALLTHROUGH /*void*/ +#endif +#else # define H5_ATTR_FORMAT(X,Y,Z) /*void*/ # define H5_ATTR_UNUSED /*void*/ # define H5_ATTR_NORETURN /*void*/ |