When trying to compile bochs with gcc-3.3.1, one gets the following errors: fetchdecode.cc:165: error: brace-enclosed initializer used to initialize `void (*)(bxInstruction_c*)' fetchdecode.cc:165: error: brace-enclosed initializer used to initialize `void (*)(bxInstruction_c*)' [.. repeated a few times - for line 170, 175, ..] The attached patch fixes this problem.
Created attachment 18268 [details, diff] A patch that fixes the brace-enclosed initializer problem Note that this will probably break bochs with gcc < 3.3.1. Some kind of gcc version detection might be necessary to be included in the ebuild.
The patch works fine on my machine using both gcc-3.3.1 and gcc-3.2.3 In fact, I don't think we can expect any surprises from it since the upstream cvs version has also removed the extra braces. ( http://cvs.sourceforge.net/viewcvs.py/bochs/bochs/cpu/fetchdecode.cc )
in cvs