Skip to content

Commit 932534b

Browse files
committed
Ignore MSVC 14.1 warning
1 parent 02cda23 commit 932534b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/test_gcd_lcm.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,11 @@ void test_gcd_lcm_properties()
130130
BOOST_TEST_EQ(gcd(x, gcd(y, z)), gcd(gcd(x, y), z));
131131
}
132132

133+
#ifdef _MSC_VER
134+
#pragma warning(push)
135+
#pragma warning(disable : 4146)
136+
#endif
137+
133138
void test_negative_value()
134139
{
135140
// These should always return positive values
@@ -150,6 +155,10 @@ void test_negative_value()
150155
static_assert(gcd(int128_t{0}, int128_t{-24}) == 24, "Wrong");
151156
}
152157

158+
#ifdef _MSC_VER
159+
#pragma warning(pop)
160+
#endif
161+
153162
int main()
154163
{
155164
test_gcd<uint128_t>();

0 commit comments

Comments
 (0)