Bug 52134

Summary: misleading warning array subscript is above array bounds (in fact gcc bug)
Product: xorg Reporter: petr.salinger
Component: Input/MouseAssignee: Xorg Project Team <xorg-team>
Status: RESOLVED MOVED QA Contact: Xorg Project Team <xorg-team>
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: FreeBSD   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
proposed patch
none
reduced gcc testcase none

Description petr.salinger 2012-07-16 07:01:19 UTC
Created attachment 64256 [details] [review]
proposed patch

Hi,

current gcc-4.7 produces (at least on kfreebsd-amd64) misleading warning 
during compilation of xserver-xorg-input-mouse.
It together with -Werror leads to compilation failure.

The attached diff workarounds this gcc bug.

Petr
Comment 1 petr.salinger 2012-07-16 07:02:14 UTC
Created attachment 64257 [details]
reduced gcc testcase
Comment 2 GitLab Migration User 2018-08-10 20:58:39 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/xorg/driver/xf86-input-mouse/issues/13.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.