diff --git a/preprocessor/ParsingDriver.hh b/preprocessor/ParsingDriver.hh
index 5ed275eb6b2378792109cd3865af6f6e119df258..f9b881a604c3bf4a37825ea304b950608079b0e8 100644
--- a/preprocessor/ParsingDriver.hh
+++ b/preprocessor/ParsingDriver.hh
@@ -183,9 +183,9 @@ public:
   EstimationParams estim_params;
 
   //! Error handler with explicit location
-  void error(const Dynare::parser::location_type &l, const string &m);
+  void error(const Dynare::parser::location_type &l, const string &m) __attribute__ ((noreturn));
   //! Error handler using saved location
-  void error(const string &m);
+  void error(const string &m) __attribute__ ((noreturn));
   //! Warning handler using saved location
   void warning(const string &m);