Commit f2f79897 authored by Dominik Charousset's avatar Dominik Charousset

Fix warnings on GCC

parent 3875136d
......@@ -46,11 +46,11 @@ void read_timespan(state<Iterator, Sentinel>& ps, Consumer&& consumer,
struct interim_consumer {
using value_type = int64_t;
void value(int64_t y) {
void value(value_type y) {
x = y;
}
int64_t x = 0;
value_type x = 0;
};
interim_consumer ic;
timespan result;
......
......@@ -187,7 +187,7 @@ public:
&& !is_iterable<T>::value // pick begin()/end() over peek_all
&& !is_inspectable<stringification_inspector, T>::value
&& !has_to_string<T>::value>
consume(T& xs) {
consume(const T& xs) {
result_ += '[';
xs.peek_all(*this);
result_ += ']';
......
......@@ -336,7 +336,7 @@ void print(const config_value::dictionary& xs, indentation indent) {
cout << indent << kvp.first << " = " << to_string(kvp.second) << '\n';
}
}
};
}
} // namespace <anonymous>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment