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
This commit is contained in:
Jonathan Wakely 2011-06-22 22:46:14 +00:00 committed by Jonathan Wakely
parent 98656b3d14
commit 8eeaeeca20
2 changed files with 6 additions and 2 deletions

View file

@ -1,3 +1,7 @@
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

View file

@ -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);
}