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:
parent
98656b3d14
commit
8eeaeeca20
2 changed files with 6 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue