From 2d39a9dcdbdef1202d890a81505e7d33fe04cde0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konstantin=20=C4=90or=C4=91evi=C4=87?= Date: Mon, 20 Apr 2020 00:56:48 +0200 Subject: [PATCH] Remove no-longer-necessary LTO checks from keyboards' config.h files (#8773) * Remove no-longer-necessary LTO checks from keyboards' config.h files * Remove unnecessary LTO check in @danielo515's Ergodox EZ keymap * Remove unnecessary USE_Link_Time_Optimization checks from keyboards' config.h files Note: DISABLE_LEADER doesn't seem to be used anywhere --- keyboards/abacus/config.h | 7 +++---- keyboards/ai03/orbit_x/config.h | 6 ++---- keyboards/allison/config.h | 7 +++---- keyboards/allison_numpad/config.h | 7 +++---- keyboards/bat43/config.h | 7 +++---- keyboards/ckeys/washington/config.h | 7 +++---- keyboards/cospad/config.h | 7 +++---- keyboards/crkbd/config.h | 10 ++-------- keyboards/daisy/config.h | 7 +++---- keyboards/dztech/dz60rgb/v1/config.h | 6 ++---- keyboards/dztech/dz60rgb/v2/config.h | 6 ++---- keyboards/dztech/dz60rgb_ansi/v1/config.h | 6 ++---- keyboards/dztech/dz60rgb_ansi/v2/config.h | 6 ++---- keyboards/dztech/dz60rgb_wkl/v1/config.h | 6 ++---- keyboards/dztech/dz60rgb_wkl/v2/config.h | 6 ++---- keyboards/dztech/dz65rgb/v1/config.h | 6 ++---- keyboards/dztech/dz65rgb/v2/config.h | 6 ++---- keyboards/ergodox_ez/keymaps/danielo515/config.h | 6 ++---- keyboards/exclusive/e7v1se/config.h | 7 +++---- keyboards/handwired/fc200rt_qmk/config.h | 9 +++------ keyboards/handwired/floorboard/config.h | 7 +++---- keyboards/handwired/jtallbean/split_65/config.h | 7 +++---- keyboards/handwired/sick68/config.h | 7 +++---- keyboards/handwired/videowriter/config.h | 6 ++---- keyboards/hineybush/physix/config.h | 7 +++---- keyboards/j80/config.h | 6 ++---- keyboards/jae/j01/config.h | 7 +++---- keyboards/just60/config.h | 6 ++---- keyboards/keebio/choconum/config.h | 7 +++---- keyboards/keebwerk/nano_slider/config.h | 7 +++---- keyboards/lattice60/config.h | 6 ++---- keyboards/lfkeyboards/lfk78/config.h | 7 +++---- keyboards/lfkeyboards/lfkpad/config.h | 7 +++---- keyboards/mc_76k/config.h | 6 ++---- keyboards/miller/gm862/config.h | 8 ++++---- keyboards/mountainblocks/mb17/config.h | 11 ++--------- keyboards/oddball/config.h | 7 +++---- keyboards/silverbullet44/config.h | 8 ++++---- keyboards/switchplate/southpaw_fullsize/config.h | 6 ++---- keyboards/treadstone48/rev1/config.h | 7 +++---- keyboards/wallaby/config.h | 7 +++---- keyboards/ymdk/ymd09/config.h | 6 ++---- keyboards/yosino58/config.h | 10 ++-------- keyboards/yurei/config.h | 7 +++---- keyboards/zinc/config.h | 8 ++------ 45 files changed, 116 insertions(+), 197 deletions(-) diff --git a/keyboards/abacus/config.h b/keyboards/abacus/config.h index 7fa98985392ae49de71eecad76ad9a97abc11302..bc4120544fd81c443440fe0c4ef09ef76d42e381 100644 --- a/keyboards/abacus/config.h +++ b/keyboards/abacus/config.h @@ -105,10 +105,9 @@ along with this program. If not, see . //#define NO_ACTION_ONESHOT /* disable these deprecated features by default */ -#ifndef LINK_TIME_OPTIMIZATION_ENABLE - #define NO_ACTION_MACRO - #define NO_ACTION_FUNCTION -#endif +#define NO_ACTION_MACRO +#define NO_ACTION_FUNCTION + /* * MIDI options */ diff --git a/keyboards/ai03/orbit_x/config.h b/keyboards/ai03/orbit_x/config.h index fb2ebe44f624cf859050764be51f09ada582af84..c21e3e8f65e953066eaeaf95dde59d25869d6e45 100644 --- a/keyboards/ai03/orbit_x/config.h +++ b/keyboards/ai03/orbit_x/config.h @@ -165,10 +165,8 @@ along with this program. If not, see . //#define NO_ACTION_ONESHOT /* disable these deprecated features by default */ -#ifndef LINK_TIME_OPTIMIZATION_ENABLE - #define NO_ACTION_MACRO - #define NO_ACTION_FUNCTION -#endif +#define NO_ACTION_MACRO +#define NO_ACTION_FUNCTION /* Bootmagic Lite key configuration */ // #define BOOTMAGIC_LITE_ROW 0 diff --git a/keyboards/allison/config.h b/keyboards/allison/config.h index 8a310d0a205731490e2d4b03c1d0276748052013..e2e032442d733a152511526ffefa1a0edc878d66 100644 --- a/keyboards/allison/config.h +++ b/keyboards/allison/config.h @@ -192,10 +192,9 @@ along with this program. If not, see . //#define NO_ACTION_ONESHOT /* disable these deprecated features by default */ -#ifndef LINK_TIME_OPTIMIZATION_ENABLE - #define NO_ACTION_MACRO - #define NO_ACTION_FUNCTION -#endif +#define NO_ACTION_MACRO +#define NO_ACTION_FUNCTION + /* * MIDI options */ diff --git a/keyboards/allison_numpad/config.h b/keyboards/allison_numpad/config.h index c8b8189071bd9432953dc5e8432aabb673c663d0..0e04a8722a1e01c343b1ad96948588402430114a 100644 --- a/keyboards/allison_numpad/config.h +++ b/keyboards/allison_numpad/config.h @@ -192,10 +192,9 @@ along with this program. If not, see . //#define NO_ACTION_ONESHOT /* disable these deprecated features by default */ -#ifndef LINK_TIME_OPTIMIZATION_ENABLE - #define NO_ACTION_MACRO - #define NO_ACTION_FUNCTION -#endif +#define NO_ACTION_MACRO +#define NO_ACTION_FUNCTION + /* * MIDI options */ diff --git a/keyboards/bat43/config.h b/keyboards/bat43/config.h index 57d65233c77148278bdf843e824e7ec5eba569e8..eb1c1a05cf01b6313fc81e7fd3565a664feb0cee 100644 --- a/keyboards/bat43/config.h +++ b/keyboards/bat43/config.h @@ -192,10 +192,9 @@ along with this program. If not, see . //#define NO_ACTION_ONESHOT /* disable these deprecated features by default */ -#ifndef LINK_TIME_OPTIMIZATION_ENABLE - #define NO_ACTION_MACRO - #define NO_ACTION_FUNCTION -#endif +#define NO_ACTION_MACRO +#define NO_ACTION_FUNCTION + /* * MIDI options */ diff --git a/keyboards/ckeys/washington/config.h b/keyboards/ckeys/washington/config.h index 419e35e3be60a226cbeab06e3ce8f08b510b605b..9a9b69d32351766d7800da651351b52dd8cca4f2 100644 --- a/keyboards/ckeys/washington/config.h +++ b/keyboards/ckeys/washington/config.h @@ -193,10 +193,9 @@ along with this program. If not, see . //#define NO_ACTION_ONESHOT /* disable these deprecated features by default */ -#ifndef LINK_TIME_OPTIMIZATION_ENABLE - #define NO_ACTION_MACRO - #define NO_ACTION_FUNCTION -#endif +#define NO_ACTION_MACRO +#define NO_ACTION_FUNCTION + /* * MIDI options */ diff --git a/keyboards/cospad/config.h b/keyboards/cospad/config.h index cfc2d59f60c1b0937d3c9408863d435dffea36bb..42db8e25b768a54fd5b3a58b95e0c7966944263b 100644 --- a/keyboards/cospad/config.h +++ b/keyboards/cospad/config.h @@ -193,10 +193,9 @@ along with this program. If not, see . //#define NO_ACTION_ONESHOT /* disable these deprecated features by default */ -#ifndef LINK_TIME_OPTIMIZATION_ENABLE - #define NO_ACTION_MACRO - #define NO_ACTION_FUNCTION -#endif +#define NO_ACTION_MACRO +#define NO_ACTION_FUNCTION + /* * MIDI options */ diff --git a/keyboards/crkbd/config.h b/keyboards/crkbd/config.h index 4357a218d4ac6f04719cbf8d8eb3184c5f1d78ee..fb1cdf3962a1dff493b83725c1b00b0407717e03 100644 --- a/keyboards/crkbd/config.h +++ b/keyboards/crkbd/config.h @@ -24,11 +24,5 @@ along with this program. If not, see . #define USE_I2C #define USE_SERIAL -#ifdef USE_Link_Time_Optimization - // LTO has issues with macros (action_get_macro) and "functions" (fn_actions), - // so just disable them - #define NO_ACTION_MACRO - #define NO_ACTION_FUNCTION - - #define DISABLE_LEADER -#endif // USE_Link_Time_Optimization +#define NO_ACTION_MACRO +#define NO_ACTION_FUNCTION diff --git a/keyboards/daisy/config.h b/keyboards/daisy/config.h index 4ee4d242fc04d3add001dab2908d9f78f93ba8e4..ea03d116bdab27a9660c3144eb251e0ea91baf2f 100644 --- a/keyboards/daisy/config.h +++ b/keyboards/daisy/config.h @@ -192,10 +192,9 @@ along with this program. If not, see . //#define NO_ACTION_ONESHOT /* disable these deprecated features by default */ -#ifndef LINK_TIME_OPTIMIZATION_ENABLE - #define NO_ACTION_MACRO - #define NO_ACTION_FUNCTION -#endif +#define NO_ACTION_MACRO +#define NO_ACTION_FUNCTION + /* * MIDI options */ diff --git a/keyboards/dztech/dz60rgb/v1/config.h b/keyboards/dztech/dz60rgb/v1/config.h index d6f46242597fa33ec5991bc4a3191333cfe872dc..fb4e6224582d200d7e131646eb618297ce19c3c4 100644 --- a/keyboards/dztech/dz60rgb/v1/config.h +++ b/keyboards/dztech/dz60rgb/v1/config.h @@ -33,10 +33,8 @@ #define DEBOUNCE 3 /* disable these deprecated features by default */ -#ifndef LINK_TIME_OPTIMIZATION_ENABLE -# define NO_ACTION_MACRO -# define NO_ACTION_FUNCTION -#endif +#define NO_ACTION_MACRO +#define NO_ACTION_FUNCTION #ifdef RGB_MATRIX_ENABLE # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects diff --git a/keyboards/dztech/dz60rgb/v2/config.h b/keyboards/dztech/dz60rgb/v2/config.h index b344e34b37a645b6c66de7b245236aff07ca923a..6c5484fc8ad6aa138c89f6ec906ef73f3ce7ba13 100644 --- a/keyboards/dztech/dz60rgb/v2/config.h +++ b/keyboards/dztech/dz60rgb/v2/config.h @@ -33,10 +33,8 @@ #define DEBOUNCE 3 /* disable these deprecated features by default */ -#ifndef LINK_TIME_OPTIMIZATION_ENABLE -# define NO_ACTION_MACRO -# define NO_ACTION_FUNCTION -#endif +#define NO_ACTION_MACRO +#define NO_ACTION_FUNCTION #ifdef RGB_MATRIX_ENABLE # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects diff --git a/keyboards/dztech/dz60rgb_ansi/v1/config.h b/keyboards/dztech/dz60rgb_ansi/v1/config.h index fb76ee7df9a82021276fb17427ab376f617c036e..f34226efc65b5db47a6599e304f23b9b39d75532 100644 --- a/keyboards/dztech/dz60rgb_ansi/v1/config.h +++ b/keyboards/dztech/dz60rgb_ansi/v1/config.h @@ -33,10 +33,8 @@ #define DEBOUNCE 3 /* disable these deprecated features by default */ -#ifndef LINK_TIME_OPTIMIZATION_ENABLE -# define NO_ACTION_MACRO -# define NO_ACTION_FUNCTION -#endif +#define NO_ACTION_MACRO +#define NO_ACTION_FUNCTION #ifdef RGB_MATRIX_ENABLE # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects diff --git a/keyboards/dztech/dz60rgb_ansi/v2/config.h b/keyboards/dztech/dz60rgb_ansi/v2/config.h index 3bd287b5f244a7515e4df795e03fcccfaf889835..b9710805a69bf3b39e3d27b7972259924e882c92 100644 --- a/keyboards/dztech/dz60rgb_ansi/v2/config.h +++ b/keyboards/dztech/dz60rgb_ansi/v2/config.h @@ -33,10 +33,8 @@ #define DEBOUNCE 3 /* disable these deprecated features by default */ -#ifndef LINK_TIME_OPTIMIZATION_ENABLE -# define NO_ACTION_MACRO -# define NO_ACTION_FUNCTION -#endif +#define NO_ACTION_MACRO +#define NO_ACTION_FUNCTION #ifdef RGB_MATRIX_ENABLE # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects diff --git a/keyboards/dztech/dz60rgb_wkl/v1/config.h b/keyboards/dztech/dz60rgb_wkl/v1/config.h index b5d267640bc6dc5eea0e2ffd46e3c1e7a5178488..49ce112360430fb85e49c1d04cd48c7966a2ea05 100644 --- a/keyboards/dztech/dz60rgb_wkl/v1/config.h +++ b/keyboards/dztech/dz60rgb_wkl/v1/config.h @@ -33,10 +33,8 @@ #define DEBOUNCE 3 /* disable these deprecated features by default */ -#ifndef LINK_TIME_OPTIMIZATION_ENABLE -# define NO_ACTION_MACRO -# define NO_ACTION_FUNCTION -#endif +#define NO_ACTION_MACRO +#define NO_ACTION_FUNCTION #ifdef RGB_MATRIX_ENABLE # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects diff --git a/keyboards/dztech/dz60rgb_wkl/v2/config.h b/keyboards/dztech/dz60rgb_wkl/v2/config.h index 4ae9b9395117aa521339de19e6463aade2df7877..e46495d73b74263a516a64cdca79c3243c6ac189 100644 --- a/keyboards/dztech/dz60rgb_wkl/v2/config.h +++ b/keyboards/dztech/dz60rgb_wkl/v2/config.h @@ -33,10 +33,8 @@ #define DEBOUNCE 3 /* disable these deprecated features by default */ -#ifndef LINK_TIME_OPTIMIZATION_ENABLE -# define NO_ACTION_MACRO -# define NO_ACTION_FUNCTION -#endif +#define NO_ACTION_MACRO +#define NO_ACTION_FUNCTION #ifdef RGB_MATRIX_ENABLE # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects diff --git a/keyboards/dztech/dz65rgb/v1/config.h b/keyboards/dztech/dz65rgb/v1/config.h index bf700a2384a804109e73ec44b7df09d8dea72561..9cd7d293ce4d7bfb86a08ae1dbd539c7d817fa75 100644 --- a/keyboards/dztech/dz65rgb/v1/config.h +++ b/keyboards/dztech/dz65rgb/v1/config.h @@ -29,10 +29,8 @@ #define DIODE_DIRECTION COL2ROW /* disable these deprecated features by default */ -#ifndef LINK_TIME_OPTIMIZATION_ENABLE -# define NO_ACTION_MACRO -# define NO_ACTION_FUNCTION -#endif +#define NO_ACTION_MACRO +#define NO_ACTION_FUNCTION #ifdef RGB_MATRIX_ENABLE # define RGB_MATRIX_LED_PROCESS_LIMIT 4 diff --git a/keyboards/dztech/dz65rgb/v2/config.h b/keyboards/dztech/dz65rgb/v2/config.h index 6a55f8766741ca1a8b9e7724335c193ffb5f22f2..83cf0110abe459a56d60686161858c08b5e3a460 100644 --- a/keyboards/dztech/dz65rgb/v2/config.h +++ b/keyboards/dztech/dz65rgb/v2/config.h @@ -29,10 +29,8 @@ #define DIODE_DIRECTION COL2ROW /* disable these deprecated features by default */ -#ifndef LINK_TIME_OPTIMIZATION_ENABLE -# define NO_ACTION_MACRO -# define NO_ACTION_FUNCTION -#endif +#define NO_ACTION_MACRO +#define NO_ACTION_FUNCTION #ifdef RGB_MATRIX_ENABLE # define RGB_MATRIX_LED_PROCESS_LIMIT 4 diff --git a/keyboards/ergodox_ez/keymaps/danielo515/config.h b/keyboards/ergodox_ez/keymaps/danielo515/config.h index 8982e7653610aca679ac3b0887a96efc94b385dd..ff201caa908df80f4088eaba7c8c22f3db328e85 100644 --- a/keyboards/ergodox_ez/keymaps/danielo515/config.h +++ b/keyboards/ergodox_ez/keymaps/danielo515/config.h @@ -25,9 +25,7 @@ # define NO_PRINT #endif -#ifndef LINK_TIME_OPTIMIZATION_ENABLE -# define NO_ACTION_MACRO -# define NO_ACTION_FUNCTION -#endif +#define NO_ACTION_MACRO +#define NO_ACTION_FUNCTION #undef RGBLIGHT_ANIMATIONS diff --git a/keyboards/exclusive/e7v1se/config.h b/keyboards/exclusive/e7v1se/config.h index f11a70092042b0726a82da2437d42042577a6920..8784828ed82f64909f81ae4b40903aa578a1eff9 100644 --- a/keyboards/exclusive/e7v1se/config.h +++ b/keyboards/exclusive/e7v1se/config.h @@ -192,10 +192,9 @@ along with this program. If not, see . //#define NO_ACTION_ONESHOT /* disable these deprecated features by default */ -#ifndef LINK_TIME_OPTIMIZATION_ENABLE - #define NO_ACTION_MACRO - #define NO_ACTION_FUNCTION -#endif +#define NO_ACTION_MACRO +#define NO_ACTION_FUNCTION + /* * MIDI options */ diff --git a/keyboards/handwired/fc200rt_qmk/config.h b/keyboards/handwired/fc200rt_qmk/config.h index fa070494a943e75c7f39315ff9ac180fd7514ee3..12c40360b1b4f65b2dccd43f26e102070d5216f1 100644 --- a/keyboards/handwired/fc200rt_qmk/config.h +++ b/keyboards/handwired/fc200rt_qmk/config.h @@ -31,7 +31,6 @@ along with this program. If not, see . #define MATRIX_ROWS 8 #define MATRIX_COLS 16 - #define MATRIX_ROW_PINS { B0, B1, B2, B3, E6, B7, D0, D1 } #define MATRIX_COL_PINS { D2, D3, C6, C7, D5, D4, D6, D7, B4, B5, B6, F7, F6, F5, F4, F1 } #define UNUSED_PINS @@ -39,7 +38,6 @@ along with this program. If not, see . /* COL2ROW, ROW2COL*/ #define DIODE_DIRECTION ROW2COL - /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ #define DEBOUNCE 5 @@ -130,7 +128,6 @@ along with this program. If not, see . //#define MAGIC_KEY_NKRO N //#define MAGIC_KEY_SLEEP_LED Z -#ifndef LINK_TIME_OPTIMIZATION_ENABLE - #define NO_ACTION_MACRO - #define NO_ACTION_FUNCTION -#endif +/* disable these deprecated features by default */ +#define NO_ACTION_MACRO +#define NO_ACTION_FUNCTION diff --git a/keyboards/handwired/floorboard/config.h b/keyboards/handwired/floorboard/config.h index 6f2e9d0c0bd368ac3588cd8c44d3aba577bc1dda..bf8646f39af397d42a14f8f63c5251c1d1e50a06 100644 --- a/keyboards/handwired/floorboard/config.h +++ b/keyboards/handwired/floorboard/config.h @@ -192,10 +192,9 @@ along with this program. If not, see . //#define NO_ACTION_ONESHOT /* disable these deprecated features by default */ -#ifndef LINK_TIME_OPTIMIZATION_ENABLE - #define NO_ACTION_MACRO - #define NO_ACTION_FUNCTION -#endif +#define NO_ACTION_MACRO +#define NO_ACTION_FUNCTION + /* * MIDI options */ diff --git a/keyboards/handwired/jtallbean/split_65/config.h b/keyboards/handwired/jtallbean/split_65/config.h index a2c8d22bf79cdaafbb9b82231e27adec0590732e..5c7a9d54ba01df0dc7c4f89358a113935000fb9d 100644 --- a/keyboards/handwired/jtallbean/split_65/config.h +++ b/keyboards/handwired/jtallbean/split_65/config.h @@ -195,10 +195,9 @@ along with this program. If not, see . //#define NO_ACTION_ONESHOT /* disable these deprecated features by default */ -#ifndef LINK_TIME_OPTIMIZATION_ENABLE - #define NO_ACTION_MACRO - #define NO_ACTION_FUNCTION -#endif +#define NO_ACTION_MACRO +#define NO_ACTION_FUNCTION + /* * MIDI options */ diff --git a/keyboards/handwired/sick68/config.h b/keyboards/handwired/sick68/config.h index 3d7d413fa19ec37f5e888209f494e933da753255..9f050c361e900bc8eb583492ebd1d32340264c02 100644 --- a/keyboards/handwired/sick68/config.h +++ b/keyboards/handwired/sick68/config.h @@ -194,10 +194,9 @@ along with this program. If not, see . //#define NO_ACTION_ONESHOT /* disable these deprecated features by default */ -#ifndef LINK_TIME_OPTIMIZATION_ENABLE -# define NO_ACTION_MACRO -# define NO_ACTION_FUNCTION -#endif +#define NO_ACTION_MACRO +#define NO_ACTION_FUNCTION + /* * MIDI options */ diff --git a/keyboards/handwired/videowriter/config.h b/keyboards/handwired/videowriter/config.h index d392564eb9e2091d7801cd5896798ce857abf995..bcf059b62b34abea9480812a1ef1259e67b560d4 100644 --- a/keyboards/handwired/videowriter/config.h +++ b/keyboards/handwired/videowriter/config.h @@ -130,10 +130,8 @@ along with this program. If not, see . //#define NO_ACTION_ONESHOT /* disable these deprecated features by default */ -#ifndef LINK_TIME_OPTIMIZATION_ENABLE - #define NO_ACTION_MACRO - #define NO_ACTION_FUNCTION -#endif +#define NO_ACTION_MACRO +#define NO_ACTION_FUNCTION /* Bootmagic Lite key configuration */ // #define BOOTMAGIC_LITE_ROW 0 diff --git a/keyboards/hineybush/physix/config.h b/keyboards/hineybush/physix/config.h index cc6e185321ed2dee7e51fd2fa040cb347ce536bf..ccdb18fd212187d02ae172e77caaae472b6ecffe 100644 --- a/keyboards/hineybush/physix/config.h +++ b/keyboards/hineybush/physix/config.h @@ -192,10 +192,9 @@ along with this program. If not, see . //#define NO_ACTION_ONESHOT /* disable these deprecated features by default */ -#ifndef LINK_TIME_OPTIMIZATION_ENABLE - #define NO_ACTION_MACRO - #define NO_ACTION_FUNCTION -#endif +#define NO_ACTION_MACRO +#define NO_ACTION_FUNCTION + /* * MIDI options */ diff --git a/keyboards/j80/config.h b/keyboards/j80/config.h index a4a10bff429df4090cbf29d2983c445f6371315d..c4276431cf3a4a76f6a8a9b6411926d7b226f2b7 100644 --- a/keyboards/j80/config.h +++ b/keyboards/j80/config.h @@ -39,10 +39,8 @@ along with this program. If not, see . #define BACKLIGHT_PIN D4 /* disable these deprecated features by default */ -#ifndef LINK_TIME_OPTIMIZATION_ENABLE - #define NO_ACTION_MACRO - #define NO_ACTION_FUNCTION -#endif +#define NO_ACTION_MACRO +#define NO_ACTION_FUNCTION /* key combination for magic key command */ /* defined by default; to change, uncomment and set to the combination you want */ diff --git a/keyboards/jae/j01/config.h b/keyboards/jae/j01/config.h index 8faa651aa7c0a8e7c2ddd647ba37e753b5fe6b0e..9c05a98766be35c72779864d34c19e5a558174b7 100644 --- a/keyboards/jae/j01/config.h +++ b/keyboards/jae/j01/config.h @@ -165,10 +165,9 @@ along with this program. If not, see . //#define NO_ACTION_ONESHOT /* disable these deprecated features by default */ -#ifndef LINK_TIME_OPTIMIZATION_ENABLE - #define NO_ACTION_MACRO - #define NO_ACTION_FUNCTION -#endif +#define NO_ACTION_MACRO +#define NO_ACTION_FUNCTION + /* * MIDI options */ diff --git a/keyboards/just60/config.h b/keyboards/just60/config.h index ef0af7c61081082f7450e11e0a4fccb12b2b3d64..66e5bf7b6716616191d66ffe4ced5cd32c4fa54c 100644 --- a/keyboards/just60/config.h +++ b/keyboards/just60/config.h @@ -48,7 +48,5 @@ along with this program. If not, see . #define LOCKING_RESYNC_ENABLE /* disable these deprecated features by default */ -#ifndef LINK_TIME_OPTIMIZATION_ENABLE - #define NO_ACTION_MACRO - #define NO_ACTION_FUNCTION -#endif +#define NO_ACTION_MACRO +#define NO_ACTION_FUNCTION diff --git a/keyboards/keebio/choconum/config.h b/keyboards/keebio/choconum/config.h index 9eee4eca9bbe0af94a30722a25bfad4adcb0af0a..d3a0da168b2561105c69ef75e01e4c55fd3e019b 100644 --- a/keyboards/keebio/choconum/config.h +++ b/keyboards/keebio/choconum/config.h @@ -147,10 +147,9 @@ along with this program. If not, see . //#define NO_ACTION_ONESHOT /* disable these deprecated features by default */ -#ifndef LINK_TIME_OPTIMIZATION_ENABLE - #define NO_ACTION_MACRO - #define NO_ACTION_FUNCTION -#endif +#define NO_ACTION_MACRO +#define NO_ACTION_FUNCTION + /* * MIDI options */ diff --git a/keyboards/keebwerk/nano_slider/config.h b/keyboards/keebwerk/nano_slider/config.h index ba079c531017723e490d702ee822d5c23ec2fae3..3ed356b8a9817451ed6c3862464b421753967837 100644 --- a/keyboards/keebwerk/nano_slider/config.h +++ b/keyboards/keebwerk/nano_slider/config.h @@ -161,10 +161,9 @@ along with this program. If not, see . //#define NO_ACTION_ONESHOT /* disable these deprecated features by default */ -#ifndef LINK_TIME_OPTIMIZATION_ENABLE -# define NO_ACTION_MACRO -# define NO_ACTION_FUNCTION -#endif +#define NO_ACTION_MACRO +#define NO_ACTION_FUNCTION + /* * MIDI options */ diff --git a/keyboards/lattice60/config.h b/keyboards/lattice60/config.h index e864eeebb317cfc72aca42aae2ab101fb84b5480..649219538d04bf147c41d07ab604e08a0bc980b7 100644 --- a/keyboards/lattice60/config.h +++ b/keyboards/lattice60/config.h @@ -99,7 +99,5 @@ along with this program. If not, see . //#define NO_ACTION_ONESHOT /* disable these deprecated features by default */ -#ifndef LINK_TIME_OPTIMIZATION_ENABLE - #define NO_ACTION_MACRO - #define NO_ACTION_FUNCTION -#endif +#define NO_ACTION_MACRO +#define NO_ACTION_FUNCTION diff --git a/keyboards/lfkeyboards/lfk78/config.h b/keyboards/lfkeyboards/lfk78/config.h index 3478c9629f90cf792cff26766518a1b0ee9b9d21..b96aca07c92043b46f59b059c4ae968018f70695 100644 --- a/keyboards/lfkeyboards/lfk78/config.h +++ b/keyboards/lfkeyboards/lfk78/config.h @@ -158,10 +158,9 @@ along with this program. If not, see . //#define NO_ACTION_ONESHOT /* disable these deprecated features by default */ -#ifndef LINK_TIME_OPTIMIZATION_ENABLE - #define NO_ACTION_MACRO - #define NO_ACTION_FUNCTION -#endif +#define NO_ACTION_MACRO +#define NO_ACTION_FUNCTION + /* * MIDI options */ diff --git a/keyboards/lfkeyboards/lfkpad/config.h b/keyboards/lfkeyboards/lfkpad/config.h index fb48297e5cdb5e3d016e045ebf892d2d5c32239e..b05ee0f0cade29b8eac644637d99c2fc1dc50517 100644 --- a/keyboards/lfkeyboards/lfkpad/config.h +++ b/keyboards/lfkeyboards/lfkpad/config.h @@ -175,10 +175,9 @@ along with this program. If not, see . //#define NO_ACTION_ONESHOT /* disable these deprecated features by default */ -#ifndef LINK_TIME_OPTIMIZATION_ENABLE - #define NO_ACTION_MACRO - #define NO_ACTION_FUNCTION -#endif +#define NO_ACTION_MACRO +#define NO_ACTION_FUNCTION + /* * MIDI options */ diff --git a/keyboards/mc_76k/config.h b/keyboards/mc_76k/config.h index cccd6a8e933fe39b85165589a56322450529cc5f..cd14081f4d4791ecbc2f6013a2cbcf2e802dff68 100644 --- a/keyboards/mc_76k/config.h +++ b/keyboards/mc_76k/config.h @@ -98,7 +98,5 @@ along with this program. If not, see . */ /* disable these deprecated features by default */ -#ifndef LINK_TIME_OPTIMIZATION_ENABLE - #define NO_ACTION_MACRO - #define NO_ACTION_FUNCTION -#endif +#define NO_ACTION_MACRO +#define NO_ACTION_FUNCTION diff --git a/keyboards/miller/gm862/config.h b/keyboards/miller/gm862/config.h index fb44ed6c865fa4e0861b68b8927de5d5948a11f7..1a8eb265d97cd29b6c270dfa949de05482d173c2 100644 --- a/keyboards/miller/gm862/config.h +++ b/keyboards/miller/gm862/config.h @@ -28,11 +28,11 @@ #define UNUSED_PINS /* COL2ROW, ROW2COL*/ #define DIODE_DIRECTION COL2ROW + /* disable these deprecated features by default */ -#ifndef LINK_TIME_OPTIMIZATION_ENABLE -# define NO_ACTION_MACRO -# define NO_ACTION_FUNCTION -#endif +#define NO_ACTION_MACRO +#define NO_ACTION_FUNCTION + /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ #define DEBOUNCE 3 #ifdef RGB_MATRIX_ENABLE diff --git a/keyboards/mountainblocks/mb17/config.h b/keyboards/mountainblocks/mb17/config.h index 7db47ff9406b22b8994429ce6213b531af47245f..f469c9bd46ae6c32cdc44aaabe474e00662fce02 100644 --- a/keyboards/mountainblocks/mb17/config.h +++ b/keyboards/mountainblocks/mb17/config.h @@ -147,12 +147,5 @@ along with this program. If not, see . /* disable these deprecated features by default */ -#ifndef LINK_TIME_OPTIMIZATION_ENABLE - #define NO_ACTION_MACRO - #define NO_ACTION_FUNCTION -#endif - - - - - +#define NO_ACTION_MACRO +#define NO_ACTION_FUNCTION diff --git a/keyboards/oddball/config.h b/keyboards/oddball/config.h index b3679bea4ce5aa85986b3c1a641abb701437f57b..99d9f75d5fcd333bb5ce27f093f02d46908efe4b 100644 --- a/keyboards/oddball/config.h +++ b/keyboards/oddball/config.h @@ -195,10 +195,9 @@ along with this program. If not, see . //#define NO_ACTION_ONESHOT /* disable these deprecated features by default */ -#ifndef LINK_TIME_OPTIMIZATION_ENABLE - #define NO_ACTION_MACRO - #define NO_ACTION_FUNCTION -#endif +#define NO_ACTION_MACRO +#define NO_ACTION_FUNCTION + /* * MIDI options */ diff --git a/keyboards/silverbullet44/config.h b/keyboards/silverbullet44/config.h index 6872f5fb4470945b57f006b40de64df2ad1857bd..a7402a001bdb79497e70a567d697b8162ef567e0 100644 --- a/keyboards/silverbullet44/config.h +++ b/keyboards/silverbullet44/config.h @@ -233,10 +233,10 @@ along with this program. If not, see . //#define NO_ACTION_LAYER //#define NO_ACTION_TAPPING //#define NO_ACTION_ONESHOT -#ifndef LINK_TIME_OPTIMIZATION_ENABLE -# define NO_ACTION_MACRO -# define NO_ACTION_FUNCTION -#endif + +/* disable these deprecated features by default */ +#define NO_ACTION_MACRO +#define NO_ACTION_FUNCTION /* * MIDI options diff --git a/keyboards/switchplate/southpaw_fullsize/config.h b/keyboards/switchplate/southpaw_fullsize/config.h index adbb4f8db43baa2d0274ccbdc6bf8f2c395c5b1d..2d4fb9a97138025b37f0eca6886018d418e79ebb 100644 --- a/keyboards/switchplate/southpaw_fullsize/config.h +++ b/keyboards/switchplate/southpaw_fullsize/config.h @@ -133,10 +133,8 @@ along with this program. If not, see . //#define NO_ACTION_ONESHOT /* disable these deprecated features by default */ -#ifndef LINK_TIME_OPTIMIZATION_ENABLE - #define NO_ACTION_MACRO - #define NO_ACTION_FUNCTION -#endif +#define NO_ACTION_MACRO +#define NO_ACTION_FUNCTION /* Bootmagic Lite key configuration */ // #define BOOTMAGIC_LITE_ROW 0 diff --git a/keyboards/treadstone48/rev1/config.h b/keyboards/treadstone48/rev1/config.h index 56ffbaef0165366d03f9194584e9218968504378..3ea285836c1023ca0e92651c180407430822b054 100644 --- a/keyboards/treadstone48/rev1/config.h +++ b/keyboards/treadstone48/rev1/config.h @@ -198,10 +198,9 @@ along with this program. If not, see . //#define NO_ACTION_ONESHOT /* disable these deprecated features by default */ -#ifndef LINK_TIME_OPTIMIZATION_ENABLE - #define NO_ACTION_MACRO - #define NO_ACTION_FUNCTION -#endif +#define NO_ACTION_MACRO +#define NO_ACTION_FUNCTION + /* * MIDI options */ diff --git a/keyboards/wallaby/config.h b/keyboards/wallaby/config.h index 0f142f18f2c2c78d6e1a9cfb53b813ac4e703b51..11fa674a834d31487c7befff855c056d06b75c17 100644 --- a/keyboards/wallaby/config.h +++ b/keyboards/wallaby/config.h @@ -192,10 +192,9 @@ along with this program. If not, see . //#define NO_ACTION_ONESHOT /* disable these deprecated features by default */ -#ifndef LINK_TIME_OPTIMIZATION_ENABLE - #define NO_ACTION_MACRO - #define NO_ACTION_FUNCTION -#endif +#define NO_ACTION_MACRO +#define NO_ACTION_FUNCTION + /* * MIDI options */ diff --git a/keyboards/ymdk/ymd09/config.h b/keyboards/ymdk/ymd09/config.h index b7e5539df2baf657c8601888574bd89e4bd67403..372046b8bc40918eb933139f4eeca8368e2b8de5 100644 --- a/keyboards/ymdk/ymd09/config.h +++ b/keyboards/ymdk/ymd09/config.h @@ -60,7 +60,5 @@ along with this program. If not, see . #define LOCKING_RESYNC_ENABLE /* disable these deprecated features by default */ -#ifndef LINK_TIME_OPTIMIZATION_ENABLE - #define NO_ACTION_MACRO - #define NO_ACTION_FUNCTION -#endif +#define NO_ACTION_MACRO +#define NO_ACTION_FUNCTION diff --git a/keyboards/yosino58/config.h b/keyboards/yosino58/config.h index 4357a218d4ac6f04719cbf8d8eb3184c5f1d78ee..fb1cdf3962a1dff493b83725c1b00b0407717e03 100644 --- a/keyboards/yosino58/config.h +++ b/keyboards/yosino58/config.h @@ -24,11 +24,5 @@ along with this program. If not, see . #define USE_I2C #define USE_SERIAL -#ifdef USE_Link_Time_Optimization - // LTO has issues with macros (action_get_macro) and "functions" (fn_actions), - // so just disable them - #define NO_ACTION_MACRO - #define NO_ACTION_FUNCTION - - #define DISABLE_LEADER -#endif // USE_Link_Time_Optimization +#define NO_ACTION_MACRO +#define NO_ACTION_FUNCTION diff --git a/keyboards/yurei/config.h b/keyboards/yurei/config.h index da37d3ce88d8273b6e0007a388fd9ff46d938ce0..24d6229bdd11aadb467374599118916d280f4e42 100644 --- a/keyboards/yurei/config.h +++ b/keyboards/yurei/config.h @@ -192,10 +192,9 @@ along with this program. If not, see . //#define NO_ACTION_ONESHOT /* disable these deprecated features by default */ -#ifndef LINK_TIME_OPTIMIZATION_ENABLE - #define NO_ACTION_MACRO - #define NO_ACTION_FUNCTION -#endif +#define NO_ACTION_MACRO +#define NO_ACTION_FUNCTION + /* * MIDI options */ diff --git a/keyboards/zinc/config.h b/keyboards/zinc/config.h index 9c60d631bce3657f3124bba71e034bf49365033b..712db0ac6d22b26fd9994277949f898563b245d3 100644 --- a/keyboards/zinc/config.h +++ b/keyboards/zinc/config.h @@ -40,11 +40,7 @@ along with this program. If not, see . // ./tmk_core // ...... -#ifdef USE_Link_Time_Optimization - // LTO has issues with macros (action_get_macro) and "functions" (fn_actions), - // so just disable them - #define NO_ACTION_MACRO - #define NO_ACTION_FUNCTION -#endif // USE_Link_Time_Optimization +#define NO_ACTION_MACRO +#define NO_ACTION_FUNCTION //#endif /* CONFIG_H */