mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-31 13:30:09 +01:00
test: fix compiler warning
litest-selftest.c: In function ‘litest_ptr_eq_notrigger’:
litest-selftest.c:172:10: warning: initialization makes integer from pointer
without a cast [-Wint-conversion]
int c = NULL;
^
litest-selftest.c:173:10: warning: initialization makes integer from pointer
without a cast [-Wint-conversion]
int d = NULL;
^
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
ba062a61a9
commit
82335b0ab9
1 changed files with 2 additions and 2 deletions
|
|
@ -169,8 +169,8 @@ START_TEST(litest_ptr_eq_notrigger)
|
|||
int v = 10;
|
||||
int *a = &v;
|
||||
int *b = &v;
|
||||
int c = NULL;
|
||||
int d = NULL;
|
||||
int *c = NULL;
|
||||
int *d = NULL;
|
||||
|
||||
litest_assert_ptr_eq(a, b);
|
||||
litest_assert_ptr_eq(c, d);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue