aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitchesD <majklprofik@seznam.cz>2016-03-03 19:58:28 +0100
committerShauren <shauren.trinity@gmail.com>2016-03-12 23:52:51 +0100
commitcaef32d3757ae81f184150c8cef0a128b3a13a01 (patch)
tree25429a69c4edac3fcc6ae7697289bc585d60d160
parentfd819b09194b182e1429536454f8a80a423aaf1b (diff)
Core/Misc: fix build
(cherry picked from commit ce5def332fa12ea4b2f3223fbaa4e41750da9cfb)
-rw-r--r--src/common/Debugging/Errors.cpp2
-rw-r--r--src/server/worldserver/Main.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/common/Debugging/Errors.cpp b/src/common/Debugging/Errors.cpp
index 749cdec2742..2ce00229e53 100644
--- a/src/common/Debugging/Errors.cpp
+++ b/src/common/Debugging/Errors.cpp
@@ -96,7 +96,7 @@ void Abort(char const* file, int line, char const* function)
exit(1);
}
-void AbortHandler(int sigval)
+void AbortHandler(int /*sigval*/)
{
// nothing useful to log here, no way to pass args
*((volatile int*)NULL) = 0;
diff --git a/src/server/worldserver/Main.cpp b/src/server/worldserver/Main.cpp
index 6a968d4fde9..8ae8e394ff6 100644
--- a/src/server/worldserver/Main.cpp
+++ b/src/server/worldserver/Main.cpp
@@ -93,7 +93,7 @@ variables_map GetConsoleArguments(int argc, char** argv, std::string& cfg_file,
/// Launch the Trinity server
extern int main(int argc, char** argv)
{
- std::signal(SIGABRT, &Trinity::AbortHandler);
+ signal(SIGABRT, &Trinity::AbortHandler);
std::string configFile = _TRINITY_CORE_CONFIG;
std::string configService;