From 9d2eb460fa3569342044b6f3e61d52d86ca8cbb6 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 24 Apr 2015 18:07:19 +0300 Subject: fix compilation warnings. --- src/logger.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src/logger.h') diff --git a/src/logger.h b/src/logger.h index 40ea191c2..da910fd57 100644 --- a/src/logger.h +++ b/src/logger.h @@ -152,14 +152,21 @@ class Logger final * Log an error and quit. The error will pop-up on Windows and Mac, and * will be printed to standard error everywhere else. */ - void error(const std::string &error_text) __attribute__ ((noreturn)); + void error(const std::string &error_text) +#ifndef ENABLE_CILKPLUS + __attribute__ ((noreturn)) +#endif + ; /** * Log an error and quit. The error will pop-up on Windows and Mac, and * will be printed to standard error everywhere else. */ void safeError(const std::string &error_text) - __attribute__ ((noreturn)); +#ifndef ENABLE_CILKPLUS + __attribute__ ((noreturn)) +#endif + ; void unimplimented(const int id); -- cgit v1.2.3-70-g09d2