Re: [PATCH xserver 2/3] modesetting: Check for -1 before converting to unsigned int.

2018-02-02 Thread Adam Jackson
On Mon, 2017-03-27 at 15:03 +0300, m...@suse.com wrote: > From: Michal Srb > > dri2.c:516:21: warning: comparison of unsigned expression < 0 is always false > [-Wtautological-compare] > if (front->name < 0) > > Prevents a failure from being ignored. > --- Merged these two:

[PATCH xserver 2/3] modesetting: Check for -1 before converting to unsigned int.

2017-03-27 Thread msrb
From: Michal Srb dri2.c:516:21: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare] if (front->name < 0) Prevents a failure from being ignored. --- hw/xfree86/drivers/modesetting/dri2.c | 7 +-- 1 file changed, 5 insertions(+), 2