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

Remove redundant code #141

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Remove redundant code #141

wants to merge 1 commit into from

Conversation

yamt
Copy link

@yamt yamt commented Jul 29, 2020

Found by clang-check.
(the last one looks like a false-positive to me)

parson.c:995:17: warning: Value stored to 'buf' is never read
buf += written;
^ ~~~~~~~
parson.c:1016:17: warning: Value stored to 'buf' is never read
buf += written;
^ ~~~~~~~
parson.c:1834:24: warning: Array access (via field 'names') results in a null pointer dereference
if (strcmp(object->names[i], name) == 0) {
^~~~~~~~~~~~~~~~
3 warnings generated.

Found by clang-check.
(the last one looks like a false-positive to me)

parson.c:995:17: warning: Value stored to 'buf' is never read
                buf += written;
                ^      ~~~~~~~
parson.c:1016:17: warning: Value stored to 'buf' is never read
                buf += written;
                ^      ~~~~~~~
parson.c:1834:24: warning: Array access (via field 'names') results in a null pointer dereference
            if (strcmp(object->names[i], name) == 0) {
                       ^~~~~~~~~~~~~~~~
3 warnings generated.
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

Successfully merging this pull request may close these issues.

1 participant