summaryrefslogtreecommitdiffstats
path: root/src/H5detect.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2010-05-21 19:13:07 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2010-05-21 19:13:07 (GMT)
commit1fb2abb7f8282957194dad1f6b849fcc951260fc (patch)
treef21bdfda53b965d7caf2510e913597b5ace9ba2c /src/H5detect.c
parent8bd419e0885f859e34c5809cdde3117366f3c7b1 (diff)
downloadhdf5-1fb2abb7f8282957194dad1f6b849fcc951260fc.zip
hdf5-1fb2abb7f8282957194dad1f6b849fcc951260fc.tar.gz
hdf5-1fb2abb7f8282957194dad1f6b849fcc951260fc.tar.bz2
[svn-r18872] Description:
Bring r18871 from trunk to 1.8 branch: Clean up compiler warnings (on Windows, I hope) by marking some routines as taking 'volatile' parameters. Tested on: Mac OS X/32 10.6.3 (amazon) w/debug (too minor for h5committest)
Diffstat (limited to 'src/H5detect.c')
-rw-r--r--src/H5detect.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/H5detect.c b/src/H5detect.c
index 1eaaac0..29955a1 100644
--- a/src/H5detect.c
+++ b/src/H5detect.c
@@ -119,9 +119,9 @@ static volatile int nd_g = 0, na_g = 0;
static void print_results(int nd, detected_t *d, int na, malign_t *m);
static void iprint(detected_t *);
static int byte_cmp(int, const void *, const void *);
-static int bit_cmp(int, int *, void *, void *);
+static int bit_cmp(int, int *, volatile void *, volatile void *);
static void fix_order(int, int, int, int *, const char **);
-static int imp_bit(int, int *, void *, void *);
+static int imp_bit(int, int *, volatile void *, volatile void *);
static unsigned long find_bias(int, int, int *, void *);
static void precision (detected_t*);
static void print_header(void);
@@ -930,11 +930,11 @@ byte_cmp(int n, const void *_a, const void *_b)
*-------------------------------------------------------------------------
*/
static int
-bit_cmp(int nbytes, int *perm, void *_a, void *_b)
+bit_cmp(int nbytes, int *perm, volatile void *_a, volatile void *_b)
{
int i, j;
- unsigned char *a = (unsigned char *) _a;
- unsigned char *b = (unsigned char *) _b;
+ volatile unsigned char *a = (volatile unsigned char *) _a;
+ volatile unsigned char *b = (volatile unsigned char *) _b;
unsigned char aa, bb;
for (i = 0; i < nbytes; i++) {
@@ -1051,10 +1051,10 @@ fix_order(int n, int first, int last, int *perm, const char **mesg)
*-------------------------------------------------------------------------
*/
static int
-imp_bit(int n, int *perm, void *_a, void *_b)
+imp_bit(int n, int *perm, volatile void *_a, volatile void *_b)
{
- unsigned char *a = (unsigned char *) _a;
- unsigned char *b = (unsigned char *) _b;
+ volatile unsigned char *a = (volatile unsigned char *) _a;
+ volatile unsigned char *b = (volatile unsigned char *) _b;
int changed, major, minor;
int msmb; /*most significant mantissa bit */