mirror of
https://github.com/fmtlib/fmt.git
synced 2024-11-02 11:28:20 +00:00
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.
|
||||
std::string GetBigNumber() {
|
||||
char format[BUFFER_SIZE];
|
||||
sprintf(format, "%u", UINT_MAX);
|
||||
SPrintf(format, "%u", UINT_MAX);
|
||||
Increment(format + 1);
|
||||
return format;
|
||||
}
|
||||
|
@ -239,7 +239,7 @@ TEST(UtilTest, FormatWinErrorMessage) {
|
||||
fmt::internal::FormatWinErrorMessage(
|
||||
actual_message, ERROR_FILE_EXISTS, "test");
|
||||
EXPECT_EQ(fmt::format("test: {}", fmt::str(utf8_message)),
|
||||
fmt::str(actual_message));
|
||||
actual_message.str());
|
||||
}
|
||||
|
||||
TEST(UtilTest, WinErrorSink) {
|
||||
|
Loading…
Reference in New Issue
Block a user