summaryrefslogtreecommitdiff
path: root/cord
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2022-04-25 23:41:10 +0300
committerIvan Maidanski <ivmai@mail.ru>2022-04-25 23:41:10 +0300
commite612e566fe7f28c80f112f494ce9b85751c93a75 (patch)
tree900325b428cf4e3b8d20e5fdb871ea66b4d1fb97 /cord
parent728d3652643710224a036a93a4dfb8b2ee84ac8b (diff)
downloadbdwgc-e612e566fe7f28c80f112f494ce9b85751c93a75.tar.gz
Eliminate 'deprecated conversion from string const to char*' gcc warning
(fix of commit e90fce7c3) Issue #439 (bdwgc). * cord/tests/cordtest.c (zu_format): Cast literal string to char*.
Diffstat (limited to 'cord')
-rw-r--r--cord/tests/cordtest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cord/tests/cordtest.c b/cord/tests/cordtest.c
index bb8d4975..670aa7aa 100644
--- a/cord/tests/cordtest.c
+++ b/cord/tests/cordtest.c
@@ -272,7 +272,7 @@ int wrap_vfprintf(FILE * f, CORD format, ...)
# endif
#endif
-/* no static */ /* no const */ char *zu_format = "%zu";
+/* no static */ /* no const */ char *zu_format = (char*)"%zu";
void test_printf(void)
{