Bugzilla – Bug 317178
[PATCH] support for pre-ISO-C99 compilers
Last modified: 2007-09-15 21:24:46 UTC
---- Reported by robertj@gmx.net 2005-02-13 14:56:00 MST ---- Statement-before-declaration issue ;-) ---- Additional Comments From robertj@gmx.net 2005-02-13 14:57:12 MST ---- Created an attachment (id=167400) Diff against /trunk/mono/mono/mini/declsec.c ---- Additional Comments From vargaz@gmail.com 2005-02-13 15:45:42 MST ---- Applied, but please be aware that the core developers do not use gcc-2.95, and gcc versions prior to 3.4 do not have the ability to warn against these constructs. So this thing will again happen in the future. ---- Additional Comments From robertj@gmx.net 2005-02-13 18:07:47 MST ---- Do you still want these patches? I really don't want to bother you with them! I was just suprised to find these issues because every public release compiled just fine with gcc 2.95 until I switched to HEAD. So I'm assuming you're fixing them just before a public release. Is that true? bye Rob ---- Additional Comments From dick@ximian.com 2005-02-14 09:50:02 MST ---- I used to work with gcc-2.95 and regularly checked in fixes for it, but I changed distro. That might explain why the errors don't get spotted nowadays. ---- Additional Comments From lupus@ximian.com 2005-02-14 10:09:31 MST ---- Robert, please keep the patches coming: besides gcc 2.95 there are also compilers on non linux platforms that don't support C99 yet. Thanks! Imported an attachment (id=167400)