lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: compiler warnings


From: Werner LEMBERG
Subject: Re: compiler warnings
Date: Sat, 04 Oct 2014 08:58:07 +0200 (CEST)

> [...] it may be feasible to remove the line
> 
>     if (Super::print_smob != 0)
> 
> in lily/include/smobs.hh.  Can you check whether this solves your
> problem or whether warnings for other functions remain?

Other warnings remain.  I've applied the following patch to make
compilation silent again.  No idea whether it's the correct thing...

Note that I'm compiling with `--disable-optimising'; this might be a
reason that I see these warnings.


    Werner

======================================================================

diff --git a/lily/include/smobs.tcc b/lily/include/smobs.tcc
index c2616b3..a34a011 100644
--- a/lily/include/smobs.tcc
+++ b/lily/include/smobs.tcc
@@ -103,13 +103,13 @@ void Smob_base<Super>::init ()
   // While that's not a consideration for type_p_name_, it's easier
   // doing it like the rest.
 
-  if (Super::free_smob != 0)
+//  if (Super::free_smob != 0)
     scm_set_smob_free (smob_tag_, Super::free_smob);
   if (&Super::mark_smob != &Smob_base<Super>::mark_smob)
     scm_set_smob_mark (smob_tag_, Super::mark_trampoline);
-  if (Super::print_smob != 0)
+//  if (Super::print_smob != 0)
     scm_set_smob_print (smob_tag_, Super::print_smob);
-  if (Super::equal_p != 0)
+//  if (Super::equal_p != 0)
     scm_set_smob_equalp (smob_tag_, Super::equal_p);
   if (Super::type_p_name_ != 0)
     {



reply via email to

[Prev in Thread] Current Thread [Next in Thread]