diff options
author | Drashna Jaelre <drashna@live.com> | 2020-11-07 21:35:21 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-07 21:35:21 -0800 |
commit | ff7f70314eb2b005124b9f365a5a64ea6b5d32dd (patch) | |
tree | 3c079924db2f0a32af0903b93f91c4b339667a3e | |
parent | db829c9453af7b7de802fad844b56358dce594df (diff) | |
download | qmk_firmware-ff7f70314eb2b005124b9f365a5a64ea6b5d32dd.tar.gz qmk_firmware-ff7f70314eb2b005124b9f365a5a64ea6b5d32dd.zip |
[Keyboard] Fix unused variables in mschwingen modelm (#10811)
Specifically, the lgreen variable isn't used, and avr-gcc 8.x complains about this. To prevent it from being an issue, just set all of these led variables to be unused.
-rw-r--r-- | keyboards/mschwingen/modelm/modelm.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/keyboards/mschwingen/modelm/modelm.c b/keyboards/mschwingen/modelm/modelm.c index 5756a9517..c1180612a 100644 --- a/keyboards/mschwingen/modelm/modelm.c +++ b/keyboards/mschwingen/modelm/modelm.c | |||
@@ -47,19 +47,19 @@ static cRGB led[RGBLED_NUM] = {{255, 255, 255}, {255, 255, 255}, {255, 255, 255} | |||
47 | 47 | ||
48 | static const cRGB black = {.r = 0, .g = 0, .b = 0}; | 48 | static const cRGB black = {.r = 0, .g = 0, .b = 0}; |
49 | 49 | ||
50 | static const cRGB green = {.r = 0, .g = BRIGHT, .b = 0}; | 50 | static const __attribute__((unused)) cRGB green = {.r = 0, .g = BRIGHT, .b = 0}; |
51 | static const cRGB lgreen = {.r = 0, .g = DIM, .b = 0}; | 51 | static const __attribute__((unused)) cRGB lgreen = {.r = 0, .g = DIM, .b = 0}; |
52 | 52 | ||
53 | static const cRGB red = {.r = BRIGHT, .g = 0, .b = 0}; | 53 | static const __attribute__((unused)) cRGB red = {.r = BRIGHT, .g = 0, .b = 0}; |
54 | static const cRGB lred = {.r = DIM, .g = 0, .b = 0}; | 54 | static const __attribute__((unused)) cRGB lred = {.r = DIM, .g = 0, .b = 0}; |
55 | 55 | ||
56 | static const cRGB blue = {.r = 0, .g = 0, .b = BRIGHT}; | 56 | static const __attribute__((unused)) cRGB blue = {.r = 0, .g = 0, .b = BRIGHT}; |
57 | static const cRGB lblue = {.r = 0, .g = 0, .b = DIM}; | 57 | static const __attribute__((unused)) cRGB lblue = {.r = 0, .g = 0, .b = DIM}; |
58 | 58 | ||
59 | static const cRGB turq = {.r = 0, .g = BRIGHT, .b = BRIGHT}; | 59 | static const __attribute__((unused)) cRGB turq = {.r = 0, .g = BRIGHT, .b = BRIGHT}; |
60 | static const cRGB lturq = {.r = 0, .g = DIM, .b = DIM}; | 60 | static const __attribute__((unused)) cRGB lturq = {.r = 0, .g = DIM, .b = DIM}; |
61 | 61 | ||
62 | static const cRGB white = {.r = BRIGHT, .g = BRIGHT, .b = BRIGHT}; | 62 | static const __attribute__((unused)) cRGB white = {.r = BRIGHT, .g = BRIGHT, .b = BRIGHT}; |
63 | 63 | ||
64 | static led_t led_state; | 64 | static led_t led_state; |
65 | static uint8_t layer; | 65 | static uint8_t layer; |