diff --git a/proof/proof/src/TProofServ.cxx b/proof/proof/src/TProofServ.cxx
index 58d69f461b4be952570982b729de4b14d633c7f0..b5be29ecac3b337777318771ec99797bee15655e 100644
--- a/proof/proof/src/TProofServ.cxx
+++ b/proof/proof/src/TProofServ.cxx
@@ -1300,7 +1300,7 @@ void TProofServ::HandleSocketInput()
          }
       }
    
-   } catch (std::bad_alloc &eba) {
+   } catch (std::bad_alloc &) {
       // Memory allocation problem:
       exmsg.Form("%s: caught exception 'bad_alloc' (memory leak?) %s", GetOrdinal(), fgLastMsg.Data());
       // Try to warn the user