diff options
| author | Priyadi Iman Nurcahyo <priyadi@priyadi.net> | 2017-02-12 00:13:36 +0700 |
|---|---|---|
| committer | Priyadi Iman Nurcahyo <priyadi@priyadi.net> | 2017-02-12 00:13:36 +0700 |
| commit | aaa58a8d795b190c764f6cd0264e105f2dbb4996 (patch) | |
| tree | d96cfcc56e80ae278c3806608e4689116939e9a5 | |
| parent | 6d6b3ee9fb03215d14a4ea0f9a354af1eb0b8575 (diff) | |
| download | qmk_firmware-aaa58a8d795b190c764f6cd0264e105f2dbb4996.tar.gz qmk_firmware-aaa58a8d795b190c764f6cd0264e105f2dbb4996.zip | |
Supress warnings from 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 3c93a4634..eeeffe4d8 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/>. | |||
| 23 | 23 | ||
| 24 | #define PS2_MOUSE_SEND(command, message) \ | 24 | #define PS2_MOUSE_SEND(command, message) \ |
| 25 | do { \ | 25 | do { \ |
| 26 | uint8_t rcv = ps2_host_send(command); \ | 26 | __attribute__ ((unused)) uint8_t rcv = ps2_host_send(command); \ |
| 27 | if (debug_mouse) { \ | 27 | if (debug_mouse) { \ |
| 28 | print((message)); \ | 28 | print((message)); \ |
| 29 | xprintf(" command: %X, result: %X, error: %X \n", command, rcv, ps2_error); \ | 29 | xprintf(" command: %X, result: %X, error: %X \n", command, rcv, ps2_error); \ |
| @@ -55,13 +55,14 @@ do { \ | |||
| 55 | 55 | ||
| 56 | #define PS2_MOUSE_RECEIVE(message) \ | 56 | #define PS2_MOUSE_RECEIVE(message) \ |
| 57 | do { \ | 57 | do { \ |
| 58 | uint8_t rcv = ps2_host_recv_response(); \ | 58 | __attribute__ ((unused)) uint8_t rcv = ps2_host_recv_response(); \ |
| 59 | if (debug_mouse) { \ | 59 | if (debug_mouse) { \ |
| 60 | print((message)); \ | 60 | print((message)); \ |
| 61 | xprintf(" result: %X, error: %X \n", rcv, ps2_error); \ | 61 | xprintf(" result: %X, error: %X \n", rcv, ps2_error); \ |
| 62 | } \ | 62 | } \ |
| 63 | } while(0) | 63 | } while(0) |
| 64 | 64 | ||
| 65 | __attribute__ ((unused)) | ||
| 65 | static enum ps2_mouse_mode_e { | 66 | static enum ps2_mouse_mode_e { |
| 66 | PS2_MOUSE_STREAM_MODE, | 67 | PS2_MOUSE_STREAM_MODE, |
| 67 | PS2_MOUSE_REMOTE_MODE, | 68 | PS2_MOUSE_REMOTE_MODE, |
