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, ...@@ -46,11 +46,11 @@ void read_timespan(state<Iterator, Sentinel>& ps, Consumer&& consumer,
struct interim_consumer { struct interim_consumer {
using value_type = int64_t; using value_type = int64_t;
void value(int64_t y) { void value(value_type y) {
x = y; x = y;
} }
int64_t x = 0; value_type x = 0;
}; };
interim_consumer ic; interim_consumer ic;
timespan result; timespan result;
......
...@@ -187,7 +187,7 @@ public: ...@@ -187,7 +187,7 @@ public:
&& !is_iterable<T>::value // pick begin()/end() over peek_all && !is_iterable<T>::value // pick begin()/end() over peek_all
&& !is_inspectable<stringification_inspector, T>::value && !is_inspectable<stringification_inspector, T>::value
&& !has_to_string<T>::value> && !has_to_string<T>::value>
consume(T& xs) { consume(const T& xs) {
result_ += '['; result_ += '[';
xs.peek_all(*this); xs.peek_all(*this);
result_ += ']'; result_ += ']';
......
...@@ -336,7 +336,7 @@ void print(const config_value::dictionary& xs, indentation indent) { ...@@ -336,7 +336,7 @@ void print(const config_value::dictionary& xs, indentation indent) {
cout << indent << kvp.first << " = " << to_string(kvp.second) << '\n'; cout << indent << kvp.first << " = " << to_string(kvp.second) << '\n';
} }
} }
}; }
} // namespace <anonymous> } // 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