* Stephen Weeks: > Any ideas how to fix this problem? Add -Wno-bad-function-cast, or introduce a temporary. The warning is quite pointless. See <http://gcc.gnu.org/ml/gcc-patches/2004-09/msg02479.html> for some examples.