[PATCH RESEND 4/5] dix: move #if statement to stop compiler warning

Daniel Stone daniel at fooishbar.org
Thu Oct 20 06:19:03 PDT 2011


On 20 October 2011 04:05, Peter Hutterer <peter.hutterer at who-t.net> wrote:
> ptrveloc.c: In function 'QueryTrackers':
> ptrveloc.c:598:34: warning: variable 'used_offset' set but not used
> [-Wunused-but-set-variable]
>
> used_offset is used, but only in the debugging code. Move the #if statement
> to ignore that warning.
>
> Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>

Reviewed-by: Daniel Stone <daniel at fooishbar.org>


More information about the xorg-devel mailing list