summaryrefslogtreecommitdiffstats
path: root/test/ttsafe_cancel.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2003-06-26 02:10:33 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2003-06-26 02:10:33 (GMT)
commit2629b6e4d3dce7b13ff6ee8d9ae14b04bb4bc22c (patch)
treebebc3180d77b92c7d200a2770dbafa8f4663abe8 /test/ttsafe_cancel.c
parentcb57304e9a603b9f7212e0c8c49ad7f85bca1e49 (diff)
downloadhdf5-2629b6e4d3dce7b13ff6ee8d9ae14b04bb4bc22c.zip
hdf5-2629b6e4d3dce7b13ff6ee8d9ae14b04bb4bc22c.tar.gz
hdf5-2629b6e4d3dce7b13ff6ee8d9ae14b04bb4bc22c.tar.bz2
[svn-r7109] Purpose:
Code cleanup Description: Clean up varios compiler warnings flagged by SGI compiler and gcc 3.3 Platforms tested: FreeBSD 4.8 (sleipnir) h5committest
Diffstat (limited to 'test/ttsafe_cancel.c')
-rw-r--r--test/ttsafe_cancel.c10
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;