Fix build warnings addded in d5cf594bfe91ff22175c6e344b23b95cdbcc8a3c
This commit is contained in:
1 parent
cdbd563157
commit
233615c785
2 files changed
+4
-1
No files matched your search
@@ -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
|
||||
@@ -116,7 +116,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