doc: fix uinput device creation warnings
authorJosé Expósito <jose.exposito89@gmail.com>
Sat, 4 Sep 2021 11:21:42 +0000 (13:21 +0200)
committerJihoon Kim <jihoon48.kim@samsung.com>
Fri, 17 Nov 2023 10:41:23 +0000 (19:41 +0900)
commit2e834ec6728f381c276b34807ce34aa6d5581fef
tree146a49ea7c5304db2e85a7903155818d459865f0
parent92a497948c2bcfb3dc569af7a5d242085492d720
doc: fix uinput device creation warnings

The example code for creating uinput devices produces the following
warnings:

warning: unused variable ‘ev’ [-Wunused-variable]
   | struct input_event ev[2];
   |                    ^~
warning: unused variable ‘new_fd’ [-Wunused-variable]
   | int fd, new_fd, uifd;
   |         ^~~~~~
warning: ‘err’ may be used uninitialized in this function [-Wmaybe-uninitialized]
   |     return err;
   |            ^~~

Signed-off-by: José Expósito <jose.exposito89@gmail.com>
libevdev/libevdev-uinput.h