diff options
author | dbroqua <dbroqua@mousur.org> | 2017-04-02 23:27:57 +0200 |
---|---|---|
committer | dbroqua <dbroqua@mousur.org> | 2017-04-02 23:27:57 +0200 |
commit | e7347ff0de93ff823462b3ff2b4136b44dc576c0 (patch) | |
tree | 286e2a78fee74eb370641a981d2c81c8e02942b4 /tmk_core/protocol/ps2_mouse.h | |
parent | 9e72b7e7e97f9ae92c7eb1de66aa03cad047baf6 (diff) | |
parent | 24ec8f509703cbaf9de7b41d251dbb7fcd339559 (diff) |
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'tmk_core/protocol/ps2_mouse.h')
-rw-r--r-- | tmk_core/protocol/ps2_mouse.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tmk_core/protocol/ps2_mouse.h b/tmk_core/protocol/ps2_mouse.h index 3c93a46342..eeeffe4d80 100644 --- a/tmk_core/protocol/ps2_mouse.h +++ b/tmk_core/protocol/ps2_mouse.h @@ -23,7 +23,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. #define PS2_MOUSE_SEND(command, message) \ do { \ - uint8_t rcv = ps2_host_send(command); \ + __attribute__ ((unused)) uint8_t rcv = ps2_host_send(command); \ if (debug_mouse) { \ print((message)); \ xprintf(" command: %X, result: %X, error: %X \n", command, rcv, ps2_error); \ @@ -55,13 +55,14 @@ do { \ #define PS2_MOUSE_RECEIVE(message) \ do { \ - uint8_t rcv = ps2_host_recv_response(); \ + __attribute__ ((unused)) uint8_t rcv = ps2_host_recv_response(); \ if (debug_mouse) { \ print((message)); \ xprintf(" result: %X, error: %X \n", rcv, ps2_error); \ } \ } while(0) +__attribute__ ((unused)) static enum ps2_mouse_mode_e { PS2_MOUSE_STREAM_MODE, PS2_MOUSE_REMOTE_MODE, |