Commit 8eeaeeca by Jonathan Wakely Committed by Jonathan Wakely

socket.cc: Use variable and remove attribute.

2011-06-22  Jonathan Wakely  <jwakely.gcc@gmail.com>

	* testsuite/20_util/bind/socket.cc: Use variable and remove attribute.

From-SVN: r175322
parent 98656b3d
2011-06-22 Jonathan Wakely <jwakely.gcc@gmail.com>
* testsuite/20_util/bind/socket.cc: Use variable and remove attribute.
2011-06-22 Paolo Carlini <paolo.carlini@oracle.com>
* include/ext/pb_ds/detail/pat_trie_/pat_trie_base.hpp: Avoid -Wall
......
......@@ -35,7 +35,7 @@ int test01()
{
int fd = 1;
my_sockaddr sa; // N.B. non-const
size_t len __attribute__((unused)) = sizeof(sa); // N.B. size_t not socklen_t
return bind(fd, &sa, sizeof(sa));
size_t len = sizeof(sa); // N.B. size_t not my_socklen_t
return bind(fd, &sa, len);
}
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