make sure compilers dont complain about unused parameters

This commit is contained in:
Ivan Trofimov 2022-07-24 01:18:07 +03:00
parent badc4eafa3
commit a8a73e31b7
2 changed files with 6 additions and 0 deletions

View File

@ -150,6 +150,9 @@ public:
*/ */
virtual bool process(ConnectionImpl *connection) override virtual bool process(ConnectionImpl *connection) override
{ {
// make sure compilers dont complain about unused parameters
(void) connection;
// this is an exception // this is an exception
throw ProtocolException("unimplemented frame type " + std::to_string(type())); throw ProtocolException("unimplemented frame type " + std::to_string(type()));

View File

@ -95,6 +95,9 @@ public:
*/ */
virtual bool process(ConnectionImpl *connection) override virtual bool process(ConnectionImpl *connection) override
{ {
// make sure compilers dont complain about unused parameters
(void) connection;
// this is an exception // this is an exception
throw ProtocolException("unimplemented frame type " + std::to_string(type()) + " class " + std::to_string(classID()) + " method " + std::to_string(methodID())); throw ProtocolException("unimplemented frame type " + std::to_string(type()) + " class " + std::to_string(classID()) + " method " + std::to_string(methodID()));
} }