From 0b92c2d84f0b77c20e0ce935604ea05326f5cc31 Mon Sep 17 00:00:00 2001 From: Bram Oosterhuis Date: Wed, 17 Jul 2024 17:18:12 +0200 Subject: [PATCH] Bluetooth: save cycles in the driver (#45) --- Source/bluetooth/drivers/SerialDriver.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/bluetooth/drivers/SerialDriver.h b/Source/bluetooth/drivers/SerialDriver.h index 1311d46..30561a5 100644 --- a/Source/bluetooth/drivers/SerialDriver.h +++ b/Source/bluetooth/drivers/SerialDriver.h @@ -234,11 +234,12 @@ namespace Bluetooth { Response& operator=(const Response& copy) = delete; public: +PUSH_WARNING(DISABLE_WARNING_MAYBE_UNINITIALIZED) inline Response(const command cmd, const uint16_t sequence) : Request(cmd, sequence, _value) - , _value() { } +POP_WARNING() inline ~Response() { }