From 18d90051c9145ead86d4da701a2bc54f45e4fb66 Mon Sep 17 00:00:00 2001 From: Robin Howard Date: Sat, 28 Oct 2023 13:25:50 +1100 Subject: Annotates the kTag with maybe_unused; they're only used for logging. --- src/drivers/bluetooth.cpp | 2 +- src/drivers/display.cpp | 2 +- src/drivers/i2s_dac.cpp | 2 +- src/drivers/nvs.cpp | 2 +- src/drivers/samd.cpp | 2 +- src/drivers/storage.cpp | 2 +- src/drivers/touchwheel.cpp | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) (limited to 'src/drivers') diff --git a/src/drivers/bluetooth.cpp b/src/drivers/bluetooth.cpp index 797a05d7..5bb4a5b4 100644 --- a/src/drivers/bluetooth.cpp +++ b/src/drivers/bluetooth.cpp @@ -29,7 +29,7 @@ namespace drivers { -static constexpr char kTag[] = "bluetooth"; +[[maybe_unused]] static constexpr char kTag[] = "bluetooth"; DRAM_ATTR static StreamBufferHandle_t sStream = nullptr; diff --git a/src/drivers/display.cpp b/src/drivers/display.cpp index a06320f4..cb3ee3a0 100644 --- a/src/drivers/display.cpp +++ b/src/drivers/display.cpp @@ -37,7 +37,7 @@ #include "spi.hpp" #include "tasks.hpp" -static const char* kTag = "DISPLAY"; +[[maybe_unused]] static const char* kTag = "DISPLAY"; // TODO(jacqueline): Encode width and height variations in the init data. static const uint8_t kDisplayHeight = 128 + 2; diff --git a/src/drivers/i2s_dac.cpp b/src/drivers/i2s_dac.cpp index 435c16e4..ef1a64ab 100644 --- a/src/drivers/i2s_dac.cpp +++ b/src/drivers/i2s_dac.cpp @@ -36,7 +36,7 @@ namespace drivers { -static const char* kTag = "i2s_dac"; +[[maybe_unused]] static const char* kTag = "i2s_dac"; static const i2s_port_t kI2SPort = I2S_NUM_0; auto I2SDac::create(IGpios& expander) -> std::optional { diff --git a/src/drivers/nvs.cpp b/src/drivers/nvs.cpp index ffaa0a5e..c8a9a7c7 100644 --- a/src/drivers/nvs.cpp +++ b/src/drivers/nvs.cpp @@ -21,7 +21,7 @@ namespace drivers { -static constexpr char kTag[] = "nvm"; +[[maybe_unused]] static constexpr char kTag[] = "nvm"; static constexpr uint8_t kSchemaVersion = 1; static constexpr char kKeyVersion[] = "ver"; diff --git a/src/drivers/samd.cpp b/src/drivers/samd.cpp index 459b7bce..e6014306 100644 --- a/src/drivers/samd.cpp +++ b/src/drivers/samd.cpp @@ -22,7 +22,7 @@ enum Registers : uint8_t { }; static const uint8_t kAddress = 0x45; -static const char kTag[] = "SAMD"; +[[maybe_unused]] static const char kTag[] = "SAMD"; namespace drivers { diff --git a/src/drivers/storage.cpp b/src/drivers/storage.cpp index 0492b5dc..cb1407a6 100644 --- a/src/drivers/storage.cpp +++ b/src/drivers/storage.cpp @@ -26,7 +26,7 @@ #include "gpios.hpp" #include "memory_resource.hpp" -static const char* kTag = "SDSTORAGE"; +[[maybe_unused]] static const char* kTag = "SDSTORAGE"; static const uint8_t kMaxOpenFiles = 8; namespace drivers { diff --git a/src/drivers/touchwheel.cpp b/src/drivers/touchwheel.cpp index cad3433d..697f9881 100644 --- a/src/drivers/touchwheel.cpp +++ b/src/drivers/touchwheel.cpp @@ -24,7 +24,7 @@ namespace drivers { // Touch wheel implementation using a Microchip AT42QT2120 -static const char* kTag = "TOUCHWHEEL"; +[[maybe_unused]] static const char* kTag = "TOUCHWHEEL"; static const uint8_t kTouchWheelAddress = 0x1C; static const gpio_num_t kIntPin = GPIO_NUM_25; -- cgit v1.2.3