folly/io/async/AsyncSocket.cpp: avoid shadowing warning for "rv"
authorJim Meyering <meyering@fb.com>
Tue, 4 Oct 2016 19:41:07 +0000 (12:41 -0700)
committerFacebook Github Bot <facebook-github-bot-bot@fb.com>
Tue, 4 Oct 2016 19:53:30 +0000 (12:53 -0700)
commit0e125753e9054832a85511bb8c48272e603fceb5
treef3bdb5b376f256119e9b700a504fa60d7212597c
parent4d012b253803f49ce475d26590878c057291fb43
folly/io/async/AsyncSocket.cpp: avoid shadowing warning for "rv"

Summary:
Enabling the proposed-for-upstream gcc -Wshadow-local option exposes this shadowing:
```
folly/io/async/AsyncSocket.cpp: In member function 'virtual void folly::AsyncSocket::connect(folly::AsyncSocket::ConnectCallback*, const folly::SocketAddress&, int, const OptionMap&, const folly::SocketAddress&)':
folly/io/async/AsyncSocket.cpp:421:11: error: declaration of 'rv' shadows a previous local [-Werror=shadow-compatible-local]
folly/io/async/AsyncSocket.cpp:364:9: error: shadowed declaration is here [-Werror=shadow-compatible-local]
```

Reviewed By: ngoyal, knekritz

Differential Revision: D3963873

fbshipit-source-id: 85b3ab1fc3b200b81615a00d66a183cc9c792a90
folly/io/async/AsyncSocket.cpp