wlroots-hyprland/examples
random human 8589ae19de Fix bugs listed by clang's static analyzer
A few pedantic changes and unused variables (1-4), and genuine bugs (5,
6).

The reports with the corresponding files and lines numbers are as
follows.

1. backend/libinput/tablet_pad.c@31,44,57
"Allocator sizeof operand mismatch"
"Result of 'calloc' is converted to a pointer of type 'unsigned int',
which is incompatible with sizeof operand type 'int'"

2. types/tablet_v2/wlr_tablet_v2_pad.c@371
"Allocator sizeof operand mismatch"
"Result of 'calloc' is converted to a pointer of type 'uint32_t', which
is incompatible with sizeof operand type 'int'"

3. types/wlr_cursor.c@335
"Dead initialization"
"Value stored to 'dx'/'dy' during its initialization is never read"

4. rootston/xdg_shell.c@510
"Dead initialization"
"Value stored to 'desktop' during its initialization is never read"

5. types/tablet_v2/wlr_tablet_v2_pad.c@475
"Dereference of null pointer"
"Access to field 'strips' results in a dereference of a null pointer
(loaded from field 'current_client')"

The boolean logic was incorrect (c.f. the check in the following
function).

6. examples/idle.c@163,174,182
"Uninitialized argument value"
"1st function call argument is an uninitialized value"

If close_timeout != 0, but simulate_activity_timeout >= close_timeout,
the program would segfault at pthread_cancel(t1).
2018-08-31 19:41:18 +02:00
..
.gitignore Add xdg shell stubs 2017-08-09 12:31:16 -04:00
cat.c Moved cat out of support, removed support 2018-05-10 19:03:56 -07:00
cat.h Moved cat out of support, removed support 2018-05-10 19:03:56 -07:00
dmabuf-capture.c examples/dmabuf-capture: move encoding to a separate thread 2018-06-25 06:41:59 +01:00
gamma-control.c examples/gamma-control: fix brightness formula 2018-08-02 23:33:59 +01:00
idle-inhibit.c Fix build on FreeBSD 2018-08-16 10:54:45 +01:00
idle.c Fix bugs listed by clang's static analyzer 2018-08-31 19:41:18 +02:00
input-inhibitor.c Add input-inhibitor example client 2018-04-03 14:06:52 -04:00
layer-shell.c Fix build on FreeBSD 2018-08-16 10:54:45 +01:00
meson.build Fixes examples/dmabuf-capture being built with unmet dependencies 2018-08-30 22:23:28 +05:30
multi-pointer.c Fix build on FreeBSD 2018-08-16 10:54:45 +01:00
output-layout.c util: add wlr_ prefix to log symbols 2018-07-09 22:49:54 +01:00
pointer.c Fix build on FreeBSD 2018-08-16 10:54:45 +01:00
rotation.c Fix build on FreeBSD 2018-08-16 10:54:45 +01:00
screencopy.c examples/screencopy: use libpng 2018-06-30 23:18:13 +01:00
screenshot.c util: add wlr_ prefix to log symbols 2018-07-09 22:49:54 +01:00
simple.c examples: cleanup simple 2018-07-29 15:32:25 +01:00
tablet.c Fix build on FreeBSD 2018-08-16 10:54:45 +01:00
toplevel-decoration.c Add xdg-decoration-unstable-v1 support 2018-07-28 22:48:07 +01:00
touch.c Fix build on FreeBSD 2018-08-16 10:54:45 +01:00