From a565a0aadc7f26beb04b580dc15b04c2dd7c52d8 Mon Sep 17 00:00:00 2001 From: kurte Date: Wed, 4 Dec 2024 09:19:47 -0800 Subject: [PATCH] zephyrSerial.h - reduce compiler warnings --- cores/arduino/zephyrSerial.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cores/arduino/zephyrSerial.h b/cores/arduino/zephyrSerial.h index 2febd369..7e7a160a 100644 --- a/cores/arduino/zephyrSerial.h +++ b/cores/arduino/zephyrSerial.h @@ -14,8 +14,8 @@ namespace arduino { class ZephyrSerialStub : public HardwareSerial { public: - void begin(unsigned long baudRate) { } - void begin(unsigned long baudrate, uint16_t config) { } + void begin(__attribute__((unused)) unsigned long baudRate) { } + void begin(__attribute__((unused)) unsigned long baudrate, __attribute__((unused)) uint16_t config) { } void end() { } int available() { return 0; } int peek() { return 0; }