diff options
author | David Young <dyoung@hdfgroup.org> | 2020-02-07 20:57:46 (GMT) |
---|---|---|
committer | David Young <dyoung@hdfgroup.org> | 2020-02-07 20:57:46 (GMT) |
commit | 39fd512fe7475590598541e494d4cef82c452ac8 (patch) | |
tree | df2037f9a8b8e81ae3643e7ed76df5bb9e39eec2 /src/H5TS.c | |
parent | 021740bac0893a87c762959b284283bc236d0ab3 (diff) | |
download | hdf5-39fd512fe7475590598541e494d4cef82c452ac8.zip hdf5-39fd512fe7475590598541e494d4cef82c452ac8.tar.gz hdf5-39fd512fe7475590598541e494d4cef82c452ac8.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.c | 9 |
1 files changed, 0 insertions, 9 deletions
@@ -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 */ - |