summaryrefslogtreecommitdiffstats
path: root/src/h5ls.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/h5ls.c')
-rw-r--r--src/h5ls.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/h5ls.c b/src/h5ls.c
index e8ac70c..07bdd74 100644
--- a/src/h5ls.c
+++ b/src/h5ls.c
@@ -10,6 +10,11 @@
#include <stdio.h>
#include <stdlib.h>
+#include <H5config.h>
+#ifndef HAVE_ATTRIBUTE
+# undef __attribute__
+# define __attribute__(X) /*void*/
+#endif
/*-------------------------------------------------------------------------
@@ -29,7 +34,7 @@
*-------------------------------------------------------------------------
*/
static herr_t
-list (hid_t group, const char *name, void *op_data)
+list (hid_t group, const char *name, void *op_data __attribute__((unused)))
{
hid_t obj;
hid_t (*func)(void*);