xorg/driver/xf86-input-joystick: [PATCH 2/2] Janitor: gcc 4.5 and sparse warnings.

Paulo César Pereira de Andrade pcpa at mandriva.com.br
Wed Feb 4 12:59:13 PST 2009

  This patch corrects most gcc/sparse warnings.

  The correction for code in format:

if (a >= b)
  rel = a - b;
if (a <= b)
  rel = b - a;
rel = rel / foo;

was changed to the logical equivalent, and clear
to read, but also corrected the warning about rel
possibly being used uninitialized :-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Janitor-gcc-4.5-and-sparse-warnings.patch
Type: text/x-patch
Size: 2792 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg/attachments/20090204/c9b71405/attachment.bin>

More information about the xorg mailing list