Fix build warnings addded in d5cf594bfe

This commit is contained in:
DDuarte
2015-08-16 00:45:07 +01:00
parent d5cf594bfe
commit 5aaf44fc66
2 changed files with 4 additions and 1 deletions

View File

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

View File

@@ -117,7 +117,7 @@ void Log::CreateAppenderFromConfig(std::string const& appenderName)
}
catch (InvalidAppenderArgsException const& iaae)
{
fprintf(stderr, iaae.what());
fprintf(stderr, "%s", iaae.what());
}
}