Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regarding Migration of Jansson 2.7 to 2.14 #644

Open
AravindanSrinivasan opened this issue Mar 6, 2023 · 0 comments
Open

Regarding Migration of Jansson 2.7 to 2.14 #644

AravindanSrinivasan opened this issue Mar 6, 2023 · 0 comments

Comments

@AravindanSrinivasan
Copy link

AravindanSrinivasan commented Mar 6, 2023

We were migrating Jansson 2.7 to Jansson 2.14 in Embarcadero C++Builder. After successfully added to the project, we are getting the following error, which comes from Jansson -> dump.c:

[bcc32 Error] dump.c(443): E2063 Illegal initialization

   size_t json_dumpb(const json_t *json, char *buffer, size_t size, size_t flags) {
   struct buffer buf = {size, 0, buffer};  **//Throws Error**

if (json_dump_callback(json, dump_to_buffer, (void *)&buf, flags))
    return 0;

return buf.used;

}

image

Please review the below image . The variable buffer and struct buffer has similar names didn't know whether this causes error.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant