summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2020-08-13 17:13:18 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2020-08-13 17:13:18 (GMT)
commitb806f3e9acad6261438dacecbb11a87bcd644e72 (patch)
treeb46682caf77b333aae596ca82736e912b784f167
parente291fd31fd480dc4900d056e0e08df002e85a3f2 (diff)
downloadhdf5-b806f3e9acad6261438dacecbb11a87bcd644e72.zip
hdf5-b806f3e9acad6261438dacecbb11a87bcd644e72.tar.gz
hdf5-b806f3e9acad6261438dacecbb11a87bcd644e72.tar.bz2
Tweak to hide unused threadsafe callback in non-threadsafe builds
-rw-r--r--test/thread_id.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/thread_id.c b/test/thread_id.c
index 24aef80..0c804ed 100644
--- a/test/thread_id.c
+++ b/test/thread_id.c
@@ -25,6 +25,8 @@
*/
#include "testhdf5.h"
+#if defined(H5_HAVE_THREADSAFE) && !defined(H5_HAVE_WIN_THREADS)
+
static void my_errx(int, const char *, ...) H5_ATTR_FORMAT(printf, 2, 3);
static void
@@ -40,8 +42,6 @@ my_errx(int code, const char *fmt, ...)
HDexit(code);
}
-#if defined(H5_HAVE_THREADSAFE) && !defined(H5_HAVE_WIN_THREADS)
-
#if defined(H5_HAVE_DARWIN)
typedef struct _pthread_barrierattr {