]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
disable deprecated actions (#7211)
authorStephen Hogsten <stephenhogsten@gmail.com>
Tue, 12 Nov 2019 02:27:20 +0000 (18:27 -0800)
committerfauxpark <fauxpark@gmail.com>
Tue, 12 Nov 2019 02:27:20 +0000 (13:27 +1100)
* disable deprecated actions

* wrap no action with link time optimization test

* fix link time optimization check

quantum/template/avr/config.h
quantum/template/ps2avrgb/config.h

index 304a54ae59a958d91ec562d306b025304a868f3c..7e4a014495e47e3579b50ffbcb9aa93eaff82a44 100644 (file)
@@ -190,9 +190,12 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 //#define NO_ACTION_LAYER
 //#define NO_ACTION_TAPPING
 //#define NO_ACTION_ONESHOT
-//#define NO_ACTION_MACRO
-//#define NO_ACTION_FUNCTION
 
+/* disable these deprecated features by default */
+#ifndef LINK_TIME_OPTIMIZATION_ENABLE
+  #define NO_ACTION_MACRO
+  #define NO_ACTION_FUNCTION
+#endif
 /*
  * MIDI options
  */
index f6d7c25e044941f5dce810d0ccf90a25ce2e74ff..4deb719f5a66909d74b0a52ab78e6822c8ab2823 100644 (file)
@@ -44,6 +44,12 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 #define NO_UART 1
 
+/* disable these deprecated features by default */
+#ifndef LINK_TIME_OPTIMIZATION_ENABLE
+  #define NO_ACTION_MACRO
+  #define NO_ACTION_FUNCTION
+#endif
+
 /* key combination for magic key command */
 /* defined by default; to change, uncomment and set to the combination you want */
 // #define IS_COMMAND() (get_mods() == MOD_MASK_SHIFT)