From fb02bf059a8b21b45e4bbb1055c1a5d6ceaf985c Mon Sep 17 00:00:00 2001 From: Tom Hicks Date: Sat, 15 Apr 2023 16:30:32 -0700 Subject: [PATCH] Disables clang warning for a not yet used color variable. --- sbf-cpp/Colors.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sbf-cpp/Colors.cpp b/sbf-cpp/Colors.cpp index eb63ebc..1eeec40 100644 --- a/sbf-cpp/Colors.cpp +++ b/sbf-cpp/Colors.cpp @@ -4,7 +4,10 @@ namespace SBF { // TODO: Update these if they're wrong. They should be the initial color pair. static uint8_t g_foregroundColor = kColorDarkWhite; + #pragma clang diagnostic push + #pragma clang diagnostic ignored "-Wunused-variable" static uint8_t g_backgroundColor = kColorDarkBlack; + #pragma clang diagnostic pop static uint16_t g_color; void SetForegroundColor(uint8_t foregroundColor) {