From e612e566fe7f28c80f112f494ce9b85751c93a75 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Mon, 25 Apr 2022 23:41:10 +0300 Subject: 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*. --- cord/tests/cordtest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cord') 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) { -- cgit v1.2.1