diff options
Diffstat (limited to 'test/shtype.c')
-rw-r--r-- | test/shtype.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/test/shtype.c b/test/shtype.c index e1b1aa9..944941b 100644 --- a/test/shtype.c +++ b/test/shtype.c @@ -10,6 +10,12 @@ #include <assert.h> #include <hdf5.h> +#include <H5config.h> +#ifndef HAVE_ATTRIBUTE +# undef __attribute__ +# define __attribute__(X) /*void*/ +#endif + /*------------------------------------------------------------------------- * Function: display_error_cb @@ -28,7 +34,7 @@ *------------------------------------------------------------------------- */ static herr_t -display_error_cb (void *client_data) +display_error_cb (void *client_data __attribute__((unused))) { puts ("*FAILED*"); H5Eprint (stdout); |