test/rgw: annotating variables with maybe_unused#52315
Conversation
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 <rfriedma@redhat.com>
|
jenkins test api |
|
Do these warnings only show up if you're not building in developer mode? |
I am building with 'relwithdebinfo' |
|
@dang , @mattbenjamin - to mention one more detail: I am encountering this when building the tests |
|
@dang , @mattbenjamin - ping? |
|
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. |
|
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. |
|
jenkins test this please |
|
thanks @ronen-fr |
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.