Commit cff605ad authored by Davis King's avatar Davis King
Browse files

fix warnings

parent df2bbd8a
...@@ -3382,7 +3382,7 @@ namespace dlib ...@@ -3382,7 +3382,7 @@ namespace dlib
const tensor& get_layer_params() const { return params; } const tensor& get_layer_params() const { return params; }
tensor& get_layer_params() { return params; } tensor& get_layer_params() { return params; }
friend void serialize(const extract_& item, std::ostream& out) friend void serialize(const extract_& /*item*/, std::ostream& out)
{ {
serialize("extract_", out); serialize("extract_", out);
serialize(_offset, out); serialize(_offset, out);
...@@ -3391,7 +3391,7 @@ namespace dlib ...@@ -3391,7 +3391,7 @@ namespace dlib
serialize(_nc, out); serialize(_nc, out);
} }
friend void deserialize(extract_& item, std::istream& in) friend void deserialize(extract_& /*item*/, std::istream& in)
{ {
std::string version; std::string version;
deserialize(version, in); deserialize(version, in);
...@@ -3413,7 +3413,7 @@ namespace dlib ...@@ -3413,7 +3413,7 @@ namespace dlib
if (nc != _nc) throw serialization_error("Wrong nc found while deserializing dlib::extract_"); if (nc != _nc) throw serialization_error("Wrong nc found while deserializing dlib::extract_");
} }
friend std::ostream& operator<<(std::ostream& out, const extract_& item) friend std::ostream& operator<<(std::ostream& out, const extract_& /*item*/)
{ {
out << "extract\t (" out << "extract\t ("
<< "offset="<<_offset << "offset="<<_offset
...@@ -3424,7 +3424,7 @@ namespace dlib ...@@ -3424,7 +3424,7 @@ namespace dlib
return out; return out;
} }
friend void to_xml(const extract_& item, std::ostream& out) friend void to_xml(const extract_& /*item*/, std::ostream& out)
{ {
out << "<extract"; out << "<extract";
out << " offset='"<<_offset<<"'"; out << " offset='"<<_offset<<"'";
......
...@@ -2536,7 +2536,7 @@ namespace ...@@ -2536,7 +2536,7 @@ namespace
double error = 0.0; double error = 0.0;
for (size_t i = 0; i < out.size(); ++i) for (size_t i = 0; i < out.size(); ++i)
{ {
for (size_t c = 0; c < num_channels; ++c) for (long c = 0; c < num_channels; ++c)
{ {
error += mean(squared(out[i][c] - labels[i][c])); error += mean(squared(out[i][c] - labels[i][c]));
} }
......
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