mirror of
https://github.com/fmtlib/fmt.git
synced 2025-11-02 15:11:43 +01:00
Silence warnings on Windows
This commit is contained in:
@@ -699,9 +699,8 @@ void test_count_digits() {
|
||||
}
|
||||
|
||||
TEST(UtilTest, StringRef) {
|
||||
char space[100];
|
||||
std::strcpy(space, "some string");
|
||||
EXPECT_EQ(sizeof("some string") - 1, StringRef(space).size());
|
||||
char space[100] = "some string";
|
||||
EXPECT_EQ(std::strlen(space), StringRef(space).size());
|
||||
}
|
||||
|
||||
TEST(UtilTest, CountDigits) {
|
||||
|
||||
Reference in New Issue
Block a user