--- a/tests/test_json.c Mon Jan 06 23:29:41 2025 +0100 +++ b/tests/test_json.c Tue Jan 07 00:12:46 2025 +0100 @@ -747,7 +747,7 @@ // write it to a buffer CxBuffer buf; cxBufferInit(&buf, NULL, 512, NULL, CX_BUFFER_DEFAULT); - int result = cxJsonWrite(&buf, obj, (cx_write_func) cxBufferWrite, writer); + int result = cxJsonWrite(&buf, obj, cxBufferWriteFunc, writer); cxBufferTerminate(&buf); // makes debugging easier CX_TEST_ASSERT(result == 0);