Skip to content

test/rgw: annotating variables with maybe_unused - #52315

Merged
cbodley merged 1 commit into
ceph:mainfrom
ronen-fr:wip-rf-rgw-tasserts
Jan 8, 2024
Merged

cbodley merged 1 commit into
ceph:mainfrom
ronen-fr:wip-rf-rgw-tasserts

Conversation

@ronen-fr

@ronen-fr ronen-fr commented Jul 5, 2023

Copy link
Copy Markdown
Contributor

Some variables in test/rgw/rgw_cr_test.cc are only used in asserts,
while this file is also used in builds without NDEBUG set (why?).

Adding the [[maybe_unused]] attribute clears the compilation warnings.

Some variables in test/rgw/rgw_cr_test.cc are only used in
asserts, while this file is also used in builds without
NDEBUG set.
Adding the [[maybe_unused]] attribute clears the compilation
warnings.

Signed-off-by: Ronen Friedman <[email protected]>
@ronen-fr
ronen-fr requested a review from a team as a code owner July 5, 2023 11:06
@ceph ceph deleted a comment from ljflores Jul 6, 2023
@ronen-fr

Copy link
Copy Markdown
Contributor Author

jenkins test api

@dang

dang commented Jul 10, 2023

Copy link
Copy Markdown
Contributor

Do these warnings only show up if you're not building in developer mode?

@mkogan1
mkogan1 requested review from cbodley, dang and mattbenjamin July 10, 2023 14:40
@ronen-fr

Copy link
Copy Markdown
Contributor Author

Do these warnings only show up if you're not building in developer mode?

I am building with 'relwithdebinfo'

@ronen-fr

Copy link
Copy Markdown
Contributor Author

@dang , @mattbenjamin - to mention one more detail: I am encountering this when building the tests
(ninja tests).
Can it be approved?

@ronen-fr

ronen-fr commented Aug 9, 2023

Copy link
Copy Markdown
Contributor Author

@dang , @mattbenjamin - ping?

@github-actions

github-actions Bot commented Nov 9, 2023

Copy link
Copy Markdown

This pull request has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs for another 30 days.
If you are a maintainer or core committer, please follow-up on this pull request to identify what steps should be taken by the author to move this proposed change forward.
If you are the author of this pull request, thank you for your proposed contribution. If you believe this change is still appropriate, please ensure that any feedback has been addressed and ask for a code review.

@github-actions github-actions Bot added the stale label Nov 9, 2023
@thotz thotz removed the stale label Nov 9, 2023
@thotz
thotz requested a review from kalebskeithley November 9, 2023 12:22
@github-actions

github-actions Bot commented Jan 8, 2024

Copy link
Copy Markdown

This pull request has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs for another 30 days.
If you are a maintainer or core committer, please follow-up on this pull request to identify what steps should be taken by the author to move this proposed change forward.
If you are the author of this pull request, thank you for your proposed contribution. If you believe this change is still appropriate, please ensure that any feedback has been addressed and ask for a code review.

@github-actions github-actions Bot added the stale label Jan 8, 2024
@cbodley

cbodley commented Jan 8, 2024

Copy link
Copy Markdown
Contributor

jenkins test this please

@mattbenjamin mattbenjamin left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

seems harmless

@cbodley
cbodley merged commit 5a5ca59 into ceph:main Jan 8, 2024
@cbodley

cbodley commented Jan 8, 2024

Copy link
Copy Markdown
Contributor

thanks @ronen-fr

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.

5 participants