This is an automated email from the ASF dual-hosted git repository.

jensg pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/thrift.git

commit cf73b66cd83e2e883d00dff518d3c0250bb839cc
Author: Kevin Wojniak <[email protected]>
AuthorDate: Sat Nov 2 22:01:56 2019 -0700

    Remove unused exception variable
    Client: Python
    Patch: Kevin Wojniak
    
    This closes #1912
    
    Fixes MSVC warning seen in logs:
    > [00:11:03] src\ext/protocol.tcc(177): warning C4101: 'ex': unreferenced
    > local variable 
[C:\projects\build\MSVC2015\x86\lib\py\python_build.vcxproj]
---
 lib/py/src/ext/protocol.tcc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/py/src/ext/protocol.tcc b/lib/py/src/ext/protocol.tcc
index e15df7e..ede2bb4 100644
--- a/lib/py/src/ext/protocol.tcc
+++ b/lib/py/src/ext/protocol.tcc
@@ -174,7 +174,7 @@ inline bool ProtocolBase<Impl>::writeBuffer(char* data, 
size_t size) {
   if (output_->buf.capacity() < need) {
     try {
       output_->buf.reserve(need);
-    } catch (std::bad_alloc& ex) {
+    } catch (std::bad_alloc&) {
       PyErr_SetString(PyExc_MemoryError, "Failed to allocate write buffer");
       return false;
     }

Reply via email to