aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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;