From eedfc006604c93c9e2d0095f6de0fc8dec859294 Mon Sep 17 00:00:00 2001 From: Sebastian Dietrich Date: Mon, 25 Apr 2022 20:35:01 +0200 Subject: [PATCH] Avoid compiler warnings about unused parameters --- include/amqpcpp/voidfield.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/amqpcpp/voidfield.h b/include/amqpcpp/voidfield.h index aa7780f0..177b5f51 100644 --- a/include/amqpcpp/voidfield.h +++ b/include/amqpcpp/voidfield.h @@ -33,7 +33,7 @@ class VoidField : public Field * Construct based on incoming data * @param frame */ - VoidField(InBuffer &frame) {} + VoidField(InBuffer &frame) { (void)frame; } /** * Destructor @@ -65,7 +65,7 @@ class VoidField : public Field * Write encoded payload to the given buffer. * @param buffer OutBuffer to write to */ - virtual void fill(OutBuffer &buffer) const override {} + virtual void fill(OutBuffer &buffer) const override { (void)buffer; } /** * Get the type ID that is used to identify this type of