From f38c1deba59c233e1af2d36fc55b1d0f08c2f9ac Mon Sep 17 00:00:00 2001 From: Werner Lemberg Date: Wed, 3 Nov 2010 09:18:43 +0100 Subject: [PATCH] [lilypond] Remove some compiler warnings. This has been tested with g++ 4.5.0 (20100722). --- lily/grob.cc | 2 +- lily/part-combine-iterator.cc | 2 +- lily/piano-pedal-performer.cc | 2 +- lily/source-file.cc | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lily/grob.cc b/lily/grob.cc index aa9c1d40f4..bdf338888f 100644 --- a/lily/grob.cc +++ b/lily/grob.cc @@ -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; } diff --git a/lily/part-combine-iterator.cc b/lily/part-combine-iterator.cc index f2e0a34e93..ac8b4c0682 100644 --- a/lily/part-combine-iterator.cc +++ b/lily/part-combine-iterator.cc @@ -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, diff --git a/lily/piano-pedal-performer.cc b/lily/piano-pedal-performer.cc index 59bc7eeb0c..8d2fcf2d45 100644 --- a/lily/piano-pedal-performer.cc +++ b/lily/piano-pedal-performer.cc @@ -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 diff --git a/lily/source-file.cc b/lily/source-file.cc index 1775a39759..f895d6011e 100644 --- a/lily/source-file.cc +++ b/lily/source-file.cc @@ -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); } /* -- 2.39.2