From ed123b2a3202f356bd2fce4340c2ba682d3b645c Mon Sep 17 00:00:00 2001
From: Heikki Junes <heikki.junes@hut.fi>
Date: Wed, 23 Jul 2003 12:42:42 +0000
Subject: [PATCH] fixed warning syntax.

---
 ChangeLog                    | 3 +++
 lily/piano-pedal-engraver.cc | 5 +++--
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 6f0da82a9c..2b449c53a5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -18,6 +18,9 @@
 
 	* stepmake/stepmake/toplevel-targets.make: rpm-mandrake -> rpm-mdk.
 
+	* lily/piano-pedal-engraver.cc: fixed warnings, got working syntax
+	from lily/glissando-engraver.cc.
+
 2003-07-23  Han-Wen Nienhuys  <hanwen@cs.uu.nl>
 
 	* lily/volta-bracket.cc (brew_molecule): opps: only wipe number
diff --git a/lily/piano-pedal-engraver.cc b/lily/piano-pedal-engraver.cc
index 31084a1e26..60c9379321 100644
--- a/lily/piano-pedal-engraver.cc
+++ b/lily/piano-pedal-engraver.cc
@@ -21,6 +21,7 @@
 #include "translator-group.hh"
 #include "directional-element-interface.hh"
 #include "note-column.hh"
+#include "warn.hh"
 
 struct Pedal_info
 {
@@ -229,9 +230,9 @@ Piano_pedal_engraver::create_text_grobs (Pedal_info *p, SCM pedaltype)
 
       String msg = _ ("Need 3 strings for piano pedals. No pedal made. ");
       if (m)
-	m->origin().warning (msg);
+	m->origin()->warning (msg);
       else
-	warning (msg)
+	warning (msg);
       
       return ;
     }
-- 
2.39.5