Commit 5599fb92 authored by Davis King's avatar Davis King

Minor change to avoid a compiler warning.

parent 63dfa090
...@@ -348,6 +348,9 @@ namespace dlib ...@@ -348,6 +348,9 @@ namespace dlib
sockstreambuf::kernel_2a buf(con); sockstreambuf::kernel_2a buf(con);
std::istream in(&buf); std::istream in(&buf);
typename receive_pipe_type::type item; typename receive_pipe_type::type item;
// This isn't necessary but doing it avoids a warning about
// item being uninitialized sometimes.
assign_zero_if_built_in_scalar_type(item);
while (in.peek() != EOF) while (in.peek() != EOF)
{ {
...@@ -417,6 +420,9 @@ namespace dlib ...@@ -417,6 +420,9 @@ namespace dlib
sockstreambuf::kernel_2a buf(con); sockstreambuf::kernel_2a buf(con);
std::ostream out(&buf); std::ostream out(&buf);
typename transmit_pipe_type::type item; typename transmit_pipe_type::type item;
// This isn't necessary but doing it avoids a warning about
// item being uninitialized sometimes.
assign_zero_if_built_in_scalar_type(item);
while (out) while (out)
......
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