Ticket #25 (closed defect: wontfix)
GCC 3.3.6 compile errors
|Reported by:||dsmith||Owned by:||dsmith|
I received a patch to fix compile errors for GCC 3.3.6 running under Ubuntu 6.10 (Edgy Eft), but I can't reproduce the errors. For the most part, the problems are implicit casts of void * to other pointer types, such as
struct wiimote_button_mesg *button_mesg; button_mesg = malloc(sizeof *button_mesg);
This is correct (according to K&Rv2), but I seem to remember running across this issue before. Can anyone duplicate it? I've tried compiling CWiid from the Ubuntu 6.10 LiveCD, but can't get GCC to work at all, and don't have time to install a machine right now. If possible, I'd like to investigate compiler options rather than using a patch, as it's cumbersome to not be able to use ANSI C, but if there are a large number of machines out there that can't compile, I'll merge the patch. Portability requires programming for the implementation rather than the standard.