cql3: mark several private fields as maybe_unused
Because they are indeed unused -- they are initialized, passed down through some layers, but not actually used. No idea why only Clang 12 in debug mode in Nix devenv complains about it, though.
This commit is contained in:
@@ -80,7 +80,7 @@ class schema_describe_statement : public describe_statement {
|
||||
|
||||
private:
|
||||
std::variant<schema_desc, keyspace_desc> _config;
|
||||
bool _with_internals;
|
||||
[[maybe_unused]] bool _with_internals;
|
||||
|
||||
protected:
|
||||
virtual std::vector<lw_shared_ptr<column_specification>> get_column_specifications() const override;
|
||||
@@ -94,7 +94,7 @@ public:
|
||||
class listing_describe_statement : public describe_statement {
|
||||
private:
|
||||
element_type _element;
|
||||
bool _with_internals;
|
||||
[[maybe_unused]] bool _with_internals;
|
||||
|
||||
protected:
|
||||
virtual std::vector<lw_shared_ptr<column_specification>> get_column_specifications() const override;
|
||||
@@ -110,7 +110,7 @@ private:
|
||||
element_type _element;
|
||||
std::optional<sstring> _keyspace;
|
||||
sstring _name;
|
||||
bool _with_internals;
|
||||
[[maybe_unused]] bool _with_internals;
|
||||
|
||||
protected:
|
||||
virtual std::vector<lw_shared_ptr<column_specification>> get_column_specifications() const override;
|
||||
@@ -124,7 +124,7 @@ class generic_describe_statement : public describe_statement {
|
||||
private:
|
||||
std::optional<sstring> _keyspace;
|
||||
sstring _name;
|
||||
bool _with_internals;
|
||||
[[maybe_unused]] bool _with_internals;
|
||||
|
||||
protected:
|
||||
virtual std::vector<lw_shared_ptr<column_specification>> get_column_specifications() const override;
|
||||
@@ -136,4 +136,4 @@ public:
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user