]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/input.cc
Doc-de: updates to usage manual
[lilypond.git] / lily / input.cc
index 28923f49481efd792eb93a9e67d210ec8b970820..bc1e79b373554cc5dd2b720ddf444ddd4610a701 100644 (file)
@@ -1,7 +1,7 @@
 /*
   This file is part of LilyPond, the GNU music typesetter.
 
-  Copyright (C) 1997--2011 Han-Wen Nienhuys <hanwen@xs4all.nl>
+  Copyright (C) 1997--2012 Han-Wen Nienhuys <hanwen@xs4all.nl>
 
   LilyPond is free software: you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
@@ -103,10 +103,7 @@ Input::error (string s) const
 void
 Input::programming_error (string s) const
 {
-  if (get_program_option ("warning-as-error"))
-    ::error (message_string (s), message_location ());
-  else
-    ::programming_error (message_string (s), message_location ());
+  ::programming_error (message_string (s), message_location ());
 }
 
 void
@@ -118,10 +115,7 @@ Input::non_fatal_error (string s) const
 void
 Input::warning (string s) const
 {
-  if (get_program_option ("warning-as-error"))
-    ::non_fatal_error (message_string (s), message_location ());
-  else
-    ::warning (message_string (s), message_location ());
+  ::warning (message_string (s), message_location ());
 }
 
 void