Skip to content

Commit

Permalink
make sure compilers dont complain about unused parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
itrofimow committed Jul 23, 2022
1 parent badc4ea commit a8a73e3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/extframe.h
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,9 @@ class ExtFrame : public Frame
*/
virtual bool process(ConnectionImpl *connection) override
{
// make sure compilers dont complain about unused parameters
(void) connection;

// this is an exception
throw ProtocolException("unimplemented frame type " + std::to_string(type()));

Expand Down
3 changes: 3 additions & 0 deletions src/methodframe.h
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@ class MethodFrame : public ExtFrame
*/
virtual bool process(ConnectionImpl *connection) override
{
// make sure compilers dont complain about unused parameters
(void) connection;

// this is an exception
throw ProtocolException("unimplemented frame type " + std::to_string(type()) + " class " + std::to_string(classID()) + " method " + std::to_string(methodID()));
}
Expand Down

0 comments on commit a8a73e3

Please sign in to comment.