commit 0b848d6: [Minor] Fix warning

Vsevolod Stakhov vsevolod at rspamd.com
Sat Sep 17 16:14:04 UTC 2022


Author: Vsevolod Stakhov
Date: 2022-09-17 14:57:05 +0100
URL: https://github.com/rspamd/rspamd/commit/0b848d655ff7e5bd77de06f6793d3b35bd66485b

[Minor] Fix warning

---
 src/client/rspamc.cxx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/client/rspamc.cxx b/src/client/rspamc.cxx
index cb847bf5b..9719445b6 100644
--- a/src/client/rspamc.cxx
+++ b/src/client/rspamc.cxx
@@ -1034,8 +1034,8 @@ rspamc_symbols_output(FILE *out, ucl_object_t *obj)
 				fmt::print(out, "Message - {}: {}\n",
 						ucl_object_key(cmesg), ucl_object_tostring(cmesg));
 			} else {
-				unsigned char *rendered_message;
-				rendered_message = ucl_object_emit(cmesg, UCL_EMIT_JSON_COMPACT);
+				char *rendered_message;
+				rendered_message = (char *)ucl_object_emit(cmesg, UCL_EMIT_JSON_COMPACT);
 				fmt::print(out, "Message - {}: {:.60}\n",
 						ucl_object_key(cmesg), rendered_message);
 				free(rendered_message);


More information about the Commits mailing list