]> git.donarmstrong.com Git - lilypond.git/commitdiff
Simplify a function pointer cast that GUB chokes on release/2.17.14-1
authorDavid Kastrup <dak@gnu.org>
Mon, 11 Mar 2013 07:54:03 +0000 (08:54 +0100)
committerDavid Kastrup <dak@gnu.org>
Mon, 11 Mar 2013 07:54:03 +0000 (08:54 +0100)
It is conceivable that the C++ compiler has problems converting a
pointer to a C function (declared in a C language header) to a C++
function pointer.  Or that it has a compiler bug making it choke on
too complex casts.  This commit changes the cast

(SCM (*)()) apply_unpure_pure

to

(scm_t_subr) apply_unpure_pure

which hopefully addresses both of these potential candidates for GUB
compilation failure.

lily/unpure-pure-container.cc

index 05e9c4bcc8ea0d1f1f8db9dee1796f2789f297ba..9b2f871769356ea1de2f47900d8a5a6fb5ffb037 100644 (file)
@@ -137,7 +137,7 @@ void init_unpure_pure_container ()
   unpure_pure_call_tag = scm_make_smob_type ("unpure-pure-call", 0);
   scm_set_smob_mark (unpure_pure_call_tag, scm_markcdr);
   scm_set_smob_apply (unpure_pure_call_tag,
-                      (SCM (*)()) apply_unpure_pure, 2, 0, 1);
+                      (scm_t_subr) apply_unpure_pure, 2, 0, 1);
 };
 
 ADD_SCM_INIT_FUNC (unpure_pure_container, init_unpure_pure_container);