summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-04-19 14:52:01 +0300
committerAndrei Karas <akaras@inbox.ru>2014-04-19 14:52:01 +0300
commitff6c93b16f408a2ef10e47a4168c59ab6c4fdafb (patch)
tree4798677d00dc4dbdd7247966e04d409a3ea332f9 /src
parent09fcaf22dc924143e88c79c2539f48b33432bf1d (diff)
downloadmanaverse-ff6c93b16f408a2ef10e47a4168c59ab6c4fdafb.tar.gz
manaverse-ff6c93b16f408a2ef10e47a4168c59ab6c4fdafb.tar.bz2
manaverse-ff6c93b16f408a2ef10e47a4168c59ab6c4fdafb.tar.xz
manaverse-ff6c93b16f408a2ef10e47a4168c59ab6c4fdafb.zip
Fix compilation warnings.
Diffstat (limited to 'src')
-rw-r--r--src/commands.cpp1
-rw-r--r--src/commands.h2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/commands.cpp b/src/commands.cpp
index de4c03012..3d476f8c6 100644
--- a/src/commands.cpp
+++ b/src/commands.cpp
@@ -1136,6 +1136,7 @@ impHandler0(error)
{
const int *const ptr = nullptr;
logger->log("test %d", *ptr);
+ exit(1);
}
impHandler(url)
diff --git a/src/commands.h b/src/commands.h
index 6dd688a17..a27f430db 100644
--- a/src/commands.h
+++ b/src/commands.h
@@ -107,7 +107,7 @@ namespace Commands
decHandler(serverIgnoreAll);
decHandler(serverUnIgnoreAll);
decHandler(setDrop);
- decHandler(error);
+ decHandler(error) __attribute__ ((noreturn));
decHandler(url);
decHandler(open);
decHandler(dump);