[Bug 624740] Re: gcc-4.5. checks enums more strictly
** Changed in: freetype (Ubuntu) Status: New => Fix Released -- gcc-4.5. checks enums more strictly https://bugs.launchpad.net/bugs/624740 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 624740] Re: gcc-4.5. checks enums more strictly
** Branch linked: lp:ubuntu/freetype -- gcc-4.5. checks enums more strictly https://bugs.launchpad.net/bugs/624740 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 624740] Re: gcc-4.5. checks enums more strictly
This bug was fixed in the package freetype - 2.4.2-2 --- freetype (2.4.2-2) unstable; urgency=low * debian/patches-ft2demos/f2tdemos-grkey.patch: update to fix another problem when building under gcc-4.5 that was overlooked in the previous version of the patch. LP: #624740. -- Steve LangasekWed, 08 Sep 2010 07:45:46 +0100 ** Changed in: freetype (Ubuntu Maverick) Status: Won't Fix => Fix Released -- gcc-4.5. checks enums more strictly https://bugs.launchpad.net/bugs/624740 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 624740] Re: gcc-4.5. checks enums more strictly
** Also affects: freetype (Ubuntu Maverick) Importance: Undecided Status: New ** Changed in: freetype (Ubuntu Maverick) Status: New => Won't Fix -- gcc-4.5. checks enums more strictly https://bugs.launchpad.net/bugs/624740 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 624740] Re: gcc-4.5. checks enums more strictly
I also agree we should not violate the authors original intent. Hence I agree with the original patch. However, there is clearly enough information in this bug report to make a decision and to implement a fix. -- gcc-4.5. checks enums more strictly https://bugs.launchpad.net/bugs/624740 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 624740] Re: gcc-4.5. checks enums more strictly
My opinion was - "If the author(s) thought an enum was a good idea they must have had a good reason.." -- gcc-4.5. checks enums more strictly https://bugs.launchpad.net/bugs/624740 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 624740] Re: gcc-4.5. checks enums more strictly
** Branch linked: lp:debian/sid/freetype -- gcc-4.5. checks enums more strictly https://bugs.launchpad.net/bugs/624740 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 624740] Re: gcc-4.5. checks enums more strictly
I question the utility of having an exhaustive enum for all of the possible keypresses; I think it makes more sense to just redefine the grEvent struct to use an unsigned short instead of the enum: Index: ft2demos-2.4.2/graph/grevents.h === --- ft2demos-2.4.2.orig/graph/grevents.h +++ ft2demos-2.4.2/graph/grevents.h @@ -106,7 +106,7 @@ typedef struct grEvent_ { inttype; -grKey key; +unsigned short key; intx, y; } grEvent; Tested with gcc 4.5, and this appears to work. Do you have an opinion on this? -- gcc-4.5. checks enums more strictly https://bugs.launchpad.net/bugs/624740 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 624740] Re: gcc-4.5. checks enums more strictly
** Tags added: patch -- gcc-4.5. checks enums more strictly https://bugs.launchpad.net/bugs/624740 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 624740] Re: gcc-4.5. checks enums more strictly
Patch ft2demos-2.4.2/graph/grevents.h to prevent warnings. ** Patch added: "ft2demos-grkey-enum.patch" https://bugs.launchpad.net/ubuntu/+source/freetype/+bug/624740/+attachment/1520575/+files/ft2demos-grkey-enum.patch -- gcc-4.5. checks enums more strictly https://bugs.launchpad.net/bugs/624740 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs