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 <[email protected]>
This commit is contained in:
@@ -21,8 +21,10 @@
|
|||||||
//#define TRACE_PS2_COMMON
|
//#define TRACE_PS2_COMMON
|
||||||
#ifdef TRACE_PS2_COMMON
|
#ifdef TRACE_PS2_COMMON
|
||||||
# define TRACE(x...) dprintf(x)
|
# define TRACE(x...) dprintf(x)
|
||||||
|
# define TRACE_ONLY
|
||||||
#else
|
#else
|
||||||
# define TRACE(x...)
|
# define TRACE(x...)
|
||||||
|
# define TRACE_ONLY __attribute__((unused))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@@ -105,7 +107,7 @@ ps2_flush(void)
|
|||||||
|
|
||||||
for (i = 0; i < 64; i++) {
|
for (i = 0; i < 64; i++) {
|
||||||
uint8 ctrl;
|
uint8 ctrl;
|
||||||
uint8 data;
|
uint8 data TRACE_ONLY;
|
||||||
ctrl = ps2_read_ctrl();
|
ctrl = ps2_read_ctrl();
|
||||||
if (!(ctrl & PS2_STATUS_OUTPUT_BUFFER_FULL))
|
if (!(ctrl & PS2_STATUS_OUTPUT_BUFFER_FULL))
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user