[plt-scheme] Build error: plt 206 on solaris
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I'm building plt version 206 on Solaris for Intel, using Sun's
Workshop 6 cc (and CC) compiler.
tim at gemini:2006>> CC -V
CC: Sun WorkShop 6 update 2 C++ 5.3 2001/05/15
the file: plt/src/mred/wxs/wxs_dc.cxx throws up the following error:
"./wxs_dc.cxx", line 2508: Error: "WithContext(wxGL*, void*, void*, int)"
is expected to return a value.
This is the offending code:
static void *WithContext(wxGL *gl, void *thunk, void *alt_waitable, int eb)
{
#ifdef USE_GL
~ return wxWithGLContext(gl, thunk, alt_waitable, eb);
#endif
}
I am not using OpenGL (i.e. USE_GL is not set), therefore the function
does not return a value. I have fixed my copy of this file with the
clause
#else
~ return NULL;
#endif
To shut up the compiler. Is this the correct thing to do?
Should I be reporting this here or elsewhere, by the way?
Regards
Tim
- --
Tim Brown <tim.brown at cityc.co.uk> | City Computing Limited |
T: +44 20 8770 2110 | City House, Sutton Park Road |
F: +44 20 8770 2130 | Sutton, Surrey, SM1 2AE, GB |
BEAUTY: What's in your eye when you have a bee in your hand.__________/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFAIN9Z7MYLqp8J2FERAi6CAJ9a2PjjpZMEDixEuOzmPvoUYS22hQCgqge+
FwAslZ6NIOtFFCpipJiT/Lk=
=o8Nu
-----END PGP SIGNATURE-----