]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/dispatcher.cc
Clean up g++ 4.6.1 compiler warnings (-Wunused-but-set-variable).
[lilypond.git] / lily / dispatcher.cc
index a6cee709ce0649497a7b5a500aa8b8351e1200db..0e3ad8998e842031d02d4a6bc7aca4feac65f247 100644 (file)
@@ -89,7 +89,9 @@ Dispatcher::dispatch (SCM sev)
       ev->origin ()->warning (_f ("Unknown event class %s", ly_symbol2string (class_symbol).c_str ()));
       return;
     }
+#if 0
   bool sent = false;
+#endif
   int num_classes = scm_ilength (class_list);
 
   /*
@@ -148,7 +150,9 @@ Dispatcher::dispatch (SCM sev)
 
           Listener *l = unsmob_listener (scm_cdar (lists[0].list));
           l->listen (ev->self_scm ());
+#if 0
           sent = true;
+#endif
         }
       // go to the next listener; bubble-sort the class list.
       SCM next = scm_cdr (lists[0].list);
@@ -161,10 +165,11 @@ Dispatcher::dispatch (SCM sev)
       lists[i].list = next;
     }
 
-  /* TODO: Uncomment.
+#if 0
+  /* TODO: Uncomment. */
     if (!sent)
       warning (_f ("Junking event: %s", ly_symbol2string (class_symbol).c_str ()));
-  */
+#endif
 }
 
 void