From 572f71881a76c75b8fa420b6af4f1dd597ad7dd2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien.villemot@ens.fr>
Date: Thu, 13 Jan 2011 19:04:40 +0100
Subject: [PATCH] Preprocessor: add "noreturn" attribute to
 ParsingDriver::error, to remove some warnings about unitialized variables

---
 preprocessor/ParsingDriver.hh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/preprocessor/ParsingDriver.hh b/preprocessor/ParsingDriver.hh
index 5ed275eb6..f9b881a60 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);
 
-- 
GitLab