FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.

» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian GCC

LinkBack Thread Tools
Old 07-14-2012, 08:40 AM
Petr Salinger
Default 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


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]


Thread Tools

All times are GMT. The time now is 01:21 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org