summaryrefslogtreecommitdiff
path: root/src/drivers
diff options
context:
space:
mode:
authorRobin Howard <robin@rhoward.id.au>2023-10-28 13:25:50 +1100
committerRobin Howard <robin@rhoward.id.au>2023-10-28 13:25:50 +1100
commit18d90051c9145ead86d4da701a2bc54f45e4fb66 (patch)
tree38238375a002dbb599f614b1b9d0e73de0876a60 /src/drivers
parent6ef0fa2b1b75f2afd3beaf112b6a29a989ce49d8 (diff)
downloadtangara-fw-18d90051c9145ead86d4da701a2bc54f45e4fb66.tar.gz
Annotates the kTag with maybe_unused; they're only used for logging.
Diffstat (limited to 'src/drivers')
-rw-r--r--src/drivers/bluetooth.cpp2
-rw-r--r--src/drivers/display.cpp2
-rw-r--r--src/drivers/i2s_dac.cpp2
-rw-r--r--src/drivers/nvs.cpp2
-rw-r--r--src/drivers/samd.cpp2
-rw-r--r--src/drivers/storage.cpp2
-rw-r--r--src/drivers/touchwheel.cpp2
7 files changed, 7 insertions, 7 deletions
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<I2SDac*> {
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;