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

Uvc libconfig import export support #61

Merged
merged 7 commits into from
Oct 26, 2021

Conversation

mgrzeschik
Copy link
Contributor

No description provided.

@pabs3
Copy link
Member

pabs3 commented Oct 17, 2021

The Clang Static Analyzer (version 11) found three additional faults in the code after these commits. Please fix the code and adjust the pull request.

function/uvc.c:154:3: warning: Value stored to 'ret' is never read [deadcode.DeadStores]
                ret = 1;
                ^     ~
function/uvc.c:231:2: warning: Null pointer passed to 1st parameter expecting 'nonnull' [core.NonNullParamChecker]
        memset(uvcf->formats, 0, sizeof(uvcf->formats));
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
function/uvc.c:807:2: warning: Undefined or garbage value returned to caller [core.uninitialized.UndefReturn]
        return ret;
        ^~~~~~~~~~
3 warnings generated.

@mgrzeschik mgrzeschik force-pushed the uvc-libconfig-import-export-support branch 2 times, most recently from 1483a4f to bfc19b5 Compare October 20, 2021 20:16
@mgrzeschik
Copy link
Contributor Author

I addressed the open issues and hope this is fine to merged now. Thanks.

@mgrzeschik mgrzeschik closed this Oct 24, 2021
@mgrzeschik mgrzeschik reopened this Oct 24, 2021
@mgrzeschik
Copy link
Contributor Author

I addressed the open issues and hope this is fine to merged now. Thanks.

@pabs3
Copy link
Member

pabs3 commented Oct 25, 2021 via email

@mgrzeschik
Copy link
Contributor Author

I'm assuming you have tested the code changes on the appropriate hardware and software combinations. I cannot test it right now, the unit tests fail on master and there are no UVC unit tests yet, so the code changes do need manual testing by yourself.

Yes the code is tested on x86_64 with qemu and on several arm machines.

What do you mean with the unit tests fail on master? Did you only refer to the GCC10 warnings ?

With -Wall -Wextra I am seeing some new GCC 10 warnings. The integer signedness issues are similar to existing code so they can maybe be deferred to a different pull request. The other issues probably need at least looking at if not fixing.

I fixed the errors from -Wall and -Wextra, including one extra cleanup patch.

@pabs3
Copy link
Member

pabs3 commented Oct 26, 2021 via email

@pabs3
Copy link
Member

pabs3 commented Oct 26, 2021 via email

Signed-off-by: Michael Grzeschik <[email protected]>
tested with -Wall, -Wextra

Signed-off-by: Michael Grzeschik <[email protected]>
Signed-off-by: Michael Grzeschik <[email protected]>
Signed-off-by: Michael Grzeschik <[email protected]>
- tested with -Wall, -Wextra

Signed-off-by: Michael Grzeschik <[email protected]>
@mgrzeschik mgrzeschik force-pushed the uvc-libconfig-import-export-support branch from bfc19b5 to 53231c7 Compare October 26, 2021 12:09
@mgrzeschik
Copy link
Contributor Author

I fixed the issue with the tests. Please rebase and then merge the UVC patchset.

-- bye, pabs https://bonedaddy.net/pabs3/

Thanks! Done

@mgrzeschik mgrzeschik merged commit 741230b into master Oct 26, 2021
@mgrzeschik mgrzeschik deleted the uvc-libconfig-import-export-support branch October 26, 2021 12:10
@pabs3
Copy link
Member

pabs3 commented Oct 27, 2021 via email

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

Successfully merging this pull request may close these issues.

2 participants