]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
Fix unreferenced errors with mingw compiler and unit tests
authorFred Sundvik <fsundvik@gmail.com>
Tue, 11 Jul 2017 16:41:04 +0000 (19:41 +0300)
committerFred Sundvik <fsundvik@gmail.com>
Tue, 11 Jul 2017 16:41:04 +0000 (19:41 +0300)
quantum/keymap_common.c
tests/basic/keymap.c
tests/test_common/matrix.c
tests/test_common/test_fixture.cpp
tests/test_common/test_fixture.hpp

index b1460c53ccebe460b5ac2b62bfe426f7c312c10d..1c522e8b8bae798043cd7b34f520fd150fda09a9 100644 (file)
@@ -169,7 +169,6 @@ void action_function(keyrecord_t *record, uint8_t id, uint8_t opt)
 }
 
 // translates key to keycode
-__attribute__ ((weak))
 uint16_t keymap_key_to_keycode(uint8_t layer, keypos_t key)
 {
     // Read entire word (16bits)
index 3274f213f79e4e9dfb16ad97e0518cac5533d1dc..3f97c0a0ee92968d500bb244b9f7a85d928e7b0e 100644 (file)
@@ -40,4 +40,7 @@ const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) {
         }
     }
     return MACRO_NONE;
-};
\ No newline at end of file
+};
+
+void action_function(keyrecord_t *record, uint8_t id, uint8_t opt) {
+}
\ No newline at end of file
index 0d9fa68b04639d86ce354d58953e8de773931380..4b501039b6bb2c45c27a88de32871637cf8e5b40 100644 (file)
@@ -58,3 +58,6 @@ void release_key(uint8_t col, uint8_t row) {
 void clear_all_keys(void) {
     memset(matrix, 0, sizeof(matrix));
 }
+
+void led_set(uint8_t usb_led) {
+}
index df57338dfc09d77f8416e5acc847b64fed6b0e1b..4084ee9c676b77a08edab00af5ae68b60ffeff2c 100644 (file)
@@ -44,8 +44,8 @@ void TestFixture::run_one_scan_loop() {
     advance_time(1);
 }
 
-void TestFixture::idle_for(uint time) {
-    for (uint i=0; i<time; i++) {
+void TestFixture::idle_for(unsigned time) {
+    for (unsigned i=0; i<time; i++) {
         run_one_scan_loop();
     }
 }
\ No newline at end of file
index 4146b682b1411ab1bcd5c090f47f16f4569fd344..fb37e440fc1fb327097bb49acd1da93dce4ab19e 100644 (file)
@@ -26,5 +26,5 @@ public:
     static void TearDownTestCase();
 
     void run_one_scan_loop();
-    void idle_for(uint ms);
+    void idle_for(unsigned ms);
 };
\ No newline at end of file