Core/Misc: fix build

This commit is contained in:
MitchesD
2016-03-03 19:58:28 +01:00
parent 82cc37e130
commit ce5def332f
3 changed files with 3 additions and 3 deletions

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;