summaryrefslogtreecommitdiffstats
path: root/src/H5TS.c
diff options
context:
space:
mode:
authorDavid Young <dyoung@hdfgroup.org>2020-02-07 20:57:46 (GMT)
committerDavid Young <dyoung@hdfgroup.org>2020-05-11 15:22:07 (GMT)
commit2ba97e40cdb0950be7ea4858607e42118d9dce3e (patch)
tree40ea9812105baeb3f7e5fcd0cdd264cb645f3b1e /src/H5TS.c
parent8aa74137dd79f07ac2fecafbd7dbcc8e1b537af2 (diff)
downloadhdf5-2ba97e40cdb0950be7ea4858607e42118d9dce3e.zip
hdf5-2ba97e40cdb0950be7ea4858607e42118d9dce3e.tar.gz
hdf5-2ba97e40cdb0950be7ea4858607e42118d9dce3e.tar.bz2
Make sure that H5TS_thread_id() is available as either a function or a macro in
all configurations. Previously it was neither declared nor defined in --disable-threadsafety builds. The compiler's warning got lost in the noise---I first saw the issue because my -Werror branch stopped compiling cold---and the tests still linked and ran.
Diffstat (limited to 'src/H5TS.c')
-rw-r--r--src/H5TS.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/H5TS.c b/src/H5TS.c
index cc55810..b0cef7f 100644
--- a/src/H5TS.c
+++ b/src/H5TS.c
@@ -639,13 +639,4 @@ H5TS_create_thread(void *(*func)(void *), H5TS_attr_t *attr, void *udata)
} /* H5TS_create_thread */
-#else /* H5_HAVE_THREADSAFE */
-
-uint64_t
-H5TS_thread_id(void)
-{
- return 0;
-}
-
#endif /* H5_HAVE_THREADSAFE */
-