From: Jonathan Wakely Date: Wed, 22 Jun 2011 22:46:14 +0000 (+0000) Subject: socket.cc: Use variable and remove attribute. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8eeaeeca204ae78d45578acd5912eca6483c9d10;p=gcc.git socket.cc: Use variable and remove attribute. 2011-06-22 Jonathan Wakely * testsuite/20_util/bind/socket.cc: Use variable and remove attribute. From-SVN: r175322 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 7cbae95f394..200c28653c9 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,7 @@ +2011-06-22 Jonathan Wakely + + * testsuite/20_util/bind/socket.cc: Use variable and remove attribute. + 2011-06-22 Paolo Carlini * include/ext/pb_ds/detail/pat_trie_/pat_trie_base.hpp: Avoid -Wall diff --git a/libstdc++-v3/testsuite/20_util/bind/socket.cc b/libstdc++-v3/testsuite/20_util/bind/socket.cc index 041100f85c2..c5019215c02 100644 --- a/libstdc++-v3/testsuite/20_util/bind/socket.cc +++ b/libstdc++-v3/testsuite/20_util/bind/socket.cc @@ -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); }