Make gnucash compile on an optimizing gcc-4.2.

Patch from Jerry Quinn
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16771 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Andreas Köhler 2007-12-30 18:42:20 +00:00
parent e576797c0f
commit e32d09e5ac

View File

@ -2146,9 +2146,10 @@ gnc_numeric_p(SCM arg)
static SCM
gnc_generic_to_scm(const void *x, const gchar *type_str)
gnc_generic_to_scm(const void *cx, const gchar *type_str)
{
swig_type_info * stype = NULL;
void *x = (void*) cx;
if (!x) return SCM_BOOL_F;
stype = SWIG_TypeQuery(type_str);