mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-26 00:21:13 +00:00
Fix warnings
This commit is contained in:
parent
d707adce5c
commit
755ecb0311
@ -268,6 +268,7 @@ class PrecisionHandler :
|
|||||||
public:
|
public:
|
||||||
unsigned visit_unhandled_arg() {
|
unsigned visit_unhandled_arg() {
|
||||||
FMT_THROW(fmt::FormatError("precision is not integer"));
|
FMT_THROW(fmt::FormatError("precision is not integer"));
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
|
@ -254,7 +254,9 @@ TEST(FileTest, Size) {
|
|||||||
std::string content = "top secret, destroy before reading";
|
std::string content = "top secret, destroy before reading";
|
||||||
write_file("test", content);
|
write_file("test", content);
|
||||||
File f("test", File::RDONLY);
|
File f("test", File::RDONLY);
|
||||||
EXPECT_EQ(content.size(), f.size());
|
EXPECT_GE(f.size(), 0);
|
||||||
|
fmt::ULongLong file_size = f.size();
|
||||||
|
EXPECT_EQ(content.size(), file_size);
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
fmt::MemoryWriter message;
|
fmt::MemoryWriter message;
|
||||||
fmt::internal::format_windows_error(
|
fmt::internal::format_windows_error(
|
||||||
|
Loading…
Reference in New Issue
Block a user