Skip to content

[Bug] [Typo] [make] Cant' build on linux, make doens't work, you have a typo in line 369 in /src/platform/linux/X/input.c. --> input_evnet should be input_event #324

Description

@gitdexgit

This is a duplicate of PR #312

[Bug] [Typo] You have a typo in line 369 in /src/platform/linux/c/input.c. --> input_evnet should be input_event

Image

Error:

┌──(dex)-[~/git/warpd]
└─$ make
cc -c src/platform/linux/X/input.c -o src/platform/linux/X/input.o -g -Wall -Wextra -pedantic -Wno-deprecated-declarations -Wno-unused-parameter -std=c99 -DVERSION='"v1.3.5 (built from: 01650ea)"' -D_DEFAULT_SOURCE -D_FORTIFY_SOURCE=2   -lwayland-client -lxkbcommon -lcairo -lrt -DWARPD_WAYLAND=1 -I/usr/include/freetype2/ -lXfixes -lXext -lXinerama -lXi -lXtst -lX11 -lXft -DWARPD_X=1
In file included from /usr/include/bits/libc-header-start.h:33,
                 from /usr/include/stdint.h:26,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/15.2.1/include/stdint.h:11,
                 from src/platform/linux/X/../../../platform.h:10,
                 from src/platform/linux/X/X.h:10,
                 from src/platform/linux/X/input.c:7:
/usr/include/features.h:435:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
  435 | #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
      |    ^~~~~~~
src/platform/linux/X/input.c: In function ‘get_next_xev’:
src/platform/linux/X/input.c:63:14: warning: unused variable ‘buf’ [-Wunused-variable]
   63 |         char buf[1024];
      |              ^~~
src/platform/linux/X/input.c: In function ‘x_input_wait’:
src/platform/linux/X/input.c:386:29: error: assignment to ‘struct input_evnet *’ from incompatible pointer type ‘struct input_event *’ [-Wincompatible-pointer-types]
  386 |                         ret = &ev;
      |                             ^
src/platform/linux/X/input.c:406:16: error: returning ‘struct input_evnet *’ from a function with incompatible return type ‘struct input_event *’ [-Wincompatible-pointer-types]
  406 |         return ret;
      |                ^~~
make: *** [Makefile:14: src/platform/linux/X/input.o] Error 1

┌──(dex)-[~/git/warpd]
└─$

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions