From: Jonathan Wakely Date: Wed, 22 Jun 2011 22:46:14 +0000 (+0000) Subject: socket.cc: Use variable and remove attribute. X-Git-Tag: releases/gcc-4.7.0~5819 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8eeaeeca204ae78d45578acd5912eca6483c9d10;p=thirdparty%2Fgcc.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 7cbae95f394b..200c28653c98 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 041100f85c21..c5019215c025 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); }