From 1e07ff1fb108a305feca659b17ec03ba3e750455 Mon Sep 17 00:00:00 2001 From: Ryan Date: Fri, 24 Mar 2023 04:21:37 +1100 Subject: [PATCH] Fix some more missing `#pragma once`s (#20241) --- keyboards/25keys/cassette42/common/oled_helper.h | 2 ++ keyboards/doio/kb16/lib/bongocat/bongocat.h | 2 ++ keyboards/doio/kb16/lib/layer_status/layer_status.h | 2 ++ keyboards/doio/kb16/lib/logo.h | 2 ++ keyboards/gboards/engine/keymap_engine.h | 2 ++ keyboards/gboards/g/config_default.h | 2 ++ keyboards/gboards/g/keymap_combo.h | 2 ++ keyboards/gboards/g/keymap_engine.h | 3 +++ keyboards/gopolar/gg86/lib/logo.h | 2 ++ keyboards/gopolar/gg86/lib/wave.h | 2 ++ keyboards/handwired/d48/taphold.h | 2 ++ keyboards/handwired/promethium/color.h | 2 ++ keyboards/handwired/promethium/rgbsps.h | 2 ++ .../handwired/symmetric70_proto/matrix_fast/test_config.h | 2 ++ .../symmetric70_proto/matrix_fast/test_config_74hc157.h | 2 ++ .../symmetric70_proto/matrix_fast/test_config_direct.h | 2 ++ keyboards/hhkb/rn42/suart.h | 5 +---- keyboards/horrortroll/handwired_k552/lib/bongocat.h | 2 ++ keyboards/horrortroll/handwired_k552/lib/galaxy.h | 2 ++ keyboards/horrortroll/handwired_k552/lib/logo.h | 2 ++ keyboards/horrortroll/lemon40/lib/bongocat.h | 2 ++ keyboards/marksard/rhymestone/common/oled_helper.h | 2 ++ keyboards/marksard/treadstone48/common/oled_helper.h | 2 ++ keyboards/work_louder/rgb_functions.h | 2 ++ keyboards/yushakobo/quick17/quick17_prefs.h | 2 ++ 25 files changed, 50 insertions(+), 4 deletions(-) diff --git a/keyboards/25keys/cassette42/common/oled_helper.h b/keyboards/25keys/cassette42/common/oled_helper.h index daeb7bfa4d5f80bdd25b7909568cb5268eaa8269..d677c2a872f3d0a39f47089940090f5ef7e5867e 100644 --- a/keyboards/25keys/cassette42/common/oled_helper.h +++ b/keyboards/25keys/cassette42/common/oled_helper.h @@ -1,3 +1,5 @@ +#pragma once + #ifdef OLED_ENABLE void render_logo(void); diff --git a/keyboards/doio/kb16/lib/bongocat/bongocat.h b/keyboards/doio/kb16/lib/bongocat/bongocat.h index 65ceabc6822bd2b65bc6cd5094f1c600b101c177..2ffeca1993538868d305f431f14bdbfd6c0fb3fa 100644 --- a/keyboards/doio/kb16/lib/bongocat/bongocat.h +++ b/keyboards/doio/kb16/lib/bongocat/bongocat.h @@ -14,4 +14,6 @@ * along with this program. If not, see . */ +#pragma once + void render_bongocat(void); diff --git a/keyboards/doio/kb16/lib/layer_status/layer_status.h b/keyboards/doio/kb16/lib/layer_status/layer_status.h index a367a829d7553ad0a3f324500cea2ef09b4fdfe4..2c4b08f25a52e1adadebd3656a1754a26d555809 100644 --- a/keyboards/doio/kb16/lib/layer_status/layer_status.h +++ b/keyboards/doio/kb16/lib/layer_status/layer_status.h @@ -15,4 +15,6 @@ * along with this program. If not, see . */ +#pragma once + void render_layer_status(void); diff --git a/keyboards/doio/kb16/lib/logo.h b/keyboards/doio/kb16/lib/logo.h index 91d1ddce34b2f6b6b316951319a32e2b8dfd0805..bb3ddc446e37a9ac79e5b5a124f36931b42c43cf 100644 --- a/keyboards/doio/kb16/lib/logo.h +++ b/keyboards/doio/kb16/lib/logo.h @@ -15,4 +15,6 @@ * along with this program. If not, see . */ +#pragma once + void render_logo(void); diff --git a/keyboards/gboards/engine/keymap_engine.h b/keyboards/gboards/engine/keymap_engine.h index 599c1ca3e406d1f18c00c9de4c72475c7d883293..dfed493e2137fbca57f98df07922aaa05ff02733 100644 --- a/keyboards/gboards/engine/keymap_engine.h +++ b/keyboards/gboards/engine/keymap_engine.h @@ -7,6 +7,8 @@ * With this disgusting bodge, you can just edit your .defs and compile! */ +#pragma once + // Clear all X Macros #define PRES BLANK #define KEYS BLANK diff --git a/keyboards/gboards/g/config_default.h b/keyboards/gboards/g/config_default.h index 821c2c4ad59a1bd6cb17ed1ac9c82ac18d5c9d70..56dd634d133be42b3d8fbf27d60c62d3707fa879 100644 --- a/keyboards/gboards/g/config_default.h +++ b/keyboards/gboards/g/config_default.h @@ -1,3 +1,5 @@ +#pragma once + #include "engine.h" // Configuration options for the engine diff --git a/keyboards/gboards/g/keymap_combo.h b/keyboards/gboards/g/keymap_combo.h index 68ea44b1b478c088c5a9bd511e2d6c6dd3e19578..c062a298a54a99637c70f9711e71272251c7ec60 100644 --- a/keyboards/gboards/g/keymap_combo.h +++ b/keyboards/gboards/g/keymap_combo.h @@ -1,3 +1,5 @@ +#pragma once + // Keymap helpers // define reference layers per layer. #define REF_LAYER_FOR_LAYER(LAYER, REF_LAYER) \ diff --git a/keyboards/gboards/g/keymap_engine.h b/keyboards/gboards/g/keymap_engine.h index 055b5941e433da95c10ab673e11c7b5540f43be7..e134472da0ef2ef1cdbb1e9e21ae0def229f3617 100644 --- a/keyboards/gboards/g/keymap_engine.h +++ b/keyboards/gboards/g/keymap_engine.h @@ -6,6 +6,9 @@ * using a external generator (Like is done for the ASETNIOP base keymaps) * With this disgusting bodge, you can just edit your .defs and compile! */ + +#pragma once + #include "g/engine.h" // Clear all X Macros diff --git a/keyboards/gopolar/gg86/lib/logo.h b/keyboards/gopolar/gg86/lib/logo.h index 08ab8ea5290d2bc6aebebc424e4a3c92877a28f8..d1197b15f5cda9802e95fa997ec684c36054b357 100644 --- a/keyboards/gopolar/gg86/lib/logo.h +++ b/keyboards/gopolar/gg86/lib/logo.h @@ -14,4 +14,6 @@ * along with this program. If not, see . */ +#pragma once + void render_logo(void); diff --git a/keyboards/gopolar/gg86/lib/wave.h b/keyboards/gopolar/gg86/lib/wave.h index f4e5e5052cd6e3c3adb1334725ee48603d6581b4..d87525c1d422401c698172207ffff48371e79cf9 100644 --- a/keyboards/gopolar/gg86/lib/wave.h +++ b/keyboards/gopolar/gg86/lib/wave.h @@ -15,6 +15,8 @@ * along with this program. If not, see . */ +#pragma once + extern const unsigned char font[] PROGMEM; #define ROW_1 OLED_DISPLAY_WIDTH diff --git a/keyboards/handwired/d48/taphold.h b/keyboards/handwired/d48/taphold.h index 3bc5ca02756d80a03aee79002ff6dd48dfbbc73c..2a691aa63f616b7c8d6425fa0996f642f2c1b2ef 100644 --- a/keyboards/handwired/d48/taphold.h +++ b/keyboards/handwired/d48/taphold.h @@ -1,3 +1,5 @@ +#pragma once + #include "quantum.h" typedef enum taphold_mode_t { diff --git a/keyboards/handwired/promethium/color.h b/keyboards/handwired/promethium/color.h index 077242d5f1798ece87cb567e170a2f220498361e..2bbfcb83a782bf6a50fb858658c81576af987886 100644 --- a/keyboards/handwired/promethium/color.h +++ b/keyboards/handwired/promethium/color.h @@ -1,3 +1,5 @@ +#pragma once + #define COLOR_BLANK 0, 0, 0 #define COLOR_BLACK 0, 0, 0 diff --git a/keyboards/handwired/promethium/rgbsps.h b/keyboards/handwired/promethium/rgbsps.h index 72612a7a82c3925f0d64de728fc384fb37ec8a09..77689344fc8b19ff7dd4f67c12dcb608c85fb5ba 100644 --- a/keyboards/handwired/promethium/rgbsps.h +++ b/keyboards/handwired/promethium/rgbsps.h @@ -1,3 +1,5 @@ +#pragma once + void rgbsps_set(uint8_t index, uint8_t r, uint8_t g, uint8_t b); void rgbsps_setall(uint8_t r, uint8_t g, uint8_t b); void rgbsps_turnoff(void); diff --git a/keyboards/handwired/symmetric70_proto/matrix_fast/test_config.h b/keyboards/handwired/symmetric70_proto/matrix_fast/test_config.h index 25b5d4e01846a95179f3c8310c9f0a7ed583490e..bc9adddbbd293c2bdae9c9b2826b1371d3fa3d2d 100644 --- a/keyboards/handwired/symmetric70_proto/matrix_fast/test_config.h +++ b/keyboards/handwired/symmetric70_proto/matrix_fast/test_config.h @@ -1,3 +1,5 @@ +#pragma once + // list of OUTPUT(row) ports #define MATRIX_OUT_PORTS (Port_D, MCU_GPIO, D0), (Port_C, MCU_GPIO, C0), (Port_E, MCU_GPIO, E0), (Port_B, MCU_GPIO, B0) // list of OUTPUT(row) pins diff --git a/keyboards/handwired/symmetric70_proto/matrix_fast/test_config_74hc157.h b/keyboards/handwired/symmetric70_proto/matrix_fast/test_config_74hc157.h index 6abc25b862802c6ca95fd415afceb135e12ef0ee..bb310f28f9ffe23546496f1edd7c8c138b7e9d1d 100644 --- a/keyboards/handwired/symmetric70_proto/matrix_fast/test_config_74hc157.h +++ b/keyboards/handwired/symmetric70_proto/matrix_fast/test_config_74hc157.h @@ -1,3 +1,5 @@ +#pragma once + #define MATRIX_EXTENSION_74HC157 B2 // #define MATRIX_EXTENSION_74HC153 B2, B6 diff --git a/keyboards/handwired/symmetric70_proto/matrix_fast/test_config_direct.h b/keyboards/handwired/symmetric70_proto/matrix_fast/test_config_direct.h index aeea12950dbe3bbdde0817444432d35fc4e25a5b..8b475ddcd6ee4f12907c48b6947a7d92e7888c73 100644 --- a/keyboards/handwired/symmetric70_proto/matrix_fast/test_config_direct.h +++ b/keyboards/handwired/symmetric70_proto/matrix_fast/test_config_direct.h @@ -1,3 +1,5 @@ +#pragma once + #if defined(__AVR__) /* -------------------- AVR (Pro Micro) ----------------------- */ diff --git a/keyboards/hhkb/rn42/suart.h b/keyboards/hhkb/rn42/suart.h index 7d92be069299159b563959b0c9b676a71febd8bf..40e40648c77af3be868e04255da9a0bca39e3154 100644 --- a/keyboards/hhkb/rn42/suart.h +++ b/keyboards/hhkb/rn42/suart.h @@ -1,8 +1,5 @@ -#ifndef SUART -#define SUART +#pragma once void xmit(uint8_t); uint8_t rcvr(void); uint8_t recv(void); - -#endif /* SUART */ diff --git a/keyboards/horrortroll/handwired_k552/lib/bongocat.h b/keyboards/horrortroll/handwired_k552/lib/bongocat.h index 65ceabc6822bd2b65bc6cd5094f1c600b101c177..2ffeca1993538868d305f431f14bdbfd6c0fb3fa 100644 --- a/keyboards/horrortroll/handwired_k552/lib/bongocat.h +++ b/keyboards/horrortroll/handwired_k552/lib/bongocat.h @@ -14,4 +14,6 @@ * along with this program. If not, see . */ +#pragma once + void render_bongocat(void); diff --git a/keyboards/horrortroll/handwired_k552/lib/galaxy.h b/keyboards/horrortroll/handwired_k552/lib/galaxy.h index 54ce2ad90a1475a81029788fa49740c571d7647f..3173278effd3daf705c0715812fec8a74a6851e3 100644 --- a/keyboards/horrortroll/handwired_k552/lib/galaxy.h +++ b/keyboards/horrortroll/handwired_k552/lib/galaxy.h @@ -14,4 +14,6 @@ * along with this program. If not, see . */ +#pragma once + void render_galaxy(void); diff --git a/keyboards/horrortroll/handwired_k552/lib/logo.h b/keyboards/horrortroll/handwired_k552/lib/logo.h index 5a917ae820137a2d655cf281a15e971f713a32a2..ba53e55476c5482522cfe5a59eaf8690d27b5b22 100644 --- a/keyboards/horrortroll/handwired_k552/lib/logo.h +++ b/keyboards/horrortroll/handwired_k552/lib/logo.h @@ -14,4 +14,6 @@ * along with this program. If not, see . */ +#pragma once + void render_logo(void); diff --git a/keyboards/horrortroll/lemon40/lib/bongocat.h b/keyboards/horrortroll/lemon40/lib/bongocat.h index 65ceabc6822bd2b65bc6cd5094f1c600b101c177..2ffeca1993538868d305f431f14bdbfd6c0fb3fa 100644 --- a/keyboards/horrortroll/lemon40/lib/bongocat.h +++ b/keyboards/horrortroll/lemon40/lib/bongocat.h @@ -14,4 +14,6 @@ * along with this program. If not, see . */ +#pragma once + void render_bongocat(void); diff --git a/keyboards/marksard/rhymestone/common/oled_helper.h b/keyboards/marksard/rhymestone/common/oled_helper.h index 34bacc6a8987d70339fd72ba0aa16a70fc85c2fb..9495937e2a18666a99094a72687f9bda269d220f 100644 --- a/keyboards/marksard/rhymestone/common/oled_helper.h +++ b/keyboards/marksard/rhymestone/common/oled_helper.h @@ -1,3 +1,5 @@ +#pragma once + #include #include "action.h" diff --git a/keyboards/marksard/treadstone48/common/oled_helper.h b/keyboards/marksard/treadstone48/common/oled_helper.h index 82c1feba4a3513a8d60522d680ce23e9a83767dc..3dc186f05c80b228d133495eb8565aedcc7682a7 100644 --- a/keyboards/marksard/treadstone48/common/oled_helper.h +++ b/keyboards/marksard/treadstone48/common/oled_helper.h @@ -1,3 +1,5 @@ +#pragma once + #ifdef OLED_ENABLE #include diff --git a/keyboards/work_louder/rgb_functions.h b/keyboards/work_louder/rgb_functions.h index 8940cddefc791a22cf04a3fbb9476ad7ce442b23..9ad7cdb19c19234bca5533d2fe6dcb87481d2306 100644 --- a/keyboards/work_louder/rgb_functions.h +++ b/keyboards/work_louder/rgb_functions.h @@ -14,6 +14,8 @@ * along with this program. If not, see . */ +#pragma once + #include "quantum.h" #ifndef VIA_ENABLE diff --git a/keyboards/yushakobo/quick17/quick17_prefs.h b/keyboards/yushakobo/quick17/quick17_prefs.h index a6096f0f268696f4c812336f233fa88040c43b96..25f2e1e0ae5783c6c1ec56e58a922cb3ee10070e 100644 --- a/keyboards/yushakobo/quick17/quick17_prefs.h +++ b/keyboards/yushakobo/quick17/quick17_prefs.h @@ -14,6 +14,8 @@ * along with this program. If not, see . */ +#pragma once + #include "quantum.h" enum layer_names {