-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Warning fixes for json-c json_object_array_length #1439
Conversation
Remove the version contraint on the json-c dependency
This will future proof the code, as it seems that the next release of json-c will return size_t array lengths
Did you verify this works on both versions of json-c? |
Nope, not yet. With the master version it crashes a lot and behaves quite weirdly. I need to look into it further, as I'm not sure if they made other changes which might be the cause. |
So, I'm not sure what to do, using sway with the master version of json-c does not work. This is the log and the stack trace from changing the workspace for example. I'm not too sure what to make of it or how to debug further, but to me it looks like an internal issue with json-c. Log
Stack trace
|
See if you can make a minimum reproducable test case. |
OK, will try, but I feel like this is a bit more than I can chew. It might take a while. Is it OK to close the PR and come back to it when I've made more progress? |
I would rather just leave it open, no big deal |
A better patch for quieting the warnings related to json_object_array_length
This grants some future-proofing for the next json-c version which contains this API breaking change.