From 8eeaeeca204ae78d45578acd5912eca6483c9d10 Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Wed, 22 Jun 2011 22:46:14 +0000 Subject: [PATCH] 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 --- libstdc++-v3/ChangeLog | 4 ++++ libstdc++-v3/testsuite/20_util/bind/socket.cc | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) 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); } -- 2.30.2