Bug#681557: gcc-4.7: misleading warning in xserver-xorg-input-mouse (array subscript is above array bounds)
Package: gcc-4.7
Version: 4.7.1-2
User: debian-bsd@lists.debian.org
Usertags: kfreebsd
Hi,
current gcc produces (at least on kfreebsd-amd64) misleading warning
during compilation of xserver-xorg-input-mouse.
It together with -Werror leads to #665390.
Attached please find reduced testcase, it probably produces the same
warning also on (linux-)amd64.
gcc -Wall -O2 bsd_mouse-bounds.c -c
bsd_mouse-bounds.c: In function 'CheckProtocol':
bsd_mouse-bounds.c:35:30: warning: array subscript is above array bounds [-Warray-bounds]
Petr
|