Fix warnings.
This commit is contained in:
parent
536fedfe0f
commit
442c122c44
@ -38,7 +38,7 @@ using fmt::FormatError;
|
|||||||
// Returns a number UINT_MAX + 1 formatted as a string.
|
// Returns a number UINT_MAX + 1 formatted as a string.
|
||||||
std::string GetBigNumber() {
|
std::string GetBigNumber() {
|
||||||
char format[BUFFER_SIZE];
|
char format[BUFFER_SIZE];
|
||||||
sprintf(format, "%u", UINT_MAX);
|
SPrintf(format, "%u", UINT_MAX);
|
||||||
Increment(format + 1);
|
Increment(format + 1);
|
||||||
return format;
|
return format;
|
||||||
}
|
}
|
||||||
|
@ -239,7 +239,7 @@ TEST(UtilTest, FormatWinErrorMessage) {
|
|||||||
fmt::internal::FormatWinErrorMessage(
|
fmt::internal::FormatWinErrorMessage(
|
||||||
actual_message, ERROR_FILE_EXISTS, "test");
|
actual_message, ERROR_FILE_EXISTS, "test");
|
||||||
EXPECT_EQ(fmt::format("test: {}", fmt::str(utf8_message)),
|
EXPECT_EQ(fmt::format("test: {}", fmt::str(utf8_message)),
|
||||||
fmt::str(actual_message));
|
actual_message.str());
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST(UtilTest, WinErrorSink) {
|
TEST(UtilTest, WinErrorSink) {
|
||||||
|
Loading…
Reference in New Issue
Block a user