summaryrefslogtreecommitdiffstats
path: root/test/tvltypes.c
diff options
context:
space:
mode:
authorkmu <kmu@hdfgroup.org>2020-01-29 19:31:14 (GMT)
committerkmu <kmu@hdfgroup.org>2020-01-29 19:31:14 (GMT)
commit0443c582d8b2be29b3c39e8084628822711987ab (patch)
treec178e004ea4dae09e09f9f6f70122511389c41d5 /test/tvltypes.c
parent684a9bd9cbf515a195e9638786b6b1b5b421fe15 (diff)
downloadhdf5-0443c582d8b2be29b3c39e8084628822711987ab.zip
hdf5-0443c582d8b2be29b3c39e8084628822711987ab.tar.gz
hdf5-0443c582d8b2be29b3c39e8084628822711987ab.tar.bz2
initialization discards const warning
Diffstat (limited to 'test/tvltypes.c')
-rw-r--r--test/tvltypes.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/test/tvltypes.c b/test/tvltypes.c
index a6ed60e..e8c69b4 100644
--- a/test/tvltypes.c
+++ b/test/tvltypes.c
@@ -2398,17 +2398,17 @@ test_vltypes_fill_value(void)
typedef struct dtype1_struct {
unsigned int gui;
unsigned int pgui;
- char *str_id;
- char *str_name;
- char *str_desc;
- char *str_orig;
- char *str_stat;
+ const char *str_id;
+ const char *str_name;
+ const char *str_desc;
+ const char *str_orig;
+ const char *str_stat;
unsigned int ver;
double val;
double ma;
double mi;
- char *str_form;
- char *str_unit;
+ const char *str_form;
+ const char *str_unit;
} dtype1_struct;
herr_t ret;