Bug 52134 - misleading warning array subscript is above array bounds (in fact gcc bug)
Summary: misleading warning array subscript is above array bounds (in fact gcc bug)
Status: RESOLVED MOVED
Alias: None
Product: xorg
Classification: Unclassified
Component: Input/Mouse (show other bugs)
Version: unspecified
Hardware: Other FreeBSD
: medium normal
Assignee: Xorg Project Team
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-16 07:01 UTC by petr.salinger
Modified: 2018-08-10 20:58 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
proposed patch (593 bytes, patch)
2012-07-16 07:01 UTC, petr.salinger
no flags Details | Splinter Review
reduced gcc testcase (1.03 KB, text/x-csrc)
2012-07-16 07:02 UTC, petr.salinger
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.