diff options
Diffstat (limited to 'test/ttsafe_cancel.c')
-rw-r--r-- | test/ttsafe_cancel.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/test/ttsafe_cancel.c b/test/ttsafe_cancel.c index 808e1c8..4247f07 100644 --- a/test/ttsafe_cancel.c +++ b/test/ttsafe_cancel.c @@ -45,9 +45,7 @@ ********************************************************************/ #include "ttsafe.h" -#ifndef H5_HAVE_THREADSAFE -static int dummy; /* just to create a non-empty object file */ -#else +#ifdef H5_HAVE_THREADSAFE #define FILENAME "ttsafe_cancel.h5" #define DATASETNAME "commonname" @@ -107,7 +105,7 @@ void tts_cancel(void) pthread_attr_destroy(&attribute); } -void *tts_cancel_thread(void *arg) +void *tts_cancel_thread(void UNUSED *arg) { int datavalue; int *buffer; @@ -161,8 +159,8 @@ void *tts_cancel_thread(void *arg) return NULL; } -herr_t tts_cancel_callback(void *elem, hid_t type_id, hsize_t ndim, - hssize_t *point, void *operator_data) +herr_t tts_cancel_callback(void *elem, hid_t UNUSED type_id, hsize_t UNUSED ndim, + hssize_t UNUSED *point, void *operator_data) { int value = *(int *)elem; hid_t dataset = *(hid_t *)operator_data; |