]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/input.cc
Warnings: Move all warning-as-error handling to warn.cc
[lilypond.git] / lily / input.cc
index 28923f49481efd792eb93a9e67d210ec8b970820..9ba376763861cbd58fbff6d3dadf7a216bdbdabd 100644 (file)
@@ -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