Summary: | [PATCH xf86-video-ati]: Fix 2424 lines of compiler warnings | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | xorg | Reporter: | Johannes Obermayr <johannesobermayr> | ||||||||
Component: | Driver/Radeon | Assignee: | xf86-video-ati maintainers <xorg-driver-ati> | ||||||||
Status: | RESOLVED FIXED | QA Contact: | Xorg Project Team <xorg-team> | ||||||||
Severity: | minor | ||||||||||
Priority: | medium | ||||||||||
Version: | git | ||||||||||
Hardware: | All | ||||||||||
OS: | Linux (All) | ||||||||||
Whiteboard: | |||||||||||
i915 platform: | i915 features: | ||||||||||
Attachments: |
|
Description
Johannes Obermayr
2011-06-13 04:11:49 UTC
This patch has come up a number of times in the past since gcc started warning about this (it didn't used to when the code was written). I'd rather seem a nicer, sustainable fix (converting to defines or something) than casting to ints everywhere. Created attachment 47962 [details] [review] patch to silence compiler warings here you go Created attachment 47964 [details] [review] Alternate patch to silence warnings The number of casts involved in Marc's patch got me to thinking that using a temporary variable might be cleaner. The attached patch also uses the opportunity to line up backslashes in the macros. ping! Thanks for the patches, guys, but I took Alex's suggestion and converted the register ranges to defines. |
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.