summaryrefslogtreecommitdiffstats
path: root/test/error_test.c
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2016-01-12 12:28:39 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2016-01-12 12:28:39 (GMT)
commit2396a172adc0fca7ad56fe6bd89276903dc8af44 (patch)
tree9cc08f8fb0fb2207294e1fce8a3dbc52aa45fa28 /test/error_test.c
parent67570ce476f334fdafc01a89796808264ab8e6c4 (diff)
downloadhdf5-2396a172adc0fca7ad56fe6bd89276903dc8af44.zip
hdf5-2396a172adc0fca7ad56fe6bd89276903dc8af44.tar.gz
hdf5-2396a172adc0fca7ad56fe6bd89276903dc8af44.tar.bz2
[svn-r28861] Minor warning format string fix (HDFFV-9640).
Tested on: 64-bit Ubuntu 15.10 (Linux 4.2.0 x86_64) gcc 5.2.1 autotools parallel only (MPICH 3.1.4)
Diffstat (limited to 'test/error_test.c')
-rw-r--r--test/error_test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/error_test.c b/test/error_test.c
index 4e4c0ef..ee181b1 100644
--- a/test/error_test.c
+++ b/test/error_test.c
@@ -498,7 +498,7 @@ test_create(void)
if(err_num != 0) TEST_ERROR
/* Push an error with a long description */
- if(H5Epush(estack_id, __FILE__, err_func, __LINE__, ERR_CLS, ERR_MAJ_TEST, ERR_MIN_SUBROUTINE, err_msg) < 0) TEST_ERROR;
+ if(H5Epush(estack_id, __FILE__, err_func, __LINE__, ERR_CLS, ERR_MAJ_TEST, ERR_MIN_SUBROUTINE, "%s", err_msg) < 0) TEST_ERROR;
/* Check the number of errors on stack */
err_num = H5Eget_num(estack_id);
@@ -543,7 +543,7 @@ test_copy(void)
herr_t ret; /* Generic return value */
/* Push an error with a long description */
- if(H5Epush(H5E_DEFAULT, __FILE__, err_func, __LINE__, ERR_CLS, ERR_MAJ_TEST, ERR_MIN_SUBROUTINE, err_msg) < 0) TEST_ERROR;
+ if(H5Epush(H5E_DEFAULT, __FILE__, err_func, __LINE__, ERR_CLS, ERR_MAJ_TEST, ERR_MIN_SUBROUTINE, "%s", err_msg) < 0) TEST_ERROR;
/* Check the number of errors on stack */
err_num = H5Eget_num(H5E_DEFAULT);