From e74c2835796e56104a1b0c6662e30acd3fc293bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= 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 --- ParsingDriver.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ParsingDriver.hh b/ParsingDriver.hh index 5ed275eb..f9b881a6 100644 --- a/ParsingDriver.hh +++ b/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);