Skip to content

Commit e91f32a

Browse files
committed
Fix -Werror=unused-parameter on defaulted MetricValue copy constructor
CI build (gcc with -Werror=unused-parameter) flagged the named parameter on the defaulted copy constructor as unused. Drop the name; the defaulted body still copies the source.
1 parent aece10a commit e91f32a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

source/src/basic/MetricValue.hh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ template <class T>
4242
class MetricValue : public MetricValueBase {
4343
public:
4444
MetricValue() = default;
45-
MetricValue( MetricValue const & metric_value ) = default;
45+
MetricValue( MetricValue const & ) = default;
4646
MetricValue( T const & inp ) : data_(inp) {};
4747
void set( T const & inp ) { data_ = inp; };
4848
std::string print() const { std::ostringstream ostream; ostream << data_; return ostream.str(); };

0 commit comments

Comments
 (0)