Skip to content

Commit 02d478c

Browse files
committed
comment out print_event (suppresses -Wunused-function)
1 parent f011b9f commit 02d478c

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

evdev/input.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@ int test_bit(const char* bitmask, int bit) {
3434

3535
// Useful for comparing input events as seen in the extension module
3636
// and as seen in python
37-
static void
38-
print_event(struct input_event *ev) {
39-
fprintf(stderr, "[so] event: time %ld.%06ld, code %02d, type %02d, val %02d\n",
40-
ev->time.tv_sec, ev->time.tv_usec,
41-
ev->code, ev->type, ev->value
42-
);
43-
}
37+
// static void
38+
// print_event(struct input_event *ev) {
39+
// fprintf(stderr, "[so] event: time %ld.%06ld, code %02d, type %02d, val %02d\n",
40+
// ev->time.tv_sec, ev->time.tv_usec,
41+
// ev->code, ev->type, ev->value
42+
// );
43+
// }
4444

4545

4646
// Read input event from a device and return a tuple that mimics input_event

0 commit comments

Comments
 (0)