aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPriyadi Iman Nurcahyo <priyadi@priyadi.net>2017-02-12 17:52:09 +0700
committerPriyadi Iman Nurcahyo <priyadi@priyadi.net>2017-02-12 17:52:09 +0700
commit97e6bb5a4e1238db4cfab7f73c8064585a8a90f0 (patch)
tree168731a9c82defcea25f0b8c9475c4d476b1d1c2
parentbc1308c112ebdd2089b36d7d3289308301bd6832 (diff)
parenta0c2305bd1153d9d578d73effd33896c2dbc26c8 (diff)
downloadfirmware-97e6bb5a4e1238db4cfab7f73c8064585a8a90f0.tar.gz
firmware-97e6bb5a4e1238db4cfab7f73c8064585a8a90f0.tar.bz2
firmware-97e6bb5a4e1238db4cfab7f73c8064585a8a90f0.zip
Merge branch 'master' into promethium
-rw-r--r--tmk_core/protocol/ps2_mouse.h5
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/>.
#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,