]> git.donarmstrong.com Git - lilypond.git/commitdiff
[lilypond] Remove some compiler warnings.
authorWerner Lemberg <wl@gnu.org>
Wed, 3 Nov 2010 08:18:43 +0000 (09:18 +0100)
committerWerner Lemberg <wl@gnu.org>
Wed, 3 Nov 2010 08:18:43 +0000 (09:18 +0100)
This has been tested with g++ 4.5.0 (20100722).

lily/grob.cc
lily/part-combine-iterator.cc
lily/piano-pedal-performer.cc
lily/source-file.cc

index aa9c1d40f4bee450f9d2940d530719db68b3d986..bdf338888f2c440200837c442e696a4ef50f676a 100644 (file)
@@ -493,7 +493,7 @@ Grob::spanned_rank_interval () const
 }
 
 bool
-Grob::pure_is_visible (int start, int end) const
+Grob::pure_is_visible (int /* start */, int /* end */) const
 {
   return true;
 }
index f2e0a34e931df3229e67c3bf28af82ead5133a74..ac8b4c0682a03af00f9f413954336bcce98532ea 100644 (file)
@@ -25,7 +25,7 @@
 #include "music-sequence.hh"
 #include "warn.hh"
 
-typedef enum Outlet_type
+enum Outlet_type
   {
     CONTEXT_ONE, CONTEXT_TWO,
     CONTEXT_SHARED, CONTEXT_SOLO,
index 59bc7eeb0c23ab41687043d85965488d96016ef2..8d2fcf2d45327f2124fc960fa06ca9ad7cb3f001 100644 (file)
@@ -26,7 +26,7 @@
 
 #include "translator.icc"
 
-typedef enum Pedal_type {SOSTENUTO, SUSTAIN, UNA_CORDA, NUM_PEDAL_TYPES};
+enum Pedal_type {SOSTENUTO, SUSTAIN, UNA_CORDA, NUM_PEDAL_TYPES};
 
 /**
    perform Piano pedals
index 1775a39759c6dae4ec240c93b76a0d0069fc21dd..f895d6011eb6e62b0d0d3910c2650d818476c91c 100644 (file)
@@ -48,7 +48,7 @@ Source_file::load_stdin ()
   characters_.clear ();
   int c;
   while ((c = fgetc (stdin)) != EOF)
-    characters_.push_back (c);
+    characters_.push_back ((char)c);
 }
 
 /*