summaryrefslogtreecommitdiff
path: root/src/logger.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-04-24 18:07:19 +0300
committerAndrei Karas <akaras@inbox.ru>2015-04-24 18:07:19 +0300
commit9d2eb460fa3569342044b6f3e61d52d86ca8cbb6 (patch)
tree70b9b43072ae67a379fea3693d8671bb75d2a0fa /src/logger.h
parent30da377919524a96a385cbe16f8ab74d5a4a7fab (diff)
downloadmv-9d2eb460fa3569342044b6f3e61d52d86ca8cbb6.tar.gz
mv-9d2eb460fa3569342044b6f3e61d52d86ca8cbb6.tar.bz2
mv-9d2eb460fa3569342044b6f3e61d52d86ca8cbb6.tar.xz
mv-9d2eb460fa3569342044b6f3e61d52d86ca8cbb6.zip
fix compilation warnings.
Diffstat (limited to 'src/logger.h')
-rw-r--r--src/logger.h11
1 files changed, 9 insertions, 2 deletions
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);