summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2017-11-27 17:15:45 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2017-11-27 17:15:45 (GMT)
commit9fdd984cdea6fce8b5fdd16a7ccc3cc9bbca6fed (patch)
treee93efe342ecc2e7da27a7a68175efaa4468c8a05
parent8d8dc867a4919af7774a73fbd90633dcd4c1a4ed (diff)
downloadhdf5-9fdd984cdea6fce8b5fdd16a7ccc3cc9bbca6fed.zip
hdf5-9fdd984cdea6fce8b5fdd16a7ccc3cc9bbca6fed.tar.gz
hdf5-9fdd984cdea6fce8b5fdd16a7ccc3cc9bbca6fed.tar.bz2
Changed casts to const void *
-rw-r--r--test/testhdf5.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/testhdf5.h b/test/testhdf5.h
index c36c4e1..127c687 100644
--- a/test/testhdf5.h
+++ b/test/testhdf5.h
@@ -86,11 +86,11 @@
#define CHECK_PTR_EQ(ret, val, where) { \
if (VERBOSE_HI) { \
print_func(" Call to routine: %15s at line %4d in %s returned %p\n", \
- (where), (int)__LINE__, __FILE__, (ret)); \
+ (where), (int)__LINE__, __FILE__, (const void *)(ret)); \
} \
if (ret != val) { \
TestErrPrintf ("*** UNEXPECTED RETURN from %s: returned value of %p is not equal to %p line %4d in %s\n", \
- (where), (void *)(ret), (void *)(val), (int)__LINE__, __FILE__); \
+ (where), (const void *)(ret), (const void *)(val), (int)__LINE__, __FILE__); \
H5Eprint2(H5E_DEFAULT, stdout); \
} \
}