aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMitchesD <majklprofik@seznam.cz>2016-03-03 19:58:28 +0100
committerMitchesD <majklprofik@seznam.cz>2016-03-03 19:58:28 +0100
commitce5def332fa12ea4b2f3223fbaa4e41750da9cfb (patch)
tree4a844080c153cd66f8d8450751acacfea8d96624 /src
parent82cc37e130c4e2a6b8968c3279d9b2c30fe2bc48 (diff)
Core/Misc: fix build
Diffstat (limited to 'src')
-rw-r--r--src/common/Debugging/Errors.cpp2
-rw-r--r--src/server/bnetserver/Main.cpp2
-rw-r--r--src/server/worldserver/Main.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/common/Debugging/Errors.cpp b/src/common/Debugging/Errors.cpp
index 789249ee310..6157cd786cd 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/bnetserver/Main.cpp b/src/server/bnetserver/Main.cpp
index c5c10aa3b4c..c367a1f7d40 100644
--- a/src/server/bnetserver/Main.cpp
+++ b/src/server/bnetserver/Main.cpp
@@ -85,7 +85,7 @@ LoginDatabaseWorkerPool LoginDatabase;
int main(int argc, char** argv)
{
- std::signal(SIGABRT, &Trinity::AbortHandler);
+ signal(SIGABRT, &Trinity::AbortHandler);
std::string configFile = _TRINITY_BNET_CONFIG;
std::string configService;
diff --git a/src/server/worldserver/Main.cpp b/src/server/worldserver/Main.cpp
index 7bae72dca99..906937e974b 100644
--- a/src/server/worldserver/Main.cpp
+++ b/src/server/worldserver/Main.cpp
@@ -101,7 +101,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;