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

Tests/CAPI: Fix trivial sign-compare warnings #406

Merged

Conversation

wooksong
Copy link
Member

@wooksong wooksong commented Oct 12, 2023

This is a trivial fix to silence sign-compare warnings in a unit test case for inference C-APIs.

/usr/src/googletest/googletest/include/gtest/gtest.h:1545:11: error: comparison of integer expressions of different signedness: ‘const unsigned int’ and ‘const int’ [-Werror=sign-compare]

    1545 |   if (lhs == rhs) {
                 |       ~~~~^~~~~~ 
             cc1plus: all warnings being treated as errors

Signed-off-by: Wook Song wook16.song@samsung.com

This is a trivial fix to silence sign-compare warnings in a unit test
case for inference C-APIs

/usr/src/googletest/googletest/include/gtest/gtest.h:1545:11: error: comparison of integer expressions of different signedness: ‘const unsigned int’ and ‘const int’ [-Werror=sign-compare]
1545 |   if (lhs == rhs) {                                                                               |       ~~~~^~~~~~                                                                            cc1plus: all warnings being treated as errors

Signed-off-by: Wook Song <wook16.song@samsung.com>
@taos-ci
Copy link
Collaborator

taos-ci commented Oct 12, 2023

📝 TAOS-CI Version: 1.5.20200925. Thank you for submitting PR #406. Please a submit 1commit/1PR (one commit per one PR) policy to get comments quickly from reviewers. Your PR must pass all verificiation processes of cibot before starting a review process from reviewers. If you are new member to join this project, please read manuals in documentation folder and wiki page. In order to monitor a progress status of your PR in more detail, visit http://ci.nnstreamer.ai/.

Copy link
Collaborator

@taos-ci taos-ci left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@wooksong, 💯 All CI checkers are successfully verified. Thanks.

@jaeyun-jung jaeyun-jung merged commit 2eac2ba into nnstreamer:main Oct 12, 2023
29 checks passed
@wooksong wooksong deleted the trivial-signed-unsigned-comparison branch October 12, 2023 04:55
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.

3 participants