Core/Misc: fix build

(cherry picked from commit ce5def332f)
This commit is contained in:
MitchesD
2016-03-03 19:58:28 +01:00
committed by Aokromes
parent 702d19039e
commit c5d2ece2fe
2 changed files with 2 additions and 2 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

@@ -94,7 +94,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;