Skip to content

Commit c4fd127

Browse files
authored
Merge pull request ceph#65791 from aainscow/fix_compiler_warnings
crimson/rgw: Fix clang compiler warnings. Reviewed-by: Matan Breizman <[email protected]> Reviewed-by: Edwin Rodriguez <[email protected]>
2 parents 3837fa2 + ec2923a commit c4fd127

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/crimson/tools/store_bench/store-bench.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ class StoreBenchWorkload {
121121
};
122122

123123

124-
class PGLogWorkload : public StoreBenchWorkload {
124+
class PGLogWorkload final : public StoreBenchWorkload {
125125
unsigned num_logs = 4;
126126
unsigned log_size = 1024;
127127
unsigned log_length = 256;
@@ -146,7 +146,7 @@ class PGLogWorkload : public StoreBenchWorkload {
146146
~PGLogWorkload() final {}
147147
};
148148

149-
class RGWIndexWorkload : public StoreBenchWorkload {
149+
class RGWIndexWorkload final : public StoreBenchWorkload {
150150
unsigned num_indices = 16;
151151
uint64_t key_size = 1024;
152152
uint64_t value_size = 1024;
@@ -581,7 +581,7 @@ seastar::future<results_t> RGWIndexWorkload::run(
581581
*
582582
* Performs a simple random write workload.
583583
*/
584-
class RandomWriteWorkload : public StoreBenchWorkload {
584+
class RandomWriteWorkload final : public StoreBenchWorkload {
585585
uint64_t prefill_size = 128<<10;
586586
uint64_t io_size = 4<<10;
587587
uint64_t size_per_shard = 64<<20;

src/rgw/rgw_s3select_private.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,10 @@
3636
#pragma GCC diagnostic push
3737
#pragma clang diagnostic push
3838
#pragma GCC diagnostic ignored "-Wdeprecated"
39+
#if defined(__GNUC__) && !defined(__clang__)
40+
// Clang generates a warning due to this (-Wunknown-warning-option)
3941
#pragma GCC diagnostic ignored "-Wstringop-truncation"
42+
#endif
4043
#pragma clang diagnostic ignored "-Wdeprecated"
4144
#include <s3select/include/s3select.h>
4245
#pragma GCC diagnostic pop

0 commit comments

Comments
 (0)