ps2: mark unused-but-set variable unused to avoid warning
Change-Id: If0073d878cfe4c37ea61bc10459e698ebbb47897 Reviewed-on: https://review.haiku-os.org/c/haiku/+/6712 Reviewed-by: Fredrik Holmqvist <fredrik.holmqvist@gmail.com>
This commit is contained in:
parent
69657d9d4f
commit
70d3b1028a
@ -21,8 +21,10 @@
|
||||
//#define TRACE_PS2_COMMON
|
||||
#ifdef TRACE_PS2_COMMON
|
||||
# define TRACE(x...) dprintf(x)
|
||||
# define TRACE_ONLY
|
||||
#else
|
||||
# define TRACE(x...)
|
||||
# define TRACE_ONLY __attribute__((unused))
|
||||
#endif
|
||||
|
||||
|
||||
@ -105,7 +107,7 @@ ps2_flush(void)
|
||||
|
||||
for (i = 0; i < 64; i++) {
|
||||
uint8 ctrl;
|
||||
uint8 data;
|
||||
uint8 data TRACE_ONLY;
|
||||
ctrl = ps2_read_ctrl();
|
||||
if (!(ctrl & PS2_STATUS_OUTPUT_BUFFER_FULL))
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user