Skip to content

Commit feb2003

Browse files
committed
Suppress unsafe CRT function warnings in test_sharding.h
1 parent 82b8ea1 commit feb2003

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/common/test_sharding.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
#ifndef TEST_SHARDING_H
22
#define TEST_SHARDING_H
33

4+
#ifdef _MSC_VER
5+
#pragma warning(push)
6+
#pragma warning(disable : 4996)
7+
#endif
8+
49
// This file may be used by AOT tests, so it deliberately does not
510
// include Halide.h
611

@@ -86,4 +91,8 @@ class Sharder {
8691
} // namespace Internal
8792
} // namespace Halide
8893

94+
#ifdef _MSC_VER
95+
#pragma warning(pop)
96+
#endif
97+
8998
#endif // TEST_SHARDING_H

0 commit comments

Comments
 (0)