mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
Fix build warnings addded in d5cf594bfe
This commit is contained in:
@@ -22,6 +22,7 @@
|
||||
#include <string>
|
||||
#include <time.h>
|
||||
#include <type_traits>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include "Define.h"
|
||||
|
||||
@@ -126,6 +127,8 @@ class InvalidAppenderArgsException : public std::length_error
|
||||
{
|
||||
public:
|
||||
using std::length_error::length_error;
|
||||
|
||||
explicit InvalidAppenderArgsException(std::string const& message) : length_error(message) { }
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -117,7 +117,7 @@ void Log::CreateAppenderFromConfig(std::string const& appenderName)
|
||||
}
|
||||
catch (InvalidAppenderArgsException const& iaae)
|
||||
{
|
||||
fprintf(stderr, iaae.what());
|
||||
fprintf(stderr, "%s", iaae.what());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user